drivers icon indicating copy to clipboard operation
drivers copied to clipboard

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

Open aykevl opened this issue 2 years ago • 8 comments

Work in progress. Does not work yet.

Some notes:

  • This requires some changes to TinyGo, look at the espnet branch: https://github.com/tinygo-org/tinygo/pull/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.

aykevl avatar Sep 24 '21 17:09 aykevl

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 https://github.com/tinygo-org/tinygo/pull/2138.

aykevl avatar Sep 24 '21 20:09 aykevl

Is this dead?

joelschutz avatar Aug 23 '22 22:08 joelschutz

I'm not currently working on it.

aykevl avatar Sep 08 '22 13:09 aykevl

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.

aykevl avatar Oct 19 '22 14:10 aykevl

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

DatanoiseTV avatar Jan 16 '23 00:01 DatanoiseTV

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

sprive avatar Nov 24 '23 12:11 sprive

  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.

b0ch3nski avatar Nov 24 '23 21:11 b0ch3nski

See this PR for a new attempt, using much more suitable libraries: https://github.com/tinygo-org/drivers/pull/650

aykevl avatar Jan 27 '24 19:01 aykevl