Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
10 years, 10 months ago.
When Exporting the Blink Example for the stm32nucleo-f103rb for the gcc toolchain can't be compiled.
In the Makefile the LINKER_SCRIPT is defined as "None" and of course gcc can't find a file named None,because it is called with "-TNone".Removing the "None " in the Makefile changes the Error but still doesn't let it compile succsessfully. The Following happended before the change:
[]$ make arm-none-eabi-gcc -mcpu=cortex-m3 -mthumb -Wl,--gc-sections --specs=nano.specs -u _printf_float -u _scanf_float -Wl,--wrap,main -Wl,-Map=Nucleo_blink_led_2.map,--cref -TNone -o Nucleo_blink_led_2.elf main.o -lstdc++ -lsupc++ -lm -lc -lgcc -lnosys -lstdc++ -lsupc++ -lm -lc -lgcc -lnosys /usr/lib/gcc/arm-none-eabi/4.9.2/../../../../arm-none-eabi/bin/ld: cannot open linker script file None: No such file or directory collect2: error: ld returned 1 exit status Makefile:53: recipe for target 'Nucleo_blink_led_2.elf' failed make: *** [Nucleo_blink_led_2.elf] Error 1
The Follwing after the Change:
[]$ make arm-none-eabi-gcc -mcpu=cortex-m3 -mthumb -Wl,--gc-sections --specs=nano.specs -u _printf_float -u _scanf_float -Wl,--wrap,main -Wl,-Map=Nucleo_blink_led_2.map,--cref -T -o Nucleo_blink_led_2.elf main.o -lstdc++ -lsupc++ -lm -lc -lgcc -lnosys -lstdc++ -lsupc++ -lm -lc -lgcc -lnosys arm-none-eabi-gcc: error: Nucleo_blink_led_2.elf: No such file or directory Makefile:53: recipe for target 'Nucleo_blink_led_2.elf' failed make: *** [Nucleo_blink_led_2.elf] Error 1
How can I compile it succsesfully?