2024-01-08 07:38 AM
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.
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.
2025-02-05 08:08 AM
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.