esp-rs / esp-hal

no_std Hardware Abstraction Layers for ESP32 microcontrollers
https://docs.esp-rs.org/esp-hal/
Apache License 2.0
781 stars 216 forks source link

Cannot start wifi on esp32s3 #2364

Closed akesser closed 1 month ago

akesser commented 1 month ago

Bug description

I am trying to run the wifi examples on a esps3, but the code stops at Device capabilities: Ok(EnumSet(Client)) Starting wifi

The chip is getting hot and can't be flashed after a reboot.

Thanks for your help in advance!

To Reproduce

export SSID="myssid" export PASSWORD="ChangeMe" cargo xtask run-example esp-hal esp32s3 wifi_embassy_dhcp

Expected behavior

The chip should be able to start the wifi and continue the script

Environment

MabezDev commented 1 month ago

It's probably working, it's most likely that you have the USB port plugged into the usb-serial-jtag port, which WiFi automatically disables for better RF performance. We have a feature to keep it enabled, could you try enabling phy-enable-usb feature and trying again?

akesser commented 1 month ago

Thanks for the hint! It works now. I spend a pull request to add a note to all the wifi examples.