espressif / esp-idf

Espressif IoT Development Framework. Official development framework for Espressif SoCs.
Apache License 2.0
13.69k stars 7.29k forks source link

ESP32 S2 Mini Clone crashing when using wifi(new findings) (IDFGH-11494) #12621

Open Aggeloz opened 11 months ago

Aggeloz commented 11 months ago

Answers checklist.

General issue report

Hello, i was researching the issue with the ESP32 S2 Mini clone boards and i found out that the wifi causing crashes only happens when im using CDC for communication, when i connect an external serial connection to see the console output then the board doesnt crash. For more info, ive tried all the fixes that the others have suggested either here on github or on the espressif forums. What could be causing this issue?

Dazza0 commented 11 months ago

Hi @Aggeloz, could you provide some more information what is happening in your application such as:

Could you provide more details regarding the crash?

Aggeloz commented 11 months ago

Im using ESP IDF versions 5.1.1 and 5.1.2 they behave the same. When i use my board on a breadboard, try to connect something on the board or even get my fingers close to the board it just hangs for ever and does nothing until i reset the board or it resets itself and acts weird like booting with no working CDC output. Ive used an external serial connection using UART to see the output messages when the board hangs but it just freezes without any output to the serial console. The crash happens after the wifi is initialized as soon as i get my fingers close to the board or i connect something to the pins, if the board is already on a breadboard, the whole boot sequence takes more time and some times the CDC console output freezes but the code seems to be running. I think that the ESP32 S2 Mini board im using uses the internal USB PHY, since it has no serial connection chip onboard.

Im going to use pastebin for the biggest files if thats okay so the comment wont be too big.

sdkconfig This is the only core dump i managed to get from the board Core Dump The code im using is basically the MQTT example from the repo.