CN110008059A - Data-updating method, device and the storage medium of non-volatile memory medium - Google Patents

Data-updating method, device and the storage medium of non-volatile memory medium Download PDF

Info

Publication number
CN110008059A
CN110008059A CN201910127182.1A CN201910127182A CN110008059A CN 110008059 A CN110008059 A CN 110008059A CN 201910127182 A CN201910127182 A CN 201910127182A CN 110008059 A CN110008059 A CN 110008059A
Authority
CN
China
Prior art keywords
block
data block
data
management
volatile memory
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.)
Granted
Application number
CN201910127182.1A
Other languages
Chinese (zh)
Other versions
CN110008059B (en
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.)
Shenzhen Goodix Technology Co Ltd
Original Assignee
Shenzhen Huiding Technology 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 Shenzhen Huiding Technology Co Ltd filed Critical Shenzhen Huiding Technology Co Ltd
Priority to CN201910127182.1A priority Critical patent/CN110008059B/en
Publication of CN110008059A publication Critical patent/CN110008059A/en
Application granted granted Critical
Publication of CN110008059B publication Critical patent/CN110008059B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • 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/14Error detection or correction of the data by redundancy in operation
    • G06F11/1402Saving, restoring, recovering or retrying
    • G06F11/1415Saving, restoring, recovering or retrying at system level
    • G06F11/1441Resetting or repowering
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F12/00Accessing, addressing or allocating within memory systems or architectures
    • G06F12/02Addressing or allocation; Relocation
    • G06F12/0223User address space allocation, e.g. contiguous or non contiguous base addressing
    • G06F12/023Free address space management
    • G06F12/0238Memory management in non-volatile memory, e.g. resistive RAM or ferroelectric memory
    • G06F12/0246Memory management in non-volatile memory, e.g. resistive RAM or ferroelectric memory in block erasable memory, e.g. flash memory
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2212/00Indexing scheme relating to accessing, addressing or allocation within memory systems or architectures
    • G06F2212/72Details relating to flash memory management
    • G06F2212/7201Logical to physical mapping or translation of blocks or pages
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2212/00Indexing scheme relating to accessing, addressing or allocation within memory systems or architectures
    • G06F2212/72Details relating to flash memory management
    • G06F2212/7211Wear leveling

Abstract

The present invention provides the data-updating method, device and storage medium of a kind of non-volatile memory medium, this includes: the first management block obtained on non-volatile memory medium, first management block includes: the latest features information of multiple data blocks, multiple data blocks include the first data block and the second data block, first data block is data block to be updated, and the second data block is updatable data block;The first data block is determined according to the first management block;The second data block is determined according to the first management block;According to the first data block, the second data block is updated;The second management block message is generated, the second management block information includes the more new information of multiple data blocks;According to the second management block message, the second management block is updated, the data for not only realizing non-volatile memory medium update, but also realize the non-volatile power down protection for depositing medium, and effectively reduce cost.

Description

