- Silicon Labs Community
- Welcome and Announcements
- Silicon Labs Knowledge Base
- 8-bit MCU
- 32-bit MCU
- Bluetooth / Wi-Fi
- Other Products Category
- Optical/RH/Temp Sensor
- Other Products
- Hardware and Software Tools
- Simplicity Studio and Software
- General Discussions and Suggestions
- Chinese Forum
- Software Libraries
- Development Kits
- Reference Designs
- Third Party Tools
- White Papers
- Official Blog of Silicon Labs
- Chinese Blog
04-06-2017 04:27 AM
I opened an empty project to check the GNU ARM.
Finished building: ../main.c
Building target: LGL001_0.axf
Invoking: GNU ARM C Linker
arm-none-eabi-gcc -g3 -gdwarf-2 -mcpu=cortex-m4 -mthumb -T "LGL001_0.ld" -nostdlib -L"C:/SiliconLabs/SimplicityStudio/v4/developer/stacks/ble/v188.8.131.52//protocol/bluetooth_2.1/lib/" -Xlinker --gc-sections -Xlinker -Map="LGL001_0.map" -mfpu=fpv4-sp-d16 -mfloat-abi=softfp --specs=nano.specs -o LGL001_0.axf "./emlib/em_cryotimer.o" "./emlib/em_gpio.o" "./emlib/em_i2c.o" "./emlib/em_msc.o" "./emlib/em_rtcc.o" "./emlib/em_usart.o" "./gatt_db.o" "./main.o" "./src/InitDevice.o" -l:binbootloader.o -l:stack.a -l:binstack.o
LGL001_0.ld:59: undefined symbol `__Vectors' referenced in expression
collect2.exe: error: ld returned 1 exit status
make: *** [LGL001_0.axf] Error 1
Solved! Go to Solution.
04-06-2017 04:43 AM
in the Problems:
make: ***[LGL001_0.axf]Error 1
Program "arm-none-eabi-g++" not found in PATH
Program "arm-none-eabi-gcc" not found in PATH
undefined symbol `__Vectors` referenced in expression.
I didn't change anything in the example !
04-06-2017 01:01 PM
GCC support is in "beta" for the BLE 184.108.40.206 stack at this time. The logs that were posted showed it using the BLE 220.127.116.11 stack, if the empty project was actually created with the BLE 18.104.22.168 stack then there is an error in the project generation. If not please create the project using the BLE 22.214.171.124 stack.
The basic problem appears to be that the gcc startup code was not included in the project. In device folder (for example EFR32BG1B) under the CMSIS folder, a link to the appropriate startup_gcc_efr32 .s file should be included (for the example it is startup_gcc_efr32bg1b.s). It can be dragged from the appropriate location to the project folder and added as a linked file (example folder: C:\SiliconLabs\SimplicityStudio\v4\developer\sdks\gecko_sdk_suite\v1.0\platform\Device\SiliconLabs\EFR32BG1B\Source\GCC)
04-07-2017 07:59 AM
I created a new demo projekt ( Thermometer ) and it's the first time I can compile and load in Studio.
Will see what hapens when I put my actuall files in.