Eclipse | at91sam7s256 | arm-elf-gdb | wiggler | debug

Is it possible to debug an at91sam7s256 using only a wiggler and arm-elf-gdb debugger? I am able to debug a simple program in ram, but I am not able to do the same in flash. I am also able to transfer a *.bin program on chip flash via Atmel ISP.

Here are the commands I use for the debugger in Eclipse

target remote localhost:3333

monitor soft_reset_halt

monitor arm7_9 force_hw_bkpts enable

symbol-file main.out

thbreak main

load

continue

Is there something wrong?

Or it is physically impossible using only a wiggler to debug in flash?

thank you all for your support

You can’t “load” the flash image like you’re loading the RAM image. If you want to flash using the OpenOCD, you have to use “monitor flash …” commands to make use of OpenOCD’s flash functions directly.

See http://openfacts.berlios.de/index-en.ph … D_commands for a list of commands (prepend with ‘monitor’ from within GDB.

Regards,

Dominic