2014-03-17 03:01 PM
Previously I was using usart2 dma TX and had an int and isr that would handle the RX data.
Can I have the dma enabled for both tx and rx for usart 2 ? It seems weird them both pointing at the same DR ? I've figured out the streams to use and about to start test/modifying, just wanted to check that what I'm doing is possible. Thanks2014-03-17 03:28 PM
The USART->DR points at different internal registers, peripherals generally don't behave like memory cells.
Some other TX/RX examples2014-03-17 07:50 PM
Thanks Clive, great examples. I've replaced my interrupt based circular buffer with a dma circular buffer. I still use the interrupt but just to calculate the size, I have a wrapper that has helper functions and such to deal with the dmabuffer, perform crc and find other buffers within that buffer.