AnsweredAssumed Answered

Full duplex USART example for STM32F722

Question asked by David Pekin on Feb 15, 2018
Latest reply on Feb 16, 2018 by T J



Ive worked with the two boards comm DMA sample program and it works but it only works half duplex.

The flow is:


Init UART handle,

Transmit dma 

wait for tx interupt callback

reinitalize UART handle

Recieve dma 

wait for rx interrupt callback

loop back to top 


That sequence can be called over and over and it works.  But, if you only initiialize the UART handle at the beginning, it does not work.  You can make multiple transmit calls that work but calling receive dma after transmit (after waiting for tx callback) does not.


Does anyone have sample code for interrupt driven full duplex DMA UART tx & rx?