My set-up in order to program esp32 is this:
-OS: windows 10 x64
-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)
-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:
I'm posting my debug log files from both the devices. Also I'm attaching some screenshots.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 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