cancel
Showing results for 
Search instead for 
Did you mean: 

STM32F103 How do I DMA Transfer Memory to GPIO with external Clock

call call
Associate
Posted on November 14, 2017 at 10:33

Hey all,

I am trying to transfer Memory from an STM32F103 to another Processor by GPIO over an 8 Bit Bus. I am working with CubeMX HAL Library and trying to set up the transfer so, that it is putting data on GPIO when an external clock is supplied. I am failing to set up the Timer to trigger a DMA request. Does anyone have an example that shows the setup code of what I am trying to achieve?

I can do manually triggered DMA Transfers on every Timer Interrupt, but the overhead of manually triggering is too big.

Thanks

3 REPLIES 3
David SIORPAES
ST Employee
Posted on November 14, 2017 at 12:03

Hello,

I've done something similar on STM32F401: a timer update event triggers a DMA transaction from a buffer in memory to a GPIO port.

Should be fairly easy to adapt it to your use case.

Hope it helps.

David

________________

Attachments :

Nucleo-F401-TIM1-DMAdataout.zip : https://st--c.eu10.content.force.com/sfc/dist/version/download/?oid=00Db0000000YtG6&ids=0680X000006HyHS&d=%2Fa%2F0X0000000b5i%2F2SLQoIz.I_ZdsZO99o0sPIAc9iom3b3gqjHinROunQA&asPdf=false
Posted on November 14, 2017 at 19:16

Thank you! This helped me understand how to set up the DMA part.

Now I am trying to figure out how to trigger the timer, namely TIM4, from an external source.

Posted on November 16, 2017 at 10:16

If you find any difficulty in configuring the timers I'd suggest to give a read to this interesting application note 

http://www.st.com/content/ccc/resource/technical/document/application_note/54/0f/67/eb/47/34/45/40/DM00042534.pdf/files/DM00042534.pdf/jcr:content/translations/en.DM00042534.pdf