I'm using the STM32L431RB device and wanna implement UART communication with DMA and IDLE line interrupt functionality. In principle everything is working with one exception:
After enabling USART the IDLE flag in ISR register is set to 1. After that I try to reset that flag by writting a 1 to the corresponding ICR bit, but the IDLE flag is not reset. So I'm running in IDLE ISR directly after initializing the transfer...
It works all fine if I'm implementing a wait function before reseting the IDLE flag.
Can anyone help to avoid the initial ISR call?