Loading...
 

SW4STM32 and SW4Linux fully supports the STM32MP1 asymmetric multicore Cortex/A7+M4 MPUs

   With System Workbench for Linux, Embedded Linux on the STM32MP1 family of MPUs from ST was never as simple to build and maintain, even for newcomers in the Linux world. And, if you install System Workbench for Linux in System Workbench for STM32 you can seamlessly develop and debug asymmetric applications running partly on Linux, partly on the Cortex-M4.
You can get more information from the ac6-tools website and download (registration required) various documents highlighting:

System Workbench for STM32


Link error passing double variable to sqrt function

Hi

I’m working on Linux and get the same linker error when math.h is included and a function of libmath is used.
Not all functions from libmath trigger the linker error but sqrt() in any case. I’m using plain C.

EDIT Like in this example the error was only triggered if the value of the argument was not known at compile time.

The IDE automatically sets Project->Properties->C/C++ Build->Settings->MCU GCC Linker->Libraries button “Use C math library (-lm) checked

My solution found elswere is:

Goto Project->Properties->C/C++ Build->Settings->MCU GCC Linker->Libraries and uncheck this button “Use C math library (-lm)
Then click on add and type “m”.
The explanation for this found elsewere shall be: the order of linking libc and libmath is is reversed with default setting.

Dieter