[En-Nut-Discussion] Debugging Nut/OS on the AT91SAM7X-EK Board

Harald Kipp harald.kipp at egnite.de
Thu Sep 6 20:00:07 CEST 2007


Mark vd Waal van Dijk schrieb:
> I'm using the configuration files that are enclosed in the example archives
> for the AT91SAM7X-256 board (from the Yagarto site). When I try to
> debug/download to the board with the Insight debugger, it results in an
> error: "DOWNLOAD FAILED: invalid download offset". 
I'm not able to provide a solution, just an explanation: You need to 
load the .elf file using the Insight debugger (or any other GDB 
frontend), because this file contains the required source code 
information for the debugger. Possibly your OpenOCD Configuration file 
is wrong, but not sure.

Also make sure, that compiler options  -O0 -gdwarf-2 are set. The 
current beta 4.3.99 contains a special Makefile.arm-gccdbg (Select 
arm-gccdbg as the Platform in the Configurator Settings).

Harald





More information about the En-Nut-Discussion mailing list