Skip to main content
Visitor II
June 10, 2025
Question

FATFS for STM32u575

  • June 10, 2025
  • 1 reply
  • 516 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

 

    This topic has been closed for replies.

    1 reply

    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

    ireAuthor
    Visitor 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.

    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 ?