
Using SDCard with STM32F103C8T6 board.
Dependencies: mbed SDFileSystem
Using SD Card with STM32F103C8T6 board
Schematic
Wiring
STM32F103C8T6 | SDCard slot | |||
---|---|---|---|---|
GND | <=> | VSS | ||
+3.3V | <=> | VDD | ||
PB_5 | <=> | CMD/DI | ||
PB_4 | <=> | DO/DAT0 | ||
PB_3 | <=> | CLK | ||
PA_10 | <=> | CS/DAT3 |
Revision 2:cb349fd2a36a, committed 2 weeks ago
- Comitter:
- hudakz
- Date:
- Tue Feb 05 14:04:04 2019 +0000
- Parent:
- 1:e8699d7ca61a
- Commit message:
- Updated.
Changed in this revision
--- a/main.cpp Thu Apr 12 17:35:57 2018 +0000 +++ b/main.cpp Tue Feb 05 14:04:04 2019 +0000 @@ -1,15 +1,13 @@ -#include "stm32f103c8t6.h" #include "mbed.h" #include "SDFileSystem.h" #include "errno.h" -Serial pc(USBTX, USBRX); -SDFileSystem* fs; -FILE* fp; +Serial pc(PA_2, PA_3); +SDFileSystem* fs; +FILE* fp; int main() { - confSysClock(); //Configure system clock (72MHz HSE clock, 48MHz USB clock) pc.baud(9600); // Create and mount SDFileSystem
--- a/mbed-STM32F103C8T6.lib Thu Apr 12 17:35:57 2018 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,1 +0,0 @@ -http://mbed.org/users/hudakz/code/mbed-STM32F103C8T6/#727468adfd1d
--- a/mbed.bld Thu Apr 12 17:35:57 2018 +0000 +++ b/mbed.bld Tue Feb 05 14:04:04 2019 +0000 @@ -1,1 +1,1 @@ -http://mbed.org/users/mbed_official/code/mbed/builds/994bdf8177cb \ No newline at end of file +https://os.mbed.com/users/mbed_official/code/mbed/builds/3a7713b1edbc \ No newline at end of file