Page 1 of 1

ESP32 GDB debugging not working

Posted: Fri Dec 13, 2019 9:57 am
by balaje
Hi

I am trying to use ESP32 Nina w102 module and flashing using Jtag - Jlink and when i am flashing it says successful but when i am trying to debug it always stops at "Hardware assisted breakpoint 1 at 0x400d23bc: file ../main/http_request_example_main.c, line 251".

When i tried to use the same build and code to the evaluation kit EVK nina W102 the flashing is successful and I am able to debug.
On looking at the 2 log I noticed that one difference during flashing . in Esp32 it says "Warn : Empty flash mapping!
Warn : Failed to get flash mappings (0)!" where as in evaluation Kit it says Flash mapping 0: 0x10020 -> 0x3f400020, 91 KB
Info : Flash mapping 1: 0x30018 -> 0x400d0018, 410 KB. I am new to ESP so can someone let me know what am I missing here. I have attached the two outputs of Evaluation kit and normal esp32 module.

Re: ESP32 GDB debugging not working

Posted: Fri Dec 20, 2019 12:41 pm
by balaje
Can anyone help me out with this one ? I still havent found any solution for this!!

Re: ESP32 GDB debugging not working

Posted: Mon May 24, 2021 1:48 pm
by ashigupta9
Have you find any solution for this issue? I am also seeing similar logs and debugging just won't start though flashing is working fine.

Re: ESP32 GDB debugging not working

Posted: Fri Jun 25, 2021 6:17 pm
by ashigupta9
I am able to fix this problem with the help of espressif support by using below openOCD version
https://github.com/espressif/openocd-es ... 2-20210401
Cfg file used for debugging is
-f interface/ftdi/esp32_devkitj_v1.cfg -f target/esp32-solo-1.cfg

Also it is required to power ESP32 board with 3.3v using USB even if 3.3v from ESP PROG has been connected.

Hope this helps.