Skip to main content
Explorer
March 7, 2023
Question

How to connect FATFS to Nor Flash on STM32H747

  • March 7, 2023
  • 4 replies
  • 2208 views

Hi.

I am using a STM32H747BIT MCU with Nor Flash (MT25QL512)

Reading and writing Nor flash by setting in the IOC file was successful.

I want to set up a file system(FATFS) on Nor flash.

There is a library of FATFS in IOC.

So I want to use this.​

​Is there a site that explains how to set it up easily and in detail?

​Please Help me.

    This topic has been closed for replies.

    4 replies

    ST Employee
    March 7, 2023

    Hello @Son, Dong-Seong​ 

    Did you check Developing applications on STM32Cub with FatFs UM1721?

    But for the record, using the FatFs with external Flash or NOR flash... is not really recommended, it will write very slowly because FatFs doesn't manage either wear leveling or bad blocks. Thus you may get you flash quickly damaged.

    Explorer
    March 7, 2023

    Thank you for your response.

    Then what about using a different file system? Are there any other file systems that you can recommend? If so, please recommend a site with good instructions for connecting to NOR flash.

    ST Employee
    March 7, 2023

    Hello again @Son, Dong-Seong​ 

    I'd suggest the littlefs as a better alternative

    Graduate II
    March 7, 2023

    If you want to use FatFs you'd want to use 4KB sectors, and code DISKIO layer to read content, and erase/write blocks. Use BSP code for the QSPI functions.​