Float format string flagged as error in editor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2025-06-13 6:17 AM - last edited on ‎2025-06-19 8:20 AM by Andrew Neil
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 ?
- Labels:
-
Other software
-
Other software tools
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2025-06-13 6:21 AM
Is this just an error appearing in the IDE editor, or an actual error occurring during the build?
A complex system designed from scratch never works and cannot be patched up to make it work.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2025-06-13 6:23 AM
This appears inside the editor, the build works just fine.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2025-06-19 4:00 AM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2025-06-19 8:03 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2025-06-19 8:08 AM
I don't have all of these options availlable. here is what I see:
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2025-06-19 8:18 AM
Then your project is not-managed (makefile) and you have to add all needed options to your Makefile.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2025-06-19 8:21 AM
My project is using CMake, and builds correctly. The error seems to be coming from STM32CubeIDE error parsers, not my build configuration.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2025-06-19 8:52 AM
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?
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2025-06-19 8:56 AM
I cloned the original project from gitlab at my company. I then imported it inside a workspace.
