CN105741881A - Storage verification method for static storage area - Google Patents

Storage verification method for static storage area Download PDF

Info

Publication number
CN105741881A
CN105741881A CN201610059944.5A CN201610059944A CN105741881A CN 105741881 A CN105741881 A CN 105741881A CN 201610059944 A CN201610059944 A CN 201610059944A CN 105741881 A CN105741881 A CN 105741881A
Authority
CN
China
Prior art keywords
data
storage area
static storage
verification method
static
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201610059944.5A
Other languages
Chinese (zh)
Inventor
李峰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Zhejiang Shaoxing Supor Domestic Electrical Appliance Co Ltd
Original Assignee
Zhejiang Shaoxing Supor Domestic Electrical Appliance Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Zhejiang Shaoxing Supor Domestic Electrical Appliance Co Ltd filed Critical Zhejiang Shaoxing Supor Domestic Electrical Appliance Co Ltd
Priority to CN201610059944.5A priority Critical patent/CN105741881A/en
Publication of CN105741881A publication Critical patent/CN105741881A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G11INFORMATION STORAGE
    • G11CSTATIC STORES
    • G11C29/00Checking stores for correct operation ; Subsequent repair; Testing stores during standby or offline operation
    • G11C29/04Detection or location of defective memory elements, e.g. cell constructio details, timing of test signals
    • G11C29/08Functional testing, e.g. testing during refresh, power-on self testing [POST] or distributed testing
    • G11C29/12Built-in arrangements for testing, e.g. built-in self testing [BIST] or interconnection details
    • G11C29/44Indication or identification of errors, e.g. for repair
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/0703Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation
    • G06F11/0706Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation the processing taking place on a specific hardware platform or in a specific software environment
    • G06F11/0727Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation the processing taking place on a specific hardware platform or in a specific software environment in a storage system, e.g. in a DASD or network based storage system

Abstract

The invention provides a storage verification method for a static storage area, which comprises the following steps: a. storing the first data into a static storage area; b. closing the static storage area; c. reading the data in the static storage area, and marking the read data as second data; d. comparing the first data and the second data; e. and judging whether the storage operation is wrong or not according to the comparison result. The static storage area storage verification method can avoid the risk that data cannot be correctly stored in the static storage area storage verification method due to interference or specific operation errors.

Description

