openOCD - jtag debugging - Failed to write breakpoint instruction (-4)!

k.ifantidis
Posts: 33
Joined: Wed Mar 28, 2018 6:58 am

openOCD - jtag debugging - Failed to write breakpoint instruction (-4)!

Postby k.ifantidis » Mon Jul 27, 2020 1:24 pm

Hello there folks !
My set-up in order to program esp32 is this:

-OS: windows 10 x64
-Eclipse
-Esspressif's plugin
-openOCD version: Tested many versions at the moment I'm using latest release (openocd-esp32-win32-0.10.0-esp32-20200709)
-Module: ESP-WROOM-32D and ESP32-WROVER (kit)
-Programmer/Debugger: ESP-PROG
-Flash Memory: 4MB -- FW installed in 0x30000 (3x OTA partitions)
-Jtag Frequency: Tested both in 20KHz and in 10KHz
-sdkconfigs are set accordingly

I have build my FW and it works great but it's time to use openOCD and xtensa debugger. When I firstly installed "ESP-IDF Eclipse plugin" in order to confirm that everything works I've compiled hello world and blink examples and everything was working fine. I've also confirmed that debugger was working.

At the moment I'm trying to use the debugger and I get this message and the programm stops:
Info : esp32: Core 0 was reset.
Info : esp32: Debug controller 1 was reset.
Info : esp32: Core 1 was reset.
Info : Target halted. CPU0: PC=0x40000400 (active)
Info : Target halted. CPU1: PC=0x40000400
Error: cpu0: Failed to write breakpoint instruction (-4)!
Error: cpu0: Failed to add SW breakpoint!
Error: can't add breakpoint: unknown reason
I'm posting my debug log files from both the devices. Also I'm attaching some screenshots.
I have confirmed this error in both esp32 chips and in both using the xtensa debugger via command line and within eclipse.

Is there anyone that had the same problem or anyone that can help me ?

Best regards, Kostas
Attachments
openOCD failed to write breakpoint instruction.png
openOCD failed to write breakpoint instruction.png (100.72 KiB) Viewed 2274 times
openocd_myLog2.txt
(282.6 KiB) Downloaded 429 times
openocd_myLog.txt
(246.63 KiB) Downloaded 433 times

Who is online

Users browsing this forum: No registered users and 108 guests