CN103914397B - Flash memory device and its management method - Google Patents
Flash memory device and its management method Download PDFInfo
- Publication number
- CN103914397B CN103914397B CN201310007643.4A CN201310007643A CN103914397B CN 103914397 B CN103914397 B CN 103914397B CN 201310007643 A CN201310007643 A CN 201310007643A CN 103914397 B CN103914397 B CN 103914397B
- Authority
- CN
- China
- Prior art keywords
- data
- flash memory
- memory device
- physical block
- page
- 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.)
- Active
Links
Landscapes
- Techniques For Improving Reliability Of Storages (AREA)
Abstract
The present invention relates to a kind of flash memory device and its management method, methods described comprises the following steps:When electric on flash memory device, detect the flash memory device and whether there is the physical block for not writing full data;If the flash memory device has the physical block for not writing full data, invalid data filling is carried out to the free page after last data page of the physical block for not writing full data.Above-mentioned flash memory device and its management method, by when electric on flash memory device, when detecting the physical block for existing in flash memory device and not writing full data, invalid data filling is carried out to the free page after last data page for the physical block for not writing full data, even if the data do not write in the physical block of full data in such flash memory device are influenceed by high temperature, what it is due to its influence is not write the invalid data page in the physical block of full data, valid data are not impacted, improve the data stability of valid data in flash memory device.
Description
Technical field
The present invention relates to flash memory field, more particularly to a kind of flash memory device and its management method.
Background technology
Portable memory apparatus such as USB flash disk, SD card etc. have become the necessity of people's daily life, its data storage it is steady
Qualitative more and more concerned, traditional portable memory apparatus uses flash memory as storage medium mostly.
The physical make-up of flash memory is:One or more Die are included in each case chip(Crystal grain);Comprising more in each Die
Individual Block(Block);Multiple Page are included in each block(Page).Write-in to flash memory(Programming)Must be in units of page, to flash memory
Erasing must be in units of block.
At present, after tested, flash memory device is found in high temperature environments, its data stored, which exists, to be lost or damage
Risk, it is more unstable not write the data of the physical block storage of full data especially, is frequently found described not writing full data
There is mistake in loss of data on several data pages behind physical block.
The content of the invention
Based on this, it is necessary to for not writing on the physical block subsequent data page of full data for traditional flash memory device
Data are easy to be lost or the problem of mistake causes data stability low occur, there is provided a kind of data for the valid data that can improve storage
The management method of the flash memory device of stability.
In addition, it there is a need to the flash memory device that a kind of data stability for the valid data that can improve storage is provided.
A kind of management method of flash memory device, comprises the following steps:
When electric on flash memory device, detect the flash memory device and whether there is the physical block for not writing full data;
If there is the physical block for not writing full data in the flash memory device, to the physical block for not writing full data
Free page after last data page carries out invalid data filling, wherein, the data page is the Hash memory pages with data, institute
It is not write the Hash memory pages of data to state free page.
In one of the embodiments, the sky after described last data page to the physical block for not writing full data
Not busy page carries out the step of invalid data filling and is:
Invalid data is carried out to some free pages after last data page of the physical block for not writing full data to fill out
Fill.
In one of the embodiments, the sky after described last data page to the physical block for not writing full data
Not busy page carries out the step of invalid data filling and is:
Invalid data is carried out to all free pages after last data page of the physical block for not writing full data to fill out
Fill.
In one of the embodiments, methods described also includes step:
Hash memory pages filled with invalid data are marked, and work as last of the physical block for not writing full data
When data page is the Hash memory pages with invalid data page marker, filled without invalid data.
In one of the embodiments, methods described also includes step:
When detecting that the physical block for not writing full data is not present in the flash memory device, flash memory described in normal operation is deposited
Store up equipment.
A kind of flash memory device, including:
Detection module is full with the presence or absence of not writing for when electric on flash memory device, detecting the flash memory device
The physical block of data;
Module is filled, for when the flash memory device has the physical block for not writing full data, then not write to described
Free page after last data page of the physical block of full data carries out invalid data filling, wherein, the data page is to write
There are the Hash memory pages of data, the free page is not write the Hash memory pages of data.
In one of the embodiments, it is described filling module be additionally operable to the physical block for not writing full data last
Some free pages after individual data page carry out invalid data filling.
In one of the embodiments, it is described filling module be additionally operable to the physical block for not writing full data last
All free pages after individual data page carry out invalid data filling.
In one of the embodiments, the flash memory device also includes:
Mark module, for the Hash memory pages filled with invalid data to be marked;
The filling module is additionally operable to when last data page of the physical block for not writing full data is with invalid
During the Hash memory pages of data page marker, filled without invalid data.
In one of the embodiments, the flash memory device also includes:
Run module, for when detect the flash memory device be not present do not write full data physical block when, normally
Run the flash memory device.
Above-mentioned flash memory device and its management method, by when electric on flash memory device, detecting flash memory storage
When the physical block for not writing full data in equipment be present, to the free page after last data page for the physical block for not writing full data
Invalid data filling is carried out, even if not writing data in the physical block of full data in the flash memory device so by high temperature shadow
Ring, what it is due to its influence is not write the invalid data page in the physical block of full data, and valid data are not impacted, improved
The data stability of valid data in flash memory device.
Brief description of the drawings
Fig. 1 is the schematic flow sheet of the management method of flash memory device in one embodiment;
Fig. 2 is the internal structure schematic diagram of flash memory device in one embodiment;
Fig. 3 is the internal structure schematic diagram of flash memory device in another embodiment.
Embodiment
The technical scheme of flash memory device and its management method is carried out with reference to specific embodiment and accompanying drawing detailed
Thin description, so that it is clearer.
As shown in figure 1, in one embodiment, a kind of management method of flash memory device, comprise the following steps:
Step S110, when electric on flash memory device, detection flash memory device whether there is the thing for not writing full data
Block is managed, if so, step S120 is performed, if it is not, performing step S130.
Step S120, invalid data is carried out to the free page after last data page for the physical block for not writing full data and filled out
Fill.
Specifically, wherein, data page is the Hash memory pages with data, the free page is not write the Hash memory pages of data.
Invalid data refers to useless data, as some do not have the data of concrete meaning.Valid data refer to the useful of user's write-in
Data.
Step S130, the normal operation flash memory device.
The management method of above-mentioned flash memory device, by when electric on flash memory device, detecting that flash memory storage is set
When the physical block of full data is not write in standby middle presence, the free page after last data page for the physical block for not writing full data is entered
Row invalid data is filled, even if the data do not write in the physical block of full data in the flash memory device so are influenceed by high temperature,
What it is due to its influence is not write the invalid data page in the physical block of full data, and valid data are not impacted, improve sudden strain of a muscle
Deposit the data stability of valid data in storage device.
Further, in one embodiment, it is described to not writing last data page of the physical block of full data after
Free page carry out invalid data filling the step of be:If to after last data page of the physical block for not writing full data
Dry free page carries out invalid data filling.
Because the physical block for writing full data is most stable, in order to further improve data stability in flash memory device, preferably
, in one embodiment, it is described to do not write the free page after last data page of the physical block of full data carry out it is invalid
Data fill the step of be:Nothing is carried out to all free pages after last data page of the physical block for not writing full data
Imitate data filling.
Further, in one embodiment, the management method of above-mentioned flash memory device, in addition to step:
Hash memory pages filled with invalid data are marked, and work as last of the physical block for not writing full data
When data page is the Hash memory pages with invalid data page marker, filled without invalid data.
By the Hash memory pages filled with invalid data are marked can reduce to do not write full data physical block in data
Free page after page carries out repeating filling, improves charging efficiency, and reduces flash memory device abrasion, extends flash memory device
Life-span.
As shown in Fig. 2 in one embodiment, a kind of flash memory device, including detection module 110 and filling module
120.Wherein:
Detection module 110 is used for when electric on flash memory device, detects the flash memory device with the presence or absence of not writing
The physical block of full data.
Filling module 120 be used for when the flash memory device exist do not write full data physical block when, then to it is described not
Write the free page after last data page of the physical block of full data and carry out invalid data filling.
Wherein, data page is the Hash memory pages with data, and free page is not write the Hash memory pages of data.Invalid data refers to
Useless data, as some do not have the data of concrete meaning.Valid data refer to the useful data of user's write-in.
Above-mentioned flash memory device, by the way that when electric on flash memory device, detection module 110 detects that flash memory storage is set
Standby middle when the physical block for not writing full data be present, filling module 120 is not to writing last data page of the physical block of full data
Free page afterwards carries out invalid data filling, even if not writing the data in the physical block of full data in the flash memory device so
Influenceed by high temperature, what it is due to its influence is not write the invalid data page in the physical block of full data, and shadow is not caused to valid data
Ring, improve the data stability of valid data in flash memory device.
Further, after filling module 120 is additionally operable to last data page to the physical block for not writing full data
Some free pages carry out invalid data filling.
Because the physical block for writing full data is most stable, in order to further improve data stability in flash memory device, preferably
, in one embodiment, after filling module 120 is additionally operable to last data page to the physical block for not writing full data
All free pages carry out invalid data filling.
As shown in figure 3, flash memory device is except including detection module 110 and filling module 120, in addition to mark module
130 and operation module 140.Wherein:
Mark module 130 is used to the Hash memory pages filled with invalid data be marked.
Last data page that filling module 120 is additionally operable to write the physical block of full data is with invalid data page
During the Hash memory pages of mark, filled without invalid data.
By the Hash memory pages filled with invalid data are marked can reduce to do not write full data physical block in data
Free page after page carries out repeating filling, improves charging efficiency, and reduces flash memory device abrasion, extends flash memory device
Life-span.
Operation module 140 is used for when detecting that the physical block for not writing full data is not present in the flash memory device, just
Often run the flash memory device.
One of ordinary skill in the art will appreciate that realize all or part of flow in above-described embodiment method, being can be with
The hardware of correlation is instructed to complete by computer program, described program can be stored in a computer read/write memory medium
In, the program is upon execution, it may include such as the flow of the embodiment of above-mentioned each method.Wherein, described storage medium can be magnetic
Dish, CD, read-only memory(Read-Only Memory, ROM)Or other storage memories etc..
Embodiment described above only expresses the several embodiments of the present invention, and its description is more specific and detailed, but simultaneously
Therefore the limitation to the scope of the claims of the present invention can not be interpreted as.It should be pointed out that for one of ordinary skill in the art
For, without departing from the inventive concept of the premise, various modifications and improvements can be made, these belong to the guarantor of the present invention
Protect scope.Therefore, the protection domain of patent of the present invention should be determined by the appended claims.
Claims (6)
1. a kind of management method of flash memory device, comprises the following steps:
When electric on flash memory device, detect the flash memory device and whether there is the physical block for not writing full data;
If there is the physical block for not writing full data in the flash memory device, to the last of the physical block for not writing full data
All free pages after one data page carry out invalid data filling, wherein, the data page is the Hash memory pages with data, institute
It is not write the Hash memory pages of data to state free page, and the invalid data refers to useless data.
2. the management method of the flash memory device according to any one of claim 1, it is characterised in that methods described is also
Including step:
Hash memory pages filled with invalid data are marked, and when last data of the physical block for not writing full data
When page is the Hash memory pages with invalid data page marker, filled without invalid data.
3. the management method of flash memory device according to claim 1, it is characterised in that methods described also includes step
Suddenly:
When detecting that the physical block for not writing full data is not present in the flash memory device, flash memory storage described in normal operation is set
It is standby.
A kind of 4. flash memory device, it is characterised in that including:
Detection module, for when electric on flash memory device, detecting the flash memory device with the presence or absence of not writing full data
Physical block;
Module is filled, for when the flash memory device has the physical block for not writing full data, then not writing full number to described
According to physical block last data page after all free pages carry out invalid data filling, wherein, the data page is writes
There are the Hash memory pages of data, the free page is not write the Hash memory pages of data, and the invalid data refers to useless data.
5. the flash memory device according to any one of claim 4, it is characterised in that the flash memory device also wraps
Include:
Mark module, for the Hash memory pages filled with invalid data to be marked;
The filling module is additionally operable to when last data page of the physical block for not writing full data is with invalid data
During the Hash memory pages of page marker, filled without invalid data.
6. flash memory device according to claim 4, it is characterised in that the flash memory device also includes:
Run module, for when detect the flash memory device be not present do not write full data physical block when, normal operation
The flash memory device.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310007643.4A CN103914397B (en) | 2013-01-09 | 2013-01-09 | Flash memory device and its management method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310007643.4A CN103914397B (en) | 2013-01-09 | 2013-01-09 | Flash memory device and its management method |
Publications (2)
Publication Number | Publication Date |
---|---|
CN103914397A CN103914397A (en) | 2014-07-09 |
CN103914397B true CN103914397B (en) | 2018-01-30 |
Family
ID=51040098
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201310007643.4A Active CN103914397B (en) | 2013-01-09 | 2013-01-09 | Flash memory device and its management method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103914397B (en) |
Families Citing this family (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104794019B (en) * | 2015-04-17 | 2017-12-05 | 深圳市江波龙电子有限公司 | The data guard method and device of a kind of in-line memory |
CN108614666B (en) * | 2016-12-09 | 2021-10-26 | 北京兆易创新科技股份有限公司 | Data block processing method and device based on NAND flash |
CN107506138B (en) * | 2017-08-11 | 2020-12-18 | 东莞记忆存储科技有限公司 | Method for prolonging service life of solid state disk |
CN108762670B (en) * | 2018-05-22 | 2021-06-29 | 郑州云海信息技术有限公司 | Management method, system and device for data blocks in SSD (solid State disk) firmware |
CN111897744B (en) * | 2019-05-05 | 2024-06-14 | 兆易创新科技集团股份有限公司 | Data writing method and device, electronic equipment and storage medium |
CN112433959A (en) * | 2020-11-24 | 2021-03-02 | 合肥大唐存储科技有限公司 | Method and device for realizing data storage processing, computer storage medium and terminal |
CN114974333A (en) * | 2022-07-28 | 2022-08-30 | 深圳佰维存储科技股份有限公司 | EMMC data protection method and device, readable storage medium and electronic equipment |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102053924A (en) * | 2009-10-29 | 2011-05-11 | 汤姆森特许公司 | Solid state memory with reduced number of partially filled pages |
CN102750226A (en) * | 2011-02-28 | 2012-10-24 | 苹果公司 | Efficient buffering for a system having non-volatile memory |
-
2013
- 2013-01-09 CN CN201310007643.4A patent/CN103914397B/en active Active
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102053924A (en) * | 2009-10-29 | 2011-05-11 | 汤姆森特许公司 | Solid state memory with reduced number of partially filled pages |
CN102750226A (en) * | 2011-02-28 | 2012-10-24 | 苹果公司 | Efficient buffering for a system having non-volatile memory |
Also Published As
Publication number | Publication date |
---|---|
CN103914397A (en) | 2014-07-09 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103914397B (en) | Flash memory device and its management method | |
US10996883B2 (en) | Storage system including host device and storage device configured to perform selective purge operation | |
CN105843550B (en) | Memory system and method for reducing read disturb errors | |
US8456938B2 (en) | Systems and methods for refreshing non-volatile memory | |
US7627712B2 (en) | Method and system for managing multi-plane memory devices | |
TWI406130B (en) | Data processing system, controller, and method thereof for searching specific memory area | |
US10884944B2 (en) | Host accelerated operations in managed NAND devices | |
CN110176267A (en) | Storage system and its operating method | |
US11204697B2 (en) | Wear leveling in solid state devices | |
TW201525692A (en) | Method and system for programming a multi-bit per cell non-volatile memory | |
US11442634B2 (en) | Replay protected memory block command queue | |
TW201217968A (en) | Data writing method, memory controller and memory storage apparatus | |
JP2015507798A5 (en) | ||
US9384125B2 (en) | Method for accessing flash memory having pages used for data backup and associated memory device | |
CN103064804A (en) | Method and device for access control of disk data | |
CN105765540A (en) | Managing a transfer buffer for a non-volatile memory | |
CN113885808A (en) | Mapping information recording method, memory control circuit unit and memory device | |
CN102147771B (en) | Method for finding storage position of firmware program of flash memory device | |
WO2017176387A1 (en) | Data storage device having internal tagging capabilities | |
US20240037233A1 (en) | Ransomware and malicious software protection in ssd/ufs by nvme instructions log analysis based on machine-learning | |
US20240045958A1 (en) | Anti-malware algorithm and hw/fw for internal ssd health and storage space protection against cyber-attacks | |
TW201227294A (en) | Dada writing method, memory controller and memory storage apparatus | |
JP2013235530A5 (en) | ||
CN112347524A (en) | Flash memory programming method and device and electronic equipment | |
Luo et al. | A NAND flash management algorithm with limited on-chip buffer resource |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
CP01 | Change in the name or title of a patent holder |
Address after: 518057 A, B, C, D, E, F1, 8 Building, Financial Services Technology Innovation Base, No. 8 Kefa Road, Nanshan District, Shenzhen City, Guangdong Province Patentee after: Shenzhen jiangbolong electronic Limited by Share Ltd Address before: 518057 A, B, C, D, E, F1, 8 Building, Financial Services Technology Innovation Base, No. 8 Kefa Road, Nanshan District, Shenzhen City, Guangdong Province Patentee before: Shenzhen jiangbolong Electronic Co., Ltd. |
|
CP01 | Change in the name or title of a patent holder |