8 years, 3 months ago.

Not compiling imported programs in lpcxpresso

I always get the following error when trying to compile programs for lpc1768 and lpc11u68.

22:40:53 **** Incremental Build of configuration Debug for project impedance_analyzer ****
make -r all 
Building target: impedance_analyzer.axf
Invoking: MCU C++ Linker
arm-none-eabi-c++ -nostdlib -L"C:\Users\Muk\Documents\LPCXpresso_8.1.4_606\workspace\impedance_analyzer" -L"C:\Users\Muk\Documents\LPCXpresso_8.1.4_606\workspace\impedance_analyzer\mbed" -L"C:\Users\Muk\Documents\LPCXpresso_8.1.4_606\workspace\impedance_analyzer\mbed\TARGET_LPC11U68" -L"C:\Users\Muk\Documents\LPCXpresso_8.1.4_606\workspace\impedance_analyzer\mbed\TARGET_LPC11U68\TARGET_NXP" -L"C:\Users\Muk\Documents\LPCXpresso_8.1.4_606\workspace\impedance_analyzer\mbed\TARGET_LPC11U68\TARGET_NXP\TARGET_LPC11U6X" -Xlinker -Map="impedance_analyzer.map" -Xlinker --gc-sections -mcpu=cortex-m0 -mthumb -T "" -o "impedance_analyzer.axf"  ./main.o   
c:/nxp/lpcxpresso_8.1.4_606/lpcxpresso/tools/bin/../lib/gcc/arm-none-eabi/5.2.1/../../../../arm-none-eabi/bin/ld.exe: unrecognized option '-T'
c:/nxp/lpcxpresso_8.1.4_606/lpcxpresso/tools/bin/../lib/gcc/arm-none-eabi/5.2.1/../../../../arm-none-eabi/bin/ld.exe: use the --help option for usage information
collect2.exe: error: ld returned 1 exit status
make: *** [impedance_analyzer.axf] Error 1

22:40:58 Build Finished (took 5s.894ms)

1 Answer

8 years, 3 months ago.

Hi,

This is known issue and we are working on it. https://github.com/ARMmbed/mbed-os/issues/2448

A quick workaround is to use the mbed library Rev.121 and upward.

I hope this helps.

The LPCxpresso export is still broken. Looks like that if a project that uses mbed-rtos and EthernetInterface one can't downgrade mbed to Rev.121 (or maybe I'm missing somethig...), so it is basically not possible to export such project. Any news on the topic? I've read in the bug log that an eclipse export is mentioned, but I don't know how to do it.

Thanks

posted by Massimo Cristofolini 29 Nov 2016

Any progress on that?

posted by Sener Yazman 20 Mar 2018