Ich bekomme beim starten des Debuggers für ein ESP32-S3 - Projekt immer eine Fehlermeldung, offenbar handelt es sich um ein Timeout. Der ESP hängt an der USB-JTAG -Brücke beide Kerne werden zunächst auch erkannt, angehalten und erfolgreich zurückgesetzt. Doch dann kommt die Meldung "Target not halted". Ebenso poppt eine Box mit dem Hinweis "Timeout" auf. Wartet man dann eine Minute und startet den Debugger erneut, dann läuft es. Trotzdem wundere ich mich, warum es nicht beim ersten Mal klappt. Kann es sein, dass die CPUs nach dem Reset gleich wieder losrennen?
Hier die Ausgabe:
"Info : JTAG tap: esp32s3.tap0 tap/device found: 0x120034e5 (mfg: 0x272 (Tensilica), part: 0x2003, ver: 0x1) Info : JTAG tap: esp32s3.tap1 tap/device found: 0x120034e5 (mfg: 0x272 (Tensilica), part: 0x2003, ver: 0x1)
Info : [esp32s3.cpu0] requesting target halt and executing a soft reset
Info : [esp32s3.cpu0] Target halted , PC=0x420D627C, debug_reason=00000001
Info : [esp32s3.cpu0] Target halted, PC=0x40374403, debug_reason =00000001 Info : Set GDB target to 'esp32s3.cpu0'
Info : [esp32s3.cpu1] Target halted, PC=0x420046 74, debug_reason=00000000
Info : [esp32s3.cpu0] Halt cause (Cache error)
Info : [esp32s3.cpu0] Reset cause (12) - (Software CPU0 reset) Info : [esp32s3.cpu1] Rese t cause (12) - (Software CPU1 reset) Info : [esp32s3.cpu0] Core was reset.
Info : [esp32s3.cpu0] Target halted, PC=0x40000400, debug_ reason=00000000
Info : [esp32s3.cpu1] Core was reset.
Info : [esp32s3.cpu1] Target halted, PC=0x40000400, debug_reaso n=00000000
Info : [esp32s3.cpu1] Reset cause (12) - (Software CPU1 reset)
Info : [esp32s3.cpu0] R eset cause (12) - (Software CPU0 reset)
Warn : No symbols for Free RTOS! Info : Initializing flasher algorithm for cmd_flash_map_get
❌ Error: timed out while waiting for target halted
OpenOCD server failed to start: Error: timed out while waiting for target halted Error: timed out while waiting for target halted
Info : [esp32s3.cpu0] Target halted, PC=0x4038D3C0, debug_reaso ❌ n=00000000 Error: [esp32s3.cpu0] not halted 0, pc 0x4038d3c0, ps 0x60035 Error: Failed n=00000000 Error: [esp32s3.cpu0] not halted 0, pc 0x4038d3c0, ps 0x60035 Error: Failed to wait algorithm (-302)!
❌ Error: Algorithm run failed (-302)!
Error: Algorithm run failed (-302)!
❌ Error: Failed to run flasher stub (-302)! W Error: Failed to run flasher stub (-302)! W ❌ arn : Could not get flash mapping (-302) Error: Failed to probe flash, size 0 KB Error: auto_probe failed Error: Connect failed. Consider setting up a gdb-attach event for the target to prepare target for GDB connect, or use 'gdb_memory_map disable'. Error: attempted 'gdb' connection rejected
arn : Could not get flash mapping (-302) Error: Failed to probe flash, size 0 KB Error: auto_probe failed Error: Connect failed. Consider setting up a gdb-attach event for the target to prepare target for GDB connect, or use 'gdb_memory_map disable'. Error: attempted 'gdb' connection rejected"