Skip to main content
Graduate
January 8, 2024
Question

I need to format the memory before fx_media_open will work

  • January 8, 2024
  • 1 reply
  • 1381 views

I'm developing a custom board with an STM32U5 MCU and a MX25UM51245 NOR flash memory. I'm building upon this example, which works flawlessly, but I don't want to format the memory every time the code runs. To achieve this, I disabled the Driver calls OctoSPI Init and Driver Erases the OctoSPI after init options in STMCubeMX, as described in the README.md.

Dadigno_1-1704727462986.png

This prevents the fx_media_format function from being called, but fx_media_open fails due to an unknown reason. Does anyone have any ideas how to resolve this issue?

I'm attaching the new code generated by STM32CubeMX after modification, allowing you to compare it with the original app_filex.c file for any differences that might be causing the issue.

 

 

 

    This topic has been closed for replies.

    1 reply

    Visitor II
    February 5, 2025

    Just be sure you have at least 2048 bytes allocated to the FileX Application Thread. The default of 512 is far too small and will fail. Bump the FileX memory pool size to match.