Skip to main content
Associate II
June 13, 2025
Question

Float format string flagged as error in editor

  • June 13, 2025
  • 4 replies
  • 869 views

I am using STM32CubeIDE version 1.18.1, and when using float formatting, STM32CubeIDE shows me an error with red squiggles about float formatting not being enabled in my toolchain.

When I go to Project Properties > C/C++ Build > Settings , I see no 'Tool settings' menu, and no linker option to specify. I am using CMake, so I believe this is normal since STM32CubeIDE does not know about my build configuration. How can I make this error disappear while using cmake ?

4 replies

Andrew Neil
Super User
June 13, 2025

Is this just an error appearing in the IDE editor, or an actual error occurring during the build?

A complex system that works is invariably found to have evolved from a simple system that worked.A complex system designed from scratch never works and cannot be patched up to make it work.
Associate II
June 13, 2025

This appears inside the editor, the build works just fine.

Associate II
June 19, 2025

Hi, I figured that the %E format specifier does not triggers this errors inside the editor, the plot thickens !

It's the format specifier for scientific notation, I don't see why a C library that does not support %f would also %E.

Pavel A.
Super User
June 19, 2025

PavelA_0-1750345338855.png

 

Associate II
June 19, 2025

I don't have all of these options availlable. here is what I see:

Etienne_Parmentier_0-1750345645388.png

Etienne_Parmentier_1-1750345689503.png

 

Karl Yamashita
Principal
June 19, 2025

 

Did you import this project? Or did you start a new project, write code and run into this warning about the float?

I'm not sure why you're missing these sections?

KarlYamashita_0-1750348241189.png

 

 

If a reply has proven helpful, click on Accept as Solution so that it'll show at top of the post.CAN Jammer an open source CAN bus hacking toolCANableV3 Open Source
Pavel A.
Super User
June 19, 2025

Then your project is not-managed (makefile) and you have to add all needed options to your Makefile.

 

Associate II
June 19, 2025

My project is using CMake, and builds correctly. The error seems to be coming from STM32CubeIDE error parsers, not my build configuration.