-
Notifications
You must be signed in to change notification settings - Fork 7.4k
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
Monitor no access (error) over native USB after esp_wifi_init() (IDFGH-5196) #6969
Comments
Additional info: Again, only using the native USB post (or trying so). When flashing DFU without wifi code I get a new serial port. But if I then turn on wifi (uncomment wifi code) and do idf.py build and flash over this new port, the firmware is working but the port is now gone. So, I can create a dfu with wifi code and flash it (dfu-flash), I get a new serial port but using monitor over this port shows [Errno 6] Device not configured. After a while, closing the monitor the new port is gone. I can reset the device to get the port back but still not working in monitor. If I try an idf.py flash on this port I also get the same error and also the port is gone afterwards. As if wifi and native USB can not coexist. |
For my sanity (maybe I just miss something here), would it be possible to let me know if this can be confirmed as a problem? I prepared an even simpler way to demonstrate the issue. Just follow these few steps: copy the hello world: cp -r $IDF_PATH/examples/get-started/hello_world . now add these few lines: #include <esp_wifi.h> ===> and just at the top of main: repeat the dfu, dfu-flash and monitor === not possible to connect with monitor tool === |
Environment
Custom board with ESP32-S2 WROVER module but also verified on Saola
Problem Description
When flashing DFU over native USB, monitor gets:
read failed: [Errno 6] Device not configured
Waiting for the device to reconnect
But code is working.
Narrowed down to esp_wifi_init() call. If not calling esp_wifi_init() the monitor has normal access.
(See stripped down code)
Expected Behavior
Besides working code also access with monitor over native USB
Actual Behavior
Code works but no access over native USB (error)
Steps to reproduce
Uncomment call to esp_wifi_init(&cfg)
Code to reproduce this issue
Debug Logs
No access to monitor (the problem), board does not have UART bridge
The text was updated successfully, but these errors were encountered: