STM32L0) hal_uart_receive_it baudrate change
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2018-04-15 8:03 PM
Posted on April 16, 2018 at 05:03
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-change
Labels:
- Labels:
-
STM32L0 Series
-
UART-USART
1 REPLY 1
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2018-08-10 9:48 AM
Write to UARTx->BRR directly, disable/enable UART if necessary
Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
Up vote any posts that you find helpful, it shows what's working..
