UART2 Rx Interrupt Firing straight away
I have a problem using the NUCLEO-G431KB. After set-up of UART2_RX_INT, the interrupt seems to trigger and goes straight into the interrupt before any data has been put onto the receive pin of the UART. I have used Cube MX to generate the initalise. What could be causing this?
These two lines of code are used as part of the UART2 set-up.
__HAL_UART_ENABLE_IT(&huart2, UART_IT_RXNE );
HAL_UART_Receive_IT(&huart2, Rx2Buff, Uart2BuffLen);
Thanks
