Mbed-OS 5 com linke error
hi,everyone
I have a question, when I export a example about mbed - OS from mbed web ide, and Sw4stm32 Settings as follows:
i got compile error:
HAL_CM4.S: Assembler messages:
HAL_CM4.S:225: Error: selected processor does not support `vstmdbeq R12!,{S16-S31}’ in Thumb mode
HAL_CM4.S:230: Error: incorrect condition in IT block `movne R0,#0x00’
HAL_CM4.S:231: Error: instruction not allowed in IT block `strb R0,R1,#TCB_STACKF’
HAL_CM4.S:254: Error: selected processor does not support `vldmiane R12!,{S16-S31}’ in Thumb mode
HAL_CM4.S:256: Error: instruction not allowed in IT block `msr PSP,R12’
HAL_CM4.S:328: Error: selected processor does not support `vstmdbeq R12!,{S16-S31}’ in Thumb mode
HAL_CM4.S:333: Error: incorrect condition in IT block `movne R0,#0x00’
HAL_CM4.S:334: Error: instruction not allowed in IT block `strb R0,R1,#TCB_STACKF’
HAL_CM4.S:356: Error: selected processor does not support `vldmiane R12!,{S16-S31}’ in Thumb mode
HAL_CM4.S:358: Error: instruction not allowed in IT block `msr PSP,R12’
make: *** mbed-rtos/rtx/TARGET_CORTEX_M/TARGET_RTOS_M4_M7/TOOLCHAIN_GCC/HAL_CM4.o Error
When I modify the Settings as following
then i got a link error
‘Building target: Nucleo_rtos_basic.elf’
‘Invoking: MCU G++ Linker’
d:/programfiles/systemworkbench/plugins/fr.ac6.mcu.externaltools.arm-none.win32_1.7.0.201602121829/tools/compiler/bin/../lib/gcc/arm-none-eabi/5.2.1/../../../../arm-none-eabi/lib/armv7e-m/softfp\libc_nano.a(lib_a-signalr.o): In function `_kill_r’:
signalr.c:(.text._kill_r+0xe): undefined reference to `_kill’
d:/programfiles/systemworkbench/plugins/fr.ac6.mcu.externaltools.arm-none.win32_1.7.0.201602121829/tools/compiler/bin/../lib/gcc/arm-none-eabi/5.2.1/../../../../arm-none-eabi/lib/armv7e-m/softfp\libc_nano.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: *** Nucleo_rtos_basic.elf Error 1
for help