2026-04-30 2:02 AM - last edited on 2026-04-30 2:21 AM by mƎALLEm
Hi,
I am using the Nucleo-L552ZE-Q board.
I use STM32CubeMX version 6.17.0 which appears to be the laters version.
When generating code for SD card FAT FS using CubeMX i get "sd_disckio.c" file containing only stubs of the functions, without content (the stub functions just return error value/no_init value).
In CubeMX i have done some fault finding steps already with no luck.
I have configured SDMMC1 before enabling FATFS. I am staying with default values, exvcept clock divider (Currently using 8). I am using Mode "SD 4 wide bus"
Under Middleware->FATFS i enable it for SD card. SOMMC instance is SDMMC1, BSP code none.
The rest is default values. FAT FS version in cubeMX is R0 12c
I have tried investigating the options in CubeMC, but i cant spot anything wrong so far. I also tried starting from scratch with a new project in CubeMX, with the same result: sd_diskio.c only contain stubs.
Does anyone have a fix for this issue? Or can anyone point out where i find the sd_diskio.c implementation for this MCU so i can place it manually?