[En-Nut-Discussion] branches/devnut_m3n and Yagarto 20110429

Weather uprinz2 at netscape.net
Mon Jun 27 20:09:32 CEST 2011


Hi Uwe,

I had this with the latest Yagarto, but not enough time to check before having my vacation.
Using the precompiled version from around march, this problem did not show up.

If you like to fix it, look into the linker scripts. There is one simple for each CPU only defining memory sizes and then including one that is valid for all. 

Best regards
Ulrich
-- 
Diese Nachricht wurde von meinem Android-Mobiltelefon mit K-9 Mail gesendet.



Uwe Bonnes <bon at elektron.ikp.physik.tu-darmstadt.de> schrieb:

Hello,

compiling against a self compiled Yagarto 20110429
(http://www.yagarto.de/source/index.html) 

results in
arm-none-eabi-gcc caltime.o -mcpu=cortex-m3 -mthumb -mlittle-endian
-D__CORTEX__ -nostartfiles
-T../.././nut/arch/cm3/ldscripts/stm32f107xC_flash.ld
-Wl,-Map=caltime.map,--cref,--gc-sections -L../../stm32_can/lib
-Wl,--start-group ../../stm32_can/lib/nutinit.o -lnutpro -lnutgorp -lnutcrt
-lnutos -lnutdev -lnutarch -Wl,--end-group -o caltime.elf
/opt/spare/bon/stm/yagarto/install/bin/../lib/gcc/arm-none-eabi/4.6.0/../../../../arm-none-eabi/bin/ld:
caltime.elf section `.heap' will not fit in region `SRAM0'
/opt/spare/bon/stm/yagarto/install/bin/../lib/gcc/arm-none-eabi/4.6.0/../../../../arm-none-eabi/bin/ld:
region `SRAM0' overflowed by 536873800 bytes collect2: ld returned 1 exit
status make[1]: *** [caltime.elf] Fehler 1

trunk reports:
_____________________________________________

r3394 | haraldkipp | 2011-04-27 15:26:48 +0200 (Mi, 27. Apr 2011) | 2 Zeilen

Include all linker sections starting with .text. This fixes a problem with
YAGARTO based on GCC 4.6.

So there seem to be some updates needed for latest tools. I tried to add the
change from r3394 to nut/arch/cm3/ldscripts/stm32f10x_flash.ld, but to no
avail. 

Any hints what to fix where?

Thanks
-- 
Uwe Bonnes bon at elektron.ikp.physik.tu-darmstadt.de

Institut fuer Kernphysik Schlossgartenstrasse 9 64289 Darmstadt
--------- Tel. 06151 162516 -------- Fax. 06151 164321 ----------
_____________________________________________

http://lists.egnite.de/mailman/listinfo/en-nut-discussion




More information about the En-Nut-Discussion mailing list