cancel
Showing results for 
Search instead for 
Did you mean: 

Cube error parser complains about _printf_float linker flag in cmake project

marco-ehs
Associate

Dear community,

I have a STM32U5 project running with the latest STM32CubeIDE Version: 1.18.1 in Windows 11.

The project is a cmake project that compiles, links and runs without issues. But still the CubeIDE complains about  a missing linker flag in the code at a "snprintf(&str[0], len, "%.*f", val);" code-snipped:

The float formatting support is not enabled, check your MCU Settings from "Project Properties > C/C++ Build > Settings > Tool Settings", or add manually "-u _printf_float" in linker flags.

Of course my the CMakeLists.txt includes the correct libnano with this flag. So I am wondering why this error is there and how I can probably supress that.

Do you have any suggestions for me? Thanks a lot!

0 REPLIES 0