-
Notifications
You must be signed in to change notification settings - Fork 6.9k
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
Can't build WiFi support on esp32, esp32s2, esp32c3 #44250
Comments
@brentalanmiller This has been fixed already, would you retry? ( |
@brentalanmiller there's a couple configs not set in the sample that esp boards need, try adding these to samples/wifi/prj.conf: # ESP-Specific Configs
CONFIG_WIFI_ESP32=y
CONFIG_MBEDTLS=y
CONFIG_MBEDTLS_ENTROPY_ENABLED=y
CONFIG_MBEDTLS_KEY_EXCHANGE_ECDHE_ECDSA_ENABLED=y
CONFIG_MBEDTLS_ECP_ALL_ENABLED=y
CONFIG_NET_L2_ETHERNET=y |
@sylvioalves I tried running I even just tried installing zephyr on a new machine also running Ubuntu 20.04 and still get the error. @jhardyswym Thanks, it looks like those options got me closer, but now I'm getting:
|
I just retried the above configuration options with the |
Would it make sense to open a small PR that makes those modules a dependency of the WIFI_ESP32 driver like this? brentalanmiller@66cd6bf Also, I just came across the samples/boards/esp32/wifi_station example and I'm able to successfully compile this project across on all of three of the supported Espressif modules. (It has the configuration options that @jhardyswym mentioned, and the C3 builds successfully with that sample project.) The C3 won't actually connect to wifi with that project, but that looks like its being addressed in #43655 |
@sylvioalves - will this require backport for v2.7.2? |
I guess no. WiFi support is available only when using the |
@brentalanmiller Regarding your comment about ESP32C3 not connecting to wifi station, check #43655. A few ESP32C3 boards do connect to wifi, others don't. I have been also working on getting this fixed. Is that the same issue you are facing? |
@sylvioalves, yes the c3 issue appears to be the same one in the other ticket. |
Thanks for all the help and clarification everyone, I appreciate it. |
Describe the bug
When trying to enable WiFi support on the Espressif line of boards, the build always fails because of mbedtls errors in the espressif hal library.
This seems to be across all supported boards, and versions of Zephyr that have support for these devices. (3.0.0, 2.7.0, etc.)
I'm building on Ubuntu 20.04. While trying to research the error, I found a user on the zephyr-users list who had the same issue back in 2.6.0, so maybe the driver never worked correctly, or that we're both trying to enable the driver incorrectly.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
To be able to build without error, flash, and utilize the wifi shell commands.
Impact
Cannot use wifi on the espressif line of modules
Environment (please complete the following information):
Additional context
The example above shows the esp32c3 dev board, but the error is the same regardless of board used. The same errors occur on earlier versions of Zephyr as well, although some versions require the enabling of ethernet for some reason.
The text was updated successfully, but these errors were encountered: