[En-Nut-Discussion] How to use AVRStudio to debug

Harald Kipp harald.kipp at egnite.de
Tue Jul 6 15:19:35 CEST 2004


Julien,

please look into
app/Makedefs
and replace

CPFLAGS   = $(MCFLAGS) -Os -Wall -Wstrict-prototypes 
-Wa,-ahlms=$(<:.c=.lst) $(DEFS)

by

CPFLAGS  = -g $(MCFLAGS) -O0 -Wall -Wstrict-prototypes 
-Wa,-ahlms=$(<:.c=.lst) $(DEFS)

(Already prepared, simple remove the # on the second line).

Changedir to app/httpd and type

make clean

The next make will produce code including debug information.

Note, that coff can't handle all Nut/OS code. But debugging
your application code should work.

Allthough related to ICCAVR,
http://www.ethernut.de/en/iccavr/index.html
provides a sample debug session at the end of the page.

Harald

P.S. Forget about AVRStudio simulator, without JTAG you are lost.
The simulator is fine for simple applications but will miserably
fail on more complex programs like httpd. Not to mention the
simulation of Ethernet Hardware.



At 09:55 05.07.2004 +0200, you wrote:

>Hi,
>
>I have generate the cof file of the httpd sample to debug with AVRStudio,
>but it doesn't work ("Coordinator The object file does not contain source
>code information")
>
>How must I make to use AVRStudio ?
>
>Thanks
>
>--
>Julien
>_______________________________________________




More information about the En-Nut-Discussion mailing list