STM32CubeIDE 1.18 not work -u _printf_float
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2025-04-08 11:35 PM - last edited on ‎2025-04-09 1:08 AM by Andrew Neil
char stringUSBCDC[50];
sprintf(stringUSBCDC, "Hello v%f\n", 1.0f);
while (1)
{
CDC_Transmit_FS((uint8_t*)stringUSBCDC, strlen(stringUSBCDC));
In terminal - output
Hello v
Hello v
Hello v
Hello v
Code formatting applied - please see How to insert source code for future reference.
- Labels:
-
STM32F4 Series
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2025-04-09 12:39 AM
In 1.17 everything works correctly
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2025-04-09 12:55 AM
Check it doesn't link against a libnano version by default.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2025-04-10 12:31 AM
Do you have this setting?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2025-04-10 7:35 PM
Yes, of course, these settings were made first.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2025-04-10 7:36 PM
Where can I check the version?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2025-04-10 7:38 PM
You can install the same toolchain that you had in 1.17, and be happy. The new toolchain seems to have issues.
