Skip to content

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

Notifications You must be signed in to change notification settings

artsemione/STM32F103C8_uSD

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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 /

About

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

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages