cancel
Showing results for 
Search instead for 
Did you mean: 

SDMMC example code FATFS on SD Card, file read and write.

MHein
Associate II

I am trying to access a Micro SD Card with the STM32L476 (Nucleo), using cubeMX with STM32CubeL4 Firmware Package V1.12.0 / 22-May-2018 and SW4STM32. So I activated SDMMC1, FATFS (SD Card) and generated the code. Now - how do I mount FATFS and read and write to this card? I cannot find any code examples nowhere. Thanks in advance for some actual sample code.

3 REPLIES 3

You'll need to port to your board

STM32Cube_FW_L4_V1.12.0\Drivers\BSP\STM32L476G_EVAL\stm32l476g_eval_sd.c

STM32Cube_FW_L4_V1.12.0\Projects\STM32L476G-EVAL\Applications\FatFs\FatFs_uSD_Standalone

Open to offers for a working demo on the NUCLEO-L476RG

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
Ade J
Associate II

@Community member​ 

"Open to offers for a working demo on the NUCLEO-L476RG"

Did you find anything? Cuz I'm also using Nucleo-l476RG for my HAB system, just can't seem to get the SDMMC working.

Kind regards A

I'm not sure I needed to find anything. I do this professionally, that's all, so I value my time/effort.

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..