cancel
Showing results for 
Search instead for 
Did you mean: 

STM32H7 HAL Read GPIOC13 with DMA into SRAM

MKocj.1
Associate II

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

3 REPLIES 3

PasteBin is blocking..

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..

Maybe, on a phone? For me it does not block. Chrome-like browser on Windows PC.

FBL
ST Employee

Hello @MKocj.1​,

Would you please add the useful content from the link at least to help you investigate?

Thank you,

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.