AnsweredAssumed Answered

DMA problem with UART1

Question asked by Alberto Penasa on Mar 19, 2014

Hello everybody,

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.

 

Any idea?

 

Note: i attached the initialization code of the DMA.

 

Regards,

Alberto

Original Attachment has been moved to: dma.c.zip

Outcomes