Data-updating method, device and the storage medium of non-volatile memory medium
Technical field
The present invention relates to storage medium technical field more particularly to a kind of data update sides of non-volatile memory medium Method, device and storage medium.
Background technique
Currently, micro-control unit (Microcontroller Unit, MCU) has obtained extensively in electronic surveying and control field General application, and in embedded measurement and control system, usually there are some system state datas, operating parameter or measurement data It needs to be saved in non-volatile memory.Non-volatile memory medium has been widely used in integrated circuit at present (integrated circuit, IC) card, mobile phone, computer, plate, game machine, Medical Devices, communication equipment etc. terminal device In.Terminal device inevitably will appear the modification of data in practical applications, be then stored in non-volatile memory medium In, since non-volatile memory medium needs first to wipe, then be written.If if terminal device does not do any protection, if writing Power down has occurred during entering, then after re-powering, it may appear that loss of data, and then influence the reliable fortune of terminal device Row.
In the prior art, power down occurs in writing process in order to prevent and then makes loss of data, usually passes through detection system Power supply of uniting provides power supply to non-volatile memory medium using energy-storage units, and then come when power down occurs for power supply The integrality for guaranteeing write-in data, after re-powering, effectively prevents loss of data.
However, in the prior art, by being situated between to non-volatile memories using energy-storage units when power down occurs for power supply Matter provides power supply, needs to increase new hardware facility, higher cost.
Summary of the invention
The present invention provides the data-updating method, device and storage medium of a kind of non-volatile memory medium, not only realizes The data of non-volatile memory medium update, and realize the power down protection of non-volatile memory medium, and be effectively reduced Cost.
In a first aspect, the application provides a kind of data-updating method of non-volatile memory medium, comprising:
The first management block on S1, acquisition non-volatile memory medium, the first management block includes: the newest of multiple data blocks Characteristic information, multiple data blocks include the first data block and the second data block, and the first data block is data block to be updated, the second number It is updatable data block according to block, updatable data block is Blank data block or invalid data block.S2, it is obtained according to the first management block First data block;S3, the second data block is determined according to the first management block;S4, according to the first data block, update non-volatile memories The second data block on medium;S5, the second management block message is generated, the second management block information includes that the update of multiple data blocks is special Reference breath;S6, block message is managed according to second, updates the second management block on non-volatile memory medium.
In the present solution, on the one hand, determining the second data block according to the first management block, and update second according to the first data block Data block realizes the update of data block, and if power down occurs during updating the second data block, due to the second management block Content does not update, then can obtain the first data block according to the first management block again after the power-up;On the other hand, by generating the Two management block messages, and the second management block is updated, the management to multiple data blocks is realized, and if updating the second management block Power down occurs in the process, then due to not updating the second management block, can be obtained again according to the first management block after the power-up First data block, the data for not only realizing non-volatile memory medium update, but also realize non-volatile memory medium Power down protection, and due to not increasing any hardware facility, it reduces costs.
Optionally, non-volatile memory medium includes data field and directorial area, and data field includes at least two data blocks, pipe Managing area includes at least two management blocks.
Optionally, the latest features information of multiple data blocks includes:
The address of each data block, mark and state in multiple data blocks;Wherein, the address of data block is for inquiring data Whether block, the mark of data block are damage block for identification data block, and the state of data block including use state or is not used State.
Optionally, before obtaining the first management block on non-volatile memory medium, further includes:
Obtain the corresponding counter true form of all management blocks and counter radix-minus-one complement on non-volatile memory medium, wherein The corresponding counter true form of each management block and a counter radix-minus-one complement, use time of the counter true form for record management block Number, each counter radix-minus-one complement are used to verify the accuracy of the corresponding counter true form of the management block;For each counter true form, The counter true form is verified according to its corresponding counter radix-minus-one complement;Determine all verified successful counter true forms, and by institute There is the corresponding management block of maximum counter true form in verified successful counter true form to be determined as the first management block.
In the present solution, the first management block is obtained by the corresponding counter true form of all management blocks and counter radix-minus-one complement, it can Effectively to avoid reading all management blocks, and then the first management block of quick obtaining.
Optionally, after obtaining the first management block on non-volatile memory medium, further includes:
First management block is verified;If verification failure, initializes nonvolatile storage medium.
In the present solution, ensure that the reliability for obtaining the first data block by verifying to the first management block.
Optionally, according to the first data block, after updating the second data block on non-volatile memory medium, further includes:
S7, the second data block is read;S8, the second data block of verification;If S9, failing to the second Data block check, by the The mark of two data blocks is updated to first identifier, and first identifier is used to identify the second data block as damage block, and repetition step S3, S4, S7, S8, S9, until to the success of the second Data block check.
In the present solution, the integrality of the second data block can be effectively ensured by verifying to the second data block, and lead to Fail if crossing to the second Data block check, the mark of the second data block is updated to first identifier, first identifier is for identifying Second data block is damage block, when ensure that some data block is damaged in non-volatile memory medium, is not influenced non-easy The normal use of the property lost storage medium, increases the reliability and service life of non-volatile memory medium.
Optionally, it according to the second management block message, before updating the second management block on non-volatile memory medium, goes back Include:
According to the index of the first management block, next management block of the first management block is searched;Determine that next management block is Second management block.
In the present solution, being realized by determining that next management block is the second management block according to the index of the first management block The equilibrium of multiple management blocks is erasable in non-volatile memory medium, and then can effectively extend the use of non-volatile memory medium Service life.
Optionally, it according to the second management block message, before updating the second management block on non-volatile memory medium, goes back Include:
The management block in addition to the first management block is randomly selected according to the index of the first management block;It determines and randomly selects except the Management block other than one management block is the second management block.
In the present solution, being realized by determining that the management block randomly selected in addition to the first management block is the second management block The equilibrium of multiple management blocks is erasable in non-volatile memory medium, and then can effectively extend the use of non-volatile memory medium Service life.
Optionally, the second data block is determined according to the first management block, comprising:
According to the address of the first data block, next data block of the first data block is searched;Judge next data block Whether state is unused state;If the state of next data block is unused state, whether next data block is judged There are second identifier, second identifier is for identifying next data block as damage block;If there is no the second marks for next data block Will, it is determined that subsequent data chunk is the second data block.
In the present solution, searching next data block of the first data block, and under by the address according to the first data block The state and mark of one data block are judged, final to determine the second data block, not only ensure that the second data block is not make It is not with state and damage block, and the equilibrium for realizing multiple data blocks in non-volatile memory medium is erasable, and then can be with Effectively extend the service life of non-volatile memory medium.
Optionally, the second data block is determined according to the first management block, comprising:
According to the address of the first data block, the data block in addition to the first data block is randomly selected, as data to be determined Block;Whether the state for judging data block to be determined is unused state;If the state of data block to be determined is unused state, Judge that data block to be determined is identified with the presence or absence of third, third mark is for identifying data block to be determined as damage block;If to true Determining data block, there is no third marks, it is determined that data block to be determined is the second data block.
In the present solution, randomly selecting the data block in addition to the first data block by the address according to the first data block, make For data block to be determined, and the state and mark of data block to be determined are judged, it is final to determine the second data block, not only protect It has demonstrate,proved the second data block to be unused state and be not damage block, and has realized multiple data blocks in non-volatile memory medium Equilibrium it is erasable, and then can effectively extend the service life of non-volatile memory medium.
Device, MCU, equipment, storage medium and computer program product is explained below, effect can refer to method part Effect, this is repeated no more below.
Second aspect, the application provide a kind of data update apparatus of non-volatile memory medium, comprising:
First obtains module, and for obtaining the first management block on non-volatile memory medium, the first management block includes: more The latest features information of a data block, multiple data blocks include the first data block and the second data block, and the first data block is to more New data block, the second data block are updatable data block, and updatable data block is Blank data block or invalid data block;First really Cover half block, for obtaining the first data block according to the first management block;Second determining module, for determining according to the first management block Two data blocks;First update module, for updating the second data block on non-volatile memory medium according to the first data block; First generation module, for generating the second management block message, the second management block information includes the more new feature letter of multiple data blocks Breath;Second update module, for updating the second management block on non-volatile memory medium according to the second management block message.
Optionally, non-volatile memory medium includes data field and directorial area, and data field includes at least two data blocks, pipe Managing area includes at least two management blocks.
Optionally, the latest features information of multiple data blocks includes:
The address of each data block, mark and state in multiple data blocks;Wherein, the address of data block is for inquiring data Whether block, the mark of data block are damage block for identification data block, and the state of data block including use state or is not used State.
Optionally, the data update apparatus of non-volatile memory medium provided by the present application, further includes:
Second obtain module, for obtain the corresponding counter true form of all management blocks on non-volatile memory medium and Counter radix-minus-one complement, wherein the corresponding counter true form of each management block and a counter radix-minus-one complement, counter true form is for remembering The access times of management block are recorded, each counter radix-minus-one complement is used to verify the accuracy of the corresponding counter true form of the management block;The One correction verification module verifies the counter true form according to its corresponding counter radix-minus-one complement for being directed to each counter true form;Third Determining module, for determining all verified successful counter true forms, and will be in all verified successful counter true forms The corresponding management block of maximum counter true form is determined as the first management block.
Optionally, the data update apparatus of non-volatile memory medium provided by the present application, further includes:
Second correction verification module, for being verified to the first management block;First processing module, if for verifying failure, Nonvolatile storage medium is initialized.
Optionally, the data update apparatus of non-volatile memory medium provided by the present application, further includes:
Read module, for reading the second data block;Third correction verification module, for verifying the second data block;Second processing The mark of second data block is updated to first identifier, first identifier is for marking if failing to the second Data block check by module The second data block is known for damage block, and new root of laying equal stress on obtains the second data block according to the first management block, until to the second Data block check Until success.
Optionally, the data update apparatus of non-volatile memory medium provided by the present application, further includes:
Searching module searches next management block of the first management block for the index according to the first management block;4th really Cover half block, for determining that next management block is the second management block.
Optionally, the data update apparatus of non-volatile memory medium provided by the present application, further includes:
Module is chosen, for randomly selecting the management block in addition to the first management block according to the index of the first management block;The Five determining modules, for determining that the management block randomly selected in addition to the first management block is the second management block.
Optionally, the second determining module, comprising:
Submodule is searched, for the address according to the first data block, searches next data block of the first data block;First Judging submodule, for judging whether the state of next data block is unused state;Second judgment submodule, if under being used for The state of one data block is unused state, then judges next data block with the presence or absence of second identifier, second identifier is used for Next data block is identified as damage block;First determines submodule, if for next data block, there is no the second marks, really Determining subsequent data chunk is the second data block.
Optionally, the second determining module, comprising:
It chooses submodule and randomly selects the data block in addition to the first data block for the address according to the first data block, As data block to be determined;Third judging submodule, for judging whether the state of data block to be determined is unused state;The Four judging submodules judge that data block to be determined whether there is if the state for data block to be determined is unused state Third mark, third mark is for identifying data block to be determined as damage block;Second determines submodule, if being used for data to be determined There is no third marks for block, it is determined that data block to be determined is the second data block.
The third aspect, the embodiment of the present application provide a kind of MCU, for executing as above-mentioned first aspect or first aspect are optional The data-updating method of the non-volatile memory medium of mode.
Fourth aspect, the application provide a kind of terminal, including MCU described in the third aspect.
5th aspect, the application provide a kind of computer readable storage medium, and computer-readable recording medium storage has meter Calculation machine program, computer program execute server such as the non-volatile memories of first aspect or first aspect optional way Jie The data-updating method of matter.
6th aspect, the embodiment of the present invention provide a kind of computer program product, comprising: executable instruction can be performed and refer to Enable the data-updating method of the non-volatile memory medium for realizing such as first aspect or first aspect optional way.
The data-updating method, device and storage that the application provided by the invention provides a kind of non-volatile memory medium are situated between Matter, this method comprises: obtaining the first management block on non-volatile memory medium, the first management block includes: multiple data blocks Latest features information, multiple data blocks include the first data block and the second data block, and the first data block is data block to be updated, the Two data blocks are updatable data block.The first data block is obtained according to the first management block;The second number is determined according to the first management block According to block;According to the first data block, the second data block on non-volatile memory medium is updated;The second management block message is generated, the Two management block information include the update characteristic information of multiple data blocks;According to the second management block message, non-volatile memories are updated The second management block on medium.On the one hand, the second data block is determined according to the first management block, and non-according to the update of the first data block The second data block in volatile storage medium, realizes the update of data block, and if during updating the second data block Power down occurs, since the second management block content does not update, then the first number can be obtained according to the first management block again after the power-up According to block;On the other hand, by generating the second management block message, and the second management block is updated, realizes the pipe to multiple data blocks Reason, and if power down occurs during updating the second management block, due to not updating the second management block, after the power-up may be used To obtain the first data block according to the first management block again, the data for not only realizing non-volatile memory medium update, but also The power down protection of non-volatile memory medium is realized, and due to not increasing any hardware facility, is reduced costs.
Detailed description of the invention
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is this hair Bright some embodiments for those of ordinary skill in the art without any creative labor, can be with It obtains other drawings based on these drawings.
Fig. 1 is the flow diagram of the data-updating method for the non-volatile memory medium that one embodiment of the application provides;
Fig. 2 is the space distribution schematic diagram of non-volatile memory medium provided by the embodiments of the present application;
Fig. 3 is the process signal of the data-updating method for the non-volatile memory medium that another embodiment of the application provides Figure;
Fig. 4 is the process signal of the data-updating method for the non-volatile memory medium that the application another embodiment provides Figure;
Fig. 5 is the structural schematic diagram of the data update apparatus for the non-volatile memory medium that one embodiment of the application provides;
Fig. 6 is the structural representation of the data update apparatus for the non-volatile memory medium that the another embodiment of the application provides Figure;
Fig. 7 is the structural representation of the data update apparatus for the non-volatile memory medium that another embodiment of the application provides Figure;
Fig. 8 is the structural representation of the data update apparatus for the non-volatile memory medium that the application another embodiment provides Figure;
Fig. 9 is the structural representation of the data update apparatus of the application non-volatile memory medium that another embodiment provides again Figure;
Figure 10 is that the structure of the data update apparatus for the non-volatile memory medium that the application still another embodiment provides is shown It is intended to.
Specific embodiment
In order to make the object, technical scheme and advantages of the embodiment of the invention clearer, below in conjunction with the embodiment of the present invention In attached drawing, technical scheme in the embodiment of the invention is clearly and completely described, it is clear that described embodiment is A part of the embodiment of the present invention, instead of all the embodiments.Based on the embodiments of the present invention, those of ordinary skill in the art Every other embodiment obtained without making creative work, shall fall within the protection scope of the present invention.
Description and claims of this specification and term " first ", " second ", " third " " in above-mentioned attached drawing The (if present)s such as four " are to be used to distinguish similar objects, without being used to describe a particular order or precedence order.It should manage The data that solution uses in this way are interchangeable under appropriate circumstances, so that the embodiment of the present invention described herein for example can be to remove Sequence other than those of illustrating or describe herein is implemented.In addition, term " includes " and " having " and theirs is any Deformation, it is intended that cover it is non-exclusive include, for example, containing the process, method of a series of steps or units, system, production Product or equipment those of are not necessarily limited to be clearly listed step or unit, but may include be not clearly listed or for this A little process, methods, the other step or units of product or equipment inherently.
Non-volatile memory medium has been widely used in IC card at present, and mobile phone, computer, plate, game machine, medical treatment are set In standby, communication equipment etc. terminal device.Terminal device inevitably will appear the modification of data in practical applications, then It stores in non-volatile memory medium, since non-volatile memory medium needs first to wipe, then is written.If terminal device is not done If any protection, if power down has occurred during write-in, after re-powering, it may appear that loss of data, in turn Influence the reliability service of terminal device.Power down occurs in writing process in order to prevent and then makes loss of data, it is usually logical at present Detection system power supply is crossed, when power down occurs for power supply, provides electricity to non-volatile memory medium using energy-storage units Source, so come guarantee be written data integrality, after re-powering, effectively prevent loss of data, but the prior art needs to increase Add new hardware facility, higher cost does not solve above-mentioned technical problem, and the application provides a kind of number of non-volatile memory medium According to update method, device and storage medium.
Hereinafter, the exemplary application scene to the embodiment of the present invention is introduced.
In the use process of terminal device, it may be desirable to modify to data, for example, in using terminal equipment Application program when, modification setting information etc., modified setting information needs are stored into non-volatile memory medium, In, the embodiment of the present application to the concrete type of non-volatile memory medium with no restrictions.In addition, terminal device can be MCU, in Central processor (Central Processing Unit Processor, CPU), PC (PersonalComputer, letter Claim: PC) or mobile terminal etc., which is referred to as user equipment (User Equipment, referred to as: UE), connects Enter terminal, subscriber unit, subscriber station, movement station, mobile station, user terminal, terminal, wireless telecom equipment, user agent or use Family device.Mobile terminal can be smart phone, cellular phone, wireless phone, tablet computer, personal digital assistant (PersonalDigital Assistant, referred to as: PDA) equipment, the handheld device with wireless communication function is connected to nothing Other processing equipments of line modem, mobile unit, wearable device etc., type of the embodiment of the present invention to terminal device With no restrictions.Based on this, the application provides the data-updating method, device and storage medium of a kind of non-volatile memory medium.
Fig. 1 is the flow diagram of the data-updating method for the non-volatile memory medium that one embodiment of the application provides, This method can be executed by the data-updating method device of non-volatile memory medium, which can be by software and/or hard The mode of part realizes, such as: the device can be some or all of terminal device, and terminal device can be above-mentioned any terminal Equipment is illustrated by data-updating method of the executing subject to non-volatile memory medium of MCU below, as shown in Figure 1, this Method in inventive embodiments may include:
S1, MCU obtain the first management block on non-volatile memory medium, and the first management block includes: multiple data blocks Latest features information, multiple data blocks include the first data block and the second data block, and the first data block is data block to be updated, the Two data blocks are updatable data block.
MCU obtains the first management block on non-volatile memory medium into memory, and non-volatile memory medium can wrap Include multiple management blocks, wherein the particular number of management block is arranged not in the quantity at least two of management block, the embodiment of the present invention Be limited, in addition, the embodiment of the present invention to the size of management block also with no restrictions, as long as can satisfy user demand.It can Choosing, non-volatile memory medium includes data field and directorial area, and data field includes at least two data blocks, and directorial area includes extremely Few two management blocks.Fig. 2 is the space distribution schematic diagram of non-volatile memory medium provided by the embodiments of the present application, with non-volatile Property storage medium include three management blocks, for four data blocks, as shown in Fig. 2, may include counter in each management block The characteristic information and correction verification module of true form, counter radix-minus-one complement, multiple data blocks, optionally, the characteristic information of multiple data blocks can To include the address of each data block, mark and state in multiple data blocks, wherein the address of data block is for inquiring the number According to block, the mark of data block for identifying whether the data block is damage block, the state of data block include use state or Unused state.
Optionally, the characteristic information of data block can also include the type of each data block in multiple data blocks, wherein number It is used to indicate the content characteristic of data block according to the type of block, for example, the type of data block is fingerprint template, then the data block is to refer to The related data of line template.
Optionally, after obtaining the first management block on non-volatile memory medium, further includes:
First management block is verified;If verification failure, initializes nonvolatile storage medium.
Wherein it is possible to the first management block is verified by the correction verification module in the first management block, if verification failure, MCU initializes non-volatile memory medium, or reports the first management block check failed message to terminal, the embodiment of the present invention pair This is with no restrictions.
The mode verified to the first management module can be by cyclic redundancy check (Cyclic Redundancy Check, CRC) or examine and wait modes, the embodiment of the present invention is without limitation, as long as can be realized to the first management module It is verified.
Since non-volatile memory medium may include multiple management blocks, multiple management blocks respectively include different data update The characteristic information of period multiple data blocks, for example, including multiple data blocks before more new data for the first time in management block 1 Characteristic information is arranged the counter true form in management block 1, and does corresponding update to the counter complement code in management block 1, for example, Counter true form in management block 1 can be 1;It include multiple data blocks after more new data for the first time in management block 2 Characteristic information, then the calculator true form in management block 2 adds 1 on the basis of the counter true form of data block 1, for example, management block 2 In counter true form can be 2, and update the counter radix-minus-one complement in management block 2;It include being updated at second in management block 3 The characteristic information of multiple data blocks after data, then base of the counter true form in management block 3 in the counter true form of data block 2 Add 1 on plinth, for example, the counter true form in management block 3 can be 3, and updates the counter radix-minus-one complement in management block 3;If last It once is updated to second of update, then includes the latest features information of multiple data blocks in management block 3.Due to the first management block Latest features information including multiple data blocks, therefore in the example above, management block 3 is the first management block.
It include the latest features information of multiple data blocks in first management block, wherein the first data block is data to be updated Block, for example, as shown in Fig. 2, the data if desired updated are fingerprint template, and data block 0 is fingerprint template information, then first counts It is data block 0 according to block.Second data block is updatable data block, and updatable data block is can be by the data block in MCU memory The data block being updated on non-volatile memory medium, and do not influence system normal operation after updating the data block.Wherein, Updatable data block includes Blank data block and invalid data block, and Blank data block and invalid data block are the state of data block For the data block of unused state, for example, as shown in Fig. 2, if the state of data block 3 is unused state, and data block 3 is nothing Data are imitated, then data block 3 is invalid data block, can be used as the second data block, in addition, if the state of data block 2 is also not make With state, and data block 2 is clear data, then data block 2 is Blank data block, can also be used as the second data block, the present invention How embodiment is to determining the method for the second data block with no restrictions.
S2, MCU obtain the first data block according to the first management block.
MCU determines the first data block according to the first management block, can according to need the data type and the first management of update In block in the latest features information of multiple data blocks data block type, obtain and the data type same type that needs to update The address of data block, then MCU determines the first data block according to the address of data block, and obtains the first data block into memory. For example, it is desired to which the data content updated inquires the type of data block according to the data information in the first management block for fingerprint template For the data block of fingerprint template, obtains the type of data block then as the address of the data block of fingerprint template, determine the first data Block, and the first data block is obtained into memory.
S3, MCU determine the second data block according to the first management block.
MCU determines the second data block according to the first management block, in a kind of possible embodiment, according to the first data block Address, search the first data block next data block;Whether the state for judging next data block is unused state;If The state of next data block is unused state, then judges next data block with the presence or absence of second identifier, second identifier is used It is damage block in identifying next data block;If there is no the second marks for next data block, it is determined that subsequent data chunk the Two data blocks.
Illustratively, as shown in Fig. 2, such as the first data block is data block 0, then next data block of the first data block It can judge that data block 1 is according to the state of the data block in the first management block in the characteristic information of data block 1 for data block 1 No is unused state, if data block 1 is unused state, according in the first management block in the characteristic information of data block 1 Data block mark, judge data block 1 with the presence or absence of second identifier, if second identifier is not present in data block 1, it is determined that data Block 1 is the second data block.
If data block 1 is use state, next data block of data block 1 is searched, i.e. whether data block 2 is not make The mark of data block 2 is judged if data block 2 is unused state with state, if there are second identifiers, until finding State to data block is the data block of unused state and data block identified there is no second identifier, and is determined as the second number According to block.
In the present solution, searching next data block of the first data block, and under by the address according to the first data block The state and mark of one data block are judged, final to determine the second data block, not only ensure that the second data block is not make It is not with state and damage block, and the equilibrium for realizing multiple data blocks in non-volatile memory medium is erasable, and then can be with Effectively extend the service life of non-volatile memory medium.
MCU determines the second data block according to the first management block, and in alternatively possible embodiment, MCU is according to first The address of data block randomly selects the data block in addition to the first data block, as data block to be determined;Judge data to be determined Whether the state of block is unused state;If the state of data block to be determined is unused state, data block to be determined is judged It is identified with the presence or absence of third, third mark is for identifying data block to be determined as damage block;If there is no for data block to be determined Three marks, it is determined that data block to be determined is the second data block.
Illustratively, as shown in Fig. 2, such as the first data block is data block 0, data block 1, data block are then randomly selected 2 or data block 3, for example, having randomly selected data block 2 is used as data block to be determined, according to the spy of data block 2 in the first management block The state of data block in reference breath, judges whether data block 2 is unused state, if data block 2 is unused state, According to the mark of the data block in the first management block in the characteristic information of data block 2, judge data block 2 with the presence or absence of third mark Know, if there is no third marks for data block 2, it is determined that data block 2 is the second data block.
If data block 2 is use state, the data block except data block 0 and data block 2 is randomly selected, such as have chosen Data block 1 is data block to be determined, then continues to judge whether data block 1 is unused state, if data block 1 is that shape is not used State then judges the mark of data block 1, if there are third mark, the state until searching out data block be unused state and There is no the data blocks of third mark for the mark of data block, and are determined as the second data block.
In the present solution, randomly selecting the data block in addition to the first data block by the address according to the first data block, make For data block to be determined, and the state and mark of data block to be determined are judged, it is final to determine the second data block, not only protect It has demonstrate,proved the second data block to be unused state and be not damage block, and has realized multiple data blocks in non-volatile memory medium Equilibrium it is erasable, and then can effectively extend the service life of non-volatile memory medium.
S4, MCU update the second data block on non-volatile memory medium according to the first data block.
Using the first data block as data block 0, the second data block be data block 3 for, data block 0 be data block to be updated, MCU obtains data block 0 and modifies into memory, and according to actual needs to data block 0, forms modified data block 0, Before more new data block 3, data block 3 is that invalid data block first wipes the second data block during updating the second data block In information, modified information is then written, therefore, update non-volatile memory medium on data block 3 when, wipe first Except the information in data block 3, then the data on non-volatile memory medium are written in data block 0 modified in memory by MCU In block 3.If power down occurs during updating the second data block, even by modified 0 writing data blocks 3 of data block Power down occurs in the process, since the second management block content does not update, then after the power-up, the first management block is still including multiple numbers According to the management block of the latest features information of block, the first data block can be obtained according to the first management block, in addition, due to the first data Block is not carried out erasing, and therefore, the first data block still retains the data information before updating, and avoids loss of data.
S5, MCU generate the second management block message, and the second management block information includes the update characteristic information of multiple data blocks.
By above-mentioned steps, MCU has updated the second data block on non-volatile memory medium, then needs MCU in memory In to first management block message modify, and will it is modified first management block message generate second manage block message.Specifically It is as follows to modify content: the type for updating the first data block is initial value, and the state for updating the first data block is unused state, more The concrete type of the type of new second data block, the second data block is determining according to updated data type, the embodiment of the present invention Without limitation, the state for updating the second data block is use state, and it is further desired that the counter true form of directorial area with And counter radix-minus-one complement is updated, and generates the second management block message.
S6, block message is managed according to second, updates the second management block on non-volatile memory medium.
MCU updates the second management block on non-volatile memory medium according to the second management block message in memory, In, the second management block can be different management blocks from the first management block, or identical management block, the embodiment of the present application By taking the second management block is different management blocks from the first management block as an example, according to second the second management block of management block information update Before, it is also necessary to determine the second management block, in a kind of possible embodiment, according to the index of the first management block, search the Next management block of one management block;Determine that next management block is the second management block.
Illustratively, as shown in Fig. 2, such as the first management block is management block 1, next management is management block 2, it is determined that Management block 2 is the second management block, for another example the first management block is management block 3, then next management block is management block 1, it is determined that Management block 1 is the second management block.
In the present solution, being realized by determining that next management block is the second management block according to the index of the first management block The equilibrium of multiple management blocks is erasable in non-volatile memory medium, and then can effectively extend the use of non-volatile memory medium Service life.
In alternatively possible embodiment, randomly selected in addition to the first management block according to the index of the first management block Management block;Determine that the management block randomly selected in addition to the first management block is the second management block.
Illustratively, as shown in Fig. 2, for example, the first management block be management block 1, then randomly select management block 2 or management block 3, and determine management block 2 or management block 3 for the second management block.
In the present solution, being realized by determining that the management block randomly selected in addition to the first management block is the second management block The equilibrium of multiple management blocks is erasable in non-volatile memory medium, and then can effectively extend the use of non-volatile memory medium Service life.
MCU wipes the second management block after determining the second management block first, then by the second management block message write-in the In two data blocks, at this point, including the latest features information of multiple data blocks after updating in the second management block.
The data-updating method of non-volatile memory medium provided by the embodiments of the present application, on the one hand, according to the first management Block determines the second data block, and updates non-volatile the second data block deposited on medium according to the first data block, realizes data The update of block, and if power down occurs during updating the second data block, since the second management block content does not update, then upper The first data block can be obtained according to the first management block again after electricity;On the other hand, by generating the second management block message, and more The second management block on new non-volatile memory medium, realizes the management to multiple data blocks, and if managing in update second Power down occurs during block, then it, after the power-up can be again according to the first management block due to not updating the second management block The first data block is obtained, not only effectively prevents the loss of data in the first data block, but also set due to not increasing any hardware It applies, reduces costs.
On the basis of the above embodiments, the first management block is accurately obtained in order to realize, it is optionally, non-volatile obtaining Property storage medium on the first management block before, Fig. 3 is the number for the non-volatile memory medium that another embodiment of the application provides According to the flow diagram of update method, this method can be executed by the data-updating method device of non-volatile memory medium, should Device can realize by way of software and/or hardware, such as: the device can be some or all of terminal device, eventually End equipment can be above-mentioned any terminal device, update below by data of the executing subject to non-volatile memory medium of MCU Method is illustrated, as shown in figure 3, the data-updating method of non-volatile memory medium provided by the embodiments of the present application, may be used also To include:
Step S101:MCU obtains the corresponding counter true form of all management blocks and counting on non-volatile memory medium Device radix-minus-one complement.
As shown in Fig. 2, the corresponding counter true form of each management block and a counter radix-minus-one complement, wherein counter is former Access times of the code for record management block all need when MCU is every time updated the data block in non-volatile memory medium Management block is updated, wherein all can be to counter true add 1 when updating management block every time, and corresponding more New count Device radix-minus-one complement.Each counter radix-minus-one complement is used to verify the accuracy of the corresponding counter true form of the management block
Step S102:MCU is directed to each counter true form, verifies counter original according to its corresponding counter radix-minus-one complement Code.
Since each counter true form and counter radix-minus-one complement correspond, it is right its can be verified by counter radix-minus-one complement Answer the true form of counter, wherein the embodiment of the present invention verifies its mode for corresponding to counter true form not to according to counter radix-minus-one complement It is limited.
Illustratively, such as the management block of non-volatile memory medium shares m, then a shared m to counter true form and Counter radix-minus-one complement, if at least there is the m-n verified success of counter true form, continues to execute step S103 by verification, Middle n is that the integer less than m enables n=1 in a kind of possible embodiment, and the embodiment of the present invention does not do the specific value of n Limitation.
If less than m-n, then MCU initialization is non-volatile deposits verified successful counter true form number by verification Storage media, or report counter true form verification failure information to terminal, the embodiment of the present invention is without limitation.
Step S103:MCU determines all verified successful counter true forms, and by all verified successful counters The corresponding management block of maximum counter true form is determined as the first management block in true form.
Determine all verified successful counter true forms, the corresponding management of maximum counter true form in counter true form Block be include that the management blocks of latest features information of multiple data blocks therefore will be in all verified successful counter true forms The corresponding management block of maximum counter true form is determined as the first management block.
In the present solution, the first management block is obtained by the corresponding counter true form of all management blocks and counter radix-minus-one complement, it can Effectively to avoid reading all management blocks, and then the first management block of quick obtaining.
Second data block may be damaged in use, in order to guarantee that more new data is successfully written the second data block, Optionally, Fig. 4 is the flow diagram of the data-updating method for the non-volatile memory medium that the application another embodiment provides, This method can be executed by the data-updating method device of non-volatile memory medium, which can be by software and/or hard The mode of part realizes, such as: the device can be some or all of terminal device, and terminal device can be above-mentioned any terminal Equipment is illustrated, as shown in figure 4, root below by data-updating method of the executing subject to non-volatile memory medium of MCU According to the first data block, after updating the second data block, further includes:
S7, MCU read the second data block.
S8, the second data block of verification.
MCU is compared according to the second data block of reading and the second data block of write-in, if comparing successfully, illustrates Verify the second data block success, the embodiment of the present invention to verification the second data block mode with no restrictions.If verifying successfully, hold Row step S5 thens follow the steps S9 if verification is unsuccessful.
S9, the mark of the second data block is updated to first identifier, first identifier is damage for identifying the second data block Block.
If verification is unsuccessful, the second data block may be damage block, therefore the mark of the second data block is updated to the One mark, first identifier are damage block for identifying the second data block.Since the second data block has the mark of damage block, then exist It, can be to avoid choosing the data block again as the second data block when determining the second data block according to the first management block.
Step S3, S4, S7, S8, S9 are repeated, until to the success of the second Data block check.
In the present solution, the integrality of the second data block can be effectively ensured by verifying to the second data block, and lead to Fail if crossing to the second Data block check, the mark of the second data block is updated to first identifier, first identifier is for identifying Second data block is damage block, when ensure that some data block is damaged in non-volatile memory medium, is not influenced non-easy The normal use of the property lost storage medium, increases the reliability and service life of non-volatile memory medium.
Device, MCU, equipment, storage medium and computer program product is explained below, effect can refer to method part Effect, this is repeated no more below.
The application provides a kind of data update apparatus of non-volatile memory medium, and Fig. 5 is that one embodiment of the application provides Non-volatile memory medium data update apparatus structural schematic diagram, which can pass through the side of software and/or hardware Formula realization, such as: the device can be some or all of terminal device, and terminal device can be above-mentioned any terminal device, As shown in figure 5, the data update apparatus of non-volatile memory medium provided by the present application may include:
First obtains module 51, and for obtaining the first management block on non-volatile memory medium, the first management block includes: The latest features information of multiple data blocks, multiple data blocks include the first data block and the second data block, the first data block be to More new data block, the second data block are updatable data block, and updatable data block is Blank data block or invalid data block.
First determining module 52, for obtaining the first data block according to the first management block.
Second determining module 53, for determining the second data block according to the first management block.
First update module 54, for updating the second data block on non-volatile memory medium according to the first data block.
First generation module 55, for generating the second management block message, the second management block information includes multiple data blocks Update characteristic information.
Second update module 56, for updating the second pipe on non-volatile memory medium according to the second management block message Manage block.
Optionally, non-volatile memory medium includes data field and directorial area, and data field includes at least two data blocks, pipe Managing area includes at least two management blocks.
Optionally, the latest features information of multiple data blocks includes:
The address of each data block, mark and state in multiple data blocks;Wherein, the address of data block is for inquiring data Whether block, the mark of data block are damage block for identification data block, and the state of data block including use state or is not used State.
Optionally, Fig. 6 is the knot of the data update apparatus for the non-volatile memory medium that the another embodiment of the application provides Structure schematic diagram, the device can realize by way of software and/or hardware, such as: the device can be the portion of terminal device Divide or all, terminal device can be above-mentioned any terminal device, as shown in fig. 6, non-volatile memories provided by the present application are situated between The data update apparatus of matter can also include:
Second obtains module 61, for obtaining the corresponding counter true form of all management blocks on non-volatile memory medium With counter radix-minus-one complement, wherein the corresponding counter true form of each management block and a counter radix-minus-one complement, counter true form are used for The access times of record management block, each counter radix-minus-one complement are used to verify the accuracy of the corresponding counter true form of the management block.
First correction verification module 62 verifies the meter according to its corresponding counter radix-minus-one complement for being directed to each counter true form Number device true form.
Third determining module 63, for determining all verified successful counter true forms, and by all verified successes Counter true form in the corresponding management block of maximum counter true form be determined as the first management block.
Optionally, the data update apparatus of non-volatile memory medium provided by the present application, further includes:
Second correction verification module 64, for being verified to the first management block.
First processing module 65, if being initialized for verifying failure to nonvolatile storage medium.
Optionally, the data update apparatus of non-volatile memory medium provided by the present application, further includes:
Read module 66, for reading the second data block.
Third correction verification module 67, for verifying the second data block.
The mark of second data block is updated to first if failing to the second Data block check by Second processing module 68 Mark, first identifier is damage block for identifying the second data block, and redefines the second data module, until to the second data Until block check success.
Optionally, Fig. 7 is the knot of the data update apparatus for the non-volatile memory medium that another embodiment of the application provides Structure schematic diagram, the device can realize by way of software and/or hardware, such as: the device can be the portion of terminal device Divide or all, terminal device can be above-mentioned any terminal device, as shown in fig. 7, non-volatile memories provided by the present application are situated between The data update apparatus of matter can also include the data update apparatus of non-volatile memory medium provided by the present application, further includes:
Searching module 71 searches next management block of the first management block for the index according to the first management block.
4th determining module 72, for determining that next management block is the second management block.
Optionally, Fig. 8 is the knot of the data update apparatus for the non-volatile memory medium that the application another embodiment provides Structure schematic diagram, the device can realize by way of software and/or hardware, such as: the device can be the portion of terminal device Divide or all, terminal device can be above-mentioned any terminal device, as shown in figure 8, non-volatile memories provided by the present application are situated between The data update apparatus of matter can also include the data update apparatus of non-volatile memory medium provided by the present application, further includes:
Module 73 is chosen, for randomly selecting the management block in addition to the first management block according to the index of the first management block.
5th determining module 74, for determining that the management block randomly selected in addition to the first management block is the second management block.
Optionally, Fig. 9 is the data update apparatus of the application non-volatile memory medium that another embodiment provides again Structural schematic diagram, the device can realize by way of software and/or hardware, such as: the device can be terminal device Partly or entirely, terminal device can be above-mentioned any terminal device, as shown in figure 9, non-volatile memories provided by the present application The data update apparatus of medium, the second determining module 53 may include:
Submodule 81 is searched, for the address according to the first data block, searches next data block of the first data block.
First judging submodule 82, for judging whether the state of next data block is unused state.
Second judgment submodule 83 judges next number if the state for next data block is unused state It whether there is second identifier according to block, second identifier is for identifying next data block as damage block.
First determines submodule 84, if there is no the second marks for next data block, it is determined that subsequent data chunk is Second data block.
Optionally, Figure 10 is the data update apparatus for the non-volatile memory medium that the application still another embodiment provides Structural schematic diagram, the device can realize by way of software and/or hardware, such as: the device can be terminal device Partly or entirely, terminal device can be above-mentioned any terminal device, as shown in Figure 10, non-volatile memories provided by the present application The data update apparatus of medium, the second determining module 53 may include:
It chooses submodule 91 and randomly selects the data in addition to the first data block for the address according to the first data block Block, as data block to be determined.
Third judging submodule 92, for judging whether the state of data block to be determined is unused state.
4th judging submodule 93 judges number to be determined if the state for data block to be determined is unused state It is identified according to block with the presence or absence of third, third mark is for identifying data block to be determined as damage block.
Second determines submodule 94, if there is no third marks for data block to be determined, it is determined that data block to be determined For the second data block.
The embodiment of the present application provides a kind of MCU, for executing such as non-volatile memory medium provided by the above embodiment Data-updating method, content and effect can refer to embodiment of the method.
The application provides a kind of terminal, and including MCU described in above-described embodiment, content and effect can refer to method portion Point.
The application provides a kind of computer readable storage medium, and computer-readable recording medium storage has computer program, Computer program makes server execute the data-updating method such as non-volatile memory medium in above-described embodiment, content and Method can refer to embodiment of the method.
The embodiment of the present invention provides a kind of computer program product, comprising: executable instruction, executable instruction for realizing Such as the data-updating method of the non-volatile memory medium in above-described embodiment, content and method can refer to embodiment of the method.
Those of ordinary skill in the art will appreciate that: realize that all or part of the steps of above-mentioned each method embodiment can lead to The relevant hardware of program instruction is crossed to complete.Program above-mentioned can be stored in a computer readable storage medium.The journey When being executed, execution includes the steps that above-mentioned each method embodiment to sequence;And storage medium above-mentioned include: ROM, RAM, magnetic disk or The various media that can store program code such as person's CD.
Finally, it should be noted that the above embodiments are only used to illustrate the technical solution of the present invention., rather than its limitations;To the greatest extent Pipe present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that: its according to So be possible to modify the technical solutions described in the foregoing embodiments, or to some or all of the technical features into Row equivalent replacement;And these are modified or replaceed, various embodiments of the present invention technology that it does not separate the essence of the corresponding technical solution The range of scheme.

