Question
UART RX Interrupt doesn't work
Posted on July 09, 2018 at 16:57
Hello,
I have a problem with UART RX interrupt on a STM32F777.
I'm using cube mx, I've well enable interrupt in NVIC for my UART7.
In my code, I do :
HAL_UART_Receive_IT(&huart7, &UART_Data, 1);
So when a character is received, the code enters in
static HAL_StatusTypeDef UART_Receive_IT(UART_HandleTypeDef *huart)
function.
But here :
/* Check that a Rx process is ongoing */
if(huart->RxState == HAL_UART_STATE_BUSY_RX)My RxState equals HAL_UART_STATE_READY and not HAL_UART_STATE_BUSY_RX.
So my RX Callback is never called.
Do you have any idea ?
Many thanks and best regards
#uart-callback