AnsweredAssumed Answered

STM32L0) hal_uart_receive_it baudrate change

Question asked by Hong Gildong on Apr 16, 2018

hi.

 

I am using the hal library to communicate uart.

 

I changed the baudrate during code execution as shown below.

UartHandle.Init.BaudRate     = Baudrate;

if(HAL_UART_Init(&UartHandle) != HAL_OK){ Error_Handler(); }

 

HAL_UART_Receive_IT(&UartHandle, (uint8_t *)rx_data, BUFFERSIZE);

 

 

The baudrate changes very well, but the problem is changing too slowly.

Is there a quick way to change it?

 

Thank you.

Outcomes