Question about LevelX power failure protection mechanism

fei 46 Reputation points
2023-02-08T15:22:33.57+00:00

Nor flash has a feature: while erasing or writing, sudden power failure may cause the data of the corresponding block or page to become unstable and flip.

For example, when write data to one page, levelx will set the corresponding bit of the sector free bit map to 0. But if a power failure occurs during this process, the bit may flip between 0 and 1 when next power on.

In this case, can levelx recognize it and restore it? If no, how to solve this issue?

Thanks!

Azure RTOS
Azure RTOS
An Azure embedded development suite including a small but powerful operating system for resource-constrained devices.
324 questions
{count} vote

1 answer

Sort by: Most helpful
  1. Bhupendra Naphade 91 Reputation points Microsoft Employee
    2023-02-09T12:08:51.61+00:00

    Are you using FileX with LevelX. if yes, Filex is designed to maintain file system integrity if the media loses power or is ejected in the middle of a file write operation.

    More information on FileX Fault tolerant feature can be found here
    https://learn.microsoft.com/en-us/azure/rtos/filex/chapter6#:~:text=Chapter%206%20%2D%20Azure%20RTOS%20FileX%20fault%20tolerant%20module

    1 person found this answer helpful.
    0 comments No comments