[En-Nut-Discussion] Debugging error
Harald Kipp
harald.kipp at egnite.de
Thu Jun 8 16:53:56 CEST 2006
Hi Helene,
First I'm sorry that we still haven't been able to fix the
ICCAVR demo issue of the HTTP sample. The main problem is,
that DHCP includes DNS, which is too large.
For WinAVR make sure to use WinAVR-20060125 and the latest
AVRStudio. In app/Makedefs replace '-Os' by '-O0 -gdwarf-2'
because AVRStudio can handle dwarf2 and coff debug format only,
and GCC coff seems to be incompatible with AVR coff.
Finally, with ICCAVR strictly follow
http://www.ethernut.de/en/iccavr/index.html
to set the compiler options. Though I'm a bit puzzled by your
comment that your program worked on AVRStudio. AVRStudio doesn't
have any C Compiler, right?
Nevertheless, debugging multithreaded applications with AVRStudio
sometimes give weird results and sometimes the debugger may get
confused by Nut/OS' stack manipulations. So don't expect too much.
Harald
At 08:34 07.06.2006 +0200, you wrote:
>Hi,
>I am using the ethernut-1.G and a JTAGICE-mkII from Atmel (Windows XP
>Home). I have some problems with debugging!
>I tasted some different things:
>
>1. WinAVR + AVR Studio
>When I compile the http-Example I get a hex-File and can play it with the
>AVR Studio on my board and everything works fine! After that I
>wrote "TARG = $(PROJ).elf" into my makefile and compiled it. When I
>would open the .elf-File with AVR Studio I get the message: "Error loading
>object file" and nothing goes!
>
>2. ICCAVR + AVR Studio
>Then I have downloaded this tutorial:
>http://www.ethernut.de/en/iccavr/index.html
>I can't compile the librarys, because I have only a test version from the
>ICC compiler. When I "make projekt" I get this message:
>C:\iccv7avr\bin\imakew -f HTTPD.mak
> iccavr -c -Ic:\ethernut-4.0.3_icc\nutbld\include
> -Ic:\ethernut-4.0.3_icc\nut\include -e -D__ICC_VERSION="7.06A"
> -DETHERNUT2 -D_MCU_enhanced -D__HARVARD_ARCH__ -DATMEGA -DATMega128 -l
> -g -Mavr_enhanced C:\ethernut-4.0.3_icc\nutapp\httpd\urom.c
> iccavr -o HTTPD -O -Lc:\ethernut-4.0.3_icc\nutbld\lib -g
> -ucrtatmegaram.o -bfunc_lit:0x8c.0x10000 -dram_end:0x10ff
> -bdata:0x1100.0x7fff -dFRAM:1 -dhwstk_size:16 -beeprom:0.4096 -fihx_coff
> -ucrtnutram.o c:\ethernut-4.0.3_icc\nutbld\lib\nutinit.o -S2
> @HTTPD.lk -lnutpro -lnutfs -lnutnet -lnutos -lnutdev -lnutcrt -lnutarch
> -lcatmega
>want size 74
>lo 98248 hi 98304 size 57
>!E <library>(12175): area 'text' not large enough
>want size 92
>lo 98248 hi 98304 size 57
>!E <library>(12175): area 'text' not large enough
>want size 40
>lo 98296 hi 98304 size 9
>!E <library>(12175): area 'text' not large enough
>want size 68
>lo 98296 hi 98304 size 9
>!E <library>(12175): area 'text' not large enough
>C:\iccv7avr\bin\imakew.exe: Error code 1
>Done: there are error(s). Exit code: 1
>NOTE: 45 code compressor trials left.
>If you wish to preserve the number of trials, disable the appropriate
> checkbox(s) in Project->Options->Compiler.
>
>(I did everything like in the tutorial and additionally click on "Code
>Compression")
>
>3. I tested my own programm (which works with the AVR Studio) now which
>the ICC-Compiler. Under project -> options I have wrote the same as by the
>"http-Sample", but afer "make projekt" I get many errors on which I can
>see, that the compiler hasn't the libraries!
>
>Can anybody help me? Until know I have used the uart to get messages on
>which I can see how my programm works.
>
>Lot's of thanks, helene
More information about the En-Nut-Discussion
mailing list