Question
UART Busy before Start.
Hi, I have a problem with a STM32L476RG.
The problem is UART interface in DMA receive mode, at the beginning of my main function, after having initialized some variable, I call the function:
__HAL_UART_ENABLE_IT(&huart3, UART_IT_IDLE);
HAL_UART_Receive_DMA(&huart3,TMBUS_RxBuffer, TM_RX_BUFFER_SIZE)very often the HAL_UART_Receive_DMA function returns HAL_BUSY. What I don't understand is how does the UART get busy if it hasn't started yet?
If I disconnect the RX pin of the UART, the error does not occur, and the HAL_UART_Receive_DMA function returns correctly HAL_OK.
How can I solve?
