Unlock instant, AI-driven research and patent intelligence for your innovation.

Method for storing parameters based on flash memory in an embedded system

A flash memory and embedded system technology, which is applied in the field of embedded parameter storage, can solve the problems of parameter loss, large backup space, and relatively high memory capacity requirements, and achieve the effects of reducing losses, avoiding data loss, and reducing memory consumption

Active Publication Date: 2019-08-06
INTEGRATED ELECTRONICS SYST LAB
View PDF5 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

Although this method can avoid space waste, when there are many parameters to be stored, the backup space that needs to be opened up in the memory will be large, and the requirements for memory capacity are relatively high.
At the same time, for a system without a backup battery, once the system suddenly loses power, it is easy to cause the loss of parameters

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Method for storing parameters based on flash memory in an embedded system
  • Method for storing parameters based on flash memory in an embedded system
  • Method for storing parameters based on flash memory in an embedded system

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0019] The implementation process of the present invention will be described in detail below in conjunction with the accompanying drawings.

[0020] A method for storing parameters based on a flash memory in an embedded system, comprising the following steps:

[0021] Step 1. Divide the parameter area, such as figure 1 Said:

[0022] The flash memory parameter area is divided into parameter area 1 and parameter area 2, which are equal to each other and are mutual backups. Each parameter area is divided into an effective data storage area, a CRC check area and a counter area. The effective data storage area Store various effective parameter values, and allocate fixed space size, fixed relative offset and corresponding storage location for each parameter type; allocate effective data storage area space according to actual needs, and calculate the actual required storage space size, and reserve enough reserved space, the effective data storage area space capacity is the sum of ...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

A method for conducting parameter storage in an embedded system based on a flash memory comprises a parameter zone partitioning, selection of a first effective parameter zone, parameter alteration and result output. Parameters in a parameter zone of the system can be restored to be in the state at a previous successful writing moment in a double-parameter-zone mode due to existence of another parameter zone once system rebooting occurs in the data writing process, data losing caused by sudden system rebooting in the parameter alteration process is avoided, and loss is reduced to the greatest extent. In addition, memory consumption is only the number of bytes of the total quantity of parameters required to be altered, and the memory consumption of the system is reduced.

Description

technical field [0001] The invention relates to the technical field of embedded parameter storage, in particular to a method for storing parameters based on a flash memory in an embedded system. Background technique [0002] In the field of embedded systems, it is generally required that the stored parameters have the characteristics of not being lost when power off, modifiable, and erasable. ) memory as a storage device. Currently, a file system is generally used in an embedded system, and parameters are stored in a flash memory (FLASH) memory in the form of a file. Because the file system generally needs to occupy multiple blocks of flash memory (FLASH) to ensure the normal operation of the system, but the parameters that actually need to be stored only occupy tens of K of space, resulting in unnecessary waste of space. For other methods of direct storage without using the file system, generally when modifying parameters, first backup the data to memory, then erase the f...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
IPC IPC(8): G06F11/07G06F11/10
CPCG06F11/0793G06F11/1004
Inventor 衡泽超赵辉宁晨光郑宝毅宋忠强刘亮贾凯薛坤赵长收王福斌王春城
Owner INTEGRATED ELECTRONICS SYST LAB