[En-Nut-Discussion] cannot compile basemon sample

Brett Abbott Brett.Abbott at digital-telemetry.com
Sat Apr 15 00:28:25 CEST 2006


Thomas

Your compiler's func_lit parameter in the linker may be incorrect for 
atmega128.

You have:

-bfunc_lit:0x8c.0x10000

Im using V6 of the compiler but I know many others are using V7.

My linker uses:
-bfunc_lit:0x8c.0x1e000

which reflects the 4K bootloader I use. (0x20000 is 128K)

Looking at the help in ICCAVR, this would suggest your compiler is only 
aware of half the flash.  If your code, with the flash file system you 
are loading takes up more than 60K or so, you could expect the  "want 
size xxx" message which is an indication that the compiled code is too 
big for the available space.  The compressor may help but I suspect 
there is another issue which is not allocating the correct size.

Im sorry but Im not sure whether the 0x1e000 is provided from nutos 
config or ICCAVR settings.  Perhaps the mightly Harald could help out 
here ;)

Hope this helps with a few clues.

Goodluck
Brett

>On 4/11/06, Thomas Bulckaert <thomas at orionsolutions.be> wrote:
>  
>
>>Hi, i am using Nut/OS 4.0.1 and ICCAVR v7.05
>>The board i am using is an Ethernut 1.3g
>>
>>When i compile the project "basemon", i get the following error-report:
>>C:\iccv7avr\bin\imakew -f basemon.mak
>>iccavr -c -IC:\ethernut-4.0.1\nutbld-icc\include -IC:\ethernut-4.0.1\nut\include -Ic:\iccv7avr\include -e -D__ICC_VERSION="7.05" -D_MCU_enhanced -D__HARVARD_ARCH__ -DATMEGA -DATMega128 -l -g -Mavr_enhanced C:\ethernut-4.0.1\nutapp\basemon\basemon.c
>>!W C:\ethernut-4.0.1\nutapp\basemon\basemon.c: [warning] in function 'idle', argument 'arg' has no use.
>>iccavr -o basemon -LC:\ethernut-4.0.1\nutbld-icc\lib -g -ucrtatmegaram.o -bfunc_lit:0x8c.0x10000 -dram_end:0x10ff -bdata:0x1100.0x7fff -dFRAM:1 -dhwstk_size:16 -beeprom:0.4096 -fihx_coff -ucrtenutram.o C:\ethernut-4.0.1\nutbld-icc\lib\nutinit.o -S2 @basemon.lk -lnutpro -lnutfs -lnutnet -lnutos -lnutdev -lnutcrt -lnutarch -lcatmega
>>!E basemon.o(362): multiple define: '_NutInit'
>>!E basemon.o(389): multiple define: '_ms62_5'
>>want size 430
>>lo 65130 hi 65535 size 406
>>lo 65536 hi 65536 size 1
>>!E <library>(11792): area 'text' not large enough
>>want size 350
>>lo 65518 hi 65535 size 18
>>lo 65536 hi 65536 size 1
>>!E <library>(11792): area 'text' not large enough
>>want size 1132
>>lo 65518 hi 65535 size 18
>>lo 65536 hi 65536 size 1
>>!E <library>(11792): area 'text' not large enough
>>want size 290
>>lo 65518 hi 65535 size 18
>>lo 65536 hi 65536 size 1
>>!E <library>(11792): area 'text' not large enough
>>C:\iccv7avr\bin\imakew.exe: Error code 1
>>Done: there are error(s). Exit code: 1
>>
>>I get almost the same results when i try to compile the httpd demo project. All the others work out fine. It looks like the error only occurs when there are files (like html pages) that need to be loaded in the chip, besides the program.
>>
>>Has anyone seen this problem before? Yes, the chip is set on atmega128. I would really like to solve this problem, cause like this, i cannot start "playing" and "modifying" the webserver
>>
>>I hope someone can help me.
>>
>>Thanks in advance
>>
>>
>>Thomas Bulckaert
>>ORION ELECTRONIC SOLUTIONS
>>Ondernemingenstraat 3
>>8630 VEURNE
>>BELGIUM
>>0032 478 84 10 29
>>thomas at orionsolutions.be
>>http://www.orionsolutions.be
>>_______________________________________________
>>En-Nut-Discussion mailing list
>>En-Nut-Discussion at egnite.de
>>http://www.egnite.de/mailman/listinfo.cgi/en-nut-discussion
>>
>>    
>>
>_______________________________________________
>En-Nut-Discussion mailing list
>En-Nut-Discussion at egnite.de
>http://www.egnite.de/mailman/listinfo.cgi/en-nut-discussion
>
>
>  
>

-- 
-----------------------------------------------------------------
Brett Abbott, Managing Director, Digital Telemetry Limited
Email: Brett.Abbott at digital-telemetry.com
PO Box 24 036 Manners Street, Wellington, New Zealand
Phone +64 (4) 5666-860  Mobile +64 (21) 656-144
------------------- Commercial in confidence --------------------





More information about the En-Nut-Discussion mailing list