While working with StmCubeIDE, I use the following lines of code to print the float element to the screen with uart. The strings are written to the Termite screen, but the floats are not written to the screen
HAL_UART_Transmit(&huart3,Data,sprintf(Data,"Pressure: %4.2f Pa \t Temperature: %4.2f C \t Altitude: %4.2f m",pressure,temperature,altitude),HAL_MAX_DELAY);