If there is no SD Card in the slot, sdmmc_card_init returns (with 0x107) after about 29ms for SDMMC Mode and 21ms for SPI Mode.
It's way too long. How to detect SD card existence faster?
Fast SDCard existence detect
-
- Posts: 54
- Joined: Mon Dec 05, 2016 12:34 am
Fast SDCard existence detect
Last edited by KanyeKanye on Fri Jul 26, 2019 10:02 am, edited 1 time in total.
Re: Fast SDCard existence detect
don't know why 21ms needs to be faster. A human cannot even react to 21ms.
But anyway, you can read or set up a IRQ to check the SDCard switch on the socket.
But anyway, you can read or set up a IRQ to check the SDCard switch on the socket.
-
- Posts: 54
- Joined: Mon Dec 05, 2016 12:34 am
Re: Fast SDCard existence detect
I have no more pins for CD pin. I store data in the loop and 28ms is much too long for waiting. I believe there is some way (sanding some CMDx command) that would answer immediately on every card.
Who is online
Users browsing this forum: No registered users and 79 guests