2023-04-18 12:02 AM - edited 2023-11-20 07:52 AM
Good afternoon.
I am using BluePill STM32F103C8T6 board.
I wanted to connect an SD card to it and use it as Mass Storage
All examples use the SDIO interface for connection.
But I don't have this item in CubeMX. How can I mount an SD card
Solved! Go to Solution.
2023-04-18 12:20 AM
This version doesn't have SDIO. See the datasheet table 3 page 13 : https://www.st.com/resource/en/datasheet/stm32f103cb.pdf
Only the 64 or high has SDIO
2023-04-18 12:20 AM
This version doesn't have SDIO. See the datasheet table 3 page 13 : https://www.st.com/resource/en/datasheet/stm32f103cb.pdf
Only the 64 or high has SDIO
2023-04-18 01:48 AM
Btw it depens on your SD card but you may try SPI if possible
2023-04-18 01:53 AM
I could not find examples where the card is connected via SPI to work in Mass Storage mode
2023-04-18 01:58 AM
What kind of device do you use?
2023-04-18 02:03 AM
2023-04-18 02:10 AM
You can read up on SD cards and there layout: https://www.electroniccircuitsdesign.com/pinout/sd-microsd-card-pinout.html
D0 can be used as SDO and CMD can be used as SDI, DAT3 is CS.
Please know that datarates are far slower dan SDIO.