2024-04-25 12:04 AM
Hii, I was trying to connect microsd card module with stm32, i was unable to connect with it because the SDIO interface was not available at stm32f407 discovery board. also it support spi communication but not getting how to get with it. can some one suggest how to do it.
2024-04-25 12:40 AM
It is possible to use an SD card with SDIO interface on the STM32F407 discovery by building a simple adapter for the pin headers. You can carefully solder wires to an SD-microSD adapter and insert a microSD card.
But beware, the F407 has silicon bugs in the SDIO hardware which limits the maximum possible frequency. See the errata sheet. Those are fixed in newer controllers such as the F746. The 32F746GDISCOVERY happens to have a microSD slot with full SDIO wiring, which is much easier to use than this adapter.
2024-04-25 01:03 AM
As I recollect the PLL can run the SDIO at 75 MHz giving a 37.5 MHz wire speed which can get quite serviceable performance from the cards.
2024-04-25 05:05 AM
yes but in the discovery board the pin is not available to select ie. in cube mx
2024-04-25 05:46 AM
It probably collides with some on-board periphery in a harmless way. I don't remember the details. Check which pins are needed for SDIO and how they are used on the board. You can probably ignore the collisions. Disable the periphery blocks that cause collisions (probably the audio codec).
2024-04-26 01:11 AM
Can you suggest me with using the microsd card module uing SPI interface
2024-04-26 01:31 AM
I haven't used SPI with SD-Cards yet, but there should be plenty of examples online
2024-04-26 01:43 AM - edited 2024-04-26 02:04 AM
You could modify the board : if you dont need the audio dac , cut the trace and then can use the cpu pin for SDIO;
if still want/need the dac, remap the I2S3_SD to PB5 and then set SDIO 1 bit mode :
And connect PB5 with a wire to cs43L22 sdin , to get it working - if you need it.