You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was wondering if FileX is useful for a use case where the microcontroller resets, however, it has been writing data to non-volatile memory (in this case NAND).
When I call the function fx_media_format() for example, am I expected to clear all blocks of the NAND? I would assume not, since that would not help our use case.
However, even without erasing the NAND, if I call fx_media_format(), and try to open a file that was written prior to the reset, using fx_media_open() followed by fx_file_open(), I get an error. I can only open that file when I have written to it in the current iteration.
Thanks
The text was updated successfully, but these errors were encountered:
vmantri959
changed the title
Question about using FileX & LevelX with NAND on reset of microcontroller`
Question about using FileX & LevelX with NAND on reset of microcontroller
Nov 2, 2023
I realize that this comment is likely far too late to do the original poster any good, but for the sake of others who may encounter a similar issue...
I encountered similar issues, and in my case the problem was a bug in my LevelX driver. LevelX creates a block map near the base of the (flash) memory, along with a cached version of the map in the work buffer. As a result, if there are any issues writing or modifying the (flash instance of the) map, everything will work fine until you close the media, but it will cause you problems whenever you try to open the media again. You can verify that this is the cause by closing and re-opening the filesystem (assuming that this does dump and reload the LX buffers, which it should).
I was wondering if FileX is useful for a use case where the microcontroller resets, however, it has been writing data to non-volatile memory (in this case NAND).
When I call the function fx_media_format() for example, am I expected to clear all blocks of the NAND? I would assume not, since that would not help our use case.
However, even without erasing the NAND, if I call fx_media_format(), and try to open a file that was written prior to the reset, using fx_media_open() followed by fx_file_open(), I get an error. I can only open that file when I have written to it in the current iteration.
Thanks
The text was updated successfully, but these errors were encountered: