2014-05-27 01:15 AM
Is there any example code for implementing DMA on stm32F205rbt6 where I can do rx & tx together.
1. I have to send 512 bytes & receive 512 bytes2. After 1 byte tx, wait until one byte received.3. then transmit next byte until all 512 bytes tx & Rx2014-05-27 06:55 AM
F2 and F4 stuff is very similar, if not identical
I might have posted other examples, found this with a quick Google[DEAD LINK /public/STe2ecommunities/mcu/Lists/STM32Discovery/Flat.aspx?RootFolder=/public/STe2ecommunities/mcu/Lists/STM32Discovery/SPI%20with%20DMA%20loopback&FolderCTID=0x01200200770978C69A1141439FE559EB459D75800084C20D8867EAD444A5987D47BE638E0F¤tviews=543]https://my.st.com/public/STe2ecommunities/mcu/Lists/STM32Discovery/Flat.aspx?RootFolder=%2Fpublic%2FSTe2ecommunities%2Fmcu%2FLists%2FSTM32Discovery%2FSPI%20with%20DMA%20loopback&FolderCTID=0x01200200770978C69A1141439FE559EB459D75800084C20D8867EAD444A5987D47BE638E0F¤tviews=5432014-05-27 10:12 AM
> 2. After 1 byte tx, wait until one byte received.
Isn't this a potential confusion? In SPI, Tx and Rx happens simultaneously on the bus, although I admit that from the software point of view one first writes the Tx register then waits until the Rx register gets full. JW