run on mbed-os6.6.0

NumSD Card pinModule pinPin NamePort NameSPI
1CD/DAT3CSD10PB6-
2CMD/DISDID11PA_7MOSI
3VSS1GNDGND--
4VDD3.3V3V3--
5CLKCLKD13PA_5SCLK
6VSS2GNDGND--
7DAT0/DOSDOD12PA_6MISO
8DAT1----
9DAT2----

電源+/-を含め合計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/

History

run on mbed-os6.6.0 default tip

2021-01-14, by kenjiArai [Thu, 14 Jan 2021 00:07:07 +0000] rev 7

run on mbed-os6.6.0


updated os5. changed starting process(wait key input)

2020-05-02, by kenjiArai [Sat, 02 May 2020 03:44:56 +0000] rev 6

updated os5. changed starting process(wait key input)


changed fclose() sequence

2019-12-27, by kenjiArai [Fri, 27 Dec 2019 03:01:55 +0000] rev 5

changed fclose() sequence


updated OS ->os5.15.0 & added file size information

2019-12-24, by kenjiArai [Tue, 24 Dec 2019 10:30:40 +0000] rev 4

updated OS ->os5.15.0 & added file size information


modified main.cpp. added check_revision.cpp. run on latest revision.

2019-08-17, by kenjiArai [Sat, 17 Aug 2019 03:29:11 +0000] rev 3

modified main.cpp. added check_revision.cpp. run on latest revision.


run on mbed-os5.12.4 without additional sd-driver lib.

2019-06-04, by kenjiArai [Tue, 04 Jun 2019 11:25:49 +0000] rev 2

run on mbed-os5.12.4 without additional sd-driver lib.


latest library and Mbed-OS5

2018-08-29, by kenjiArai [Wed, 29 Aug 2018 09:28:47 +0000] rev 1

latest library and Mbed-OS5


SD Card control on Mbed OS5

2018-04-07, by kenjiArai [Sat, 07 Apr 2018 01:33:25 +0000] rev 0

SD Card control on Mbed OS5