cancel
Showing results for 
Search instead for 
Did you mean: 

[BUG FOUND] Printf/Sprintf for float point variables not working.

Not applicable

I found a quote that this problem had been fixed in an earlier version, but the problem is reoccurring. Using STM32CubeIDE Version. 1.2.1 Build: 5190_20200115_1224 (UTC)

This problem is fixed in STM32CubeIDE ver.1.0.2.

Still need to add the flag:

0690X00000ByaxXQAR.jpg

Workaround in older version is to add "-u _printf_float" to MCU GCC Linker -> Miscellaneous -> Other flags.

 Ref.: https://community.st.com/s/question/0D50X0000B0AEJbSQO/uprintffloat-where-to-set-for-clinker-in-stm32cubeide

2 REPLIES 2
PVaaz.1
Associate III

@rtek

are you still facing this issue in the current cube ide?

br

P

Not applicable

It still needs to be activated, but there is an alert now, and it can be activated instead of having to enter the text