How to enable the HAL_UARTEx_RxEventCallback function.
Hi, I am using cubeMx generate the STM32F302VE project, which for receiving the usart1 date by DMA circual mode.
My config as below:
- enable DMA, but disable DMA interrupt;
- enable USART1, and enable UART_IT_IDLE;
Now, the project can enter the "USART1_IRQHandler()", but can't run to "__HAL_UART_CLEAR_FLAG(huart, UART_CLEAR_IDLEF);", because "huart->ReceptionType != HAL_UART_RECEPTION_TOIDLE". Details can refer the attachment and the following picture.

