eclipse-threadx/filex

Question about using FileX & LevelX with NAND on reset of microcontroller

Opened this issue · 0 comments

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