Senior
July 10, 2014
Question
STM32F4 USART1 DMA -> clear DMA content
- July 10, 2014
- 3 replies
- 906 views
Posted on July 10, 2014 at 11:19
Hi
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 #usart1-dma-rx