Loading...
 
Skip to main content

System Workbench for STM32


STM32L0538 using FATFS with SPI

Hi,

follow the call of MX_FATFS_Init() and look what it does.

If you use a plain CubeMX generated project you have to fill the 5 skeleton functions in user_diskio.c
Then provide what these functions needs.

There are examples in STM32Cube_FW_L0... repository.

For example the IO functions:
STM32Cube_FW_L0_V1.5.0/Drivers/BSP/Adafruit_Shield/stm32_adafruit_sd.c

For example the example user_diskio.c:
STM32Cube_FW_L0_V1.5.0/Middlewares/Third_Party/FatFs/src/drivers/sd_diskio.c

Dieter