cancel
Showing results for 
Search instead for 
Did you mean: 

FileX + LevelX Log Circular Buffer Implementation STM32U585

PJose.4
Senior

Hi Everyone
Greetings

We are using an STM32U585 MCU and need to maintain a log of about 200 KB using FileX. Once the 200 KB storage is full, I don’t want LevelX to reclaim the entire file and erase it. Instead, I need the log to behave like a circular buffer, where only the oldest block of log data is erased and overwritten with new data. How this requirement can be achieved. For this requirement how much size shall be allocated  by fileX(im using an external flash of 8MB).

Thanks and Regards

Philip

10 REPLIES 10
PJose.4
Senior

Hi @Tesla DeLorean @MFARH.1 
Greetings

Thanks for the reply 

I’m currently unable to determine how to repair the file system when an error occurs (e.g., FX_IO_ERROR, FX_FILE_CORRUPT ), we are not able to open files or read data, which makes it unclear how a backup can be taken or how targeted repair can be performed.

Could you please clarify:

How to proceed with repairing the file system when read access is no longer possible?

Whether there is any way to recover data or take a backup if the media cannot be read due to the error?


BR
Philip