run on mbed-os6.6.0
Num | SD Card pin | Module pin | Pin Name | Port Name | SPI |
---|---|---|---|---|---|
1 | CD/DAT3 | CS | D10 | PB6 | - |
2 | CMD/DI | SDI | D11 | PA_7 | MOSI |
3 | VSS1 | GND | GND | - | - |
4 | VDD | 3.3V | 3V3 | - | - |
5 | CLK | CLK | D13 | PA_5 | SCLK |
6 | VSS2 | GND | GND | - | - |
7 | DAT0/DO | SDO | D12 | PA_6 | MISO |
8 | DAT1 | - | - | - | - |
9 | DAT2 | - | - | - | - |
電源+/-を含め合計6本の結線で接続します。
Nucleoシリーズは、ボード上のLED(プログラムでLED1)がD13に接続されSPIモード設定時にSCLKとなる構成が多いので、LED1制御を止める必要があります。
For DISCO-F769NI
https://os.mbed.com/users/kenjiArai/code/DISCO-F769NI_BD_SD_Card_Control/
For DISCO-F469NI
https://os.mbed.com/users/kenjiArai/code/DISCO-F469NI_BD_SD_Card_Control/
Changes
Revision | Date | Who | Commit message |
---|---|---|---|
7:29fece78d927 | 2021-01-14 | kenjiArai | run on mbed-os6.6.0 |
6:7f8bc932cede | 2020-05-02 | kenjiArai | updated os5. changed starting process(wait key input) |
5:bbd17b77d405 | 2019-12-27 | kenjiArai | changed fclose() sequence |
4:6d6ea85642ed | 2019-12-24 | kenjiArai | updated OS ->os5.15.0 & added file size information |
3:4d7be22641c1 | 2019-08-17 | kenjiArai | modified main.cpp. added check_revision.cpp. run on latest revision. |
2:c88e7695167e | 2019-06-04 | kenjiArai | run on mbed-os5.12.4 without additional sd-driver lib. |
1:2fb39b6b3d96 | 2018-08-29 | kenjiArai | latest library and Mbed-OS5 |
0:342895df3f8f | 2018-04-07 | kenjiArai | SD Card control on Mbed OS5 |