This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Linker 'cannot move counter backwards' on mbed.

Hi,

I'm trying to build a piece of firmware for the nRF51 DK, using the mbed OS 5 platform, but I keep getting a linker error from 'ld', using the ARM GCC 4.9 tools from Launchpad:

./mbed-os/hal/targets/cmsis/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF51822_UNIFIED/TOOLCHAIN_GCC_ARM/TARGET_MCU_NORDIC_32K/NRF51822.ld:142 cannot move location counter backwards (from 0000000020007fd8 to 0000000020007800) collect2: error: ld returned 1 exit status [ERROR] ./mbed-os/hal/targets/cmsis/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF51822_UNIFIED/TOOLCHAIN_GCC_ARM/TARGET_MCU_NORDIC_32K/NRF51822.ld:142 cannot move location counter backwards (from 0000000020007fd8 to 0000000020007800) collect2: error: ld returned 1 exit status

Everything else builds fine, only the linking fails.

Any ideas?

Parents Reply Children
No Data
Related