To change the baud rate on the fly, you need to wait for the completion of the transmission and reception of UART.To do this, in the functions HAL_UART_RxCpltCallback and HAL_UART_TxCpltCallback set your completion flags.Next, wait for the completion...