Hi, I’ve problems debugging my str91x application with the latest version of yagarto tools. My target is a STR9 comstick.
I can debug my program when it’s loaded in RAM, but not in FLASH.
I’ve followed the guide “Using Open Source Tools for STR7xx Cross Development”, made a script for openocd to program the flash, I launch openocd from the terminal and start the debug session from eclipse.
This is the output of eclipse’s console:
No source file named main.elf.
mi_cmd_break_watch: Missing
mi_cmd_break_watch: Missing
target remote localhost:3333
_start () at src/startup.S:69
69 LDR pc, =NextInst
Current language: auto; currently asm
monitor reset
target state: halted
target halted in ARM state due to debug request, current mode: Supervisor
cpsr: 0x000000d3 pc: 0x00000000
monitor sleep 500
monitor poll
target state: halted
target halted in ARM state due to debug request, current mode: Supervisor
cpsr: 0x000000d3 pc: 0x00000000
monitor soft_reset_halt
requesting target halt and executing a soft reset
target state: halted
target halted in ARM state due to debug request, current mode: Supervisor
cpsr: 0x000000d3 pc: 0x00000000
monitor arm7_9 force_hw_bkpts enable
force hardware breakpoints enabled
And the output from the openocd session:
fo: server.c:67 add_connection(): accepted ‘gdb’ connection from 0
Warning: gdb_server.c:374 gdb_get_packet_inner(): acknowledgment received, but no packet pending
User: target.c:766 target_arch_state(): target state: halted
User: armv4_5.c:340 armv4_5_arch_state(): target halted in ARM state due to debug request, current mode: Supervisor
cpsr: 0x000000d3 pc: 0x00000000
User: target.c:766 target_arch_state(): target state: halted
User: armv4_5.c:340 armv4_5_arch_state(): target halted in ARM state due to debug request, current mode: Supervisor
cpsr: 0x000000d3 pc: 0x00000000
User: gdb_server.c:532 gdb_output(): requesting target halt and executing a soft reset
User: target.c:766 target_arch_state(): target state: halted
User: armv4_5.c:340 armv4_5_arch_state(): target halted in ARM state due to debug request, current mode: Supervisor
cpsr: 0x000000d3 pc: 0x00000000
User: gdb_server.c:532 gdb_output(): force hardware breakpoints enabled
When I switch from C/C++ to debug perspective I don’t have source code debug capabilities, I can only start or stop the program.
If i try to run the program step by step a popup box appears with the error: cannot found bounds of current function.