cancel
Showing results for 
Search instead for 
Did you mean: 

STM32H573 littlefs integration in SRAM3

ranyazmiti
Associate

Hi everyone,

I'm new to embedded systems and file systems, and I'm currently trying to integrate LittleFS into the STM32H573-DK board using SRAM3 as storage.

I’ve looked at some examples and documentation, but I’m still confused about how to set things up correctly. I would really appreciate a step-by-step guide with simple explanations—not just how to do things, but also why each step is necessary.

Specifically:

  • How do I configure the memory and file system in STM32CubeIDE?

  • How should I implement the block device functions for SRAM3?

  • What are the important parameters when initializing LittleFS?

  • How do I actually test if LittleFS is working?

I'm using STM32CubeIDE for this project, and for now I’d like to stick to SRAM3 before later trying OSPI.

Any help, examples, or explanations would be greatly appreciated! Thank you in advance.

3 REPLIES 3
Saket_Om
ST Employee

Hello @ranyazmiti 

Why did you choose to use LittleFS instead of FATFS or FileX? We have examples of FATFS and FileX in our STM32 firmware.

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

It's a university project based on littlefs, so I don't have the choice.

The integration for SRAM3 is done. I'm struggling with OSPI now, can you help me with it? 

Hello @ranyazmiti,

ST offers a wealth of educational resources on OSPI, tailored to various project needs. Here are some useful links:

  • For OSPI with bootflash MCU: Link
  • For OSPI with TouchGFX: Link
  • For OSPI with external flash memory (IS25LX256 from ISSI): Link

Additionally, I recommend referring to AN5050, the reference manual (RM) for your STM32 MCU, and the programming manuals. Should you encounter any difficulties with these resources, please feel free to reach out.

Good luck with your project!

Kind regards,

DHIF Khaled

Please mark my answer as best by clicking on the “Accept as solution" button if it fully answered your question. This will help other users find this solution faster.​