A method, device and storage device for detecting firmware program errors

By obtaining and judging the correctness of write operation instructions and test data in the storage device, and using data management information to locate errors, the problem of long time locating the root cause of firmware program errors in the existing technology is solved, and fast and timely error location is achieved. .

CN111949426BActive Publication Date: 2024-09-17GIGADEVICE SEMICON (BEIJING) INC
View PDF 9 Cites 0 Cited by

Patent Information

Application Number
CN201910411059.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2019-05-16
Publication Date
2024-09-17
Estimated Expiration
2039-05-16

AI Technical Summary

Technical Problem

In the existing technology, when the host discovers that a data error has occurred in the storage device, it takes a long time to backtrack to find the source of the firmware program error, resulting in a long positioning time.

Method used

By obtaining the write operation instruction and the corresponding test data and data management information, write it to the current page, and determine whether the write operation instruction is correct. Use the data management information including address mapping information, timestamp and other information to locate errors, including reverse order simulation. Test data storage procedures to locate firmware program errors.

Benefits of technology

It achieves timely detection of data errors, reduces the time to find the root cause of firmware program errors, reduces the workload of error location, and avoids data errors during normal use.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN111949426B
    Figure CN111949426B
Patent Text Reader

Abstract

The present invention discloses a method, device and storage device for detecting firmware program errors. A write operation instruction is obtained, and test data and data management information corresponding to the write operation instruction are written into the current page, and it is determined whether the test data corresponding to the write operation instruction is written incorrectly. If so, the firmware program error is located according to the data management information, wherein the data management information at least includes address mapping information, a timestamp and the physical page offset of the current page in the block. The technical solution provided by the embodiment of the present invention can timely discover whether the test data is written incorrectly, so as to locate the root cause of the firmware program error as soon as possible.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present invention relate to the field of memory technology, and in particular to a method, device and equipment for detecting firmware program errors. Background Art

[0002] Storage devices based on NAND flash have the advantages of large capacity, fast rewrite speed and non-volatility during power failure, etc. They are suitable for storing large amounts of data and are therefore increasingly widely used in the industry, such as in embedded products including digital cameras, MP3 players, memory cards, and compact USB flash drives.

[0003] The conversion layer in the firmware program of NAND flash storage devices is responsible for mapping logical addresses to physical addresses, wear leveling management, bad block management, garbage collection management, etc. If the firmware program is written incorrectly, it may cause user data errors or even abnormal operation of the storage device. However, in the prior art, when the host discovers that a data error has occurred and reports an error, it is usually a long time since the data error occurred, and it takes a long time to trace back and find the root cause of the error. Summary of the invention

[0004] The present invention provides a method, device and equipment for detecting firmware program errors, so as to timely discover data errors and reduce the time for finding the root cause of firmware program errors.

[0005] In a first aspect, an embodiment of the present invention provides a method for detecting a firmware program error, the method comprising:

[0006] Get write operation instructions;

[0007] Write the test data and data management information corresponding to the write operation instruction into the current page;

[0008] Determine whether the test data corresponding to the write operation instruction is written incorrectly;

[0009] If so, locate the error of the firmware program according to the data management information;

[0010] The data management information includes at least address mapping information, a timestamp, and a physical page offset of the current page in the block.

[0011] Optionally, writing the test data and data management information corresponding to the write operation instruction into the current page includes:

[0012] The test data is written into the data area of ​​the current page, and the data management information is written into the redundant area of ​​the current page.

[0013] Optionally, the error location of the firmware program according to the data management information includes:

[0014] Simulate the storage process of test data according to data management information and test data in reverse order;

[0015] The firmware program is fault located based on the test data storage process.

[0016] Optionally, determining whether the test data corresponding to the write operation instruction is written incorrectly includes:

[0017] Read test data and data management information, and obtain preset logical addresses contained in the test data;

[0018] Determine a physical address of a storage space used to store a preset logical address as a preset physical address;

[0019] Determine, according to the address mapping information included in the data management information, a logical address corresponding to the preset physical address as a target logical address;

[0020] Detecting whether the preset logical address is consistent with the target logical address, if not, determining that the test data corresponding to the write operation instruction is written incorrectly;

[0021] The preset logical address is the Nth data in the test data, and the content of the preset logical address is the starting logical address corresponding to the test data plus N and then minus 1, where N is a positive integer greater than or equal to 1.

