Skip to main content
Duddie
Associate II
May 16, 2021
Question

Detecting SD card with quad data on STM32 (H7)

  • May 16, 2021
  • 2 replies
  • 1211 views

Hi,

I have my design using STM32H750 (which does not matter in fact it is general question) and I uses Yamaichi microSD connector hat does not have card detect pin. In single data mode, I use one of the SD-Card pins to detect card bit obviously I cannot use that pin in quad data mode.

What are my options do detect removal/insertion? Periodically check SD card?

Any suggestion?

Thanks!

This topic has been closed for replies.

2 replies

Tesla DeLorean
Guru
May 16, 2021

If you have pull-ups on the pins, any of them being low, at any point, would be a reasonable indicator.

Tips, Buy me a coffee, or three.. PayPal VenmoUp vote any posts that you find helpful, it shows what's working..
Duddie
DuddieAuthor
Associate II
May 16, 2021

Technically true, but if I am not mistaken I cannot read them via GPIO if I have assigned them to SDIO DATA pins. And especially I cannot create an interrupt on that. Unless there is some hidden functionality within SDIO itself that I am not aware.

Tesla DeLorean
Guru
May 16, 2021

The GPIO IDR and EXTI should work either way.

You could send simple command to see it the card responds.

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