ESP32 GDB debugging not working

balaje
Posts: 3
Joined: Wed Dec 11, 2019 2:22 pm

ESP32 GDB debugging not working

Postby balaje » Fri Dec 13, 2019 9:57 am

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.
Attachments
EVK.PNG
Evaluation kit
EVK.PNG (77.2 KiB) Viewed 4156 times
ESP32.PNG
ESP32.PNG (81.41 KiB) Viewed 4156 times

balaje
Posts: 3
Joined: Wed Dec 11, 2019 2:22 pm

Re: ESP32 GDB debugging not working

Postby balaje » Fri Dec 20, 2019 12:41 pm

Can anyone help me out with this one ? I still havent found any solution for this!!

ashigupta9
Posts: 13
Joined: Thu Nov 28, 2019 9:48 am

Re: ESP32 GDB debugging not working

Postby ashigupta9 » Mon May 24, 2021 1:48 pm

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.

ashigupta9
Posts: 13
Joined: Thu Nov 28, 2019 9:48 am

Re: ESP32 GDB debugging not working

Postby ashigupta9 » Fri Jun 25, 2021 6:17 pm

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.

Who is online

Users browsing this forum: No registered users and 353 guests