2025-05-27 10:07 AM
I'm doing a project with a SD card, but I have not been able to make it work.
I'm using an STM32F401RCT6 and a Micro SD Card Adapter (HW-125), I want to connect them via SPI. I've followed several tutorials online, but I haven't been able to get it to work.
Do you know any tutorial or resource that could help me?
2025-05-27 10:21 AM
Welcome to the forum.
You'll need to give some more details of what, exactly, you've tried - both hardware and software - and what testing & debugging you've done.
See: How to write your question to maximize your chances to find a solution.
@Demiañ wrote:a Micro SD Card Adapter (HW-125)
Please give a link
@Demiañ wrote:Do you know any tutorial or resource that could help me?
Lots of resources here:
https://elm-chan.org/fsw/ff/#:~:text=Get%20current%20time-,Resources,-The%20FatFs%20module
2025-05-27 11:58 AM
Not sure the HW-125 is ideal, the one that comes up takes a 5V input, has a regulator to get to 3.3V on the card side
The STM32F4 isn't running at 5V, so the Arduino / 5V adapter isn't helping you here. The WaveShare MicroSD adapter is a better choice. Pull-up's on the right pins, and a socket sense pin.
ST has an SPI SD Card example under the AdaFruit / Nucleo board support.
https://www.waveshare.com/micro-sd-storage-board.htm