STM32H7 HAL Read GPIOC13 with DMA into SRAM
Hello there, I am trying to read GPIO pins (on row C) with DMA into SRAM, using TIM1 as clock
I am using STM32H750B-DK
Essentialy, when TIM1 goes high DMA should read from GPIO to SRAM continuously (until its stopped by a user :))
Here is what I tried so far to read GPIOC with 1Mhz and then check if PIN 13 (Blue Button) is high: https://pastebin.com/gxXSmxHg
Unfortionatly, I cannot get this to work, because it seams user button is never high, even if I press it (and 1Mhz should be plenty fast for my slow button press)
This example is only for one pin, but at the end I would like to read 4pins continuously
I would realy like to use HAL, because then this code could be more portable between STM families
also UART is not important in this example, I only use it for debugging
Hope someone can tell me, what I am doing wrong and why my example doesnt work