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