CN106303708A - The method of Memory Backup - Google Patents
The method of Memory Backup Download PDFInfo
- Publication number
- CN106303708A CN106303708A CN201510294230.8A CN201510294230A CN106303708A CN 106303708 A CN106303708 A CN 106303708A CN 201510294230 A CN201510294230 A CN 201510294230A CN 106303708 A CN106303708 A CN 106303708A
- Authority
- CN
- China
- Prior art keywords
- address
- working area
- flash memory
- error correction
- mistake
- 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
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/43—Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
- H04N21/443—OS processes, e.g. booting an STB, implementing a Java virtual machine in an STB or power management in an STB
- H04N21/4435—Memory management
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/07—Responding to the occurrence of a fault, e.g. fault tolerance
- G06F11/08—Error detection or correction by redundancy in data representation, e.g. by using checking codes
- G06F11/10—Adding special bits or symbols to the coded information, e.g. parity check, casting out 9's or 11's
- G06F11/1008—Adding special bits or symbols to the coded information, e.g. parity check, casting out 9's or 11's in individual solid state devices
- G06F11/1048—Adding special bits or symbols to the coded information, e.g. parity check, casting out 9's or 11's in individual solid state devices using arrangements adapted for a specific error detection or correction feature
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Software Systems (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Quality & Reliability (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Techniques For Improving Reliability Of Storages (AREA)
Abstract
A kind of method that the present invention relates to Memory Backup, for the boot program of TV, the method for this Memory Backup includes;Carrying out television startup program, flash memory carries out error correction and produces mistake address, and the first working area records this mistake address;Carrying out this television startup program, produce correct address when this flash memory carries out error correction, this correct address is backed up in the second working area;Carry out this television startup program, when this correct address has been backed up in this second working area, this flash memory carries out error correction when again producing this mistake address, this flash memory reads this correct address directly into this second working area or replicates this correct address and cover this mistake address, make this television startup program normal operation, thereby ensuring that system will not lose because of the error correction of same scratch block except missing and causes and cannot be started up, there is minimizing user inconvenience, the advantage reducing maintenance cost.
Description
Technical field
A kind of method that the present invention relates to Memory Backup, the method particularly relating to the backup of a kind of flash memory.
Background technology
In digital circuit, minimum data unit is " bit (bit) ", also cries " position "." bit " is also the least unit in internal memory, and it is to represent the high and low level signal of data by " 1 " and " 0 ".In digital circuit, 8 continuous print bits are bytes, only have 8 without each byte in the internal memory of " even-odd check ", if its a certain position has stored out mistake, the corresponding data wherein stored will be made to change and cause application program to make a mistake.If data bit is 8, then needs to increase by 5 and carry out error correction (Error-correcting code
Memory, ECC memory) error checking and correction.Data bit often doubles, and ECC increases by a bit trial position, say, that when data bit is 16, ECC position is 6, and when 32, ECC position is 7, and when data bit is 64, ECC position is 8, and the rest may be inferred.In internal memory, ECC can allow mistake, it is possible to mistake is automatically corrected, and makes system be operated normally, not reason mistake and interrupt.But cannot guarantee that system will not cause the situation that cannot be started up because of the ECC error in same region, maybe cannot confirm whether the start next time when ECC error occurs can normal boot-strap.
Summary of the invention
A kind of method that it is an object of the invention to provide Memory Backup, ECC error repair mode, the system of can ensure that will not lose because of the error correction of same scratch block except missing and causes and cannot be started up, and has minimizing user inconvenience, the advantage reducing maintenance cost.
For achieving the above object, the present invention provides a kind of method of Memory Backup, and for the boot program of TV, the method for this Memory Backup includes;Carrying out this television startup program, flash memory carries out error correction (ECC, Error Checking and
Correction) producing mistake address, the first working area records this mistake address;Carrying out this television startup program, produce correct address when this flash memory carries out error correction, this correct address is backed up in the second working area;Carry out this television startup program, when this correct address has been backed up in second working area, this flash memory carries out error correction when again producing this mistake address, and this flash memory reads this correct address directly into this second working area or replicates this correct address and cover this mistake address, makes this television startup program normal operation.
In one embodiment of this invention, flash memory, in addition to the first working area or the second working area, further includes a plurality of working area.
In one embodiment of this invention, Memory Backup method is applicable in the electric equipment products of all this flash memories of use.
Technological means described in said one embodiment can be applicable in another embodiment above-mentioned, to obtain a new embodiment, as long as these technological means are the most conflicting.
The method of the Memory Backup of the present invention can ensure that system will not lose because of the error correction of same scratch block except missing and causes and cannot be started up, and has minimizing user inconvenience, the advantage reducing maintenance cost.
Accompanying drawing explanation
The present invention is further detailed explanation with detailed description of the invention below in conjunction with the accompanying drawings.
Fig. 1 is the flow chart of a kind of method of Memory Backup of the present invention.
Description of symbols:
S1 starts
Whether error correction produces mistake address to S2
Whether error correction is successful for S3
Misregistration address, S4 the first working area
S5 terminates
Whether there is misregistration address in the first working area to S6
Whether the second working area backup is correct address to S7
S8 the second working area backup correct address
S9 normal boot-strap.
Detailed description of the invention
For clearly appearing from inventive feature, each assembly in accompanying drawing is only signal and not draws according to profile in kind and ratio, and clipped known assemblies.Additionally, for present the coherency that the present invention is described, in different embodiments, same or analogous labelling represents same or analogous assembly or step.The direction term being previously mentioned in an embodiment, such as: up, down, left, right, before and after etc., is only the direction with reference to accompanying drawing, and therefore, the direction term of use is used to explanation, rather than is used for limiting the present invention.
Fig. 1 is the flow chart of a kind of method of Memory Backup of the present invention.Flash memory includes a plurality of working area, and the description below generation, flash memory included NAND gate flash memory, and the description below all generations do not limit to the present invention with above-mentioned replacement word using flash memory one word as explanation using the first working area and the second working area as explanation.First misregistration address, working area, second working area record correct address, this Memory Backup method is applicable in the electric equipment products of all this flash memories of use, such as TV, first step S1 is carried out: start after television startup, enter internal memory action during beginning, then judge step S2: whether error correction produces mistake address.If it is determined that step S2 is judged as YES, enters and judge step S3: whether error correction is successful, represents when internal memory checks, boots up the correction of code via error correction, carry out judging whether to correct successfully;If it is determined that step S3 is judged as YES, flash memory carries out error correction algorithm when producing this mistake address, and flash memory reads this correct address directly into this second working area or replicates this correct address and cover mistake address, then, entrance step S9: normal boot-strap, and make this TV normal operation;If it is determined that step S3 is judged as NO, then subsequently enter step S4: the first misregistration address, working area, when flash memory carries out error correction calculations generation mistake address, the first working area recording address, then step S5: terminate, wait user restarts.If it is determined that step S2 is judged as NO, when this flash memory carries out error correction calculations generation correct address, this second working area backup correct address, then, enter and judge step S6: whether there is misregistration address in the first working area, the address of the first working area record is the wrong address that flash memory carries out error correction calculations generation, makees to judge in step S6;If it is determined that step S6 is no, then reads this correct address directly into the second working area, and enter into step S9: normal boot-strap;If it is determined that step S6 is yes, enters and judge step S7: whether the second working area backup is correct address.If it is determined that step S7 is judged as YES, then reads this correct address, entrance step S9: normal boot-strap to the second working area, and make this TV normal operation.If it is determined that step S7 is judged as NO, entrance step S8: the second working area backup correct address, then step S9: normal boot-strap, and make this TV normal operation.
The foregoing is only presently preferred embodiments of the present invention, not in order to limit the present invention, all within the spirit and principles in the present invention, any modification, equivalent substitution and improvement etc. made, should be included within the scope of the present invention.
Claims (3)
1. a method for Memory Backup, for the boot program of TV, it is characterised in that the method for this Memory Backup includes:
Carrying out television startup program, flash memory carries out error correction and produces mistake address, and the first working area records this mistake address;
Carrying out this television startup program, produce correct address when this flash memory carries out error correction, this correct address is backed up in the second working area;
Carry out this television startup program, when this correct address has been backed up in this second working area, this flash memory carries out error correction when again producing this mistake address, and this flash memory reads this correct address directly into this second working area or replicates this correct address and cover this mistake address, makes this television startup program normal operation.
The method of Memory Backup the most according to claim 1, wherein this flash memory is in addition to the first working area or the second working area, further includes a plurality of working area.
The method of Memory Backup the most according to claim 1, wherein this Memory Backup method is applicable on the TV of all this flash memories of use.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510294230.8A CN106303708A (en) | 2015-06-02 | 2015-06-02 | The method of Memory Backup |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510294230.8A CN106303708A (en) | 2015-06-02 | 2015-06-02 | The method of Memory Backup |
Publications (1)
Publication Number | Publication Date |
---|---|
CN106303708A true CN106303708A (en) | 2017-01-04 |
Family
ID=57655411
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510294230.8A Pending CN106303708A (en) | 2015-06-02 | 2015-06-02 | The method of Memory Backup |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106303708A (en) |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20020184435A1 (en) * | 2001-05-31 | 2002-12-05 | Lambino John P. | Assuring proper execution of firmware |
US20040250058A1 (en) * | 2003-06-03 | 2004-12-09 | Chao Kuo Sheng | System and method for automatic booting based on single flash ROM |
CN1694068A (en) * | 2004-05-06 | 2005-11-09 | 三星电子株式会社 | Mobile communication terminal including NAND flash memory and method for booting the same |
CN101526907A (en) * | 2008-03-04 | 2009-09-09 | 深圳市爱国者嵌入式系统科技有限公司 | Flash memory management method without startup errors of electronic product |
CN103995784A (en) * | 2014-04-23 | 2014-08-20 | 威盛电子股份有限公司 | Flash memory controller, storage device and flash memory control method |
-
2015
- 2015-06-02 CN CN201510294230.8A patent/CN106303708A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20020184435A1 (en) * | 2001-05-31 | 2002-12-05 | Lambino John P. | Assuring proper execution of firmware |
US20040250058A1 (en) * | 2003-06-03 | 2004-12-09 | Chao Kuo Sheng | System and method for automatic booting based on single flash ROM |
CN1694068A (en) * | 2004-05-06 | 2005-11-09 | 三星电子株式会社 | Mobile communication terminal including NAND flash memory and method for booting the same |
CN101526907A (en) * | 2008-03-04 | 2009-09-09 | 深圳市爱国者嵌入式系统科技有限公司 | Flash memory management method without startup errors of electronic product |
CN103995784A (en) * | 2014-04-23 | 2014-08-20 | 威盛电子股份有限公司 | Flash memory controller, storage device and flash memory control method |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US9329992B2 (en) | Data storage device and flash memory control method | |
US9086961B2 (en) | Repair method and device for abnormal-erase memory block of non-volatile flash memory | |
US7412575B2 (en) | Data management technique for improving data reliability | |
EP2092530B1 (en) | Method and device for reconfiguration of reliability data in flash eeprom storage pages | |
US9218891B2 (en) | Data storage device and flash memory control method | |
US20170039075A1 (en) | Rapid start up method for electronic equipment | |
CN103995784B (en) | Flash memory controller, storage device and flash memory control method | |
US8812910B2 (en) | Pilot process method for system boot and associated apparatus | |
JP5500282B1 (en) | Fault repair device, fault repair method, and fault repair program | |
TWI433157B (en) | Method for accessing a flash memory and associated memory device | |
CN110442473B (en) | Nonvolatile data storage method and device, electronic equipment and medium | |
US20080046778A1 (en) | Memory controller and semiconductor memory device | |
CN106331862A (en) | Set-top box software upgrading method and set-top box | |
CN103594120A (en) | Memorizer error correction method adopting reading to replace writing | |
KR100643288B1 (en) | Data processing device and method for flash memory | |
US8065563B2 (en) | System for booting from a non-XIP memory utilizing a boot engine that does not have ECC capabilities during booting | |
CN111417926A (en) | Unmanned aerial vehicle and firmware upgrading method thereof | |
CN106201640A (en) | A kind of method and device of BootLoader program of upgrading | |
CN108089892A (en) | A kind of method, apparatus of safety startup of system, set-top box and storage medium | |
US8850291B2 (en) | Data input and output method of NAND flash memory and embedded system using the same | |
JP2004152194A (en) | Memory data protection method | |
US10877837B2 (en) | Method for recovering EEPROM of slave device by PLC communication module | |
CN101470666B (en) | Data memory method | |
JP2004342112A (en) | Device and method for responding to data retention loss in nonvolatile memory unit using error-checking and correction techniques | |
CN106303708A (en) | The method of Memory Backup |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
WD01 | Invention patent application deemed withdrawn after publication | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20170104 |