cancel
Showing results for 
Search instead for 
Did you mean: 

Can't find FATFS Middleware option for STM32U5 SPI SD Card Integration in CubeMx

MKash.3
Associate

Dear ST Community,

I hope you are doing well.

I am currently working with the STM32U5 development board and would like to integrate an SD card module using SPI communication.

However, while configuring my project in STM32CubeMX / CubeIDE, I was unable to find the FATFS middleware option under the middleware section. My goal is to use FATFS with an SD card operating in SPI mode.

Could you please guide me on how to enable or integrate FATFS for SPI-based SD card communication on the STM32U5 series? If manual integration is required, I would appreciate any official documentation, example projects, or recommended procedures.

1 ACCEPTED SOLUTION

Accepted Solutions
mƎALLEm
ST Employee

Hello,

From this post it seems U5 supports only FileX but not FATFS in CubeMx.

To give better visibility on the answered topics, please click on "Accept as Solution" on the reply which solved your issue or answered your question.

View solution in original post

3 REPLIES 3
mƎALLEm
ST Employee

Hello,

From this post it seems U5 supports only FileX but not FATFS in CubeMx.

To give better visibility on the answered topics, please click on "Accept as Solution" on the reply which solved your issue or answered your question.

@mƎALLEm wrote:

U5 supports only FileX but not FATFS.


You mean, ST only provides FileX in a ready-to-go format for the U5.

 

@MKash.3  There is nothing in the U5 itself to prevent it running FatFs - just like any other microcontroller.

FatFs is not limited to any particular microcontroller or architecture:

https://elm-chan.org/fsw/ff/

 

See also: 

https://community.st.com/t5/stm32cubemx-mcus/fatfs-middleware-for-stm32u5-mcus/m-p/884252/highlight/true#M35350

 

PS:

Some more embedded file system options here.

A complex system that works is invariably found to have evolved from a simple system that worked.
A complex system designed from scratch never works and cannot be patched up to make it work.

The OP is asking for STM32U5/FatFS configuration in CubeMx.

It's obvious FatFS could run on STM32U5 but there is no ready to use FatFS example on that series. The user needs to port FatFS to STM32U5 himself.

To give better visibility on the answered topics, please click on "Accept as Solution" on the reply which solved your issue or answered your question.