摘要 |
PROBLEM TO BE SOLVED: To provide an electronic apparatus which can reduce the amount of writing into a flash memory to lower the number of writings.SOLUTION: The electronic apparatus includes: a first data region recording data; a volatile memory having a first history region recording updated information including an updated version of the data recorded in the first data region and update number information indicating the number of updates done; a plurality of blocks; a second data region initialized on a block-by-block basis at the time of writing data and updated information and recording data for each block; a flash memory having a second history region storing copies of the updated information recorded in the first history region; and a CPU recording, when the data in the first data region is updated, corresponding updated information into the first history region, extracting the newest updated information from the updated information recorded in the first history region based on the update number information at a specified timing, copying the extracted updated information into the second history region over a plurality of pages in a specified sequence, and then, initializing the first history region. |