cancel
Showing results for 
Search instead for 
Did you mean: 

STM32L431: Enable USART rises IDLE ISF

S. L.
Associate
Posted on November 28, 2017 at 11:46

Hi all,

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?

0 REPLIES 0