cancel
Showing results for 
Search instead for 
Did you mean: 

Multiple DMA to Peripheral channels triggered by single timer?

StefanH
Associate III

I have an STM32G473 and would like to use DMA to send a circular buffer to a set of 8 GPIOs, 6 using port A, 2 using port B. Two uint32_t arrays of equal length work as circular buffer, to be fed in the respective A or B BSRR register. Timer 7 (can pick most others, including tim8) is using the 'update' event to trigger the first 'Memory to Peripheral' DMA, but CubeMX won't allow me to create a second DMA channel for port B fed using the same timer.

How can I set this up (manually)?

I can't change the board layout.

2 REPLIES 2
Issamos
Lead II

Hello @StefanH 

This post answer a similar questions. It may help you.

Best regards.

II

TDK
Guru

You can't use the same trigger twice, but you can set up two triggers on that timer which trigger at the same time. Consider using the CC1 and CC2 triggers and setting those to the same value.

If you feel a post has answered your question, please click "Accept as Solution".