Static storage area storage verification method
Technical field
The present invention relates to a kind of memory technology, particularly relate to a kind of static storage area storage verification method.
Background technology
Current a lot of products with microcomputerized control on the market, its control core is single-chip microcomputer.Part static storage area and dynamic area in single-chip microcomputer, the data in static storage area are not when carrying out specific operation, and interior data will not be changed;The dynamic area operation according to single-chip microcomputer, its data change in real time.
When data are stored in static storage area, it is first according to predetermined operation, static storage region is opened, data are stored in static storage area, close static storage area.Complete whole data and be stored in the operation of static storage area.
When being operated, if there is interference outside, such as burst of pulses interference etc., upset specific operation, then data cannot deposit into static storage area.When, after all program finishes execution, single-chip microcomputer default data has deposited into static storage area.When needs call these data carry out computing time, then can make a mistake.
Summary of the invention
For the above-mentioned problems in the prior art, the present invention proposes the method for a kind of static storage area storage verification method.By the operation of the present invention, it is possible to stop the risk because interference or specific operation mistake cause data correctly to store completely.
Concrete, the invention provides a kind of static storage area storage verification method, including:
A. the first data are stored in static storage area;
B. this static storage area is closed;
C. read the data in this static storage area, and be the second data by the data markers read;
D. these first data and these second data are compared;
E. according to this result of the comparison, it is judged that whether storage operation is wrong.
It is preferred that in above-mentioned static storage area storage verification method, before this step a, farther include: open this static storage area.
Preferably, in above-mentioned static storage area storage verification method, the data read in this step c are the one or more data in this static storage area, and in this step d are relatively compare whether these first data are consistent with these second data or whether multiple first data are consistent respectively with multiple second data.
Preferably, in above-mentioned static storage area storage verification method, the data read in this step c are the data slots of at least one ad-hoc location in this static storage area, and the comparison in this step d is whether the data slot comparing at least one the corresponding ad-hoc location in these first data is consistent with these second data.
It is preferred that in above-mentioned static storage area storage verification method, this step e farther includes:
If this result of the comparison is inconsistent, then judge that storage operation is wrong and re-executes this step a-e;
If this result of the comparison is consistent, then judges that storage operation is errorless and terminate this static storage area storage verification method.
It is preferred that in above-mentioned static storage area storage verification method, this step e farther includes:
If this result of the comparison is inconsistent, it is judged that storage operation is wrong, and makes stored count add 1, it is judged that whether this stored count is more than preset value;
If less than this preset value, then re-execute this step a-e;
If equal to or more than this preset value, then point out mistake;
If this result of the comparison is consistent, then judges that storage operation is errorless and terminate this static storage area storage verification method.
It is preferred that in above-mentioned static storage area storage verification method, this prompting mistake includes: shows error code or sends alarm.
Preferably, in above-mentioned static storage area storage verification method, the step opening this static storage area includes closing interruption, arranges parameter by corresponding sector number to be programmed, the first data are stored in static storage area, these first data include offset address and data.
It is preferred that in above-mentioned static storage area storage verification method, the step closing this static storage area includes removing sector number data, opens interruption.
Preferably, in above-mentioned static storage area storage verification method, the step reading data in static storage area includes: closes and interrupts, arranges parameter and address reading data by corresponding sector number to be programmed, open interruption, and be these second data by the data markers read.
Should be appreciated that general the description with the following detailed description of more than the present invention is all exemplary and explanat, and it is intended that the present invention as claimed in claim provides further explanation.
Accompanying drawing explanation
Being that they are included and constitute the part of the application in order to provide further understanding of the invention including accompanying drawing, accompanying drawing illustrates embodiments of the invention, and plays the effect explaining the principle of the invention together with this specification.In accompanying drawing:
Fig. 1 illustrates the flow chart of the basic step of the static storage area storage verification method according to the present invention.
Fig. 2 illustrates flow chart according to another preferred embodiment of the invention.
Detailed description of the invention
With detailed reference to accompanying drawing, embodiments of the invention are described now.
With reference first to Fig. 1, the figure shows the flow chart that the static storage area according to the present invention stores the basic step of verification method.This static storage area storage verification method 100 mainly comprises the steps that
Step 101: the first data are stored in static storage area;
Step 102: close this static storage area;
Step 103: read the data in this static storage area, and be the second data by the data markers read;
Step 104: compare these first data and these second data;
Step 105: according to this result of the comparison, it is judged that whether storage operation is wrong.
It will be seen that the static storage area storage verification method of the present invention is after normal storage data, read the data just deposited at once from static storage area, judge whether storage operation is wrong by comparing the two data, if errorless, then prove that storage operation is correct, exit the method;If wrong, then can point out mistake and/or again perform data Stored Procedure.So, it is possible to eliminate the subsequent operational problems caused due to data storage errors, improve reliability and the safety of product.
Discuss a preferred embodiment of the present invention in detail below in conjunction with Fig. 2, and the operation of above-mentioned static storage area storage verification method 100 and mode of operation can also be become more fully apparent by the following detailed description with distinct.
In method 200, it is first turned on static storage area (step 201), such as this step specifically includes closedown and interrupts, by corresponding sector number to be programmed, parameter is set, the first data are stored in static storage area (step 202), these first data include write offset address and data.After completing this storage operation, close static storage area (step 203), for instance this step specifically includes removing sector number data, opens interruption.
Then, in this static storage area, data are read, for instance this step includes: closes and interrupts, arranges parameter and address reading data by corresponding sector number to be programmed, open interruption, and be the second data (step 204) by the data markers read.Relatively these first data and these second data (step 205).
As an example, the first data and the second data can be multiple data, and then correspondence compares respectively.The data such as, read in step 204 are the one or more data in this static storage area.So, in this example, this step 205 is relatively compare whether these first data is consistent with these second data or whether the plurality of first data are consistent respectively with the plurality of second data.
Or, as another example, the data read in this step 204 are the data slots (data slot of the specified byte of such as stem and the specified byte of afterbody) of at least one ad-hoc location in this static storage area, and the comparison in this step 205 is whether the data slot comparing at least one the corresponding ad-hoc location in these first data is consistent with these second data.Reading manner by the sampling type of this example, it is possible to reduce need the data volume read, thus improving operational efficiency.Certainly, the present invention can also select the data manner of comparison of other forms according to actual needs.
Finally, according to this result of the comparison, it is judged that whether storage operation is wrong.
As an example, this step can specifically include: if this result of the comparison is inconsistent, then judge that storage operation is wrong and re-executes aforesaid step 201-205;If this result of the comparison is consistent, then judges that storage operation is errorless and terminate this static storage area storage verification method.
Additionally, as another example, i.e. embodiment according to Fig. 2, this step can specifically include:
If this result of the comparison is inconsistent, then judging that storage operation is wrong, and make cumulative calculation add 1 (step 209), whether the number of times continuing to judge to perform this step 201-205 is more than preset value (step 206);
If less than this preset value, then re-execute this step 201-205;
If equal to or more than this preset value, then point out mistake (step 207), this prompting mistake is such as display error code or send alarm;
If this result of the comparison is consistent, then judge that storage operation is errorless and terminates this static storage area storage verification method (step 208).
Those skilled in the art can be obvious, the above-mentioned exemplary embodiment of the present invention can be carried out various modifications and variations without departing from the spirit and scope of the present invention.Accordingly, it is intended to make the present invention cover the amendment to the present invention and modification dropping within the scope of appended claims and equivalent arrangements thereof.

