Last week I received an ESP-PROG to allow me to use JTAG debugging with my ESP32 Dev Board.
To test the ESP-PROG board I created a new Arduino project in PlatformIO, loaded the BLINK code and all worked as expected. Build, Upload, debug, breakpoints…
Now this weekend as I am working on my real project code I am getting the following error in the debugger.
/builds/idf/crosstool-NG/.build/src/gdb-7.10/gdb/regcache.c:697: internal-error: regcache_raw_read_unsigned: Assertion `regnum >= 0 && regnum < regcache->descr->nr_raw_registers' failed. A problem internal to GDB has been detected, further debugging may prove unreliable. Quit this debugging session?
When I close the project and open the BLINK test sketch it works fine. I have used the same PlateformIO.ini file for both the test BLINK and my project code.
Any suggestions on what I should be looking for here?
PlatformIO Core 5.1.1
VS Code Version: 1.60.0 (user setup)
OS: Windows_NT x64 10.0.19043
[env:esp32doit-devkit-v1] platform = espressif32 board = esp32doit-devkit-v1 framework = arduino upload_port = com5 monitor_speed = 115200 ; ESP-PROG JTAG debug_tool = esp-prog debug_init_break = tbreak setup board_debug.openocd_board = esp32-wrover-kit-1.8v.cfg debug_speed = 12000
** note using the 1.8v cfg to fix the reboot loop problem with the GPIO12