2018-04-15 08:03 PM
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.
#stm32l031 #uart-rx-interrupt #baudrate-change2018-08-10 09:48 AM
Write to UARTx->BRR directly, disable/enable UART if necessary