CN107132995A - A kind of method and apparatus for extending the erasable chip life-span - Google Patents

A kind of method and apparatus for extending the erasable chip life-span Download PDF

Info

Publication number
CN107132995A
CN107132995A CN201710166596.6A CN201710166596A CN107132995A CN 107132995 A CN107132995 A CN 107132995A CN 201710166596 A CN201710166596 A CN 201710166596A CN 107132995 A CN107132995 A CN 107132995A
Authority
CN
China
Prior art keywords
write
read
file
subregion
region
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201710166596.6A
Other languages
Chinese (zh)
Inventor
陆勇
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Watchdata Limited by Share Ltd
Original Assignee
Beijing WatchSmart Technologies 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 Beijing WatchSmart Technologies Co Ltd filed Critical Beijing WatchSmart Technologies Co Ltd
Priority to CN201710166596.6A priority Critical patent/CN107132995A/en
Publication of CN107132995A publication Critical patent/CN107132995A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0602Interfaces specially adapted for storage systems specifically adapted to achieve a particular effect
    • G06F3/0614Improving the reliability of storage systems
    • G06F3/0616Improving the reliability of storage systems in relation to life time, e.g. increasing Mean Time Between Failures [MTBF]
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0628Interfaces specially adapted for storage systems making use of a particular technique
    • G06F3/0638Organizing or formatting or addressing of data
    • G06F3/0643Management of files
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0628Interfaces specially adapted for storage systems making use of a particular technique
    • G06F3/0646Horizontal data movement in storage systems, i.e. moving data in between storage devices or systems
    • G06F3/0652Erasing, e.g. deleting, data cleaning, moving of data to a wastebasket
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0668Interfaces specially adapted for storage systems adopting a particular infrastructure
    • G06F3/0671In-line storage system
    • G06F3/0673Single storage device
    • G06F3/0679Non-volatile semiconductor memory device, e.g. flash memory, one time programmable memory [OTP]

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Techniques For Improving Reliability Of Storages (AREA)

Abstract

The invention discloses a kind of method and device for extending the erasable chip life-span, including:The read-write region being sized is reserved in erasable chip;By first subregion in the first data write-in read-write region of the first specified file, the internal file mark FID of the first specified file of record is that the first subregion sets the first counter, sets the count value of the first counter;By second subregion in the second data write-in read-write region of the second specified file, record the internal file mark FID of the first specified file, and the second counter is set for the second subregion, the count value of the second counter adds 1 for the count value of the maximum counter of current count value in read-write region;Second subregion is unappropriated region in read-write region or internal file mark FID is identical and the off-peak subregion of count value of corresponding counter.Using this method and device, the life-span of overall chip can be greatly promoted, the demand of practical application has been better met.

Description