Claims (13)

1. a kind of data-updating method of non-volatile memory medium characterized by comprising
The first management block on S1, acquisition non-volatile memory medium, first management block includes: the newest of multiple data blocks Characteristic information, the multiple data block include the first data block and the second data block, and first data block is data to be updated Block, second data block are updatable data block, and the updatable data block is Blank data block or invalid data block;
S2, first data block is obtained according to first management block;
S3, second data block is determined according to first management block;
S4, according to first data block, update second data block on the non-volatile memory medium;
S5, the second management block message is generated, the second management block information includes the update characteristic information of the multiple data block;
S6, block message is managed according to described second, updates the second management block on the non-volatile memory medium.
2. the method according to claim 1, wherein
The non-volatile memory medium includes data field and directorial area, and the data field includes at least two data blocks, described Directorial area includes at least two management blocks.
3. the method according to claim 1, wherein the latest features information of the multiple data block includes:
The address of each data block, mark and state in the multiple data block;
Wherein, the address of data block is for inquiring the data block, the mark of data block for identify the data block whether be Block is damaged, the state of data block includes use state or unused state.
4. the method according to claim 1, wherein the first pipe on the acquisition non-volatile memory medium Before reason block, further includes:
Obtain the corresponding counter true form of all management blocks and the counter radix-minus-one complement on the non-volatile memory medium, wherein The corresponding counter true form of each management block and a counter radix-minus-one complement, use time of the counter true form for record management block Number, each counter radix-minus-one complement are used to verify the accuracy of the corresponding counter true form of the management block;
For each counter true form, which is verified according to its corresponding counter radix-minus-one complement;
Determine all verified successful counter true forms, and will be maximum in all verified successful counter true forms The corresponding management block of counter true form is determined as the first management block.
5. method according to claim 1-4, which is characterized in that obtaining the on non-volatile memory medium After one management block, further includes:
First management block is verified;
If verification failure, initializes the nonvolatile storage medium.
6. according to the method described in claim 3, update is described non-easy it is characterized in that, described according to first data block After second data block on the property lost storage medium, further includes:
S7, second data block is read;
S8, verification second data block;
If S9, failing to second Data block check, the mark of second data block is updated to first identifier, it is described First identifier repeats step S3, S4, S7, S8, S9 for identifying second data block as damage block, until to described the Until the success of two Data block checks.
7. the method according to claim 1, wherein being updated described non-according to the second management block message Before the second management block in volatile storage medium, further includes:
According to the index of first management block, next management block of first management block is searched;
Determine that next management block is second management block.
8. the method according to claim 1, wherein being updated described non-according to the second management block message Before the second management block in volatile storage medium, further includes:
The management block in addition to first management block is randomly selected according to the index of first management block;
It is second management block that the management block in addition to first management block is randomly selected described in determination.
9. according to the method described in claim 3, it is characterized in that, determining second data according to first management block Block, comprising:
According to the address of first data block, next data block of first data block is searched;
Whether the state for judging next data block is unused state;
If the state of next data block is unused state, judge next data block with the presence or absence of the second mark Know, the second identifier is for identifying next data block as damage block;
If there is no second marks for next data block, it is determined that the subsequent data chunk is the second data block.
10. according to the method described in claim 3, it is characterized in that, determining second data according to first management block Block, comprising:
According to the address of first data block, the data block in addition to first data block is randomly selected, as to be determined Data block;
Whether the state for judging the data block to be determined is unused state;
If the state of the data block to be determined is unused state, judge the data block to be determined with the presence or absence of third mark Know, the third mark is for identifying the data block to be determined as damage block;
If there is no third marks for the data block to be determined, it is determined that the data block to be determined is the second data block.
11. a kind of data update apparatus of non-volatile memory medium, which is characterized in that appoint for executing claim 1-10 such as The data-updating method of non-volatile memory medium described in one claim.
12. a kind of micro-control unit MCU, which is characterized in that for executing as described in any one of claim 1-10 claim Non-volatile memory medium data-updating method.
13. a kind of terminal, which is characterized in that including MCU as claimed in claim 12.
CN201910127182.1A 2019-02-20 2019-02-20 Data updating method and device for nonvolatile storage medium and storage medium Active CN110008059B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910127182.1A CN110008059B (en) 2019-02-20 2019-02-20 Data updating method and device for nonvolatile storage medium and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910127182.1A CN110008059B (en) 2019-02-20 2019-02-20 Data updating method and device for nonvolatile storage medium and storage medium