[0022] Optionally, determining whether the test data corresponding to the write operation instruction is written incorrectly includes:

[0023] Read test data and data management information, and obtain address mapping information in the data management information;

[0024] Read the mapping table corresponding to the test data;

[0025] It is detected whether the address mapping information included in the mapping table is consistent with the address mapping information included in the data management information. If not, it is determined that the test data corresponding to the write operation instruction is written incorrectly.

[0026] In a second aspect, an embodiment of the present invention further provides a device for detecting a firmware program error, the device comprising:

[0027] Write operation instruction acquisition module, test data and data management information writing module, write error judgment module and error location module;

[0028] A write operation instruction acquisition module, used to acquire a write operation instruction;

[0029] A test data and data management information writing module, used to write the test data and data management information corresponding to the write operation instruction into the current page;

[0030] A write error judgment module is used to judge whether the test data corresponding to the write operation instruction is written incorrectly;

[0031] An error locating module, used to locate the error of the firmware program according to the data management information when judging whether the test data corresponding to the write operation instruction is written incorrectly;

[0032] The data management information includes at least address mapping information, a timestamp, and a physical page offset of the current page in the block.

[0033] Optionally, the test data and data management information writing module is specifically used to write the test data into the data area of ​​the current page, and write the data management information into the redundant area of ​​the current page.

[0034] Optionally, the error location module includes a stored process simulation submodule and an error location submodule;

[0035] The stored procedure simulation submodule is used to simulate the stored procedure of the test data according to the data management information and the reverse order of the test data;

[0036] The error location submodule is used to locate the error of the firmware program according to the storage process of the test data.

[0037] Optionally, the write error judgment module includes: a preset logical address determination submodule, a preset physical address determination submodule, a target logical address determination submodule and a first write error judgment submodule;

[0038] A preset logic address determination submodule is used to read test data and data management information, and obtain a preset logic address contained in the test data;

[0039] A preset physical address determination submodule, used to determine the physical address of the storage space used to store the preset logical address as the preset physical address;

[0040] A target logical address determination submodule, used to determine the logical address corresponding to the preset physical address as the target logical address according to the address mapping information contained in the data management information;

[0041] The first write error judgment submodule is used to detect whether the preset logical address is consistent with the target logical address. If not, it is judged that the test data corresponding to the write operation instruction is written incorrectly.

[0042] The preset logical address is the Nth data in the test data, and the content of the preset logical address is the starting logical address corresponding to the test data plus N and then minus 1, where N is a positive integer greater than or equal to 1.

[0043] In a third aspect, an embodiment of the present invention further provides a storage device, which includes the device for detecting firmware program errors as described in any embodiment of the present invention.

[0044] The firmware program error detection method provided by the embodiment of the present invention promptly checks whether a data error occurs after writing the test data to the storage device during the test phase, and locates the root cause of the firmware program error when a data error is detected. Since the check is timely, it is not necessary to read a lot of data for analysis as in the prior art, thereby reducing the workload of locating the firmware program error, solving the problem in the prior art that it takes a long time to locate the root cause of the firmware program error when a data error is detected, thereby achieving the effect of reducing the time for locating the root cause of the firmware program error. BRIEF DESCRIPTION OF THE DRAWINGS

[0045] Figure 1 is a flowchart of a method for detecting firmware program errors provided by the first embodiment of the present invention;

[0046] Figure 2 is a flowchart of a method for detecting firmware program errors provided by Embodiment 2 of the present invention;

[0047] Figure 3 is a flowchart of a method for detecting firmware program errors provided by Embodiment 3 of the present invention;

[0048] Figure 4 It is a structural block diagram of a firmware program error detection device provided in Embodiment 3 of the present invention. DETAILED DESCRIPTION

[0049] The present invention will be further described in detail below in conjunction with the accompanying drawings and embodiments. It is to be understood that the specific embodiments described herein are only used to explain the present invention, rather than to limit the present invention. It should also be noted that, for ease of description, only parts related to the present invention, rather than all structures, are shown in the accompanying drawings.

[0050] Embodiment 1

[0051] Figure 1 This is a flowchart of a method for detecting a firmware program error provided by the first embodiment of the present invention. This embodiment is applicable to the case of locating errors in a firmware program in a storage device. The method can be executed by a firmware program error detection device in the embodiment of the present invention. The device can be implemented in software and / or hardware and can generally be integrated in a storage device. The method in the embodiment of the present invention specifically includes the following steps:

