6 years, 5 months ago.

Error compiling an exported mbed project (Serial Low Power Demo) to Simplicity Studio v4

I just exported the mbed example "Serial-Low Power Demo" from the mbed compiler into Simplicity Studio V4, 32 bit MCU SDK v 5.2.2.0 and I'm getting an error during the link stage. Any ideas?

Warning during the C++ Build using GNU ARM C++ compiler: arm-none-eabi-g++ -g3 -gdwarf-2 -mcpu=cortex-m4 -mthumb '-DTARGET_Silicon_Labs=1' '-DMBED=1' '-DDEVICE_PWMOUT=1 -DDEVICE_FLASH=1 -DARM_MATH_CM4 -ffunction-sections -fdata-sections -mfpu=fpv4-sp-d16 -mfloat-abi=softfp -MMD -MP -MF"src/main.d" -MT"src/main.o" -o "src/main.o" "../src/main.cpp" ../src/main.cpp: In function 'int main()': ../src/main.cpp:107:34: warning: 'void mbed::Callback<R(A0)>::attach(R (*)(A0)) [with R = void; A0 = int]' is deprecated (declared at C:\Temp\Serial-LowPower-Demo_simplicityv3_efm32wg_stk3800\Serial-LowPower-Demo\mbed/platform/Callback.h:846): Replaced by simple assignment 'Callback cb = func [since mbed-os-5.4] [-Wdeprecated-declarations] serialEventCb.attach(serialCb);

Error during GNU ARM C++ Linker: c:/siliconlabs/simplicitystudio/v4/developer/toolchains/gnu_arm/4.8_2013q4/bin/../lib/gcc/arm-none-eabi/4.8.3/../../../../arm-none-eabi/bin/ld.exe: C:\Temp\Serial-LowPower-Demo_simplicityv3_efm32wg_stk3800\Serial-LowPower-Demo\mbed\TARGET_EFM32WG_STK3800\TOOLCHAIN_GCC_ARM\efm32wg.ld:12: ignoring invalid character `#' in expression c:/siliconlabs/simplicitystudio/v4/developer/toolchains/gnu_arm/4.8_2013q4/bin/../lib/gcc/arm-none-eabi/4.8.3/../../../../arm-none-eabi/bin/ld.exe: C:\Temp\Serial-LowPower-Demo_simplicityv3_efm32wg_stk3800\Serial-LowPower-Demo\mbed\TARGET_EFM32WG_STK3800\TOOLCHAIN_GCC_ARM\efm32wg.ld:12: syntax error collect2.exe: error: ld returned 1 exit status make: * [Serial-LowPower-Demo.axf] Error 1

Be the first to answer this question.