On an article introduces the first NVM area backup mechanism, but write data length is limited by sector size, this paper introduces the second NVM area data backup mechanism, this method will first NVM zoning can be divided into A, B two size area, such as A zone as A formal data area, B area as A backup area, each area of the last byte of data useful indicator FLAG, 1 said the data is valid, 0 means the data is invalid, if appear in the process of updating data, after power on again, according to A first FLAG to judge which of the two area B data effectively, and then continue to complete the update operation, in this case, NVM area size is 32 KB, A zone is divided into 16 KB size, B area is divided into 16 KB size, for example: this example assumes that the area A successfully written into the data, need to write new data NVM area, other information processing with the following four steps in the same way,
(1) the judgement area A FLAG=1, the area data read write A to B area, after the success of the writing, the FLAG assignment 1 B area,
(2) the area B FLAG after the success of the change, change the area A FLAG symbol to 0,
(3) the area A FLAG symbol after the success of the change, for A zone data updates, or writing new data, after the update is successful, the area A FLAG symbol write 1,
(4) the area A FLAG after the success of the change, amend the area B FLAG symbol is 0, complete data updates,
At this point, two kinds of NVM area data backup solutions are introduced completely,
CodePudding user response:
Both sets of data backup of respectively applicable to small data quantity and large amount of data, the security which the higher?
CodePudding user response:
I think it's security is the same, just see which solution is more suitable for your
CodePudding user response:
Continuous read the floor related that a few articles, learn a lot, feel or the solution is simple easy to operate, just not sure the merits and demerits of these methods?
CodePudding user response:
Introduction of the building Lord NVM section what are the strengths and weaknesses of the data backup system?