From this link : https://github.com/espressif/openocd-esp32/issues/45
It seems the latest openocd ESP32 supports software breakpoint. Anybody has tried it?
How can I setup a software breakpoint?
-
- Posts: 11
- Joined: Thu Jul 26, 2018 3:20 pm
How can I setup a software breakpoint?
Last edited by dzRBRglobal on Thu Jul 26, 2018 9:11 pm, edited 1 time in total.
Re: How can setup a software breakpoint?
An update to JTAG debugging guide in IDF is in progress, but for now you can keep using OpenOCD as you used it in the past, and it will allow you to set more breakpoints. Previously the limit was 2 hardware breakpoints, and now the limit is 2 hardware + 32 software breakpoints in Flash + 32 software breakpoints in IRAM.
-
- Posts: 11
- Joined: Thu Jul 26, 2018 3:20 pm
Re: How can setup a software breakpoint?
Thank you very much for the clarification. I just setup the esp development environment on a ubuntu virtual machine. I am very new to openocd and gdb. I installed the eclipse as my coding front end. And use the GNU MCU ECLIPSE plugin to call openocd and gdb. Now code complies and debug properly on my setup. The only problem is if I add more than two breakpoints, openocd will complainESP_igrr wrote:An update to JTAG debugging guide in IDF is in progress, but for now you can keep using OpenOCD as you used it in the past, and it will allow you to set more breakpoints. Previously the limit was 2 hardware breakpoints, and now the limit is 2 hardware + 32 software breakpoints in Flash + 32 software breakpoints in IRAM.
Code: Select all
Warn : xtensa_add_breakpoint: max slot reached, slot=2
Error: can't add breakpoint: resource not available
-
- Posts: 11
- Joined: Thu Jul 26, 2018 3:20 pm
Re: How can I setup a software breakpoint?
Please follow instructions listed here to generate OpenOCD log file: https://docs.espressif.com/projects/esp ... ing-issues
Then upload the log file here or to GitHub issue tracker https://github.com/espressif/openocd-esp32/issues/. Thanks.
Then upload the log file here or to GitHub issue tracker https://github.com/espressif/openocd-esp32/issues/. Thanks.
-
- Posts: 11
- Joined: Thu Jul 26, 2018 3:20 pm
Re: How can I setup a software breakpoint?
Hi igrr,
Thank you very for your immediate reply. I will follow the instruction and upload the log.
Thank you very for your immediate reply. I will follow the instruction and upload the log.
-
- Posts: 11
- Joined: Thu Jul 26, 2018 3:20 pm
Re: How can I setup a software breakpoint?
here is a link to GitHub issue: https://github.com/espressif/openocd-esp32/issues/51ESP_igrr wrote:Please follow instructions listed here to generate OpenOCD log file: https://docs.espressif.com/projects/esp ... ing-issues
Then upload the log file here or to GitHub issue tracker https://github.com/espressif/openocd-esp32/issues/. Thanks.
I also attached the logs
- Attachments
-
- openocd_log.txt
- (1.27 MiB) Downloaded 931 times
-
- gdb_log.txt
- (31.53 KiB) Downloaded 909 times
-
- Posts: 11
- Joined: Thu Jul 26, 2018 3:20 pm
Re: How can I setup a software breakpoint?
as gerekon metioned in this link:
https://github.com/espressif/openocd-esp32/issues/51
After I update my openocd to 2018-07-24 the problem is fixed.
https://github.com/espressif/openocd-esp32/issues/51
After I update my openocd to 2018-07-24 the problem is fixed.
Who is online
Users browsing this forum: No registered users and 55 guests