cancel
Showing results for 
Search instead for 
Did you mean: 

Can we please have an option in CubeMX for interfacing with fatfs over spi for microcontrollers that don't have a sdio interface? Alternatively has anybody out there written a user_diskio.c and user_diskio.h that i could use? thanks

Taylor Welsh
Associate II
 
4 REPLIES 4

HAL Example using SPI attached SD Card using the common BSP abstraction

STM32Cube_FW_F7_V1.12.0\Drivers\BSP\Adafruit_Shield\stm32_adafruit_sd.c

STM32Cube_FW_F7_V1.12.0\Projects\STM32F722ZE-Nucleo\Applications\FatFS\FatFs_uSD\readme.txt

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

what would I need to do in order to use this code with a project generated under CubeMX?

I guess you'd need to figure out how it uses BSP or user/template code in other circumstances, and then apply that to your board. Sorry I don't CubeMX

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

For others stuck in this position i found kiwih's drivers very useful, it's an easy drop in implementation for existing CubeMX projects.

https://github.com/kiwih/cubemx-mmc-sd-card