Hi folks,
with the input from the form (thanks all) it was easy to get debugging working in vscode for the ESP32-C3. I connect to GPIO18/19 directly using USB. (Which is a great feature of the C3).
with this launch.json
{
"version": "0.2.0",
"configurations": [
{
"type": "espidf",
"name": "Launch",
"request": "launch"
"initGdbCommands": [
"target remote :3333",
"file /build/blink.elf",
"symbol-file /build/blink.elf",
"mon reset halt",
"flushregs",
"thb app_main"
],
}
]
}
debugging works, but it stops somewhere, not at app_main. Furthermore I found no option, to load the elf before and prevent fro running the application unintended. If I'm looking for an issue in some of my startup initialization code, there is no chance to get that debugged.
To test that I created a division by zero. If you do that, load the application it will crash (off course, that's intented) and you can't connect anymore with gdb.
any ideas how to load the application in the beginning od a debugging session?
Tx
Matthias
VSCode, debugging ESP32-C3, thb app_main does not stop at app_main
Who is online
Users browsing this forum: No registered users and 10 guests