Publications (2)

Publication Number Publication Date
CN110008059A true CN110008059A (en) 2019-07-12
CN110008059B CN110008059B (en) 2021-05-11

Family

ID=67165947

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910127182.1A Active CN110008059B (en) 2019-02-20 2019-02-20 Data updating method and device for nonvolatile storage medium and storage medium

Country Status (1)

Country Link
CN (1) CN110008059B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110442473A (en) * 2019-07-30 2019-11-12 深圳市元征科技股份有限公司 A kind of non-volatile data storage method, apparatus, electronic equipment and medium

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101216789A (en) * 2008-01-08 2008-07-09 福建星网锐捷网络有限公司 Data update method, device and system
CN101620572A (en) * 2008-07-02 2010-01-06 上海华虹Nec电子有限公司 Nonvolatile memory and control method
CN101946394A (en) * 2007-12-21 2011-01-12 阿祖雷科技有限公司 Distributed energy conversion systems
CN102087623A (en) * 2010-12-02 2011-06-08 东方口岸科技有限公司 Data protection method during power-fail of special USB (Universal Serial Bus) storage equipment in data updating
CN103559141A (en) * 2013-11-01 2014-02-05 北京昆腾微电子有限公司 Management method and device for nonvolatile memory (NVM)
WO2014035377A1 (en) * 2012-08-28 2014-03-06 Hewlett-Packard Development Company, L.P. High performance persistent memory
CN103699344A (en) * 2013-11-05 2014-04-02 威盛电子股份有限公司 Nonvolatile memory device and method of operating the same
CN103996412A (en) * 2013-02-19 2014-08-20 北京同方微电子有限公司 Power-fail protection method applied to intelligent-card nonvolatile memories
CN108958643A (en) * 2017-05-19 2018-12-07 爱思开海力士有限公司 Data storage device and its operating method

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101946394A (en) * 2007-12-21 2011-01-12 阿祖雷科技有限公司 Distributed energy conversion systems
CN101216789A (en) * 2008-01-08 2008-07-09 福建星网锐捷网络有限公司 Data update method, device and system
CN101620572A (en) * 2008-07-02 2010-01-06 上海华虹Nec电子有限公司 Nonvolatile memory and control method
CN102087623A (en) * 2010-12-02 2011-06-08 东方口岸科技有限公司 Data protection method during power-fail of special USB (Universal Serial Bus) storage equipment in data updating
WO2014035377A1 (en) * 2012-08-28 2014-03-06 Hewlett-Packard Development Company, L.P. High performance persistent memory
CN103996412A (en) * 2013-02-19 2014-08-20 北京同方微电子有限公司 Power-fail protection method applied to intelligent-card nonvolatile memories
CN103559141A (en) * 2013-11-01 2014-02-05 北京昆腾微电子有限公司 Management method and device for nonvolatile memory (NVM)
CN103699344A (en) * 2013-11-05 2014-04-02 威盛电子股份有限公司 Nonvolatile memory device and method of operating the same
CN108958643A (en) * 2017-05-19 2018-12-07 爱思开海力士有限公司 Data storage device and its operating method

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110442473A (en) * 2019-07-30 2019-11-12 深圳市元征科技股份有限公司 A kind of non-volatile data storage method, apparatus, electronic equipment and medium
CN110442473B (en) * 2019-07-30 2023-01-24 深圳市元征科技股份有限公司 Nonvolatile data storage method and device, electronic equipment and medium

