Hi,
after my first problems understanding how eclipse works with the usb adapter, I’ve another problem…
I start the OpenOCD and switch to the debug environment and click on the debug button. Eclipse connects to OpenOCD and the progressbar begins to move… and stops at 60%.
The last debug lines from openOCD before connecting are:
Debug: arm7_9_common.c:980 arm7_9_debug_entry(): r12: 0x40003f3c
Debug: arm7_9_common.c:980 arm7_9_debug_entry(): r13: 0x40003f20
Debug: arm7_9_common.c:980 arm7_9_debug_entry(): r14: 0x00000fe4
Debug: arm7_9_common.c:980 arm7_9_debug_entry(): r15: 0x00000f40
Debug: arm7_9_common.c:986 arm7_9_debug_entry(): entered debug state at PC 0xf40
Debug: target.c:442 target_call_event_callbacks(): target event 0
Then the console output is:
Debug: arm7_9_common.c:1181 arm7_9_restore_context(): writing register 14 of mode Supervisor with value 0xffffffff
Debug: arm7_9_common.c:1118 arm7_9_restore_context(): examining Abort mode
Debug: arm7_9_common.c:1132 arm7_9_restore_context(): examining dirty reg: pc
Debug: arm7_9_common.c:1118 arm7_9_restore_context(): examining Undefined mode
Debug: arm7_9_common.c:1132 arm7_9_restore_context(): examining dirty reg: pc
Debug: arm7_9_common.c:1214 arm7_9_restore_context(): writing cpsr with value 0x600000d3
Debug: arm7tdmi.c:475 arm7tdmi_write_xpsr(): xpsr: 600000d3, spsr: 0
Debug: arm7_9_common.c:1221 arm7_9_restore_context(): writing PC with value 0x00000000
Debug: embeddedice.c:253 embeddedice_write_reg(): 0: 0x00000000
Debug: target.c:442 target_call_event_callbacks(): target event 1
Debug: arm7_9_common.c:1406 arm7_9_resume(): target resumed
Debug: embeddedice.c:157 embeddedice_read_reg_w_check(): 1
…
The line
is printed again and again... and the progressbar hangs at 60%Debug: embeddedice.c:157 embeddedice_read_reg_w_check(): 1
Then after terminating the debug proccess:
Debug: embeddedice.c:157 embeddedice_read_reg_w_check(): 1
Debug: gdb_server.c:124 gdb_get_char(): received ‘’
Debug: gdb_server.c:239 gdb_get_packet(): character: ‘’
Debug: gdb_server.c:1237 gdb_input(): recevied packet: ‘’
Debug: arm7_9_common.c:781 arm7_9_halt(): target->state: running
Debug: embeddedice.c:253 embeddedice_write_reg(): 9: 0xffffffff
Debug: embeddedice.c:253 embeddedice_write_reg(): 11: 0xffffffff
Debug: embeddedice.c:253 embeddedice_write_reg(): 12: 0x00000100
Debug: embeddedice.c:253 embeddedice_write_reg(): 13: 0x000000f7
Debug: embeddedice.c:157 embeddedice_read_reg_w_check(): 1
Debug: arm7_9_common.c:619 arm7_9_poll(): DBGACK set, dbg_state->value: 0x9
Debug: embeddedice.c:253 embeddedice_write_reg(): 0: 0x00000005
Debug: embeddedice.c:253 embeddedice_write_reg(): 9: 0x00000001
Debug: embeddedice.c:253 embeddedice_write_reg(): 11: 0xffffffff
Debug: embeddedice.c:253 embeddedice_write_reg(): 13: 0x000000f7
Debug: embeddedice.c:253 embeddedice_write_reg(): 12: 0x00000100
Debug: arm7_9_common.c:919 arm7_9_debug_entry(): target entered debug from ARM state
Debug: arm7_9_common.c:951 arm7_9_debug_entry(): target entered debug state in User mode
Debug: arm7_9_common.c:980 arm7_9_debug_entry(): r0: 0x0000b82b
Debug: arm7_9_common.c:980 arm7_9_debug_entry(): r1: 0x40003f54
Debug: arm7_9_common.c:980 arm7_9_debug_entry(): r2: 0x0000b7bd
Debug: arm7_9_common.c:980 arm7_9_debug_entry(): r3: 0x0000b82b
Debug: arm7_9_common.c:980 arm7_9_debug_entry(): r4: 0xffffffff
Debug: arm7_9_common.c:980 arm7_9_debug_entry(): r5: 0xffffffff
Debug: arm7_9_common.c:980 arm7_9_debug_entry(): r6: 0xffffffff
Debug: arm7_9_common.c:980 arm7_9_debug_entry(): r7: 0xffffffff
Debug: arm7_9_common.c:980 arm7_9_debug_entry(): r8: 0xffffffff
Debug: arm7_9_common.c:980 arm7_9_debug_entry(): r9: 0xffffffff
Debug: arm7_9_common.c:980 arm7_9_debug_entry(): r10: 0x40003b70
Debug: arm7_9_common.c:980 arm7_9_debug_entry(): r11: 0x40003f38
Debug: arm7_9_common.c:980 arm7_9_debug_entry(): r12: 0x40003f3c
Debug: arm7_9_common.c:980 arm7_9_debug_entry(): r13: 0x40003f20
Debug: arm7_9_common.c:980 arm7_9_debug_entry(): r14: 0x00000fe4
Debug: arm7_9_common.c:980 arm7_9_debug_entry(): r15: 0x00000f4c
Debug: arm7_9_common.c:986 arm7_9_debug_entry(): entered debug state at PC 0xf4c
Debug: target.c:442 target_call_event_callbacks(): target event 0
Debug: gdb_server.c:177 gdb_put_packet(): sending packet ‘$T02#b6’
Debug: gdb_server.c:124 gdb_get_char(): received ‘+$pf#d6’
Debug: gdb_server.c:239 gdb_get_packet(): character: ‘$’
Debug: gdb_server.c:1237 gdb_input(): recevied packet: ‘pf’
Debug: gdb_server.c:680 gdb_get_register_packet():
Debug: gdb_server.c:177 gdb_put_packet(): sending packet ‘$4c0f0000#ed’
Debug: gdb_server.c:124 gdb_get_char(): received ‘+$z1,62,2#9d’
Debug: gdb_server.c:239 gdb_get_packet(): character: ‘$’
Debug: gdb_server.c:1237 gdb_input(): recevied packet: ‘z1,62,2’
Debug: gdb_server.c:1095 gdb_breakpoint_watchpoint_packet():
Debug: embeddedice.c:253 embeddedice_write_reg(): 12: 0x00000000
Debug: gdb_server.c:177 gdb_put_packet(): sending packet ‘$OK#9a’
Debug: gdb_server.c:124 gdb_get_char(): received ‘+$mf4c,4#ca’
Debug: gdb_server.c:239 gdb_get_packet(): character: ‘$’
Debug: gdb_server.c:1237 gdb_input(): recevied packet: ‘mf4c,4’
Debug: gdb_server.c:834 gdb_read_memory_packet(): addr: 0x00000f4c, len: 0x00000004
Debug: arm7_9_common.c:1649 arm7_9_read_memory(): address: 0x00000f4c, size: 0x00000004, count: 0x00000001
Debug: embeddedice.c:157 embeddedice_read_reg_w_check(): 1
Debug: gdb_server.c:177 gdb_put_packet(): sending packet ‘$030052e1#c0’
Debug: gdb_server.c:124 gdb_get_char(): received ‘+’
Debug: gdb_server.c:124 gdb_get_char(): received ‘$k#6b’
Debug: gdb_server.c:239 gdb_get_packet(): character: ‘$’
Debug: gdb_server.c:1237 gdb_input(): recevied packet: ‘k’
Debug: gdb_server.c:177 gdb_put_packet(): sending packet ‘$OK#9a’
Info: server.c:367 server_loop(): dropped ‘gdb’ connection
The debugger semms to connect correct. The Led is flashing, but the breakpoint in eclipse isn’t reached.
Any ideas what I’m doing wrong?!
Kind Regards
Michael