A kind of method and apparatus for extending the erasable chip life-span
Technical field
The present invention relates to chip technology field, and in particular to a kind of method and apparatus in extension erasable chip life-span.
Background technology
Erasable chip, such as flash chip, band EEPROM EEPROM, safety chip SE, Wiped due to the existing information in erasable chip, reprogramed, be widely used in every field.Erasable chip Write operation must be carried out in white space, if there have been data target area, it is necessary to first wipe and write afterwards, therefore erasing behaviour Work is the basic operation of flash memory.But each erasing to chip and re-operate and can all consume the life-span of chip.In order to the greatest extent The service life of chip may be extended, common chip is usually substituted using professional chip, such as safety chip SE, The M2M chips of rank can be advised with the M2M chips or car of technical grade, but be found in practical application, for answering for some fields For, even technical grade or car advise the chip of rank, application demand can not be met, and the price of professional chip compares It is expensive so as to be greatly improved using the chip and using the cost of the equipment of this kind of chip.
The content of the invention
For defect present in prior art, it is an object of the invention to provide a kind of extension erasable chip life-span Method, with it, the life-span of chip can effectively be lifted.
To achieve the above object, the technical solution adopted by the present invention is:A kind of method for extending the erasable chip life-span, bag Include:
The read-write region being sized is reserved in erasable chip;
First data of the first specified file are write to first subregion in the read-write region, the first specified file is recorded Internal file mark FID, and for the first subregion set the first counter, set the first counter count value;Described One data are the data in first write-in read-write region;
Second data of the second specified file are write to second subregion in the read-write region, the first specified file is recorded Internal file mark FID, and the second counter is set for the second subregion, the count value of the second counter is in read-write region The count value of the maximum counter of current count value adds 1;Second subregion is unappropriated region or interior in read-write region Portion file identification FID is identical and the off-peak subregion of count value of corresponding counter.
Further, a kind of method for extending the erasable chip life-span as described above, in addition to:Write in read-write region Before data, according to default space size, the read-write region is divided into N number of read-write space, sub-regions correspondence one Read and write space, N >=2.
Further, a kind of method for extending the erasable chip life-span as described above, in addition to:For each read-write space point Not She Zhi a counter, the initial value of all counters is identical;The count value of first counter is initial for counter Value Jia 1.
Further, a kind of method for extending the erasable chip life-span as described above, the current count value from read-write region The second subregion is searched in the subregion after subregion corresponding to maximum counter.
Further, a kind of method for extending the erasable chip life-span as described above, first subregion and the second son Region is continuously or discontinuously;Described discontinuously to refer to mutually be not take up identical page between two sub-regions, the page is can The minimum erasure unit of erasable chip.
Further, a kind of method for extending the erasable chip life-span as described above, methods described also includes:
File identification mapping table is set;The file identification mapping table is used to store the file stored in the read-write region File name and file internal file identify FID mapping relations.
Further, a kind of method for extending the erasable chip life-span as described above, reads first specified file Data, reading manner is:
Searched according to the file name of the first specified file in the file identification mapping table in the first specified file Portion file identification FID;
FID is identified according to the internal file found, lookup FID is identical in the read-write region and count value is maximum Subregion;
Read the data in the subregion found.
Further, a kind of method for extending the erasable chip life-span as described above, in addition to:
The protection of the first specified file and the second specified file is set to mark, the protection is labeled as being used to identify file Data storage is in the read-write region.
A kind of device for extending the erasable chip life-span is additionally provided in the embodiment of the present invention, described device includes:
Read and write region and reserve module, for reserving the read-write region being sized in erasable chip;
Data write. module, with the first subregion that the first data of the first specified file are write to the read-write region, And record the internal file mark FID of the first specified file;For the second data of the second specified file to be write into the read-write Second subregion in region, and record the internal file mark FID of the first specified file;
Counter is configured and update module, for setting the first counter for the first subregion, sets the first counter Count value;Be additionally operable to for the second subregion set the second counter, set the second counter count value for read-write region in when The count value of the maximum counter of preceding count value adds 1;
Wherein, second subregion is that unappropriated region in read-write region or internal file mark FID are identical and right The off-peak subregion of count value for the counter answered.
Further, a kind of device for extending the erasable chip life-span as described above, in addition to:
Space partitioning module is read and write,, will be described according to default space size before the write-in data in read-write region Read-write region is divided into N number of read-write space, one read-write space of sub-regions correspondence, N >=2.
The beneficial effects of the present invention are:The method in extension erasable chip life-span provided in the embodiment of the present invention and Device, by the reserved shared read-write region of specified file to need progress high frequency read-write, the data in specified file is carried out When write-in and renewal, write operation again is write or is wiped by using subregion different in read-write region, so as to avoid When carrying out data renewal, same data writing area is repeated a number of times when being write again after erasing, because of the wiping of file When writing number of times more than projected life, cause the problem of whole chip can not be used, the specified text erasable by extending high-frequency The erasing and writing life of part, improves the life-span of whole chip, using this method and device, may be such that common chip surmounts technical grade Or car advises the index of aging of level chip, and cost is greatly reduced, better met the demand of practical application.
Brief description of the drawings
Fig. 1 is a kind of schematic flow sheet for the method for extending the erasable chip life-span in one embodiment of the present of invention;
Fig. 2 is a kind of structural representation for the device for extending the erasable chip life-span in one embodiment of the present of invention;
Fig. 3 is the schematic diagram for reading and writing region under init state in embodiment;
Fig. 4 be embodiment in complete the first specified file for the first time write-in after read-write region schematic diagram;
The schematic diagram in the read-write region after data renewals of the Fig. 5 to complete the first specified file in embodiment;
The schematic diagram in the read-write region after data write-ins of the Fig. 6 to complete the second specified file in embodiment.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete Site preparation is described, it is clear that described embodiment is only a part of embodiment of the invention, rather than whole embodiments.It is based on Embodiments of the invention, the every other reality that those of ordinary skill in the art are obtained under the premise of creative work is not made Example is applied, the scope of protection of the invention is belonged to.
Fig. 1 shows that a kind of flow of the method in the extension provided in one embodiment of the invention erasable chip life-span is shown It is intended to, as can be seen from Figure, this method mainly may comprise steps of:
Step S100:The read-write region being sized is reserved in erasable chip;
Step S200:First data write-in is carried out, the first data write-in of the first specified file is read and write the first of region Subregion, the internal file mark FID of the first specified file of record, and the first counter is set for the first subregion, set the The count value of one counter;
Step S300:By second subregion in the second data write-in read-write region of the second specified file, record first refers to Determine the internal file mark FID of file, and the second counter is set for the second subregion, the count value of the second counter is current Maximum count value adds 1;
Step S400:First is read according to the count value that the internal file of the first specified file identifies FID and its counter The data of specified file.
Method described in the present embodiment, first according to may be needed in erasable chip in practical application carry out high frequency time reading Some or certain several files of write operation reserve the read-write region being sized in erasable chip, and the read-write region is used as text The part communal space, can carry out the multiple read-write operation of the file in the communal space, that is, to it is described some or certain Several files are written and read protection.Wherein, some or some which specifically chosen file of file, can be according to actual needs Voluntarily it is determined.The erasable chip includes but does not limit safety chip SE or embedded security chip eSE.
Completed by the COS of erasable chip after the division in the read-write region, the first data of the first specified file are write Enter first subregion in the read-write region, and record the internal file mark FID of the first specified file, be that the first subregion is set The first counter is put, the count value of the first counter is set;Wherein, first data are the number in first write-in read-write region According to.Wherein, the internal file mark FID is file identification ID of the file in the read-write region.
When carrying out the write-in of data again, the second data of the second specified file are write to second son in the read-write region Region, and the internal file mark FID of the first specified file is recorded, it is that the second subregion sets the second counter, second counts The count value of device adds 1 for the count value of the maximum counter of current count value in read-write region;Second subregion is read-write Unappropriated region or internal file mark FID is identical and the off-peak subregion of count value of corresponding counter in region.
Method described in the present embodiment, identifying FID by the internal file of the setting of counter and file realizes pair The mark of the newest valid data of different files in region is read and write, i.e., identifies FID (i.e. same specified file) for internal file Identical specified file, one of the count value maximum of counter is the newest valid data of the specified file.Therefore, carrying out During the second data write-in of the second specified file, the data can be written to unappropriated space or internal file mark in region Know that FID is identical but in the off-peak subregion of counter.It should be noted that internal file mark FID described at this is identical But the off-peak subregion of counter not only refer to it is identical with the internal file of the second specified file mark FID, also including it The internal file mark FID of his specified file, if for example, 3 sub-regions that are stored with read-write region store first and specified The content of file, the internal file mark FID corresponding to this 3 sub-regions is the FID of the first specified file, now, internal File identification FID is identical but the off-peak subregion of counter also includes off-peak two of this 3 sub-regions Counter Subregion.
May be used also for the ease of the management and reading, in one embodiment of the invention, this method of the Chinese part in read-write region With including:One file identification mapping table is set;The file identification mapping table is used to store the text stored in the read-write region The file name of part and the internal file of file identify FID mapping relations.
When needing to be written and read the digital independent of the specified file of some in region, you can according to the title of file described File identification mapping table finds the file internal file used when being stored in reading and writing region and identifies FID.
In present embodiment, following step can specifically be included by reading the reading manner of the data of first specified file Suddenly:
1) the first specified file is searched in the file identification mapping table according to the file name of the first specified file Internal file identifies FID;
2) according to the internal file mark FID found, lookup FID is identical in the read-write region and count value is maximum Subregion;
3) data in the subregion found are read, the data now read are probably first data, also may be used Can be updating the data for the first data for subsequently writing, identifying FID by the count value and internal file of counter can ensure The data read are the newest valid data of the first specified file.
In actual applications, first subregion and the second subregion can be continuously or discontinuously;It is described discontinuous Refer to mutually be not take up identical page between two sub-regions, the page is the minimum erasure unit of erasable chip, generally 128 bytes or 256 bytes or 512 bytes etc., are wiped between the chip that page is write, different subregions for non-page Can be continuous, you can to take identical page, such as fruit chip is that page wipes the read-write space that page is write, in order to avoid reading a certain When writing space and being wiped, other read-write spaces are impacted, it is preferably discontinuous between read-write space.
The method in the extension erasable chip life-span described in the present embodiment, is specified file by reserved read-write region There is provided the different subregions of data write-in can be carried out, so as to avoid when carrying out data renewal, same data are write Region is repeated a number of times after erasing writes (particularly with being the file that needs high frequency erasable) again, because the erasable number of times of file surpasses When spending projected life, cause the problem of whole chip can not be used, by extending the erasable of the erasable specified file of high-frequency In the life-span, improve the life-span of whole chip, and the read-write region can as multiple specified files shared interval, realize multiple The protection of different specified files.
For the ease of data write-in and read-write space management in one embodiment of the invention, this method can be with Including:Before by write-in data in read-write region, according to default space size, the read-write region is divided into N number of read-write Space, one read-write space of sub-regions correspondence, N >=2.
The read-write region is divided into N number of independent read-write space in advance, each read-write space may be used to dress A specified file is carried, each read-write space writes again after can carrying out multiple data erasing.Wherein, the default space Size needs to be set according to the time, and the space size is not less than maximum file in the specified file to be write to be taken The size in space, can be correctly written in the data for ensureing each specified file.
Wherein, in one embodiment of the invention, the second data of the second specified file are being write into the second subregion When middle, if there are data in second subregion, now, in addition to:
The data in second subregion are wiped, second data are written to second subregion after erasing In.
All read-write spaces in i.e. described read-write region are all completed after a data write-in, then when carrying out data write-in, Need first to carry out that internal file mark FID is identical and erasings of data in the off-peak space of read-write mark.
In actual applications, this method also includes:The protection of the first specified file and the second specified file is set to mark, institute State protection and be labeled as being used for the data storage for identifying file in the read-write region.
By setting protection mark, erasable chip just may know that the data for the file to be handled (write-in is read) are It is no to be stored in the read-write region.
Corresponding to the method shown in Fig. 1, a kind of extension erasable chip life-span is additionally provided in the embodiment of the present invention Device, as shown in Fig. 2 the device is including the reserved module 100 in read-write region, Data write. module 200 and counter configuration and more New module 300, wherein:
Read and write region and reserve module 100, for reserving the read-write region being sized in erasable chip;
Data write. module 200, with the first sub-district that the first data of the first specified file are write to the read-write region Domain, and record the internal file mark FID of the first specified file;For the second data of the second specified file to be write into described read Second subregion in region is write, and records the internal file mark FID of the first specified file;
Counter is configured and update module 300, for setting the first counter for the first subregion, sets the first counter Count value;It is additionally operable to set the second counter for the second subregion, the count value of the second counter is set in read-write region The count value of the maximum counter of current count value adds 1;
Wherein, second subregion is that unappropriated region in read-write region or internal file mark FID are identical and right The off-peak subregion of count value for the counter answered.
In one embodiment of the invention, the device also includes read-write space partitioning module 400.
Space partitioning module 400 is read and write, for that will read and write in region before write-in data, according to default space size, The read-write region is divided into N number of read-write space, one read-write space of sub-regions correspondence, N >=2.
In order to better illustrate the method and device provided in the embodiment of the present invention, with reference to specific embodiment to this Invention is further elaborated.
Embodiment
In the present embodiment, erasable chip is safety chip SE, and the first specified file is under 3F00 catalogues in SE, title For 6F5B file, the size of file is 100 bytes, and the second specified file is under 3F00 catalogues in SE, entitled 4F20 File, file size is 200 bytes, and in the application, 6F5B and 4F20 both of these documents can carry out the read-write of high frequency, and this two Any one File once reaches the write-in life-span of chip design in individual file, and file will be unable to write-in, cause whole SE It will cancel.Before the write-in that 6F5B files and 4F20 files are carried out in SE, send and specify to SE, notify the two needs of SE Protected, SE does protection mark to two files.
The stream that the method for extending the chip life-span using the method described in the embodiment of the present invention is protected to the chip Journey is as follows:
First, the read-write region that size is 256 × 20=5120 bytes is reserved in safety chip SE, is referred to as first Determine the shared region of file and the second specified file, and the read-write region of 5120 bytes is divided into the reading that 20 sizes are 256k Space is write, 20 read-write spaces are designated as space 1- spaces 20 respectively, wherein, preceding 4 bytes in each space are used for read-write sky Between tag definitions, preceding 3 bytes are used as the counter Count in space, and next byte of counter is used to record in space The internal file mark FID (ID for corresponding to read-write space) for the file to be write.In the present embodiment, 20 are read and write space The initial value of counter is 0, and internal file mark FID is the reading under empty (with 0 mark in the present embodiment), init state The schematic diagram for writing region is as shown in Figure 3.
In the present embodiment, 6F5B internal file mark FID is A, and 4F20 internal file mark FID is B, by two texts The mapping relations that the file name of part identifies FID with internal file are stored into file identification mapping table.
When carrying out the first time write-in of data, in the present embodiment for need toward 6F5B files write data AAAA (6F5B's Initial content) when, write step is as follows:
1st, SE finds 6F5B files, it is found that it has protection to identify, then pass through file identification mapping table corresponding relation and find Its internal file mark A;
2nd, write data AAAA in the space 1 in read-write region (data write-in is preferably carried out in sequence, naturally it is also possible to It is other spaces), the FID is updated to A, the count value of counter is updated to 1, completes the read-write space after data AAAA write-ins As shown in Figure 4.
When needing the data for carrying out 6F5B files to update, it is assumed that the data after renewal are BBBB, and data BBBB is write The step read and write in region is as follows:
1st, SE finds 6F5B files, it is found that it has protection to identify, and 6F5B inside text is found from file identification mapping table Part identifies A;
2nd, it is space 1 in the space for searching current count value maximum in read-write region, the present embodiment;
3rd, according to agreement order (being sequentially to carry out data write-in by space 1-20 in the present embodiment), from the next of space 1 Space is begun look for, and finds unappropriated space or the file internal mark off-peak sky of FID identicals space count value Between, preferably unappropriated space is space 2 in the present embodiment;
4th, the count value Count of the counter in the space 2 Count values for being updated to current maximum Jia 1, that is, be updated to 2, and Internal file mark FID is set to A, data BBBB is write into space 2.
The read-write region completed after data BBBB write-ins is as shown in Figure 5.
When toward write-in data CCCC in 4F20 files, write step is as follows:
1st, SE finds 4F20 files, it is found that it has protection to identify, and 4F20 inside text is found from file identification mapping table Part identifies B;
2nd, it is space 2 in the space for searching current count value maximum in read-write region, the present embodiment;
3rd, begun look for according to agreement order from next space in space 2, find unappropriated space or file internal Identify in the FID identicals space off-peak space of count value, preferably unappropriated space, the present embodiment, be space 3;
4th, the count value Count of the counter in space 3 is updated 3, and internal file mark FID is set to B, by data BBBB writes space 3.
The read-write region completed after data CCCC write-ins is as shown in Figure 6.
After 20 spaces complete a data write-in, during the write-in for the file for carrying out 6F5B again, it is assumed that needs are write The data entered are DDDD, and write step is as follows:
1st, SE finds 6F5B files, it is found that it has protection to identify, and 6F5B inside text is found from file identification mapping table Part identifies A;
2nd, the maximum space of current count value is searched in read-write region, is now space 20;
3rd, according to agreement order (being sequentially to carry out data write-in by space 1-20 in the present embodiment), from the next of space 20 Space is begun look for, and finds unappropriated space or the file internal mark off-peak sky of FID identicals space count value Between, now, all spaces had been taken, and the internal file mark FID identicals space off-peak space of count value is pressed Agreement order is defined as space 1;
4th, the count value Count of the counter in the space 1 Count values for being updated to current maximum Jia 1, that is, are updated to 21, And internal file mark FID is set to A, data DDDD is write into space 2.
Complete after above-mentioned write-in, in the data in needing reading file 6F5B, read step is as follows:
1st, SE finds 6F5B files, it is found that it has protection to identify, and 6F5B inside text is found from file identification mapping table Part identifies A;
2nd, the lookup internal file mark FID in read-write region is A and count value is the file count value for being designated A Maximum space, is now space 1, reads the data DDDD in space 1.
By the method and device provided in the embodiment of the present invention, find, can make common applied in practical application scene Chip surmount the service life of technical grade and/or the chip of car rule level, better meet the actual demand of user, and by the party Method and device, applied in technical grade or the chip of car rule level, more can further improve service life.
It should be noted that herein, such as first and second or the like relational terms are used merely to a reality Body or operation make a distinction with another entity or operation, and not necessarily require or imply these entities or deposited between operating In any this actual relation or order.Moreover, term " comprising ", "comprising" or its any other variant are intended to Nonexcludability is included, so that process, method, article or equipment including a series of key elements not only will including those Element, but also other key elements including being not expressly set out, or also include being this process, method, article or equipment Intrinsic key element.In the absence of more restrictions, the key element limited by sentence "including a ...", it is not excluded that Also there is other identical element in process, method, article or equipment including the key element.
Obviously, those skilled in the art can carry out the essence of various changes and modification without departing from the present invention to the present invention God and scope.So, if these modifications and variations of the present invention belong to the scope of the claims in the present invention and its equivalent technology Within, then the present invention is also intended to comprising including these changes and modification.

Claims (10)

1. a kind of method for extending the erasable chip life-span, it is characterised in that including:
The read-write region being sized is reserved in erasable chip;
First data of the first specified file are write to first subregion in the read-write region, the interior of the first specified file is recorded Portion file identification FID, and the first counter is set for the first subregion, the count value of the first counter is set;First number According to the data read and write for first write-in in region;
Second data of the second specified file are write to second subregion in the read-write region, the interior of the first specified file is recorded Portion file identification FID, and the second counter is set for the second subregion, the count value of the second counter is current in read-write region The count value of the maximum counter of count value adds 1;Second subregion is unappropriated region in read-write region or internal text Part mark FID is identical and the off-peak subregion of count value of corresponding counter.
2. a kind of method for extending the erasable chip life-span according to claim 1, it is characterised in that also include:Reading Write in region and write before data, according to default space size, the read-write region is divided into N number of read-write space, a son One read-write space of region correspondence, N >=2.
3. a kind of method for extending the erasable chip life-span according to claim 2, it is characterised in that also include:To be every Individual read-write space sets a counter respectively, and the initial value of all counters is identical;The count value of first counter is The initial value of counter adds 1.
4. the method in a kind of extension erasable chip life-span according to one of claims 1 to 3, it is characterised in that from reading Write in the subregion after the subregion corresponding to the maximum counter of current count value in region and search the second subregion.
5. the method in a kind of extension erasable chip life-span according to one of claims 1 to 3, it is characterised in that described First subregion and the second subregion are continuously or discontinuously;It is described discontinuously to refer to mutually be not take up phase between two sub-regions Same page, the page is the minimum erasure unit of erasable chip.
6. a kind of method in extension erasable chip life-span according to one of claims 1 to 3, it is characterised in that:It is described Method also includes:
File identification mapping table is set;The file identification mapping table is used for the text for storing the file stored in the read-write region The internal file of part title and file identifies FID mapping relations.
7. a kind of method for extending the erasable chip life-span according to claim 6, it is characterised in that also include:Read The data of first specified file, reading manner is:
The inside text of the first specified file is searched in the file identification mapping table according to the file name of the first specified file Part identifies FID;
FID is identified according to the internal file found, the sub-district that FID is identical and count value is maximum is searched in the read-write region Domain;
Read the data in the subregion found.
8. the method in the kind extension erasable chip life-span according to one of claims 1 to 3, it is characterised in that also include:
The protection of the first specified file and the second specified file is set to mark, the protection is labeled as the data for being used to identify file It is stored in the read-write region.
9. a kind of device for extending the erasable chip life-span, it is characterised in that including:
Read and write region and reserve module, for reserving the read-write region being sized in erasable chip;
Data write. module, with the first data of the first specified file to be write to first subregion in the read-write region, and remembers Record the internal file mark FID of the first specified file;For the second data of the second specified file to be write into the read-write region The second subregion, and record the first specified file internal file mark FID;
Counter is configured and update module, for setting the first counter for the first subregion, sets the counting of the first counter Value;It is additionally operable to set the second counter for the second subregion, sets the count value of the second counter currently to count in read-write region The count value of the maximum counter of numerical value adds 1;
Wherein, second subregion is that unappropriated region in read-write region or internal file mark FID are identical and corresponding The off-peak subregion of count value of counter.
10. a kind of device for extending the erasable chip life-span according to claim 9, it is characterised in that also include:
Space partitioning module is read and write, before the write-in data in read-write region, according to default space size, by the read-write Region division is N number of read-write space, one read-write space of sub-regions correspondence, N >=2.
CN201710166596.6A 2017-03-20 2017-03-20 A kind of method and apparatus for extending the erasable chip life-span Pending CN107132995A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710166596.6A CN107132995A (en) 2017-03-20 2017-03-20 A kind of method and apparatus for extending the erasable chip life-span

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710166596.6A CN107132995A (en) 2017-03-20 2017-03-20 A kind of method and apparatus for extending the erasable chip life-span

Publications (1)

Publication Number Publication Date
CN107132995A true CN107132995A (en) 2017-09-05

Family

ID=59721147

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710166596.6A Pending CN107132995A (en) 2017-03-20 2017-03-20 A kind of method and apparatus for extending the erasable chip life-span

Country Status (1)

Country Link
CN (1) CN107132995A (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1858855A (en) * 2006-02-17 2006-11-08 华为技术有限公司 Counting method and device for extending non-volatile storage life
US20120311228A1 (en) * 2011-06-03 2012-12-06 Advanced Micro Devices, Inc. Method and apparatus for performing memory wear-leveling using passive variable resistive memory write counters
CN104598165A (en) * 2014-12-31 2015-05-06 深圳市共进电子股份有限公司 Method and device for improving durability of storage on embedded equipment
CN105988722A (en) * 2015-01-27 2016-10-05 纬创资通股份有限公司 Data storage method and embedded system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1858855A (en) * 2006-02-17 2006-11-08 华为技术有限公司 Counting method and device for extending non-volatile storage life
US20120311228A1 (en) * 2011-06-03 2012-12-06 Advanced Micro Devices, Inc. Method and apparatus for performing memory wear-leveling using passive variable resistive memory write counters
CN104598165A (en) * 2014-12-31 2015-05-06 深圳市共进电子股份有限公司 Method and device for improving durability of storage on embedded equipment
CN105988722A (en) * 2015-01-27 2016-10-05 纬创资通股份有限公司 Data storage method and embedded system

Similar Documents

Publication Publication Date Title
US7558906B2 (en) Methods of managing blocks in nonvolatile memory
US7552271B2 (en) Nonvolatile memory with block management
EP1913480B1 (en) Nonvolatile memory with block management
CN1902599B (en) Method for updating data in non-volatile memory systems and operating the non-volatile memory systems system
CN100388235C (en) Memory device and recording/reproducing appts. using same
CN101582052B (en) Memory module and method for performing wear-leveling of memory module
CN104156317A (en) Wiping and writing management method and system for non-volatile flash memory
CN107239526B (en) File system implementation method, defragmentation method and operation position positioning method
US20080155301A1 (en) Memory device performance enhancement through pre-erase mechanism
CN108388598A (en) Electronic device, date storage method and storage medium
CN101645043B (en) Methods for reading and writing data and memory device
CN108021513A (en) A kind of date storage method and device
US6766432B2 (en) Memory management system supporting object deletion in non-volatile memory
CN111061752B (en) Data processing method and device and electronic equipment
CN104220991A (en) Architecture to allow efficient storage of data on nand flash memory
CN102135942A (en) Method for realizing wear-leveling in storage equipment as well as the storage equipment
CN111930301A (en) Garbage recycling optimization method and device, storage medium and electronic equipment
CN107037986A (en) A kind of method and apparatus for extending the erasable chip life-span
CN111090392A (en) Cold and hot data separation method based on feature codes
CN107132994A (en) A kind of method and apparatus for extending the erasable chip life-span
CN107704200A (en) A kind of data deposit method
JP2013161222A (en) Ic card and program
CN101154447B (en) Flash memory and its control method
CN107132995A (en) A kind of method and apparatus for extending the erasable chip life-span
CN107039077A (en) A kind of method and apparatus for extending the erasable chip life-span

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
CB03 Change of inventor or designer information

Inventor after: Lu Yong

Inventor after: Wang Youjun

Inventor before: Lu Yong

CB03 Change of inventor or designer information
TA01 Transfer of patent application right

Effective date of registration: 20171122

Address after: 100102 Beijing city Chaoyang District Wangjing Lize Park No. 101 west 7 floor International Building Qiming

Applicant after: Beijing Watcdata Intelligent Technology Co., Ltd.

Applicant after: Beijing Watchdata Limited by Share Ltd

Address before: 100102 Beijing city Chaoyang District Wangjing Lize Park No. 101 West eight floor International Building Qiming

Applicant before: Beijing Watcdata Intelligent Technology Co., Ltd.

TA01 Transfer of patent application right
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination