Skip to main content
Associate II
June 10, 2025
Question

FATFS for STM32u575

  • June 10, 2025
  • 1 reply
  • 518 views

Hi! I read from many posts that it's possible to use FAFTS with this board, but I can't get the project to compile without errors. The weird thing is that errors appear between the files of the libraries themselves (attached photo). Variables that are defined show up as undefined. Moreover, in the main I have also defined this type of variables and it accepts them well. Any idea what might be going on?

Thanks

ire_0-1749572442680.png

 

1 reply

Andrew Neil
Super User
June 10, 2025

@ire wrote:

Variables that are defined show up as undefined.


Those messages are not complaining about variable names: they are saying that the type names FATFS and FIL are not defined.

Probably, you're missing a header file - the one which defines those types.

Please give more detail on how you created this project.

 


@ire wrote:

 this board


What board? You've mentioned a chip, but haven't said what board it's on.

 

How to write your question to maximize your chances to find a solution

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.
ireAuthor
Associate II
June 11, 2025

I'm using the NUCLEO U575ZI-Q. I created the project with STM32CubeMX, adding FreeRTOS and starting SDMMC1. As FatFs can't be implemented directly, I started it in a project for STM32L4R9ZGTx and then I put the all the files for FatFs in my project.

Andrew Neil
Super User
June 11, 2025

@ire wrote:

 FatFs can't be implemented directly.


Not sure what you mean by that?

 


@ire wrote:

I started it in a project for STM32L4R9ZGTx and then I put the all the files for FatFs in my project.


Again, it sound like you missed one.

If you do a text search through all those files, is there anywhere that defines the the type names FATFS and FIL ?

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.