Issue when import programme from MBED
Hello OpemSTM community!
I’m trying to import mbed software to eclipse, I followed the tuto and need to configure more include path because i’m using bluetooth library from STM, now the project build correctly exept for the linker who gcc say me that :
---
‘Invoking: MCU G++ Linker’
arm-none-eabi-g++ -mcpu=cortex-m4 -mthumb -mfloat-abi=hard -mfpu=fpv4-sp-d16 -T”C:\Users\thier\Projets\10 - workspace\Pebble2STM\mbed_Pebble2STM\STM32F401RETx_FLASH.ld” -Wl,-Map=output.map -Wl,--gc-sections -fno-exceptions -fno-rtti -lm -o “mbed_Pebble2STM.elf” @”objects.list”
c:/ac6/systemworkbench/plugins/fr.ac6.mcu.externaltools.arm-none.win32_1.3.0.201507241045/tools/compiler/bin/../lib/gcc/arm-none-eabi/4.9.3/../../../../arm-none-eabi/lib/armv7e-m/fpu\libc.a(lib_a-abort.o): In function `abort’:
abort.c:(.text.abort+0xa): undefined reference to `_exit’
c:/ac6/systemworkbench/plugins/fr.ac6.mcu.externaltools.arm-none.win32_1.3.0.201507241045/tools/compiler/bin/../lib/gcc/arm-none-eabi/4.9.3/../../../../arm-none-eabi/lib/armv7e-m/fpu\libc.a(lib_a-signalr.o): In function `_kill_r’:
signalr.c:(.text._kill_r+0xe): undefined reference to `_kill’
c:/ac6/systemworkbench/plugins/fr.ac6.mcu.externaltools.arm-none.win32_1.3.0.201507241045/tools/compiler/bin/../lib/gcc/arm-none-eabi/4.9.3/../../../../arm-none-eabi/lib/armv7e-m/fpu\libc.a(lib_a-signalr.o): In function `_getpid_r’:
signalr.c:(.text._getpid_r+0x0): undefined reference to `_getpid’
collect2.exe: error: ld returned 1 exit status
make: *** mbed_Pebble2STM.elf Error 1
----
It seem that the link don’t find the stdlib and i don’t know how to specify the correct path. I search on forum and try to change
LinkerScript.ld by STM32F401RETx_FLASH.ld in -T option (${workspace_loc:/${ProjName}/STM32F401RETx_FLASH.ld}
without any sucess
Thanks for your help!
Thierry