Skip to main content
Son, Dong-Seong
Associate III
Mar 7, 2023 8:19 AM UTC
Question

How to connect FATFS to Nor Flash on STM32H747

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.

5 replies

ST Employee
Mar 7, 2023 9:46 AM UTC

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.

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.
Tesla DeLorean
Guru
Mar 7, 2023 11:47 AM UTC
Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..
Son, Dong-Seong
Associate III
Mar 7, 2023 9:58 AM UTC

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
Mar 7, 2023 10:07 AM UTC

Hello again @Son, Dong-Seong​ 

I'd suggest the littlefs as a better alternative

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.
Tesla DeLorean
Guru
Mar 7, 2023 11:44 AM UTC

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.​

Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..