Skip to main content
Visitor II
May 1, 2025
Question

STM32H573 littlefs integration in SRAM3

  • May 1, 2025
  • 1 reply
  • 575 views

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.

    This topic has been closed for replies.

    1 reply

    Technical Moderator
    May 6, 2025

    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.

    Visitor II
    May 6, 2025

    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? 

    ST Employee
    May 6, 2025

    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