Method for storing nonvolatile data by using MCU internal data Flash
A technology of non-volatile data and internal data, applied in the direction of memory address/allocation/relocation, etc., can solve the problems of long time consumption, data loss, low efficiency, etc., to avoid repeated erasure, improve service life, and avoid erasure. the effect of removing
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment Construction
[0025] The present invention will be further described below in conjunction with the accompanying drawings and embodiments.
[0026] figure 1 Among them, the present invention first reasonably sets the size and number of data partitions according to the application requirements of the embedded system and the sector size of the MCU internal data Flash. Carry out numbering, the number is not more than 256. The setting of partition size and number matches the sector length of the data Flash, that is, partition size * number of partitions = sector size * number of sectors.
[0027] Set the partition status word at the start address of each data partition to reflect the storage history time of the data partition, and update it after the first write operation after the partition is erased. For the update algorithm, see the data write operation process.
[0028] Then set the format of the data entry to data id+data, the value range of the data id is [0,254], assign an offset addre...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 