8 years, 3 months ago.

Mbed-OS 5 linke error in sw4stm32

hi,everyone I have a question, when I export a example about mbed - OS from mbed web ide, and Sw4stm32 Settings as follows: /media/uploads/libao/sw4stm32_setting1.jpg 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 /media/uploads/libao/sw4stm32_setting2.jpg 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

who can help me?

posted by li bao 12 Aug 2016

use "specs=nosys.specs" for the linker, It's will work.

posted by li bao 18 Aug 2016
Be the first to answer this question.