2023-09-02 03:19 AM - edited 2023-09-02 03:20 AM
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.
2023-09-02 03:52 AM
2023-09-02 06:03 AM
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.