[En-Nut-Discussion] What do do with big (demo) apps on small CPU

Harald Kipp harald.kipp at egnite.de
Tue Jan 29 18:33:23 CET 2013

Hi Uwe,

On 29.01.2013 12:05, Uwe Bonnes wrote:

> compiling the demo apps for xnut-105c with avr-gcc 4.3.3 fails for me like:
> avr-gcc lua.o -mmcu=at90can128 -Wl,--gc-sections -Wl,--defsym=main=0,-Map=lua.map,--cref -L../.././lib -Wl,--section-start=.data=0x801100 -Wl,--start-group ../.././lib/nutinit.o -lnutlua -lnutnet -lnutpro -lnutgorp -lnutos -lnutarch -lnutdev -lnutarch -lnutos -lnutcrt -lm   -Wl,--end-group -o lua.elf
> /opt/cross/avr/lib/gcc/avr/4.3.3/../../../../avr/bin/ld: lua.elf section `.text' will not fit in region `text'
> /opt/cross/avr/lib/gcc/avr/4.3.3/../../../../avr/bin/ld: region `text' overflowed by 58912 bytes
> Is this a problem with my setup? Or my avr-gcc? I think, we the agreed that
> make in the app directorty should succeed unconditional. How to fix?

Good question. If you

 telnet ethernut.microweb.org

you will be connected to an online version of this software, running on
Ethernut 1, which is almost the same as the xnut. My last tests also
showed no problems.

But "overflowed by 58912 bytes" looks really like a lot. Did you use the
unchanged xnut150 configuration? Can you send me the nutapp/lua
directory of your failed build?



More information about the En-Nut-Discussion mailing list