[0052] S110, obtaining a write operation instruction.

[0053] Specifically, the storage device may be a storage device based on a NAND flash memory, and the NAND flash storage device includes a front-end layer, a conversion layer, and a back-end layer. The front-end layer is used to communicate with a host, for example, to receive a control instruction sent by the host, the control instruction including a read operation instruction, a write operation instruction, and an erase operation instruction; the conversion layer is used to perform software operations according to the control instructions, the software operations including but not limited to conversion from a logical address to a physical address, address mapping table management, wear leveling management, and bad block management; the back-end layer is used to perform read, write, or erase operations on the NAND flash memory according to the control instructions.

[0054] S120 , writing the test data and data management information corresponding to the write operation instruction into the current page.

[0055] Among them, the data management information at least includes address mapping information, timestamp and the physical page offset of the current page in the block, and may also include other types of data management information. Technical personnel in this field can set it according to actual conditions. It can be understood that the more data management information is stored, the more basis there is when using the data management information to locate the root cause of the firmware program error.

[0056] Specifically, when the test data is written to a certain page, the data management information corresponding to the test data to be stored in the page is also written in the page. The advantage of this setting is that when locating the root cause of the firmware program error that causes the data error, it is necessary to analyze based on the test data and the data management information. By reading the current page, the test data and the data management information can be obtained at the same time.

[0057] S130, determining whether the test data corresponding to the write operation instruction is written incorrectly.

[0058] Among them, the read operation is to read data from the NAND flash memory, which does not affect the storage of data in the NAND flash memory; the erase operation is to erase some written data in the NAND flash memory, which does not affect the storage of data that does not need to be erased in the NAND flash memory; the write operation is to write data to the NAND flash memory. If the firmware program based on which the conversion layer performs the write operation is written incorrectly, data errors are likely to occur, thereby affecting the normal operation of the storage device. Therefore, it is necessary to ensure that the written data is correct.

[0059] Specifically, after the test data is written into the NAND flash memory, it is read out from the NAND flash memory. There are two main ways to read the test data written into the NAND flash memory: one is to send a read operation command through the host, and the other is to use garbage collection. If the read data is inconsistent with the test data sent by the host, it means that the test data is written incorrectly, that is, a data error has occurred. Alternatively, if the address mapping information stored in the data management information is inconsistent with the mapping table information stored in the block of the NAND flash memory specifically used to store the mapping table, it also means that the test data is written incorrectly, that is, a data error has occurred.

[0060] S140: If yes, locate the error of the firmware program according to the data management information.

[0061] Among them, the firmware program is a whole including many steps, and the previous and subsequent steps are related. Any error in the writing of any step may lead to data errors. The timestamp can reflect the order in which multiple data are written, the physical page offset of the current page in the block can reflect the relative position of the current page in the block where it is located, and the address mapping information can reflect the one-to-one correspondence between the logical address, the test data and the physical address. According to the above data management information, the root cause of the error of the firmware program can be assisted in finding. It can be understood that when relying on the above data management information alone is not enough to find the root cause of the error of the firmware program, other types of data management information in the blocks of the NAND flash memory specifically used to store various types of data management information can be used to help locate the root cause of the error of the firmware program.

[0062] It should be noted that steps S110-S140 occur during the test phase of the storage device. During the test phase, the above steps are used to detect whether an error occurs in the firmware program. If an error occurs in the firmware program, the error can be located in the firmware program in a timely manner according to the data management information. Compared with the prior art, when a certain part of the previously written data is read during the normal use phase of the storage device, and an error is found in the written data of the part, the root cause of the error in the firmware program is located, and the data error can be found as early as possible, which is conducive to checking the problem, and data errors can be avoided during the normal use phase of the storage device.

[0063] The firmware program error detection method provided by the embodiment of the present invention promptly checks whether a data error occurs after writing the test data to the storage device during the test phase, and locates the root cause of the firmware program error when a data error is detected. Since the check is timely, it is not necessary to read a lot of data for analysis as in the prior art, thereby reducing the workload of locating the firmware program error, solving the problem in the prior art that it takes a long time to locate the root cause of the firmware program error when a data error is detected, thereby achieving the effect of reducing the time for locating the root cause of the firmware program error.

[0064] Embodiment 2

[0065] This embodiment is concretized and optimized on the basis of the above technical solution, and this embodiment has the same inventive concept as the above embodiment, and the explanations of the terms that are the same or corresponding to the above embodiment are not repeated in this embodiment.

