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.
8 years, 3 months ago.
EFM32WG with export to Simplicity Studio fails to build........help.
I exported and imported the project and it shows it Simplicity Studio just fine. The project is the low power serial example program. When I try to build i get the following error output. It looks to be referencing files in the original download location and not the workspace location?
Please help me figure out what to try to get this to build properly.
2 Answers
8 years, 2 months ago.
Hi Matt,
Did you ever get your build issue resolved? I have a very similar problem. I exported the mbed_blinky_low_power project from https://developer.mbed.org/teams/SiliconLabs/code/mbed_blinky_low_power/export. Like you I can import the project just fine but when I try to build it, I get the following error: "fatal error: mbed_config.h: No such file or directory".
If you fixed your problem, please share what you had to do.
8 years, 2 months ago.
Yes I did. You have to add the path to the C and C++ includes in Simplicity Studio. Also make sure you have the box checked for updating all libraries on export.
Matt
Hi Matt,
Could you please be more specific about adding the path to the C and C++ includes? I have the same problem but it's still not clear for me how to fix it in Simplicity Studio.
Thank you!
posted by 17 Nov 2016I just ported the Serial Low Power Demo from mbed into Simplicity Studio vV 32 bit MCU SDK v5.2.2.0 and I'm getting the following warning during the C++ build: Invoking: GNU ARM C++ Compiler arm-none-eabi-g++ -g3 -gdwarf-2 -mcpu=cortex-m4 -mthumb '-DTARGET_Silicon_Labs=1' '-DMBED=1' '-DDEVICE_I2CSLAVE=1' '- ../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);
and then the following errors during the C++ Linker:
Building target: Serial-LowPower-Demo.axf
Invoking: GNU ARM C++ Linker
arm-none-eabi-g++ -g3 -gdwarf-2 -mcpu=cortex-m4 -mthumb -T "C:\Temp\Serial-LowPower-Demo_simplicityv3_efm32wg_stk3800\Serial-LowPower-Demo\mbed\TARGET_EFM32WG_STK3800\TOOLCHAIN_GCC_ARM\efm32wg.ld" -L"C:\Temp\Serial-LowPower-Demo_simplicityv3_efm32wg_stk3800\Serial-LowPower-Demo\mbed\TARGET_EFM32WG_STK3800\TOOLCHAIN_GCC_ARM" -Wl,gc-sections -Wl,wrap,main -Wl,wrap,_malloc_r -Wl,wrap,_free_r -Wl,wrap,_realloc_r -Wl,wrap,_memalign_r -Wl,wrap,_calloc_r -Wl,wrap,exit -Wl,wrap,atexit -Wl,-n -mcpu=cortex-m4 -mthumb -mfpu=fpv4-sp-d16 -mfloat-abi=softfp specs=nosys.specs -Xlinker gc-sections -Xlinker -Map="Serial-LowPower-Demo.map" -mfpu=fpv4-sp-d16 -mfloat-abi=softfp specs=nano.specs -o Serial-LowPower-Demo.axf "C:\Temp\Serial-LowPower-Demo_simplicityv3_efm32wg_stk3800\Serial-LowPower-Demo\mbed\TARGET_EFM32WG_STK3800\TOOLCHAIN_GCC_ARM\us_ticker.o" "./src/main.o" -lstdc++ -lsupc++ -lm -lnosys -lc -lgcc -lmbed -Wl,start-group -lgcc -lc -lnosys -Wl,end-group
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
Any ideas?
posted by 21 Dec 2017
fdata-sections -mfpu=fpv4-sp-d16 -mfloat-abi=softfp -std=c99 -MMD -MP -MF"mbed-src/targets/hal/TARGET_Silicon_Labs/TARGET_EFM32/emlib/src/em_assert.d" -MT"mbed-src/targets/hal/TARGET_Silicon_Labs/TARGET_EFM32/emlib/src/em_assert.o" -o "mbed-src/targets/hal/TARGET_Silicon_Labs/TARGET_EFM32/emlib/src/em_assert.o" "C:/Users/MAC02/Downloads/Serial-LowPower-Demo_simplicityv3_efm32wg_stk3800/Serial-LowPower-Demo/mbed-src/targets/hal/TARGET_Silicon_Labs/TARGET_EFM32/emlib/src/em_assert.c" cc1.exe: fatal error: mbed_config.h: No such file or directory compilation terminated. make: * [mbed-src/targets/hal/TARGET_Silicon_Labs/TARGET_EFM32/emlib/src/em_acmp.o] Error 1 make: * Waiting for unfinished jobs.... cc1.exe: fatal error: mbed_config.h: No such file or directory compilation terminated. cc1.exe: fatal error: mbed_config.h: No such file or directory compilation terminated. make: * [mbed-src/targets/hal/TARGET_Silicon_Labs/TARGET_EFM32/emlib/src/em_aes.o] Error 1 make: * [mbed-src/targets/hal/TARGET_Silicon_Labs/TARGET_EFM32/emlib/src/em_adc.o] Error 1 cc1.exe: fatal error: mbed_config.h: No such file or directory compilation terminated. make: * [mbed-src/targets/hal/TARGET_Silicon_Labs/TARGET_EFM32/emlib/src/em_assert.o] Error 1
18:07:57 Build Finished (took 8s.589ms)
posted by Matt Clement 30 Aug 2016