Help with FileX/LevelX Implementation on STM32U585AII6Q with NOR Flash (IS25LP064D)
Hello Microsoft Community,
I’m currently working on implementing a file system using FileX and LevelX on external NOR Flash (IS25LP064D) connected to the STM32U585AII6Q board.
Flash Memory Specifications:
- Sector Size: 4 KB
- Block Size: 32 KB / 64 KB
- Total Flash Size: 64 Mbit / 8 MB
- Page Size: 256 bytes
Requirement:
I need to create a .txt log file using FileX and once the file reaches 100 KB, it should be deleted and a new file created in its place.
Media Initialization Parameters Used:
- Total clusters: 300
- Bytes per sector: 512
- Sectors per cluster: 8
- Hidden sectors: 0
- Heads and sectors per track: 1
- Number of FATs: 1
Issue:
When writing logs using FileX, I receive a FX_IO_ERROR after a few logs are written—even though there is still available space on the flash.
My Questions:
- What are the correct parameters to pass to fx_media_format() for this NOR flash setup (e.g., sector size, cluster size, number of FATs)?
- Is there a formula or guideline for determining these parameters when using NOR flash with FileX/LevelX?
- I was able to initialize the media with a size of 150 KB—what is the minimum required size for successful media initialization
Thanks
Shilpa
