cancel
Showing results for 
Search instead for 
Did you mean: 

STM32CubeIDE 1.18 not work -u _printf_float

Alex2670
Associate II
 
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.

6 REPLIES 6
Alex2670
Associate II

In 1.17 everything works correctly

Ozone
Lead III

Check it doesn't link against a libnano version by default.

AMars.4
Associate III

Do you have this setting?

printf.png

Yes, of course, these settings were made first.

Where can I check the version?

Pavel A.
Evangelist III

You can install the same toolchain that you had in 1.17, and be happy. The new toolchain seems to have issues.