cancel
Showing results for 
Search instead for 
Did you mean: 

How to connect FATFS to Nor Flash on STM32H747

Son, Dong-Seong
Associate III

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.

5 REPLIES 5
Sarra.S
ST Employee

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.

Son, Dong-Seong
Associate III

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.

Sarra.S
ST Employee

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.

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
Up vote any posts that you find helpful, it shows what's working..

https://community.st.com/s/question/0D53W00000DioXCSAZ/fatfs-on-stm32f767-and-external-flash

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