It is still not possible to change the default adapter speed (5000) according to the configuration in the platform.ini file.
PlatformIO: Initializing remote target…
Open On-Chip Debugger v0.10.0-esp32-20201202 (2020-12-02-17:38)
Licensed under GNU GPL v2
For bug reports, read OpenOCD: Bug Reporting
WARNING: boards/esp-wroom-32.cfg is deprecated, and may be removed in a future release.
2
Info : FreeRTOS creation
adapter speed: 5000 kHz
Info : tcl server disabled
Info : telnet server disabled
Info : clock speed 5000 kHz
.
.
.
It of cause helped that the default value has changed from 20000 to 5000 so that the Olimex debugger is able to start.
One peculiar thing I noticed was that in order to start the debug session the first time after upgrading to the new bleeding edge release, I needed to erase the flash (platform/Erase Flash) otherwise I would repeatedly get the error:
“error: JTAG scan chain interrogation failed: all ones”??
The debug session also seem a bit unstable, when setting the first breakpoint (after the app_main() breakpoint) and pressing ‘Continue’ I get the below messages and the breakpoint is never reached.
Thread 1 hit Temporary breakpoint 1, app_main () at src/main.c:132
132 int app_main(void) {
Note: automatically using hardware breakpoints for read-only addresses.
Info : esp32.cpu0: Debug controller was reset.
Info : esp32.cpu0: Core was reset.
esp32.cpu0: Debug controller was reset.
esp32.cpu0: Core was reset.
Info : esp32.cpu1: Debug controller was reset.
Info : esp32.cpu1: Core was reset.
esp32.cpu1: Debug controller was reset.
esp32.cpu1: Core was reset.
So, what would be the preferred procedure for cleaning up (removing) the “old” installation and making a new clean one base on the stable release (3.0.0)?
I’d jsut recommend to update the project from the bleeding edge platform to platform = espressif32 and update as previously said. If one wants to be sure that 3.0.0 is used, one can also write platform = espressif32@3.0.0 to fixate it (until the developer tests the next platform version before updating).
The old C:\Users\<user>\.platformio\platform\espressif32@src-* folder can be kept or deleted, since they’re not used anymore if stable / tagged platform versions are used.
Hm from the address it is in the external flash memory, which starts at 0x400C_2000 and ends at 0x40BF_FFFF (+74260 bytes from start). But, that memory is read-only (if you don’t want to trigger a flash erase).
might indicate that you have too many breakpoints active. Clear them all and retry.
Currently GDB can not set software breakpoints in flash. So until this limitation is removed those breakpoints have to be emulated by OpenOCD as hardware ones (see below for details).
…ESP32 debugger supports 2 hardware implemented breakpoints …
If it still does not work, retry on a clean ESP-IDF blinky project.