2017-11-14 01:33 AM
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
2017-11-14 03:03 AM
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=false2017-11-14 11:16 AM
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.
2017-11-16 02:16 AM
If you find any difficulty in configuring the timers I'd suggest to give a read to this interesting application note