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/

Committer:
kenjiArai
Date:
Thu Jan 14 00:07:07 2021 +0000
Revision:
7:29fece78d927
Parent:
6:7f8bc932cede
run on mbed-os6.6.0

Who changed what in which revision?

UserRevisionLine numberNew contents of line
kenjiArai 0:342895df3f8f 1 /*
kenjiArai 0:342895df3f8f 2 * mbed Application program for the mbed
kenjiArai 0:342895df3f8f 3 * FatFs Check program /monitor part
kenjiArai 0:342895df3f8f 4 *
kenjiArai 7:29fece78d927 5 * Copyright (c) 2015,'18,'19,'20,'21 Kenji Arai / JH1PJL
kenjiArai 6:7f8bc932cede 6 * http://www7b.biglobe.ne.jp/~kenjia/
kenjiArai 0:342895df3f8f 7 * https://os.mbed.com/users/kenjiArai/
kenjiArai 0:342895df3f8f 8 * Created: May 5th, 2015
kenjiArai 0:342895df3f8f 9 * Revised: June 14th, 2015
kenjiArai 7:29fece78d927 10 * Revised: August 8th, 2020
kenjiArai 7:29fece78d927 11 * Revised: January 14th, 2021
kenjiArai 0:342895df3f8f 12 */
kenjiArai 0:342895df3f8f 13
kenjiArai 0:342895df3f8f 14 // Function prototypes --------------------------------------------------------
kenjiArai 0:342895df3f8f 15 void mon(void);
kenjiArai 7:29fece78d927 16 float get_disk_freespace(void);
kenjiArai 4:6d6ea85642ed 17 uint32_t get_data_file_size(const char *const file_name);