Skip to main content
RDos
Associate II
June 28, 2019
Question

printf float STM32G070CB

  • June 28, 2019
  • 2 replies
  • 769 views

How to enable float (printf) in STM32CUBEIDE 1.0.1 IDE?

The -u printf_float option is selected.

This topic has been closed for replies.

2 replies

Markus GIRDLAND
ST Employee
July 1, 2019

If you're wondering HOW then that is explained in this thread.

Or, if you're having problems with the float itself that is explained in this thread.

If it was something else completely then please give some more details of the problem you're facing and I'll hopefully be able to provide a better answer.

markorman
Associate
July 2, 2019

I had problem with printing floats in printf. The solution was to fix the linker file with wrong stack address and I also had to remove the default included file "sysmem.c" since the function _sbrk always failed and malloc was not working.