2026-03-01 8:13 PM - last edited on 2026-03-06 4:45 AM by mƎALLEm
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.
Solved! Go to Solution.
2026-03-06 3:25 AM - edited 2026-04-28 10:21 AM
Hello,
From this post it seems U5 supports only FileX but not FATFS in CubeMx.
2026-03-06 3:25 AM - edited 2026-04-28 10:21 AM
Hello,
From this post it seems U5 supports only FileX but not FATFS in CubeMx.
2026-03-06 3:34 AM - edited 2026-03-06 3:44 AM
@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:
See also:
PS:
Some more embedded file system options here.
2026-03-06 4:04 AM
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.