Skip to main content
MKocj.1
Associate II
March 15, 2023
Question

STM32H7 HAL Read GPIOC13 with DMA into SRAM

  • March 15, 2023
  • 2 replies
  • 1670 views

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

This topic has been closed for replies.

2 replies

Tesla DeLorean
Guru
March 15, 2023

PasteBin is blocking..

Tips, Buy me a coffee, or three.. PayPal VenmoUp vote any posts that you find helpful, it shows what's working..
Pavel A.
Super User
March 15, 2023

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

Technical Moderator
March 22, 2023

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 "Best answer" on the reply which solved your issue or answered your question.Best regards,FBL