I've tried arre's code, and it seems to work well until I try to attach GDB :
Code: Select all
Open On-Chip Debugger 0.10.0-dev-00463-g0c2de8b-dirty (2016-12-21-09:33)
Licensed under GNU GPL v2
For bug reports, read
http://openocd.org/doc/doxygen/bugs.html
BCM2835 GPIO config: tck = 19, tms = 26, tdi = 13, tdo = 6
BCM2835 GPIO nums: swclk = 19, swdio = 26
BCM2835 GPIO config: trst = 5
trst_only separate trst_push_pull
BCM2835 GPIO config: srst = 18
trst_and_srst separate srst_gates_jtag trst_push_pull srst_push_pull connect_deassert_srst
adapter speed: 500 kHz
trst_only separate trst_push_pull
adapter speed: 500 kHz
Info : BCM2835 GPIO JTAG/SWD bitbang driver
Info : JTAG and SWD modes enabled
Info : clock speed 500 kHz
Info : JTAG tap: rpi2.dap tap/device found: 0x4ba00477 (mfg: 0x23b (ARM Ltd.), part: 0xba00, ver: 0x4)
Info : rpi2.cpu.0: hardware has 6 breakpoints, 4 watchpoints
Info : rpi2.cpu.1: hardware has 6 breakpoints, 4 watchpoints
Info : rpi2.cpu.2: hardware has 6 breakpoints, 4 watchpoints
Info : rpi2.cpu.3: hardware has 6 breakpoints, 4 watchpoints
Info : accepting 'gdb' connection on tcp/3333
Error: Register map is not available yet, the target is not fully initialised
Error: Register map is not available yet, the target is not fully initialised
Error: Register map is not available yet, the target is not fully initialised
Error: Register map is not available yet, the target is not fully initialised
Error: Register map is not available yet, the target is not fully initialised
Error: Register map is not available yet, the target is not fully initialised
Error: Register map is not available yet, the target is not fully initialised
Error: Register map is not available yet, the target is not fully initialised
Error: Register map is not available yet, the target is not fully initialised
Error: Register map is not available yet, the target is not fully initialised
Error: Register map is not available yet, the target is not fully initialised
Error: Register map is not available yet, the target is not fully initialised
Error: Register map is not available yet, the target is not fully initialised
Error: Register map is not available yet, the target is not fully initialised
Error: Register map is not available yet, the target is not fully initialised
Error: Register map is not available yet, the target is not fully initialised
Error: Register map is not available yet, the target is not fully initialised
Error: Register map is not available yet, the target is not fully initialised
Error: Register map is not available yet, the target is not fully initialised
Error: Register map is not available yet, the target is not fully initialised
Error: Register map is not available yet, the target is not fully initialised
Error: Register map is not available yet, the target is not fully initialised
Error: Register map is not available yet, the target is not fully initialised
Error: Register map is not available yet, the target is not fully initialised
Error: Register map is not available yet, the target is not fully initialised
Error: Register map is not available yet, the target is not fully initialised
Error: Register map is not available yet, the target is not fully initialised
Error: Register map is not available yet, the target is not fully initialised
Error: Register map is not available yet, the target is not fully initialised
Error: Register map is not available yet, the target is not fully initialised
Error: Register map is not available yet, the target is not fully initialised
Error: Register map is not available yet, the target is not fully initialised
undefined debug reason 7 - target needs reset
Error: Register map is not available yet, the target is not fully initialised
Error: Register map is not available yet, the target is not fully initialised
Error: Register map is not available yet, the target is not fully initialised
Error: Register map is not available yet, the target is not fully initialised
Error: Register map is not available yet, the target is not fully initialised
Error: Register map is not available yet, the target is not fully initialised
Error: Register map is not available yet, the target is not fully initialised
Error: Register map is not available yet, the target is not fully initialised
Error: Register map is not available yet, the target is not fully initialised
Error: Register map is not available yet, the target is not fully initialised
Error: Register map is not available yet, the target is not fully initialised
Error: Register map is not available yet, the target is not fully initialised
Error: Register map is not available yet, the target is not fully initialised
Error: Register map is not available yet, the target is not fully initialised
Error: Register map is not available yet, the target is not fully initialised
Error: Register map is not available yet, the target is not fully initialised
Error: Target not halted
Error: Target not halted
Error: Target not halted
Error: Target not halted
Error: Target not halted
Error: Target not halted
Error: Target not halted
Error: Target not halted
Error: Target not halted
Error: Target not halted
Error: Target not halted
Error: Target not halted
Error: Target not halted
Error: Target not halted
Error: Target not halted
Error: Target not halted
Error: Target not halted
Error: Timeout waiting for cortex_a_exec_opcode
Error: cortex_a_mmu: target not halted
Warn : target not halted
Error: Timeout waiting for cortex_a_exec_opcode
Warn : negative acknowledgment, but no packet pending
Error: Timeout waiting for cortex_a_exec_opcode
Error: cortex_a_mmu: target not halted
Warn : target not halted
Error: Timeout waiting for cortex_a_exec_opcode
Warn : negative acknowledgment, but no packet pending
Error: Timeout waiting for cortex_a_exec_opcode
Error: cortex_a_mmu: target not halted
Warn : target not halted
Error: Timeout waiting for cortex_a_exec_opcode
Warn : negative acknowledgment, but no packet pending
Error: Timeout waiting for cortex_a_exec_opcode
Error: cortex_a_mmu: target not halted
Warn : target not halted
Error: Timeout waiting for cortex_a_exec_opcode
Warn : negative acknowledgment, but no packet pending
Error: Timeout waiting for cortex_a_exec_opcode
Error: cortex_a_mmu: target not halted
Warn : target not halted
Error: Timeout waiting for cortex_a_exec_opcode
Warn : negative acknowledgment, but no packet pending
Error: Timeout waiting for cortex_a_exec_opcode
Error: cortex_a_mmu: target not halted
Warn : target not halted
Error: Timeout waiting for cortex_a_exec_opcode
Warn : negative acknowledgment, but no packet pending
Error: Timeout waiting for cortex_a_exec_opcode
Error: cortex_a_mmu: target not halted
Warn : target not halted
Error: Timeout waiting for cortex_a_exec_opcode
Warn : negative acknowledgment, but no packet pending
Error: Timeout waiting for cortex_a_exec_opcode
Error: cortex_a_mmu: target not halted
Warn : target not halted
Error: Timeout waiting for cortex_a_exec_opcode
Warn : negative acknowledgment, but no packet pending
Error: Timeout waiting for cortex_a_exec_opcode
Error: cortex_a_mmu: target not halted
Warn : target not halted
Error: Timeout waiting for cortex_a_exec_opcode
Warn : negative acknowledgment, but no packet pending
Error: Timeout waiting for cortex_a_exec_opcode
Error: cortex_a_mmu: target not halted
Warn : target not halted
Error: Timeout waiting for cortex_a_exec_opcode
Warn : negative acknowledgment, but no packet pending
Error: Timeout waiting for cortex_a_exec_opcode
Error: cortex_a_mmu: target not halted
Warn : target not halted
Error: Timeout waiting for cortex_a_exec_opcode
Warn : negative acknowledgment, but no packet pending
Error: Timeout waiting for cortex_a_exec_opcode
Error: cortex_a_mmu: target not halted
Warn : target not halted
Error: Timeout waiting for cortex_a_exec_opcode
Warn : negative acknowledgment, but no packet pending
Error: Timeout waiting for cortex_a_exec_opcode
Error: cortex_a_mmu: target not halted
Warn : target not halted
Error: Timeout waiting for cortex_a_exec_opcode
Warn : negative acknowledgment, but no packet pending
Error: Timeout waiting for cortex_a_exec_opcode
Error: cortex_a_mmu: target not halted
Warn : target not halted
Error: Timeout waiting for cortex_a_exec_opcode
Warn : negative acknowledgment, but no packet pending
Error: Timeout waiting for cortex_a_exec_opcode
Error: cortex_a_mmu: target not halted
Warn : target not halted
Error: Timeout waiting for cortex_a_exec_opcode
Warn : negative acknowledgment, but no packet pending
Error: Timeout waiting for cortex_a_exec_opcode
Error: cortex_a_mmu: target not halted
Warn : target not halted
Error: Timeout waiting for cortex_a_exec_opcode
Warn : negative acknowledgment, but no packet pending
Error: Timeout waiting for cortex_a_exec_opcode
Error: cortex_a_mmu: target not halted
Warn : target not halted
Error: Timeout waiting for cortex_a_exec_opcode
Warn : negative acknowledgment, but no packet pending
Error: Timeout waiting for cortex_a_exec_opcode
Error: cortex_a_mmu: target not halted
Warn : target not halted
Error: Timeout waiting for cortex_a_exec_opcode
Warn : negative acknowledgment, but no packet pending
Warn : keep_alive() was not invoked in the 1000ms timelimit. GDB alive packet not sent! (1002). Workaround: increase "set remotetimeout" in GDB
The chip is indeed not halted.
Note that I'm using a RPI3 to debug my RPI2, whose JTAG has been enabled by setting pins 22,24,25,26,27 to their ALT4 function through some baremetal code.
What could cause this error ?