Skip to main content
February 5, 2020
Question

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

  • February 5, 2020
  • 1 reply
  • 1174 views

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

This topic has been closed for replies.

1 reply

PVaaz.1
Associate III
June 14, 2022

@rtek

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

br

P

June 16, 2022

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