[En-Nut-Discussion] Debugging error
Helene19 at web.de
Helene19 at web.de
Wed Jun 7 08:34:46 CEST 2006
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
_____________________________________________________________________
Der WEB.DE SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen!
http://smartsurfer.web.de/?mc=100071&distributionid=000000000071
More information about the En-Nut-Discussion
mailing list