Using BDMA2 on a timer to control a GPIO port using a STM32H7
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2022-08-01 5:00 PM
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...
- Labels:
-
DAC
-
DMA
-
STM32H7 Series
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2022-08-01 5:18 PM
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
Up vote any posts that you find helpful, it shows what's working..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2022-08-01 5:37 PM
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
Up vote any posts that you find helpful, it shows what's working..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2022-08-01 5:41 PM
Thanks for the really quick response :) I will have a look at the example...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2022-08-01 6:31 PM
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