Also Published As

Publication number Publication date
CN110008059B (en) 2021-05-11

Similar Documents

Publication Publication Date Title
US9146854B2 (en) Restoring storage devices based on flash memories and related circuit, system, and method
CN107291405B (en) NorFlash data management method and device
CN101901169B (en) Scanner and method
CN106155596B (en) Data writing method and device
CN107516038A (en) A kind of method and device for determining device-fingerprint
CN104360957A (en) Method for maintaining flash memory wear leveling
CN103456360B (en) The management method of nonvolatile memory and device
CN109426441B (en) Data storage device and operation method thereof
CN109697109A (en) A kind of method, system, device and the storage medium of Division identification conflict virtual machine
CN112558868B (en) Method, device and equipment for storing configuration data
CN109685190B (en) Power-down protection method and device for IC card
CN109213448B (en) Method, device, equipment and storage medium for erasing and writing data of smart card
CN107992268B (en) Bad block marking method and related device
JP6788554B2 (en) Electronic devices, methods, and data scrubbing devices that perform data scrubbing
CN104090732A (en) Nonvolatile memory management method and device
CN110008059A (en) Data-updating method, device and the storage medium of non-volatile memory medium
CN106775481A (en) Method for reading data and equipment
JP4329937B2 (en) Method and apparatus for detecting errors when writing to persistent memory
CN110209349B (en) Data processing method and terminal equipment
CN104575605B (en) Storage arrangement and the method booted up using nonvolatile memory to system
CN116382582A (en) RAID remapping method, system, equipment and storage medium
CN107257281B (en) Method, apparatus and computer readable storage medium for NOR F L ASH storage key record
CN110348245A (en) Data completeness protection method, system, device and storage medium based on NVM
CN110837345A (en) Bad block table storage method and device
CN109101436A (en) Data dynamic addressing storage method, device and storage medium, terminal device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant