Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

espnet: WIP support for on-chip WiFi on an ESP32C3 #320

Draft
wants to merge 11 commits into
base: dev
Choose a base branch
from
Draft

Conversation

aykevl
Copy link
Member

@aykevl aykevl commented Sep 24, 2021

Work in progress. Does not work yet.

Some notes:

  • This requires some changes to TinyGo, look at the espnet branch: WIP: support for WiFi on the ESP32-C3 tinygo#2138
  • The next step is probably defining all the functions in g_wifi_osi_funcs (see espnet.c). Right now it hangs in esp_wifi_init_internal, probably a NULL pointer dereference.
  • This is only for the ESP32-C3. This will require some work to work on other chips from Espressif.

Work in progress. Does not work yet.

Some notes:

  - This requires some changes to TinyGo, look at the espnet branch.
  - The  next step is probably defining all the functions in
    g_wifi_osi_funcs (see espnet.c). Right now it hangs in
    esp_wifi_init_internal, probably a NULL pointer dereference.
  - This is only for the ESP32-C3. This will require some work to work
    on other chips from Espressif.
@aykevl
Copy link
Member Author

aykevl commented Sep 24, 2021

Update: the function that's called is recursive_mutex_create_wrapper, which calls xSemaphoreCreateRecursiveMutex. I guess this will need to be added to the FreeRTOS compatibility layer I've started to write in tinygo-org/tinygo#2138.

@joelschutz
Copy link

Is this dead?

@aykevl
Copy link
Member Author

aykevl commented Sep 8, 2022

I'm not currently working on it.

@aykevl
Copy link
Member Author

aykevl commented Oct 19, 2022

Just found https://github.com/espressif/esp-wireless-drivers-3rdparty (thanks @panbanda!) which we should use as a basis for this, instead of esp-idf.

@DatanoiseTV
Copy link

DatanoiseTV commented Jan 16, 2023

Are there any news on this? I have lots of "stock" ESP32/S2/S3 boards for testing and also some of my own ones.

@sprive
Copy link

sprive commented Nov 24, 2023

Slightly connected questions:

  1. are there any microcontrollers at all with TinyGo wifi support?
  2. What workarounds exist? If someone's seen a good workaround, like using a second microcontroller as a wifi peripheral, or using Bluetooth networking.. would you mind dropping a link (or DM it)?

It seems like there's a lot of interest, not only in resolving the TinyGo issue, but even in finding workarounds for the interim. Cheers

@b0ch3nski
Copy link

  1. are there any microcontrollers at all with TinyGo wifi support?

@sprive There is Nano RP2040 Connect which use wifinina driver - see webserver example and a super cool project - plantbot.

@aykevl
Copy link
Member Author

aykevl commented Jan 27, 2024

See this PR for a new attempt, using much more suitable libraries: #650

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants