cancel
Showing results for 
Search instead for 
Did you mean: 

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

Claydonkey
Senior

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...

4 REPLIES 4

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
Up vote any posts that you find helpful, it shows what's working..

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
Up vote any posts that you find helpful, it shows what's working..
Claydonkey
Senior

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

Claydonkey
Senior

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