cancel
Showing results for 
Search instead for 
Did you mean: 

Detecting SD card with quad data on STM32 (H7)

Duddie
Associate II

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!

3 REPLIES 3

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 Venmo
Up vote any posts that you find helpful, it shows what's working..
Duddie
Associate II

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.

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 Venmo
Up vote any posts that you find helpful, it shows what's working..