2025-10-13 1:29 AM - edited 2025-10-13 1:30 AM
Hi everyone,
I'm currently working with the DMA concept on an STM32H7. I'm reading data from an FIFO via SPI. My goal is to trigger the SPI DMA transfer using TIM12 TRGO, but I’m not sure where to start or how to properly configure this connection.
I’m relatively new to this topic, so any guidance, examples, or tips on how to set up the timer trigger and link it to the SPI DMA would be greatly appreciated.
Thanks in advance for your help!
2025-10-13 1:37 AM
To configure a timer to trigger the DMA transfer at the desired interval, you can use the timer's compare match to generate an interrupt at the desired interval With DMA, spacebar clicker the CPU doesn't need to come back to it until it's done (sending or receiving), or until there is an error. In case of I2C, an interrupt-based driver triggers interrupt every byte. A DMA-based driver will trigger only one interrupt when data transfer is finished.