[0066] Figure 2 is a flowchart of a firmware program error detection method provided by Embodiment 2 of the present invention, see Figure 2 The method of the embodiment of the present invention specifically includes the following steps:

[0067] S210, obtaining a write operation instruction.

[0068] S220 , writing the test data into the data area of ​​the current page, and writing the data management information into the redundant area of ​​the current page.

[0069] Specifically, a NAND flash memory includes multiple blocks, each block includes multiple pages, and each page includes a data area and a redundant area. The data area is usually used to store test data, and the redundant area is usually used to store error correction codes for the test data. However, the error correction code does not fill up the redundant area. Therefore, data management information can be stored in the surplus storage space of the redundant area.

[0070] S230: Read test data and data management information, and obtain a preset logical address contained in the test data.

[0071] The preset logical address is the Nth data in the test data, and the content of the preset logical address is the starting logical address corresponding to the test data plus N and then minus 1, where N is a positive integer greater than or equal to 1. That is, if the test data is written correctly, the logical address in the mapping table corresponding to the test data that corresponds one-to-one to the physical address of the storage space used to store the preset logical address is the preset logical address.

[0072] S240: Determine a physical address of a storage space used to store a preset logical address as a preset physical address.

[0073] Specifically, the NAND flash memory includes multiple blocks, each block includes multiple pages, each page includes multiple storage spaces, and the physical address of the physical space storing the preset logical address is determined as the preset physical address.

[0074] S250: Determine, according to the address mapping information included in the data management information, a logical address corresponding to the preset physical address as a target logical address.

[0075] Specifically, the data management information includes address mapping information, and the address mapping information can reflect the one-to-one correspondence between the physical address and the logical address, and the logical address recorded in the address mapping information and corresponding to the preset physical address is determined as the target logical address.

[0076] S260, detecting whether the preset logical address is consistent with the target logical address, and if not, determining that the test data corresponding to the write operation instruction is written incorrectly.

[0077] Exemplarily, each data page contains multiple sectors, and a sector is the smallest access unit for a host to access a storage device based on the EMMC protocol. The first four bytes of each sector store a preset logical address. During a read operation, the preset logical address stored in the first four bytes of each sector and the target logical address corresponding to the physical address of the first four bytes are checked. If the preset logical address is inconsistent with the target logical address, it indicates that a data error has occurred.

[0078] S270, simulating the storage process of the test data according to the data management information and the test data in reverse order.

[0079] S280: Locate the error of the firmware program according to the storage process of the test data.

[0080] Specifically, the data writing process is implemented by running many steps of programs written in the firmware program step by step, that is, the data writing process and the programs written in the firmware program correspond to each other. Therefore, when a data error occurs, it is necessary to read a lot of test data written into the NAND flash memory, including the page where the data error occurs, and simulate the writing process of the test data in reverse order with the help of data management information to check which step of the writing process of the test data has an error, and then analyze the part of the firmware program used to implement the step, and finally find the root cause of the error of the firmware program.

[0081] The firmware program error detection method provided by the embodiment of the present invention only needs to determine whether the preset logical address in the test data is consistent with the target logical address in the data management information, and there is no need to compare the test data one by one to check whether there is a write error. Therefore, it is possible to quickly determine whether the test data is written incorrectly, and when the test data is written incorrectly, the test data process is simulated with the assistance of the data management information, thereby finding the root cause of the firmware program error.

[0082] Embodiment 3

[0083] This embodiment is concretized and optimized on the basis of the above technical solution, and this embodiment has the same inventive concept as the above embodiment, and the explanations of the terms that are the same or corresponding to the above embodiment are not repeated in this embodiment.

[0084] Figure 3 is a flowchart of a firmware program error detection method provided by Embodiment 3 of the present invention, see Figure 3 The method of the embodiment of the present invention specifically includes the following steps:

[0085] S310, obtaining a write operation instruction.

[0086] S320 , writing the test data into the data area of ​​the current page, and writing the data management information into the redundant area of ​​the current page.

[0087] S330, reading the test data and the data management information, and obtaining the address mapping information in the data management information.

[0088] S340, reading a mapping table corresponding to the test data.

[0089] Specifically, a block dedicated to storing the mapping table is allocated in the NAND flash memory, and the mapping table corresponding to the test data is read from the block.

