Loading...
 
Skip to main content

System Workbench for STM32


Redirecting printf() does not work

Hi Moha1993, if you are using floats there is a way to enable float support in printf :
By default “nano” version of the standard input-output (stdio) library is selected.
This helps to keep code size low but does not allow use float numbers in printf
In order to change it, disable “nano” library option within project settings :
Remove this option : -spec=nano.specs in C/C++ Build -> Settings -> MCU GCC Linker -> Miscellaneous

 
Collapse/expand modules below