Is it possible to change the uart baudrate dynamically after it has been initialized?
Yes, but you want to make sure you've finished sending anything that is currently going over the wire before doing so.
Thanks for replying. Which function should I use in the HAL inside my main program?
On the STM32F7 I'd use something like this..
USART6->CR1 &= ~USART_CR1_UE;USART6->BRR = APB2Clock / Baud;USART6->CR1 |= USART_CR1_UE;
Retrieving data ...