Claims (10)

1. a static storage area storage verification method, it is characterised in that including:
A. the first data are stored in static storage area;
B. described static storage area is closed;
C. read the data in described static storage area, and be the second data by the data markers read;
D. described first data and described second data are compared;
E. according to described result of the comparison, it is judged that whether storage operation is wrong.
2. storage verification method in static storage area as claimed in claim 1, it is characterised in that before described step a, farther include: open described static storage area.
3. storage verification method in static storage area as claimed in claim 1, it is characterized in that, the data read in described step c are the one or more data in described static storage area, and in described step d whether with described second data consistent or whether multiple first data consistent respectively with multiple second data if being relatively the first data described in comparison.
4. storage verification method in static storage area as claimed in claim 1, it is characterized in that, the data read in described step c are the data slots of at least one ad-hoc location in described static storage area, and the comparison in described step d is whether the data slot of at least one corresponding ad-hoc location in the first data described in comparison is consistent with described second data.
5. the static storage area storage verification method as described in claim 3 or 4, it is characterised in that described step e farther includes:
If described result of the comparison is inconsistent, then judge that storage operation is wrong and re-executes described step a-e;
If described result of the comparison is consistent, then judges that storage operation is errorless and terminate described static storage area storage verification method.
6. the static storage area storage verification method as described in claim 3 or 4, it is characterised in that described step e farther includes:
If described result of the comparison is inconsistent, it is judged that storage operation is wrong, and makes stored count add 1, it is judged that whether described stored count is more than preset value;
If less than described preset value, then re-execute described step a-e;
If equal to or more than described preset value, then point out mistake;
If described result of the comparison is consistent, then judges that storage operation is errorless and terminate described static storage area storage verification method.
7. storage verification method in static storage area as claimed in claim 6, it is characterised in that described prompting mistake includes: shows error code or sends alarm.
8. storage verification method in static storage area as claimed in claim 2, it is characterized in that, the step opening described static storage area includes closing interruption, arranges parameter by corresponding sector number to be programmed, the first data to be stored in static storage area, described first data include offset address and data.
9. storage verification method in static storage area as claimed in claim 8, it is characterised in that the step closing described static storage area includes removing sector number data, opens interruption.
10. storage verification method in static storage area as claimed in claim 9, it is characterized in that, the step reading data in static storage area includes: closes and interrupts, by corresponding sector number to be programmed, parameter and address reading data are set, open interruption, and be described second data by the data markers read.
CN201610059944.5A 2016-01-28 2016-01-28 Storage verification method for static storage area Pending CN105741881A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610059944.5A CN105741881A (en) 2016-01-28 2016-01-28 Storage verification method for static storage area

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610059944.5A CN105741881A (en) 2016-01-28 2016-01-28 Storage verification method for static storage area

Publications (1)

Publication Number Publication Date
CN105741881A true CN105741881A (en) 2016-07-06

Family

ID=56247860

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610059944.5A Pending CN105741881A (en) 2016-01-28 2016-01-28 Storage verification method for static storage area

