cancel
Showing results for 
Search instead for 
Did you mean: 

Float format string flagged as error in editor

Etienne_Parmentier
Associate III

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 ?

10 REPLIES 10
Andrew Neil
Super User

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.

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

Etienne_Parmentier
Associate III

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

PavelA_0-1750345338855.png

 

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

Etienne_Parmentier_0-1750345645388.png

Etienne_Parmentier_1-1750345689503.png

 

Pavel A.
Super User

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

 

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

 

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

 

 

I was told that if a devices starts to smoke, put the smoke back in. I guess I never got all the smoke because the device never worked afterwards.
Don't worry, I won't byte.
TimerCallback tutorial! | UART and DMA Idle tutorial!

If you find my solution useful, please click the Accept as Solution so others see the solution.

I cloned the original project from gitlab at my company. I then imported it inside a workspace.