2023-03-07 12:19 AM
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.
2023-03-07 01:46 AM
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.
2023-03-07 01:58 AM
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.
2023-03-07 02:07 AM
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.
2023-03-07 03:44 AM
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.
2023-03-07 03:47 AM
https://community.st.com/s/question/0D53W00000DioXCSAZ/fatfs-on-stm32f767-and-external-flash