I have an ESP32 board which I programmed with successfully and managed to set two hardware breakpoints following the advice in the ESP32 Limitations article.
I have now setup a second project based upon the LED project and have tried to execute this and set a breakpoint. I keep getting the following message:
Cannot insert hardware breakpoint 7. Could not insert hardware breakpoints: You may have requested too many hardware breakpoints/watchpoints.
I have tried clearing the break points using Visual Studio (Debug -> Delete all breakpoints) and also using the GDB session directly. The GDB command info break tells me that I have no breakpoints or watchpoints set.
Any idea how I can use the debugger in the new application?
The ESP32 OpenOCD sometimes shows this message if one of the cores is not stopped properly. Please try running the “mon targets” command to see if both cores are stopped. You can then forcibly stop them by running “mon halt”.