[En-Nut-Discussion] devnut_m3n and possibly others: Locating the Linker script
Uwe Bonnes
bon at elektron.ikp.physik.tu-darmstadt.de
Wed Dec 7 18:32:00 CET 2011
Hello,
compiling the examples for the devnut_m3n branch outside the branch doesn't
pick up the common stm32f10x_flash.ld linker script:
arm-none-eabi-gcc caltime.o -mcpu=cortex-m3 -mthumb -mlittle-endian
-D__CORTEX__ -nostartfiles
-T../../devnut_m3n/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:
cannot open linker script file stm32f10x_flash.ld: No such file or directory
If I give a search path on the command line, all is fine:
arm-none-eabi-gcc caltime.o -mcpu=cortex-m3 -mthumb -mlittle-endian
-D__CORTEX__ -nostartfiles -L../../devnut_m3n/nut/arch/cm3/ldscripts/
-Tstm32f107xC_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
To repeat:
Replaceing
-T../../devnut_m3n/nut/arch/cm3/ldscripts/stm32f107xC_flash.ld
with
-L../../devnut_m3n/nut/arch/cm3/ldscripts/ -Tstm32f107xC_flash.ld
helps.
Is this something that others need too?
--
Uwe Bonnes bon at elektron.ikp.physik.tu-darmstadt.de
Institut fuer Kernphysik Schlossgartenstrasse 9 64289 Darmstadt
--------- Tel. 06151 162516 -------- Fax. 06151 164321 ----------
More information about the En-Nut-Discussion
mailing list