Skip to main content
Visitor II
April 7, 2025
Solved

Timer controlled GPDMA write to GPIO

  • April 7, 2025
  • 1 reply
  • 371 views

Hi.

In AN5593, How to use the GPDMA for STM32 MCUs, on page 31, it says:

"For some application needs, a timer request to GPDMA can be used to initiate a data transfer not involving timer
registers read/write, but other memory-mapped location, like for memory‑to‑memory transfers."

How exactly do I do this?

My precise use case: I have an 8*3 LED matrix, with the 8 rows connected to PA0:7. I have a uint8_t[3] of the data I want displayed and TIM8 configured at the frequency I want to update the columns at.

Thanks for the help!

    This topic has been closed for replies.
    Best answer by SamMiddleton

    I figured out a way that works: GPDMA in circular mode (nb: on the u5 series this requires using the linked list mode) with a software request and a trigger on TIM15 TRGO

    1 reply

    SamMiddletonAuthorAnswer
    Visitor II
    April 8, 2025

    I figured out a way that works: GPDMA in circular mode (nb: on the u5 series this requires using the linked list mode) with a software request and a trigger on TIM15 TRGO