Espressif IDE + linux + openocd + gdb : Cannot access memory at address
Posted: Mon Sep 22, 2025 4:36 pm
After quite some pain I have a 99% reliable developing environment, slow, but almost reliable
The setup
if I do a "step", the debugger complain that it cannot read the memory
I already have the following in Startup -> Initialization commands
any other magic that need to be enabled ?
The setup
- Linux, because windows is spyware
- esp32-c6 custom board with ES8388, actually producing sound
- openocd started manually and connecting using USB to the above
- GDB started in aclipse by following
https://docs.espressif.com/projects/esp ... -app-debug
there are a few quirks, ask me for details if needed - code that starts thread to manage a console + some gpio +wify + a pipeline to play sound
if I do a "step", the debugger complain that it cannot read the memory
I already have the following in Startup -> Initialization commands
Code: Select all
mon reset halt
mon program_esp ${workspace_loc:wiradio/build/wiradio.bin} 0x10000 verify skip_loaded
set mem inaccessible-by-default off
maintenance flush register-cache