Closed Dadigno closed 1 month ago
Hello @Dadigno,
Thank you for your contribution. I think your issue has been resolved in the frame of the Release v1.5.0. Could you please try the latest version and confirm if the problem is resolved?
Thanks again for your report.
Hello @Dadigno,
Thank you once again for your contribution. Since we have not received any further response, we will close this thread for now. If you encounter any more issues or have additional details to provide, please feel free to reopen the thread at any time.
Thank you for your understanding. Best Regards,
I am currently developing on a custom board based on the STM32U5 microcontroller with the MX25UM512 NOR flash memory.
I am following the example provided by the STM32CubeU5 SDK. The example works correctly when I first run it (so data is written correctly). However, upon subsequent runs following a reset, the previously written data seems to vanish, as a new "STM32.TXT" file is created without FX_ALREADY_CREATED
After conducting a thorough investigation, I discovered that the fx_media_format overwrites the boot record during each invocation. To avoid this I modified the example code as follow.
This code, previously checks if media can be opened without problems, if not formatting is executed than re-opened.
However, data is not maintained, which I think is because the boot record isn't updated after file creation. So, after a reset, when sector 0 is read, the STM32.TXT file is gone.
I am not sure why this is happening. I would appreciate any help you can provide.