8 years, 5 months ago.

Does the mbed library support SD / File read / write on the STM32F746G board?

I would like to be able to save files / config data on the SD card or built in flash on the STM32F746G DISCO board if possible. I looked over the samples and the LocalFileSystem does not work and I see no SD or FLASH api's that I can use. Is this possible?

Question relating to:

mbed library sources mbed

1 Answer

8 years, 5 months ago.

Hi, localfile system is for mbed interface on some boards (mbed board). Please look at https://developer.mbed.org/cookbook/SD-Card-File-System

Looking at the code and the pins used, the SD on the dev board is SDMMC and uses 4 data pins. I don't see a direct cross to the SPI MISO, MOSI, CLK and SELECT. Is the SDMMC interface backwards compatible? These are the pins / functions according to the board docs:

SDMMC_CK (PC12) SDMMC_D0 (PC8) SDMMC_D1 (PC9) SDMMC_D2 (PC10) SDMMC_D3 (PC11) SDMMC_CMD (PD2)

posted by James Armstrong 05 Nov 2015