Loading...
 

Zephyr project on STM32

   Zephyr Workbench, a VSCode extension to manage Zephyr on STM32.
It enables users to easily create, develop, and debug Zephyr applications.
Main features:
  • Install host dependencies.
  • Import toolchain and SDK.
  • Create, configure, build and manage apps.
  • Debug STM32.
You can directly download it from the VSCode marketplace
For more details, visit the Zephyr Workbench

System Workbench for STM32


Compile with CMSIS

Hi,

I am trying to use CMSIS.
I have included the libary.
But I get the following error:
‘Invoking: MCU GCC Linker’
arm-none-eabi-gcc -mcpu=cortex-m4 -mthumb -mfloat-abi=hard -mfpu=fpv4-sp-d16 -L”C:\Users\marku\Documents\Develop\stm32f3-sw\CMSIS-SP-00300-r4p5-00rel0\CMSIS\Lib\GCC” -specs=nosys.specs -specs=nano.specs -T”../STM32F302RBTx_FLASH.ld” -Wl,-Map=output.map -Wl,--gc-sections -lm -o “test.elf” @”objects.list” -larm_cortexM4lf_math
c:/ac6/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/fpu\libm.a(lib_a-wf_sqrt.o): In function `sqrtf’:
wf_sqrt.c:(.text.sqrtf+0x96): undefined reference to `__errno’
wf_sqrt.c:(.text.sqrtf+0xa0): undefined reference to `__errno’
collect2.exe: error: ld returned 1 exit status
make: *** test.elf Error 1

can somebody give me a hint how to hande this?



GCC-Linker: -mcpu=cortex-m4 -mthumb -mfloat-abi=hard -mfpu=fpv4-sp-d16 -L”C:\Users\marku\Documents\Develop\stm32f3-sw\CMSIS-SP-00300-r4p5-00rel0\CMSIS\Lib\GCC” -specs=nosys.specs -specs=nano.specs -T”../STM32F302RBTx_FLASH.ld” -Wl,-Map=output.map -Wl,--gc-sections -lm

Hi

I also got this error with “#include “math.h” when using sqrtf.

Goto: right click in Project Explorer on project name.
Properties -> C/C++ Build -> Settings -> “MCU GCC Linker” -> “Libraries”
Here uncheck “Use C math library (-lm)”.
Click on add button besides “libraries (-l)” and just write “m”

This way libmath gets included after libc.

Gruß
Dieter

Hi

In my setup there is only the “m” in the “libraries (-l)” text field nothing else. The text field “Library seach path (-L)” is empty.

Dieter


Hi,

the solution was the order:
first: arm_cortexM4lf_math
then: m

Thanks,
Markus