How to activate floating point for sprintf in your Low Layer based project

By defaut, a project created for Low Layer driver with STM32CubeMX use the newlib-nano C library and as direct effect, the floating point processing is removed from printf formatting function. You won’t see your floating point numbers printed.

Here I wrote a little tutorial about how you activate the floating point for the printf function, which will also affect the sprintf function

Leave a comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.