Skip to main content
aamirali641989
Associate III
May 27, 2014
Question

SPI DMA example STM32F205RBT6 (Rx & Tx together)

  • May 27, 2014
  • 2 replies
  • 551 views
Posted on May 27, 2014 at 10:15

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 bytes

2. After 1 byte tx, wait until one byte received.

3. then transmit next byte until all 512 bytes tx & Rx
    This topic has been closed for replies.

    2 replies

    Tesla DeLorean
    Guru
    May 27, 2014
    Posted on May 27, 2014 at 15:55

    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&currentviews=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=543
    Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..
    waclawek.jan
    Super User
    May 27, 2014
    Posted on May 27, 2014 at 19:12

    > 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