How to Debug correctly using a ESP32-S3-DevKitC-1 EVM ?

ThomasESP32
Posts: 229
Joined: Thu Jul 14, 2022 5:15 am

How to Debug correctly using a ESP32-S3-DevKitC-1 EVM ?

Postby ThomasESP32 » Mon Jan 16, 2023 4:07 pm

Good afternoon,

I am working on a ESP32-S3-DevKitC-1 EVm board and I would like to debug the program I am developping.
In order to do this, I use the following procedure :

1) Open the ESP-IDF 5.0 CMD.
2) Enter the following command : "openocd –f board/esp32s3-builtin.cfg"
3) In ESP-IDF (Eclipse), go to Run => Debug Configuration.
4) Double clic on "GDB Hardware Debugging".
5) In the Main tab :
A) In project part, choose the project.
B) In C/C++ Application, choose the .Elf file.
C) In the Build part check the Disable Auto Build option.
6) In the Debugger Tab :
A) In the GDB Command part, use the following line : xtensa-esp32s3-elf-gdb
B) In the Remote target Part, Check "Use remote target". Debug Server is "Generic TCP/IP", Protocol is "Remote", Connection is "localhost:3333".
7) In the Startup tab :
A) In the Initialization Commands part, Uncheck "Reset and delay" and Uncheck "Halt". Enter the following line :
mon reset halt
flushregs
set remote hardware-watchpoint-limit 2
B) In the Load Image And Symbols, uncheck Load Image
C) In the Run Commands part, check Set breakpoint at : "app_main" and check Resume.

Sometimes, everything is OK with this procedure.
But when I work on my project and when I add a lot of line of codes, this procedure do not manage to run the debugger normally.

Do you have something more robust ??? I would like to debug my programs without any problems.

Best regards,

bidrohini
Posts: 202
Joined: Thu Oct 27, 2022 12:55 pm

Re: How to Debug correctly using a ESP32-S3-DevKitC-1 EVM ?

Postby bidrohini » Tue Jan 17, 2023 9:05 am

These are the very few contents that I found regarding this board's debugging.

https://github.com/espressif/openocd-esp32/issues/229

https://esp32.com/viewtopic.php?t=29184

Who is online

Users browsing this forum: Bing [Bot], ok-home and 116 guests