cancel
Showing results for 
Search instead for 
Did you mean: 

printf float STM32G070CB

RDos
Associate II

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

The -u printf_float option is selected.

2 REPLIES 2
Markus GIRDLAND
ST Employee

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

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.