[0090] S350, detecting whether the address mapping information included in the mapping table is consistent with the address mapping information included in the data management information, and if not, determining that the test data corresponding to the write operation instruction is written incorrectly.

[0091] S350, simulating the storage process of the test data according to the data management information and the test data in reverse order.

[0092] S360: Locate the error of the firmware program according to the storage process of the test data.

[0093] The firmware program error detection method provided by the embodiment of the present invention can determine whether the test data is written incorrectly based on the address mapping information contained in the mapping table and the address mapping information contained in the data management information, that is, check the correspondence between the physical address and the logical address of each data, thereby improving the detection accuracy, and when the test data is written incorrectly, simulate the test data process with the assistance of the data management information, and then find the root cause of the firmware program error.

[0094] Embodiment 4

[0095] Figure 4 is a structural block diagram of a firmware program error detection device provided by Embodiment 3 of the present invention, see Figure 4 The device includes: a write operation instruction acquisition module 110, a test data and data management information writing module 120, a write error judgment module 130 and an error location module 140.

[0096] The write operation instruction acquisition module 110 is used to acquire a write operation instruction.

[0097] The test data and data management information writing module 120 is used to write the test data and data management information corresponding to the write operation instruction into the current page.

[0098] The write error judgment module 130 is used to judge whether the test data corresponding to the write operation instruction is written incorrectly.

[0099] The error locating module 140 is used to locate the error of the firmware program according to the data management information when determining whether the test data corresponding to the write operation instruction is written incorrectly.

[0100] The data management information includes at least address mapping information, a timestamp, and a physical page offset of the current page in the block.

[0101] The firmware program error detection method provided by the embodiment of the present invention promptly checks whether a data error occurs after writing the test data to the storage device during the test phase, and locates the root cause of the firmware program error when a data error is detected. Since the check is timely, it is not necessary to read a lot of data for analysis as in the prior art, thereby reducing the workload of locating the firmware program error, solving the problem in the prior art that it takes a long time to locate the root cause of the firmware program error when a data error is detected, thereby achieving the effect of reducing the time for locating the root cause of the firmware program error.

[0102] On the basis of the above technical solution, optionally, the test data and data management information writing module 120 is specifically used to write the test data into the data area of ​​the current page, and write the data management information into the redundant area of ​​the current page.

[0103] Optionally, the error location module 140 includes a storage process simulation submodule and an error location submodule.

[0104] The stored procedure simulation submodule is used to simulate the stored procedure of the test data according to the data management information and the reverse order of the test data.

[0105] The error location submodule is used to locate the error of the firmware program according to the storage process of the test data.

[0106] Optionally, the write error judgment module 130 includes: a preset logical address determination submodule, a preset physical address determination submodule, a target logical address determination submodule and a first write error judgment submodule;

[0107] A preset logic address determination submodule is used to read test data and data management information, and obtain a preset logic address contained in the test data;

[0108] A preset physical address determination submodule, used to determine the physical address of the storage space used to store the preset logical address as the preset physical address;

[0109] A target logical address determination submodule, used to determine the logical address corresponding to the preset physical address as the target logical address according to the address mapping information contained in the data management information;

[0110] A first write error judgment submodule is used to detect whether the preset logical address is consistent with the target logical address, and if not, to judge that the test data corresponding to the write operation instruction is written incorrectly;

[0111] The preset logical address is the Nth data in the test data, and the content of the preset logical address is the starting logical address corresponding to the test data plus N and then minus 1, where N is a positive integer greater than or equal to 1.

[0112] Optionally, the write error judgment module 130 includes: an address mapping information acquisition submodule, a mapping table reading submodule and a second write error judgment submodule.

[0113] The address mapping information acquisition submodule is used to read the test data and data management information, and obtain the address mapping information in the data management information;

[0114] A mapping table reading submodule is used to read the mapping table corresponding to the test data;

[0115] The second write error judgment submodule is used to detect whether the address mapping information included in the mapping table is consistent with the address mapping information included in the data management information. If not, it is judged that the test data corresponding to the write operation instruction is written incorrectly.

[0116] The firmware program error detection device proposed in this embodiment and the firmware program error detection method proposed in the above embodiment belong to the same inventive concept. The technical details not described in detail in this embodiment can be referred to the above embodiment, and this embodiment has the same beneficial effect as the firmware program error detection method.

[0117] Embodiment 5

[0118] An embodiment of the present invention further provides a storage device, which includes the device for detecting firmware program errors according to any embodiment of the present invention.

