Struggle debugging an esp32p4 with a JLink
Posted: Fri Oct 10, 2025 3:22 pm
I have an esp32p4 development board. I am using esp-idf v5.5.1.
I start openocd like this and things look normal.
Starting gdb like I get:
On gdb I see
I have IRAM/DRAM split protection turned off.
Any ideas here?
I start openocd like this and things look normal.
Code: Select all
openocd -f interface/jlink.cfg -f target/esp32p4.cfg -c "init; reset halt"Code: Select all
idf.py gdbCode: Select all
Info : accepting 'gdb' connection on tcp/3333
Info : [esp32p4.hp.cpu0] Target halted, PC=0x4FC00B10, debug_reason=00000000
Info : [esp32p4.hp.cpu1] Target halted, PC=0x4FC0283E, debug_reason=00000000
Warn : No symbols for FreeRTOS!
Info : [esp32p4.hp.cpu0] Found 3 triggers
Info : Flash mapping 0: 0x10020 -> 0x40060020, 151 KB
Info : Flash mapping 1: 0x40020 -> 0x40000020, 370 KB
Info : Auto-detected flash bank 'esp32p4.hp.cpu0.flash' size 16384 KB
Info : Using flash bank 'esp32p4.hp.cpu0.flash' size 16384 KB
Info : Flash mapping 0: 0x10020 -> 0x40060020, 151 KB
Info : Flash mapping 1: 0x40020 -> 0x40000020, 370 KB
Info : Using flash bank 'esp32p4.hp.cpu0.irom' size 372 KB
Info : Flash mapping 0: 0x10020 -> 0x40060020, 151 KB
Info : Flash mapping 1: 0x40020 -> 0x40000020, 370 KB
Info : Using flash bank 'esp32p4.hp.cpu0.drom' size 152 KB
Info : New GDB Connection: 1, Target esp32p4.hp.cpu0, state: halted
Info : [esp32p4.hp.cpu0] Disabling abstract command reads from FPRs.
Error: GDB missing ack(2) - assumed good
Info : dropped 'gdb' connectionCode: Select all
Remote replied unexpectedly to 'vMustReplyEmpty': vCont;c;C;s;SAny ideas here?