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, 1 month ago.
export gcc (blinky example for nrf51mkit) doesnt get a linker copied in and softdevice path is bad
/usr/local/gcc_arm/gcc-arm-none-eabi-4_7-2012q4/bin/../lib/gcc/arm-none-eabi/4.7.3/../../../../arm-none-eabi/bin/ld: cannot open linker script file None: No such file or directory collect2: error: ld returned 1 exit status make: * [mbed_blinky2.elf] Error 1
Presumably it should be placed like in mbed library t mbed-src/targets/cmsis/TARGET_NORDIC/TARGET_MCU_NRF51822/TOOLCHAIN_GCC_ARM/TARGET_MCU_NORDIC_16K/NRF51822.ld or mbed-src/targets/cmsis/TARGET_NORDIC/TARGET_MCU_NRF51822/TOOLCHAIN_GCC_ARM/TARGET_MCU_NORDIC_32K/NRF51822.ld
Also as a result the LINKER_SCRIPT variable in Makefile is NONE, should then be LINKER_SCRIPT = mbed-src/targets/cmsis/TARGET_NORDIC/TARGET_MCU_NRF51822/TOOLCHAIN_GCC_ARM/TARGET_MCU_NORDIC_16K/NRF51822.ld
Also the softdevice is not pathed properly
srec_cat mbed/TARGET_NRF51822/TARGET_NORDIC/TARGET_NRF51822/Lib/s110_nrf51822_7_0_0/s110_nrf51822_7.0.0_softdevice.hex -intel mbed_blinky2.hex -intel offset 0x16000 -o combined.hex -intel line-length=46
srec_cat:
mbed/TARGET_NRF51822/TARGET_NORDIC/TARGET_NRF51822/Lib/s110_nrf51822_7_0_0/s110_nrf51822_7.0.0_softdevice.hex:
open: No such file or directory
It is: SOFTDEVICE = mbed/TARGET_NRF51822/TARGET_NORDIC/TARGET_NRF51822/Lib/s110_nrf51822_7_0_0/s110_nrf51822_7.0.0_softdevice.hex
should be SOFTDEVICE = mbed-src/targets/hal/TARGET_NORDIC/TARGET_MCU_NRF51822/Lib/s110_nrf51822_7_0_0/s110_nrf51822_7.0.0_softdevice.hex
Question relating to:
1 Answer
10 years, 1 month ago.
Hello,
thanks for reporting. the linker command file is a bug in the online IDE, offline (in mbed SDK repo) is functional. The second is that path is statically set in the makefile template file. I reported this on github.
Regards,
0xc0170
Hello, thanks for reporting. We'll look into it.
posted by Martin Kojtal 10 Oct 2014One more thing I forgot to ask in my previous comment. If you report anything, provide more details. Link to an example, version of the mbed library or any other relevant information.
Have you updated the mbed library to the newest one?
posted by Martin Kojtal 10 Oct 2014Yes most recent versions
posted by Jacob Rosenthal 10 Oct 2014for the second part, I created an issue on github to track this, https://github.com/mbedmicro/mbed/issues/572. I'll look at the first one, the linker file missing
posted by Martin Kojtal 17 Oct 2014