Skip to main content
jacopokunak
Associate III
April 5, 2024
Question

FATFS Middleware for STM32U5 MCUs

  • April 5, 2024
  • 2 replies
  • 4821 views

Hi,

I would like to create a project with CubeMX where I handle files on a SD card with FAT Fs file system using a STM32U5 mcu.

When I select the STM32U5 MCU in CubeMX  the FATFS middleware is not available, while If I select other MCUs series like STM32F for example the FATFS Middleware is available.

I tried to find the FATFS software package to manually install it into CubeMX but I haven't found nothing.

Is FATFS middleware available for STM32US MCUs for CubeMX ?

 

Thanks for your help.

 

 

2 replies

Technical Moderator
April 5, 2024

Hello @jacopokunak ,

 

First let me thank you for posting and welcome to the ST Community.

I suggest please that you provide the STM32CubeMX version.

 

Thanks.

Mahmoud.

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.
jacopokunak
Associate III
April 5, 2024

Hi,

It's CubeMX 6.11.0.

Andrew Neil
Super User
April 5, 2024
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.
jacopokunak
Associate III
April 5, 2024

Thank you @Andrew Neil for linking that post.

From that discussion it seems like there is no intention from ST to support FATFS Middleware for STM32U5 MCUs in CubeMX at all am I right ? 

If we want to use FATFS we need to get the source code from https://github.com/STMicroelectronics/stm32_mw_fatfs/tree/master  include it in our projects and configure it manually ?

I do not want to use FileX in my project since it doesn't need to run with RTOS.

Technical Moderator
April 5, 2024

Hello @jacopokunak ,

 

In the STM32CubeU5 firmware, the file system has been migrated from FATFS to FileX.

I suggest that you to take a look at this POST in order to know more about it.

It demonstrates also how to develop a basic SD card file operations application.

 

Thanks. 

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.