[0119] The storage device includes any one of the above-mentioned firmware program error detection devices, so the storage device has corresponding functions and beneficial effects.

[0120] Note that the above are only preferred embodiments of the present invention and the technical principles used. Those skilled in the art will understand that the present invention is not limited to the specific embodiments described herein, and that various obvious changes, readjustments and substitutions can be made by those skilled in the art without departing from the scope of protection of the present invention. Therefore, although the present invention has been described in more detail through the above embodiments, the present invention is not limited to the above embodiments, and may include more other equivalent embodiments without departing from the concept of the present invention, and the scope of the present invention is determined by the scope of the appended claims.

Claims

1. A method for detecting firmware program errors, characterized in that: include: Get write operation instructions; Writing the test data and data management information corresponding to the write operation instruction into the current page; Determining whether the test data corresponding to the write operation instruction is written incorrectly; If yes, simulating the storage process of the test data in reverse order according to the data management information and the test data; to check the steps in the storage process of the test data where errors occur, analyze the parts of the firmware program used to implement the steps, and determine the root cause of the error of the firmware program; The data management information at least includes address mapping information, a timestamp, and a physical page offset of the current page in the block; wherein determining whether the test data corresponding to the write operation instruction is written incorrectly includes: Reading the test data and the data management information, and obtaining a preset logical address contained in the test data; Determining a physical address of a storage space used to store the preset logical address as a preset physical address; Determining, according to the address mapping information included in the data management information, a logical address corresponding to the preset physical address as a target logical address; Detecting whether the preset logical address is consistent with the target logical address, and if not, determining that the test data corresponding to the write operation instruction is written incorrectly; The preset logical address is the Nth data in the test data, and the content of the preset logical address is the starting logical address corresponding to the test data+N-1, where N is a positive integer greater than or equal to 1.

2. The method for detecting firmware program errors according to claim 1, characterized in that: Writing the test data and data management information corresponding to the write operation instruction into the current page includes: The test data is written into a data area of ​​the current page, and the data management information is written into a redundant area of ​​the current page.

3. A firmware program error detection device, characterized in that: include: Write operation instruction acquisition module, test data and data management information writing module, write error judgment module and error location module; The write operation instruction acquisition module is used to acquire the write operation instruction; The test data and data management information writing module is used to write the test data and data management information corresponding to the write operation instruction into the current page; The write error judgment module is used to judge whether the test data corresponding to the write operation instruction is written incorrectly; The error location module includes a storage process simulation submodule and an error location submodule; The stored procedure simulation submodule is used to simulate the stored procedure of the test data in reverse order according to the data management information and the test data; The error locating submodule is used to locate the error of the firmware program according to the storage process of the test data, so as to check the step where the error occurs in the storage process of the test data, analyze the part of the firmware program used to implement the step, and determine the root cause of the error of the firmware program; Wherein, the data management information includes at least address mapping information, a timestamp, and a physical page offset of the current page in the block; Wherein, the write error judgment module includes: a preset logical address determination submodule, a preset physical address determination submodule, a target logical address determination submodule and a first write error judgment submodule; The preset logical address determination submodule is used to read the test data and the data management information, and obtain the preset logical address contained in the test data; The preset physical address determination submodule is used to determine the physical address of the storage space used to store the preset logical address as the preset physical address; The target logical address determination submodule is used to determine the logical address corresponding to the preset physical address as the target logical address according to the address mapping information included in the data management information; The first write error judgment submodule is used to detect whether the preset logical address is consistent with the target logical address, and if not, to judge that the test data corresponding to the write operation instruction is written incorrectly; The preset logical address is the Nth data in the test data, and the content of the preset logical address is the starting logical address corresponding to the test data plus N and then minus 1, where N is a positive integer greater than or equal to 1.

4. The device for detecting firmware program errors according to claim 3, characterized in that: The test data and data management information writing module is specifically used to write the test data into the data area of ​​the current page, and write the data management information into the redundant area of ​​the current page.

5. A storage device, characterized in that: A device for detecting firmware program errors comprising the device described in any one of claims 3-4.

Citation Information

Patent Citations

  • Flash memory controller

    CN101288056A

  • Firmware program detecting method based on NandFlash storage medium

    CN101710302A

  • Method for testing memory device

    CN101937721A

  • Data processing method and apparatus

    CN103761190A

  • Test method and device

    CN105741883A