Solved
How to the change baud rate dynamically?
..
..
Your code have primary trouble handle how many timer reloads occurs over first to last for example device send FF FF FE on USART ...
Too __HAL_TIM_SET_COUNTER(htim, 0); why
Read STM32 USART automatic baud rate detection AN4908
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.