Eclipse ARM mbed 无法向后移动位置计数器错误

Eclipse ARM mbed cannot move location counter backward error

当我学习本教程时 https://developer.mbed.org/cookbook/eclipse-for-building-and-debugging 我 运行 在 Eclipse 上构建项目时出错(我遵循所有步骤直到第一个构建项目,此时我收到以下错误):

../../external/mbed/libraries/mbed/targets/cmsis/TARGET_NXP/TARGET_LPC11UXX/TOOLCHAIN_GCC_ARM/TARGET_LPC11U24_401/LPC11U24.ld:50 cannot move location counter backwards (from 00000238 to 00000200) collect2: error: ld returned 1 exit status make: *** [LPC11U24/FileTest.elf] Error 1

由于涉及 ld 我认为问题与链接器有关,但我不知道该做什么以及该去哪里查看。我正在使用 Debian 32 位和 Eclipse LUNA。

我发现了问题,我选择了错误的工具链:linux gcc 而不是 cross gcc。