Hello,
I have a board with a LPC2101 processor, and I am debugging it with OpenOCD.
I would like to know if anyone can help to understand what is going on…
I connected to de board using telnet and run the following commands:
reset
JTAG tap: lpc2101.cpu tap/device found: 0x4f1f0f0f (mfg: 0x787, part: 0xf1f0, ver: 0x4)
reset halt
JTAG tap: lpc2101.cpu tap/device found: 0x4f1f0f0f (mfg: 0x787, part: 0xf1f0, ver: 0x4)
target state: halted
target halted in ARM state due to debug-request, current mode: Supervisor
cpsr: 0x000000d3 pc: 0x00000000
step
target state: halted
target halted in ARM state due to single-step, current mode: Supervisor
cpsr: 0x000000d3 pc: 0x00000004
step
target state: halted
target halted in ARM state due to single-step, current mode: Supervisor
cpsr: 0x000000d3 pc: 0x00000008
step
target state: halted
target halted in ARM state due to single-step, current mode: Supervisor
cpsr: 0x000000d3 pc: 0x0000000c
step
target state: halted
target halted in ARM state due to single-step, current mode: Supervisor
cpsr: 0x000000d3 pc: 0x00000010
step
timeout waiting for SYSCOMP & DBGACK, last DBG_STATUS: 0
Runtime error, file “command.c”, line 473:
I do not understand why after the first command “step” program counter goes to 0x00000004
when my init code is the following:
Vectors:
b _start // reset - _start
ldr pc,_undf // undefined - _undf
ldr pc,_swi // SWI - _swi
ldr pc,_pabt // program abort - _pabt
ldr pc,_dabt // data abort - _dabt
nop // reserved
ldr pc,[pc,#-0xFF0] // IRQ - read the VIC
ldr pc,_fiq // FIQ - _fiq
it shouldn’t go to “_start”?
Thanks