Content originally posted in LPCWare by fpg on Fri Nov 18 09:57:31 MST 2011
Hello all!
I'd like to use GPDMA to store text files into flash sent down to the microcontroller on UART. During setup of the DMA one must determine the transfer size but what if it is not a given constant? How could I stop DMA after the file is transferred?
Perhaps I could watch rx activity with a timeout and if no data is received for a while then disable DMA. Can I trust UART status flags when it is connected to DMA?
Or is there an option in DMA setup that I looked over?