cancel
Showing results for 
Search instead for 
Did you mean: 

GPIO to memory transfers through DMA

armindavatgaran
Associate III
Posted on May 01, 2015 at 15:43

Hello

Which DMA(1,2), stream and channels can be used for GPIO to memory transfers?

Thanks.

4 REPLIES 4
Posted on May 01, 2015 at 17:34

I would expect the manual and a little experimenting would get you to a definitive set of answers. The main driver I have is what generates the request signal as that dictates the channel/stream relationship.

I've posted several working examples

https://my.st.com/public/STe2ecommunities/mcu/Lists/cortex_mx_stm32/Flat.aspx?RootFolder=https://my.st.com/public/STe2ecommunities/mcu/Lists/cortex_mx_stm32/Data%20transfer%20from%20GPIO%20port%20to%20RAM%20buffer%20using%20DMA%20upon%20receiving%20a%20trigger%20signal%20on%20the%20timer%20capture%2...

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
stcom9174
Associate II
Posted on October 27, 2017 at 09:25

Hello Clive One,

Your link doesn't work for me - do you have an updated link or maybe it is posted somewhere else?

The particular part I have does have an internal USB peripheral; but the design I am using has external USB attached to GPIO (FIFO); would like to be able to DMA that as an 8-bit register to/from internal SRAM.

In this case would have to be async unless I can use one of the control signals as a sync pulse; which may be possible.

Thanks In Advance,

John W.

Posted on October 27, 2017 at 10:21

Clive's link is

https://community.st.com/0D50X00009XkiEgSAJ

 

Note, that there is a significant difference between DMAs in F2/F4/F7 and F1/F0/L0/L1/L4; and also there's a difference in placing the GPIOs in the buses system, the significantly differing being F1 and L0 (and, of course, H7, which is another world on its own). As Clive said, the RM and the DMA ANs (AN4101/AN4031 and AN4666 which deals specifically with your question) are your friends.

JW

Posted on October 27, 2017 at 11:04

Thanks for the quick help Jan, yes, on this particular processor; since they did an async I/F - will be difficult - still; nice to see how you guys have been dealing with it.

Thanks Again; and Have A Great Weekend!

John W.