Country Status (1)

Country Link
CN (1) CN105741881A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108305661A (en) * 2017-01-13 2018-07-20 华邦电子股份有限公司 Semiconductor storage and its data read method

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101501585A (en) * 2006-08-17 2009-08-05 宝马股份公司 Method for programming a controller in a motor vehicle
CN201540646U (en) * 2009-10-23 2010-08-04 安徽久大电子技术有限公司 Copying collector suitable for low-voltage power line carrier electric energy meter reading
CN102929794A (en) * 2012-09-26 2013-02-13 惠州市德赛西威汽车电子有限公司 Storage method for electrically erasable programmable read only memory (EEPROM)
CN103309814A (en) * 2013-05-23 2013-09-18 航天科技控股集团股份有限公司 Method for storing odometry data of automobile in EEPROM
CN103558574A (en) * 2013-10-24 2014-02-05 国家电网公司 Method for testing software fault-tolerant capability of intelligent ammeter based on EEPROM data reading and writing
CN105722014A (en) * 2016-02-04 2016-06-29 海信(山东)空调有限公司 EEPROM (Electrically Erasable Programmable Read-Only memory) data burning method and device

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101501585A (en) * 2006-08-17 2009-08-05 宝马股份公司 Method for programming a controller in a motor vehicle
CN201540646U (en) * 2009-10-23 2010-08-04 安徽久大电子技术有限公司 Copying collector suitable for low-voltage power line carrier electric energy meter reading
CN102929794A (en) * 2012-09-26 2013-02-13 惠州市德赛西威汽车电子有限公司 Storage method for electrically erasable programmable read only memory (EEPROM)
CN103309814A (en) * 2013-05-23 2013-09-18 航天科技控股集团股份有限公司 Method for storing odometry data of automobile in EEPROM
CN103558574A (en) * 2013-10-24 2014-02-05 国家电网公司 Method for testing software fault-tolerant capability of intelligent ammeter based on EEPROM data reading and writing
CN105722014A (en) * 2016-02-04 2016-06-29 海信(山东)空调有限公司 EEPROM (Electrically Erasable Programmable Read-Only memory) data burning method and device

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108305661A (en) * 2017-01-13 2018-07-20 华邦电子股份有限公司 Semiconductor storage and its data read method
CN108305661B (en) * 2017-01-13 2021-02-12 华邦电子股份有限公司 Semiconductor memory device and data reading method thereof

Similar Documents

Publication Publication Date Title
US7992009B2 (en) Device and method capable of verifying program operation of non-volatile memory and method card including the same
CN104025047B (en) Information processor, information processing method and computer program
US7593269B2 (en) Differential flash memory programming technique
CN107003857B (en) There is the method for the storage operation of error-correcting decoding for pipeline processes
CN106980473B (en) Method for improving read-write reliability and speed of EEPROM
CN109493907A (en) The operating method of non-volatile memory device and the operating method of Memory Controller
US20090187305A1 (en) Method of detecting manipulation of a programmable memory device of a digital controller
US20140082257A1 (en) Systems and methods for code protection in non-volatile memory systems
JP6157637B2 (en) Virtual boundary code in the data image of the read / write memory device
CN103678067A (en) Test method and device for intelligent card power failure and tested device
CN106681855A (en) One-time programmable memory device and data verification method thereof
CN109857612A (en) A kind of monitoring method and its terminal of data write operation
JP2017004588A (en) Circuit and method for testing error-correction capability
CN105741881A (en) Storage verification method for static storage area
US20170262180A1 (en) Integrated control of write-once data storage devices
CN114624575A (en) Chip testing method, device, equipment and storage medium
US20150255174A1 (en) Memory testing method and apparatus
CN107657153A (en) The code protection method and device in flash areas in a kind of chip
CN104851467B (en) A kind of aerospace band EDAC function SRAM memory function verification methods
CN106920576A (en) A kind of method and system of inspection Nand Flash mass
US9619325B2 (en) Method for renewing data in order to increase the reliability of flash memories
CN104282343B (en) Semiconductor system and its restorative procedure
US9063723B2 (en) Function-based software comparison method
CN106935266B (en) Control method, device and system for reading configuration information from memory
CN108229196B (en) SOC chip with physical protection mechanism of storage unit and method

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20160706