Skip to main content
Associate III
August 2, 2022
Question

Using BDMA2 on a timer to control a GPIO port using a STM32H7

  • August 2, 2022
  • 4 replies
  • 1113 views

I feel that CubeMx and HAL will reveal no solution to this but I still would like a solution to this problem. The GPIO pins on the H7 are on the AHB4 bus, as is BDMA2. I wish to set a timer to cycle through a buffer toggling a GPIO port outputs. Is this even possible? I've had good result using BDMA on DAC2 so I'm aware of the 32Kb in the SRD RAM and understand that this will be the only memory addressable...

This topic has been closed for replies.

4 replies

Tesla DeLorean
Guru
August 2, 2022

Had it working here onto GPIOx->ODR, BSRR, IDR as I recall

The DMAMUX should constrain the available TIM for triggering

Pattern buffer using local RAM

Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..
Tesla DeLorean
Guru
August 2, 2022

See

STM32Cube_FW_H7_V1.5.0\Projects\NUCLEO-H743ZI\Examples\DMA\DMAMUX_RequestGen\Src\main.c

Drives LEDs on GPIOB->ODR as I recall

Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..
Associate III
August 2, 2022

Thanks for the really quick response :) I will have a look at the example...

Associate III
August 2, 2022

That's such an elegant and simple solution... I've set it all up and all the parameters look good - I just have to get a logic probe to it. Fingers crossed