Skip to main content
Associate II
Jun 13, 2025 1:17 PM UTC
Question

Float format string flagged as error in editor

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 ?

This topic has been closed for replies.

10 replies

Andrew Neil
Super User
Jun 13, 2025 1:21 PM UTC

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
Jun 13, 2025 1:23 PM UTC

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

Associate II
Jun 19, 2025 11:00 AM UTC

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.
Jun 19, 2025 3:03 PM UTC

PavelA_0-1750345338855.png

 

Associate II
Jun 19, 2025 3:08 PM UTC

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
Super User
Jun 19, 2025 3:52 PM UTC

 

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.
Jun 19, 2025 3:18 PM UTC

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

 

Associate II
Jun 19, 2025 3:21 PM UTC

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