cancel
Showing results for 
Search instead for 
Did you mean: 

I need to format the memory before fx_media_open will work

Dadigno
Associate III

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.

 

 

 

0 REPLIES 0