CN112486506B - NAND Flash burning method and device - Google Patents
NAND Flash burning method and device Download PDFInfo
- Publication number
- CN112486506B CN112486506B CN201910863924.7A CN201910863924A CN112486506B CN 112486506 B CN112486506 B CN 112486506B CN 201910863924 A CN201910863924 A CN 201910863924A CN 112486506 B CN112486506 B CN 112486506B
- Authority
- CN
- China
- Prior art keywords
- partition
- reserved
- data
- burning
- nand flash
- 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
- 238000000034 method Methods 0.000 title claims abstract description 66
- 238000005192 partition Methods 0.000 claims abstract description 156
- 230000008569 process Effects 0.000 claims abstract description 25
- 238000001514 detection method Methods 0.000 claims description 4
- 230000010354 integration Effects 0.000 claims description 3
- 230000009471 action Effects 0.000 description 3
- 238000010586 diagram Methods 0.000 description 3
- 101100494773 Caenorhabditis elegans ctl-2 gene Proteins 0.000 description 1
- 101100112369 Fasciola hepatica Cat-1 gene Proteins 0.000 description 1
- 101100005271 Neurospora crassa (strain ATCC 24698 / 74-OR23-1A / CBS 708.71 / DSM 1257 / FGSC 987) cat-1 gene Proteins 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
- 238000013507 mapping Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 230000000750 progressive effect Effects 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/60—Software deployment
- G06F8/61—Installation
- G06F8/63—Image based installation; Cloning; Build to order
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D10/00—Energy efficient computing, e.g. low power processors, power management or thermal management
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Techniques For Improving Reliability Of Storages (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
The invention discloses a burning method of NAND Flash, which comprises the following steps: acquiring file data of a data area in a current partition in a master slice and a first number of reserved blocks in a reserved area; burning the file data into a target partition corresponding to the current partition in the NAND Flash to be burnt; counting the second number of bad data blocks in the target partition in the burning process; when the second number is not greater than the first number, the target partition is successfully burnt; when each partition in the NAND Flash to be burnt is successfully burnt, the NAND Flash to be burnt is burnt. According to the method, the reserved area is reserved in the master slice, when the first number is larger than or equal to the second number, the target partition is judged to be burnt, and the problem that the NAND Flash to be burnt has a large number of bad data blocks to cause burning failure when the file data read by the master slice is close to the capacity of the NAND Flash to be burnt is avoided.
Description
Technical Field
The invention relates to the technical field of electronics, in particular to a NAND Flash burning method and device.
Background
When the NAND Flash leaves the factory, bad blocks exist often, files in the master are burnt to the NAND Flash to be burnt in the burning process, and if the NAND Flash to be burnt has the bad blocks, the jump is selected.
If the size of the file data read from the master is far smaller than the capacity of the NAND Flash to be recorded, the recording can be successful even if bad blocks are encountered during the recording, and if the file data read from the master is close to the capacity of the NAND Flash to be recorded, a large number of bad blocks appear in the NAND Flash to be recorded during the recording, the recording can be failed.
Disclosure of Invention
In view of this, the invention provides a method and a device for burning NAND Flash, which are used for solving the problem that in the existing NAND Flash burning process, if file data read from a master slice is close to the capacity of NAND Flash to be burned, and a large number of bad blocks appear in NAND Flash to be burned during burning, the burning may fail, and the specific scheme is as follows:
a burning method of NAND Flash comprises the following steps:
acquiring file data of a data area in a current partition in a master slice and a first number of reserved blocks in a reserved area;
burning the file data into a target partition corresponding to the current partition in the NAND Flash to be burnt;
counting the second number of bad data blocks in the target partition in the burning process;
when the second number is not greater than the first number, the target partition is successfully burnt;
and when each partition in the NAND Flash to be burnt is burnt successfully, finishing the burning of the NAND Flash to be burnt.
The method, optionally, includes obtaining file data of a data area in a current partition in a master slice, including:
acquiring a reserved block in a reserved area in the current partition;
judging whether the reserved block is a preset content or not;
if yes, each data block contained in the data area of the current partition in the master slice is obtained, file data segments contained in each data block are obtained, and each file data segment is integrated to obtain file data.
The method, optionally, further comprises:
if not, updating the first number of reserved blocks in the reserved area in the master slice.
In the above method, optionally, the writing the file data into a target partition corresponding to the current partition in the NAND Flash to be written includes:
acquiring the identification of the current partition;
searching a target partition which is the same as the identifier in each partition contained in the NAND Flash to be burned according to the identifier;
and burning the file data into the corresponding data blocks in the target partition.
In the above method, optionally, counting the second number of bad data blocks in the target partition during the burning process includes:
for each data block in the target partition, detecting whether a preset area stores bad data block information or not in the burning process;
if yes, adding one to the number of bad data blocks in the target partition, and obtaining a second number when the burning is completed.
A NAND Flash burning device comprises:
the acquisition module is used for acquiring file data of a data area in a current partition in the master slice and a first number of reserved blocks in a reserved area;
the burning module is used for burning the file data into a target partition corresponding to the current partition in the NAND Flash to be burnt;
the statistics module is used for counting the second number of bad data blocks in the target partition in the burning process;
the first completion module is used for successfully burning the target partition when the second number is not larger than the first number;
and the second completion module is used for completing the burning of the NAND Flash to be burned when each partition in the NAND Flash to be burned is successfully burned.
The above apparatus, optionally, the obtaining module includes:
a reserved block obtaining unit, configured to obtain a reserved block in a reserved area in the current partition;
a judging unit, configured to judge whether the reserved block is a preset content;
and the acquisition and integration unit is used for acquiring each data block contained in the data area of the current partition in the master slice, acquiring the file data segments contained in each data block, and integrating each file data segment to obtain file data.
The above device, optionally, further comprises:
and the updating unit is used for updating the first number of the reserved blocks in the reserved area in the master slice if not.
In the foregoing apparatus, optionally, the burning module includes:
an identifier obtaining unit, configured to obtain an identifier of the current partition;
the searching unit is used for searching a target partition which is the same as the identifier from all partitions contained in the NAND Flash to be burned according to the identifier;
and the burning unit is used for burning the file data into the corresponding data blocks in the target partition.
The above apparatus, optionally, the statistics module includes:
the detection unit is used for detecting whether a preset area stores bad data block information or not in the burning process for each data block in the target partition;
and the statistics unit is used for adding one to the number of bad data blocks in the target partition if yes, and obtaining a second number when the burning is completed.
Compared with the prior art, the invention has the following advantages:
the invention discloses a burning method of NAND Flash, which comprises the following steps: acquiring file data of a data area in a current partition in a master slice and a first number of reserved blocks in a reserved area; burning the file data into a target partition corresponding to the current partition in the NAND Flash to be burnt; counting the second number of bad data blocks in the target partition in the burning process; when the second number is not greater than the first number, the target partition is successfully burnt; when each partition in the NAND Flash to be burnt is successfully burnt, the NAND Flash to be burnt is burnt. According to the method, the reserved area is reserved in the master slice, when the first number is larger than or equal to the second number, the target partition is judged to be burnt, and the problem that the NAND Flash to be burnt has a large number of bad data blocks to cause burning failure when the file data read by the master slice is close to the capacity of the NAND Flash to be burnt is avoided.
Of course, it is not necessary for any one product to practice the invention to achieve all of the advantages set forth above at the same time.
Drawings
In order to more clearly illustrate the embodiments of the invention or the technical solutions in the prior art, the drawings that are required in the embodiments or the description of the prior art will be briefly described, it being obvious that the drawings in the following description are only some embodiments of the invention, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a flowchart of a method for burning NAND flash according to an embodiment of the present disclosure;
fig. 2 is a schematic diagram of a mapping relationship of a recording mode according to an embodiment of the present disclosure;
FIG. 3 is a flowchart of a method for programming a NAND flash according to an embodiment of the present disclosure;
FIG. 4 is a flowchart of a method for programming a NAND flash according to an embodiment of the present disclosure;
fig. 5 is a block diagram of a NAND flash burning device according to an embodiment of the present application.
Detailed Description
The following description of the embodiments of the present invention will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present invention, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
The invention discloses a method for burning NAND Flash, which is applied to the burning process of NAND Flash and generally has two ways for burning NAND Flash. In the embodiment of the invention, a first pre-programming mode is adopted, the execution flow of the programming method is shown in figure 1, and the method comprises the following steps:
s101, acquiring file data of a data area in a current partition in a master slice and a first number of reserved blocks in a reserved area;
in the embodiment of the invention, a master slice is partitioned in advance, each partition comprises a reserved area and a data area, wherein the reserved area consists of a plurality of reserved blocks, preset contents are stored in each reserved block, the FF data area consists of each data block, and each data block stores a file data segment, wherein the reserved blocks and the data blocks are identical blocks, and the reserved areas and the data areas in each partition can be identical or different in size. And acquiring the data file of the data area in the current partition of the master and the first number of reserved blocks in the reserved area.
S102, burning the file data into a target partition corresponding to the current partition in the NAND Flash to be burnt;
in the embodiment of the present invention, the types and partitions of the master and the NAND Flash to be burned are the same, and there is a corresponding relationship, as shown in fig. 2, for example: when encountering a bad data block, directly skipping, and storing the corresponding data to the next data block. Partition 2 is processed in the same manner as partition 1.
S103, counting the second number of bad data blocks in the target partition in the burning process;
in the embodiment of the invention, because bad data blocks exist in the NAND Flash to be burned due to a manufacturing process or other influencing factors, the number of the bad data blocks in the NAND Flash to be burned is counted in the burning process, wherein the detection method of the bad data blocks is as follows: for each data block in the target partition, detecting whether bad data information is stored in an OOB (redundant area) in a first page, if so, judging that the current data block is a bad data block, adding one to the number of the bad data blocks, and obtaining a second number when the burning is completed; otherwise, if the file data does not exist, the corresponding file data is burnt into the current data block.
S104, when the second quantity is not greater than the first quantity, the target partition is successfully burnt;
in the embodiment of the present invention, when the second number is not greater than the first number, it indicates that the number of bad data blocks is less than the number of reserved blocks in the reserved area, and indicates that the file data is completely burned into the target partition. The target partition is successfully burnt; otherwise, when the second number is greater than the first number, the number of bad data blocks is greater than the number of reserved blocks in the reserved area, and the file data is not completely burned into the target partition.
S105, when all the partitions in the NAND Flash to be burnt are burnt successfully, the NAND Flash to be burnt is burnt completely.
In the embodiment of the invention, each partition in the NAND Flash to be burnt is burnt by adopting the method described in S101-S104, when each partition is burnt successfully, the NAND Flash to be burnt is burnt completely, otherwise, when at least one partition is not burnt successfully, the NAND Flash to be burnt fails.
Furthermore, the objective of the partition of the NAND Flash to be burned is that when the NAND Flash to be burned needs to be updated, all the updates are not needed, and only the file data in the corresponding partition need to be updated, so that management is facilitated.
The invention discloses a burning method of NAND Flash, which comprises the following steps: acquiring file data of a data area in a current partition in a master slice and a first number of reserved blocks in a reserved area; burning the file data into a target partition corresponding to the current partition in the NAND Flash to be burnt; counting the second number of bad data blocks in the target partition in the burning process; when the second number is not greater than the first number, the target partition is successfully burnt; when each partition in the NAND Flash to be burnt is successfully burnt, the NAND Flash to be burnt is burnt. According to the method, the reserved area is reserved in the master slice, when the first number is larger than or equal to the second number, the target partition is judged to be burnt, and the problem that the NAND Flash to be burnt has a large number of bad data blocks to cause burning failure when the file data read by the master slice is close to the capacity of the NAND Flash to be burnt is avoided.
In the embodiment of the invention, the flow of the method for acquiring the file data of the data area in the current partition in the master is shown in fig. 3, and the method comprises the following steps:
s201, acquiring a reserved block in a reserved area in the current partition;
in the embodiment of the present invention, the location of the reserved block in the current partition is known, and the reserved block in the reserved area in the current partition is determined according to the location.
S202, judging whether the reserved block is a preset content or not;
in the embodiment of the present invention, the content in the reserved block is obtained, and whether the content is the same as the preset content is determined, where in the embodiment of the present invention, the preset content is "FF".
S203, acquiring each data block contained in a data area of a current partition in the master slice, acquiring file data segments contained in each data block, and integrating each file data segment to obtain file data.
In the embodiment of the present invention, when the content is the same as the preset content, it is indicated that the reserved area is not used, each data block included in the data area of the current partition in the master is obtained, the file data segment included in each data block is obtained, and the file data is obtained by integrating each file data segment by adopting a splicing command, for example, cat 1.bin 2.bin>3.bin.
S204, updating the first number of reserved blocks in the reserved area in the master slice.
In the embodiment of the present invention, when the content is different from the preset content, it is indicated that part or all of the reserved blocks in the reserved area are occupied, and the first number of reserved blocks between the content and the preset content is counted again.
In the embodiment of the present invention, a flowchart of a method for burning the file data into a target partition corresponding to the current partition in a NAND Flash to be burned is shown in fig. 4, and the method includes the steps of:
s301, acquiring the identification of the current partition;
in the embodiment of the invention, the master and the corresponding partition in the NAND Flash to be burned establish the association relationship through the identifiers, and the identifiers of the corresponding partitions with the association relationship are the same, wherein the identifiers can be numbers, letters or combination of the numbers and the letters, and the identifiers in the current partition are obtained.
S302, searching a target partition which is the same as the identifier in each partition contained in the NAND Flash to be burned according to the identifier;
in the embodiment of the invention, each partition in the NAND Flash to be burned is traversed, the partition with the same identification is searched, and the partition with the same identification is used as a target partition.
And S303, burning the file data into the corresponding data blocks in the target partition.
In the embodiment of the invention, in the burning process, whether the current data block in the target partition is a bad data block is identified, if not, the corresponding file data is burnt into the current data block, otherwise, the current data block is skipped, and the next data block adjacent to the current data block is identified until the complete burning of the file data is achieved.
Based on the above-mentioned method for writing NAND Flash, the embodiment of the invention further provides a device for writing NAND Flash, where the structural block diagram of the device is shown in fig. 5, and the device includes:
an acquisition module 401, a burning module 402, a statistics module 403, a first completion module 404 and a second completion module 405.
Wherein,
the acquiring module 401 is configured to acquire file data of a data area in a current partition in a master slice and a first number of reserved blocks in a reserved area;
the burning module 402 is configured to burn the file data into a target partition corresponding to the current partition in the NAND Flash to be burned;
the statistics module 403 is configured to count a second number of bad data blocks in the target partition during the burning process;
the first completing module 404 is configured to, when the second number is not greater than the first number, successfully burn the target partition;
the second completing module 405 is configured to complete the writing of the NAND Flash to be written when each partition in the NAND Flash to be written is successfully written.
The invention discloses a burning method of NAND Flash, which comprises the following steps: acquiring file data of a data area in a current partition in a master slice and a first number of reserved blocks in a reserved area; burning the file data into a target partition corresponding to the current partition in the NAND Flash to be burnt; counting the second number of bad data blocks in the target partition in the burning process; when the second number is not greater than the first number, the target partition is successfully burnt; when each partition in the NAND Flash to be burnt is successfully burnt, the NAND Flash to be burnt is burnt. According to the method, the reserved area is reserved in the master slice, when the first number is larger than or equal to the second number, the target partition is judged to be burnt, and the problem that the NAND Flash to be burnt has a large number of bad data blocks to cause burning failure when the file data read by the master slice is close to the capacity of the NAND Flash to be burnt is avoided.
The invention discloses a burning device of NAND Flash, comprising: acquiring file data of a data area in a current partition in a master slice and a first number of reserved blocks in a reserved area; burning the file data into a target partition corresponding to the current partition in the NAND Flash to be burnt; counting the second number of bad data blocks in the target partition in the burning process; when the second number is not greater than the first number, the target partition is successfully burnt; when each partition in the NAND Flash to be burnt is successfully burnt, the NAND Flash to be burnt is burnt. According to the device, the reserved area is reserved in the master slice, when the first number is larger than or equal to the second number, the target partition is judged to be burnt, and the problem that the NAND Flash to be burnt has a large number of bad data blocks to cause burning failure when the file data read by the master slice is close to the capacity of the NAND Flash to be burnt is avoided.
In the embodiment of the present invention, the obtaining module 401 includes:
a reserved block acquisition unit 406, a judgment unit 407, and an acquisition and integration unit 408.
Wherein,
the reserved block obtaining unit 406 is configured to obtain reserved blocks in a reserved area in the current partition;
the judging unit 407 is configured to judge whether the reserved block is a preset content;
the acquiring and integrating unit 408 is configured to, if yes, acquire each data block included in the data area of the current partition in the master, acquire the file data segments included in each data block, and integrate each file data segment to obtain file data.
In the embodiment of the present invention, the obtaining module 401 further includes: updating unit 409.
Wherein,
the updating unit 409 is configured to update the first number of reserved blocks in the reserved area of the master if not.
In an embodiment of the present invention, the burning module 402 includes:
an identification acquisition unit 410, a search unit 411, and a burning unit 412.
Wherein,
the identifier obtaining unit 410 is configured to obtain an identifier of the current partition;
the searching unit 411 is configured to search, according to the identifier, for a target partition identical to the identifier in each partition included in the NAND Flash to be burned;
the burning unit 412 is configured to burn the file data into a corresponding data block in the target partition.
In the embodiment of the present invention, the statistics module 403 includes:
detection unit 413 and statistics unit 414
Wherein,
the detecting unit 413 is configured to detect, for each data block in the target partition, whether a preset area stores bad data block information in a recording process;
the statistics unit 414 is configured to, if yes, add one to the number of bad data blocks in the target partition, and obtain a second number when the recording is completed.
The previous description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the present invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the invention. Thus, the present invention is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.
It should be noted that, in the present specification, each embodiment is described in a progressive manner, and each embodiment is mainly described as different from other embodiments, and identical and similar parts between the embodiments are all enough to be referred to each other. For the apparatus class embodiments, the description is relatively simple as it is substantially similar to the method embodiments, and reference is made to the description of the method embodiments for relevant points.
Finally, it is further noted that relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Moreover, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
For convenience of description, the above devices are described as being functionally divided into various units, respectively. Of course, the functions of each element may be implemented in the same piece or pieces of software and/or hardware when implementing the present invention.
From the above description of embodiments, it will be apparent to those skilled in the art that the present invention may be implemented in software plus a necessary general hardware platform. Based on such understanding, the technical solution of the present invention may be embodied essentially or in a part contributing to the prior art in the form of a software product, which may be stored in a storage medium, such as a ROM/RAM, a magnetic disk, an optical disk, etc., including several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the method described in the embodiments or some parts of the embodiments of the present invention.
The above describes in detail a method and apparatus for burning NAND Flash provided by the present invention, and specific examples are applied to illustrate the principles and embodiments of the present invention, and the description of the above examples is only used to help understand the method and core idea of the present invention; meanwhile, as those skilled in the art will have variations in the specific embodiments and application scope in accordance with the ideas of the present invention, the present description should not be construed as limiting the present invention in view of the above.
Claims (6)
1. The NAND Flash burning method is characterized by comprising the following steps of:
acquiring file data of a data area in a current partition in a master slice and a first number of reserved blocks in the reserved area, wherein the master slice is partitioned in advance, each partition comprises a reserved area and a data area, the reserved area is composed of a plurality of reserved blocks, and preset contents are stored in each reserved block;
burning the file data into a target partition corresponding to the current partition in the NAND Flash to be burnt;
counting the second number of bad data blocks in the target partition in the burning process;
when the second number is not greater than the first number, the target partition is successfully burnt;
when each partition in the NAND Flash to be burnt is successful, the NAND Flash to be burnt is burnt;
the method for obtaining the file data of the data area in the current partition in the master film comprises the following steps:
acquiring a reserved block in a reserved area in the current partition;
judging whether the reserved block is a preset content or not;
if yes, acquiring each data block contained in a data area of a current partition in the master slice, acquiring file data segments contained in each data block, and integrating each file data segment to obtain file data;
if not, updating the first number of reserved blocks in the reserved area in the master slice.
2. The method of claim 1, wherein burning the file data into a target partition in NAND Flash to be burned that corresponds to the current partition, comprises:
acquiring the identification of the current partition;
searching a target partition which is the same as the identifier in each partition contained in the NAND Flash to be burned according to the identifier;
and burning the file data into the corresponding data blocks in the target partition.
3. The method of claim 1, wherein counting the second number of bad data blocks in the target partition during the burning comprises:
for each data block in the target partition, detecting whether a preset area stores bad data block information or not in the burning process;
if yes, adding one to the number of bad data blocks in the target partition, and obtaining a second number when the burning is completed.
4. The NAND Flash burning device is characterized by comprising:
the system comprises an acquisition module, a storage module and a storage module, wherein the acquisition module is used for acquiring file data of a data area in a current partition in a master slice and a first number of reserved blocks in the reserved area, the master slice is partitioned in advance, each partition comprises a reserved area and a data area, the reserved area is composed of a plurality of reserved blocks, and preset contents are stored in each reserved block;
the burning module is used for burning the file data into a target partition corresponding to the current partition in the NAND Flash to be burnt;
the statistics module is used for counting the second number of bad data blocks in the target partition in the burning process;
the first completion module is used for successfully burning the target partition when the second number is not larger than the first number;
the second completion module is used for completing the writing of the NAND Flash to be written when each partition in the NAND Flash to be written is successfully written;
wherein, the acquisition module includes:
a reserved block obtaining unit, configured to obtain a reserved block in a reserved area in the current partition;
a judging unit, configured to judge whether the reserved block is a preset content;
the acquisition and integration unit is used for acquiring each data block contained in the data area of the current partition in the master slice, acquiring file data segments contained in each data block, and integrating each file data segment to obtain file data;
and the updating unit is used for updating the first number of the reserved blocks in the reserved area in the master slice if not.
5. The apparatus of claim 4, wherein the programming module comprises:
an identifier obtaining unit, configured to obtain an identifier of the current partition;
the searching unit is used for searching a target partition which is the same as the identifier from all partitions contained in the NAND Flash to be burned according to the identifier;
and the burning unit is used for burning the file data into the corresponding data blocks in the target partition.
6. The apparatus of claim 4, wherein the statistics module comprises:
the detection unit is used for detecting whether a preset area stores bad data block information or not in the burning process for each data block in the target partition;
and the statistics unit is used for adding one to the number of bad data blocks in the target partition if yes, and obtaining a second number when the burning is completed.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910863924.7A CN112486506B (en) | 2019-09-12 | 2019-09-12 | NAND Flash burning method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910863924.7A CN112486506B (en) | 2019-09-12 | 2019-09-12 | NAND Flash burning method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN112486506A CN112486506A (en) | 2021-03-12 |
CN112486506B true CN112486506B (en) | 2024-02-02 |
Family
ID=74919905
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910863924.7A Active CN112486506B (en) | 2019-09-12 | 2019-09-12 | NAND Flash burning method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN112486506B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113312001B (en) * | 2021-06-06 | 2024-02-06 | 深圳市昂科技术有限公司 | Chip data copying device and method |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102543193A (en) * | 2011-12-31 | 2012-07-04 | 深圳创维数字技术股份有限公司 | Flash memory recording method as well as recording equipment and system |
CN102609282A (en) * | 2012-01-19 | 2012-07-25 | 苏州希图视鼎微电子有限公司 | Execution method for NAND flash curing codes |
CN103049298A (en) * | 2013-01-17 | 2013-04-17 | 四川省安全科学技术研究院 | Nandflash burning writing method |
CN103324503A (en) * | 2013-05-29 | 2013-09-25 | 京东方科技集团股份有限公司 | Data programming system and method |
CN104572492A (en) * | 2015-01-22 | 2015-04-29 | 福州瑞芯微电子有限公司 | Method and apparatus of burning data to FAT (File Allocation Table)32 partition |
CN106445737A (en) * | 2016-09-12 | 2017-02-22 | 恒为科技(上海)股份有限公司 | Multi-backup starting method |
Family Cites Families (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7698698B2 (en) * | 2004-09-30 | 2010-04-13 | Smith Micro Software, Inc. | Method for over-the-air firmware update of NAND flash memory based mobile devices |
US20070208888A1 (en) * | 2006-02-17 | 2007-09-06 | Epo Science & Technology Inc. | Method for allowing burners to burn partly different contents while copying source disc |
TWI420308B (en) * | 2010-10-13 | 2013-12-21 | Phison Electronics Corp | Block management method, memory controller and memory storage apparatus |
TW201301039A (en) * | 2011-06-24 | 2013-01-01 | Hon Hai Prec Ind Co Ltd | System and method for burning firmware |
-
2019
- 2019-09-12 CN CN201910863924.7A patent/CN112486506B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102543193A (en) * | 2011-12-31 | 2012-07-04 | 深圳创维数字技术股份有限公司 | Flash memory recording method as well as recording equipment and system |
CN102609282A (en) * | 2012-01-19 | 2012-07-25 | 苏州希图视鼎微电子有限公司 | Execution method for NAND flash curing codes |
CN103049298A (en) * | 2013-01-17 | 2013-04-17 | 四川省安全科学技术研究院 | Nandflash burning writing method |
CN103324503A (en) * | 2013-05-29 | 2013-09-25 | 京东方科技集团股份有限公司 | Data programming system and method |
CN104572492A (en) * | 2015-01-22 | 2015-04-29 | 福州瑞芯微电子有限公司 | Method and apparatus of burning data to FAT (File Allocation Table)32 partition |
CN106445737A (en) * | 2016-09-12 | 2017-02-22 | 恒为科技(上海)股份有限公司 | Multi-backup starting method |
Also Published As
Publication number | Publication date |
---|---|
CN112486506A (en) | 2021-03-12 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US6675180B2 (en) | Data updating apparatus that performs quick restoration processing | |
CN110018989B (en) | Snapshot comparison method and device | |
CN1983267A (en) | File system having deferred verification of data integrity | |
CN102693283A (en) | Data partition storage method and system boot method of embedded system | |
CN100517270C (en) | Semiconductor device having flash memory | |
CN103577483B (en) | The method and system of date storage method and system and data access | |
CN104769583A (en) | Updating statistics in distributed databases | |
CN112486506B (en) | NAND Flash burning method and device | |
EP1160786A2 (en) | Information recording medium, information recording method, information recording apparatus, information reproducing method, and information reproducing apparatus | |
CN109388644B (en) | Data updating method and device | |
CN105892954A (en) | Data storage method and device based on multiple copies | |
CN110554840B (en) | Disk management method, device, electronic equipment and storage medium | |
US8996786B2 (en) | Nonvolatile memory system and block management method | |
CN110795282A (en) | Data rollback method, device, equipment and storage medium | |
US8214605B2 (en) | Method for reading out data from a storage medium | |
CN102981964B (en) | The management method of data space and system | |
CN110750411B (en) | Method and device for monitoring, early warning and repairing file index node | |
US20130311716A1 (en) | Memory controller | |
CN101193356A (en) | Firmware upgrade method for portable information terminal | |
CN110471623B (en) | Hard disk file writing method, device, computer equipment and storage medium | |
CN110874182B (en) | Processing method, device and equipment for strip index | |
CN110781031B (en) | Controller data recovery method and device, controller and automobile | |
CN104751881B (en) | flash memory burning method | |
CN113296700A (en) | Storage space management method and device and server | |
CN102394761B (en) | Charge system upgrading method and 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 |