AnsweredAssumed Answered

STM32F4 USART1 DMA -> clear DMA content

Question asked by Machfax on Jul 10, 2014
Latest reply on Jul 10, 2014 by waclawek.jan

I configured the USART1 with the DMA Controller to receive 16 Bytes. In case if I receive just 1 Byte (Error on the line for example or when starting the sytem) then I like to delete the whole content of the DMA Controller because otherwise the next correct 16Bytes are shiftet by this ErrorByte and in the target Register there is the ErrorByte and the 15 first Bytes of the correct message. So how can I delete the Buffer of the DMA in case of receiving less than 16 Bytes?
The configuration is added as attachment.

Thanks a lot.
Best Regards, Dominik