Menu

Issues with GDBStub in ESP32 and Pio

Reddit r/embedded·u/Temporary_Number_388·7 months ago
#oiBCXcDA
#esp32#continue#debug#platformio#build
Reading 0:00
15s threshold

I opened up a test project and followed instructions on the esp32 site with idf.py monito r to get the gdbstub set up. To do this I set the following in menuconfig: ESP_SYSTEM_GDBSTUB_RUNTIME . I then ran the monitor command and, as documented, used Ctrl C to interrup the ESP32. It worked and I was able to set breakpoints, continue and pause execution which is fantastic!

I then went over to an old platformIO project which is very large.

`[build_type_flags] debug_flags = -D${compile_option_flags.debug} -O0 ; Turn off optimisations -g3 ; All debug information ... [env:dev] build_type = debug build_flags = ${common.build_flags} ${build_type_flags.debug_flags}

This is an extract from that set up.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.