i need to transfer received data from UART1 to a buffer into the RAM on my K20 demoboard.
I encountered some problem managing the synchronization between UART1 and DAM channel 0: the DMA rightly reads the data from UART1_D and writes it on the RAM, but write the same value more than once. My drivers seems not clean properly the UART S1 [RDRF], i tried to clear it inside the DMA 0 ISR, but nothing, no effect obtained.
Note: i attached the initialization code of the DMA.
Original Attachment has been moved to: dma.c.zip