nodemcu / nodemcu-firmware

Lua based interactive firmware for ESP8266, ESP8285 and ESP32
https://nodemcu.readthedocs.io
MIT License
7.61k stars 3.12k forks source link

Wi-Fi module is missing in ESP32C3 #3654

Open bv73 opened 1 month ago

bv73 commented 1 month ago

Expected behavior

Normal working with wifi module

Actual behavior

After idf.py set-target esp32c3 and make I have suspicious small size of firmware and errors for mention of the wifi module.

Test code

Any commands like wifi.start() or wifi.mode(wifi.STATION, true) etc

Hardware

ESP32C3 supermini with external USB-UART adapter, connected to GPIO20 & GPIO21.

Later I found out that the components/modules/CMakeLists.txt file was missing a line ${wifi_modules}

elseif(IDF_TARGET STREQUAL "esp32c3")
  list(APPEND module_srcs
    ${wifi_modules}
  )

So, now wifi module is working. But I have some issues with sta mode while ap mode working well. Please, add the missing line to the source code so that the firmware can be fully used.