USART HAL_UART_RxCpltCallback is not called.
Hello.
I am currently using USART6 by setting RX as interrupt, and TX as DMA in STM32F4.
The ST board mostly worked well, however, after some hours (maybe 10 hour), the RX interrupt wasn't called.
I suppose that this problem is not related to hardware or IC because it worked well after software reset,
I captured the huart information at the moment, and posted it and my code related to RX.

void HAL_UART_RxCpltCallback(UART_HandleTypeDef *huart) {
if(huart->Instance == USART2){ // Nersys
q_in = (q_in + 1) % UART_BUF_MAX; // For ring buffer
HAL_UART_Receive_IT(&huart2, &q_buf[q_in], 1);
}
}
////
void USART2_IRQHandler(void)
{
/* USER CODE BEGIN USART2_IRQn 0 */
/* USER CODE END USART2_IRQn 0 */
HAL_UART_IRQHandler(&huart2);
/* USER CODE BEGIN USART2_IRQn 1 */
/* USER CODE END USART2_IRQn 1 */
}
I have read an article about USART and I find out that IDLEIE in USART CR1 have to be set as 1 to be interrupted.
But in my case,

How do I address this issue? Would I just add a code that force to change the bit from 0 to 1 in IRQHandler?
