How to setup flash app debug for Yagarto and SAM7X?

Hi,

I have a FreeRTOS application running from the flash on a SAM7X (Olimex SAM7-EX256 dev board, Yagarto on Vista). Building, programming etc works fine but now I want to debug the program from Eclipse. I’m new to this processor and development environement but at least I have managed to get these bits working as well as starting OpenOCD and GDB so I can step the program from the console, but it won’t work from Eclipse. I suppose it has something to do with the configuration and arguments passed to arm-elf-gdb.exe when the debug is started but I have no idea where to start. I have tried copying commands from the “Open source … rev C” document and also some configurations from forums but nothing works. Does anyone have a working configuration to share?

The problems I get is that I can’t step in the C source (.elf file not read properly?), if I set a breakpoint in the main loop it is marked as unresolved and if I try to debug it says “No source file named c:/…main.c”. It also complains about “No registers”. Does anyone know how to straighten this out?

Best regards,

Mikael

Adding -ggdb to the flags in the makefile helped some, now it does not complain about unresolved breakpoints anymore but I still get the “No registers.” message in the console. 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