Loading...
 
Skip to main content

System Workbench for STM32


snprintf() Outputs Empty String

Tunisia

check if you are using nanolib (-specs=nano.specs in Project properties > C/C++ Build > Settings > Tool Settings (TAB) > MCU GCC Linker > Miscellaneous > Linker flags)
If it is the case, you need to enable float printf :
-specs=nano.specs -u _printf_float

Regards,
Tarek