Problems debugging flash app. on SAM7X, Yagarto

All design tool related questions: compiler, assembler, linker. Embedded programming questions: assembler, C code.

Moderator: nferre

Micke_N
Posts: 4
Joined: Thu Jan 29, 2009 11:50 pm

Problems debugging flash app. on SAM7X, Yagarto

Tue Feb 17, 2009 9:19 am

Hi,
I am having trouble setting up the debugging of a FreeRTOS application on my Olimex SAM7-EX256 board. If I set a breakpoint in a source file I get an error message:

Code: Select all

source .gdbinit
No source file named C:/xxxxxxxxx/flash.c.
No registers.
target remote localhost:3333
0x00108bbe in prvIdleTask ()
monitor reset
JTAG device found: 0x3f0f0f0f (Manufacturer: 0x787, Part: 0xf0f0, Version: 0x3)
executing reset script 'event/sam7x256_reset.script'
monitor wait 500
monitor soft_reset_halt
requesting target halt and executing a soft reset
monitor arm7_9 force_hw_bkpts enable
force hardware breakpoints enabled
If I remove the breakpoint I get the following output when starting the debug:

Code: Select all

source .gdbinit
No registers.
target remote localhost:3333
0x00108bc6 in prvIdleTask ()
monitor reset
JTAG device found: 0x3f0f0f0f (Manufacturer: 0x787, Part: 0xf0f0, Version: 0x3)
executing reset script 'event/sam7x256_reset.script'
monitor wait 500
monitor soft_reset_halt
requesting target halt and executing a soft reset
monitor arm7_9 force_hw_bkpts enable
force hardware breakpoints enabled
The debug starts in suspended mode, when I hit "Resume" it immediately fails with a notice saying "Execution is suspended becaus of error" and in the Details it says "Execution is suspended because of error.
The "remote" target does not support "run". Try "help target" or "continue"."
In the tabs displaying the C source it says: "<aymbol is not available>" and "No source available for "" ".

Does anyone have a working debug configuration for the Yagarto/Olimex environement to share with me?
Micke_N
Posts: 4
Joined: Thu Jan 29, 2009 11:50 pm

Re: Problems debugging flash app. on SAM7X, Yagarto

Tue Feb 17, 2009 2:47 pm

Adding -ggdb to the flags in the makefile helped some, now it does not complain about unresolved breakpoints anymore. I still can't get it to work properly as I get a message "Execution is suspended because of error" and in the details I read "The remote target does not support "run". Try "help target" or "continue". In the Debug Configurations window in Eclipse it says that some commands may interfere with the startup operation of the debugger, for instance "run". How do I get past this?

Best Regards,
Mikael
Micke_N
Posts: 4
Joined: Thu Jan 29, 2009 11:50 pm

Re: Problems debugging flash app. on SAM7X, Yagarto

Tue Feb 17, 2009 3:00 pm

BTW, I started OpenOCD and arm-elf-gdb from command promts and then I managed to use the "step" command after some initialization commands but I guess they were not entirely correct as it failed after a few steps. I suppose that means that it is in fact working but the configuration is not 100%, this is probably a RTFM issue but I don't know where....

Return to “Development Tools”

Who is online

Users browsing this forum: No registered users and 2 guests