Skip to content

Latest commit

 

History

History
40 lines (24 loc) · 1.07 KB

README.md

File metadata and controls

40 lines (24 loc) · 1.07 KB

STM32F103C8_uSD

Writing operations on a SD card for dataloggers, using a STM32F103 microcontroller and a Micro SD Card Adapter.

Code generated from STM Cube MX. IDE: Keil uVision V5

How to Test the code:

    To check if the code works for you, just do the wiring conections described below and load the code 
    to the microcontroller. It should create an .txt file insede de uSD card with the message : 
    
                                         "Test Done Successfully !" 
    
    **Only work for Low Capacit uSD cards (Under 2GB storage)

References:

Code Guide to the project:  http://narodstream.ru/stm-urok-88-sd-spi-fatfs-chast-1/
How to Use MMC/SDC:         http://elm-chan.org/docs/mmc/mmc_e.html

Microcontroller Pin Configuration:

 PB15: SPI2 MOSI  
 PB14: SPI2 MISO  
 PB13: SPI2 SCK  
 PB12: Chip Select (*User Define) 

MicroSD Card Adapter Pins:

CS      <--->   PB12 / 
SCK     <--->   PB13 /
MOSI    <--->   PB15 /
MISO    <--->   PB14 /
VCC     <--->   5V /  
GND     <--->   GND /