CN-116185747-B - Method, device and readable storage medium for debugging memory granule card opening tool
Abstract
The application discloses a method for debugging a memory grain card opening tool, a device for debugging the memory grain card opening tool and a computer readable storage medium, wherein the method comprises the steps of determining NAND parameters corresponding to a debugging instruction of the card opening tool when a virtual host receives the debugging instruction; generating virtual storage equipment based on the NAND parameters, determining error storage points and corresponding error types, setting parameters to be set of the error storage points according to the error types, updating the virtual storage equipment according to the parameters to be set, controlling the updated virtual storage equipment to execute the debugging instructions, and outputting execution results of the debugging instructions. The technical problems that the number of the fault logs grasped in the related technology is insufficient and the debugging effect of the card opening tool is affected are solved, and the technical effects of covering as many business scenes as possible for debugging the logic flow of mass production and exception handling are achieved.
Inventors
- LIN YIN
- WU DAWEI
- LI XIAOQIANG
Assignees
- 深圳市硅格半导体有限公司
Dates
- Publication Date
- 20260512
- Application Date
- 20221209
Claims (8)
- 1. The method for debugging the memory particle card opening tool is characterized by comprising the following steps of: When a virtual host receives a debugging instruction of a card opening tool, determining NAND parameters corresponding to the debugging instruction; Generating virtual storage equipment based on the NAND parameters, and determining error storage points and corresponding error types; setting parameters to be set of the error storage point positions according to the error types, and updating the virtual storage equipment according to the parameters to be set; Controlling the updated virtual storage device to execute the debugging instruction and outputting an execution result of the debugging instruction; the step of controlling the updated virtual storage device to execute the debug instruction and outputting the execution result of the debug instruction includes: operating the card opening tool to obtain a map table of virtual storage particles in the virtual storage device; Generating a control file corresponding to the virtual storage device according to the map table based on the NAND parameters and the error storage point positions; updating the virtual micro control unit according to the control file; and controlling the virtual micro control unit to execute the debugging instruction and outputting an execution result of the debugging instruction.
- 2. The method for debugging a memory granule card opening tool according to claim 1, wherein when the virtual host receives a debug instruction of the card opening tool, the step of determining a NAND parameter corresponding to the debug instruction comprises: When the virtual host receives the debugging instruction, determining a storage particle performance file corresponding to the debugging instruction; determining a wear function, performance parameters and basic attribute parameters corresponding to the stored particle performance file; The NAND parameter is determined from the wear function, the performance parameter, and the base attribute parameter.
- 3. The method of claim 2, wherein the steps of generating a virtual memory device based on the NAND parameters and determining the error memory location and the corresponding error type comprise: Running a preset generation algorithm, and generating the virtual storage device based on the NAND parameters; determining a target memory block based on the wear function; determining a position coordinate corresponding to the target storage block as the error storage point position; and acquiring the error type in the fault log, and randomly distributing the error type to the error storage point.
- 4. The method for debugging a memory granule opening tool according to claim 1, wherein the step of setting a parameter to be set of the error memory point location according to the error type, and updating the virtual memory device according to the parameter to be set comprises: Determining a target parameter value corresponding to the error type; setting the parameters to be set corresponding to the error storage points according to the target parameter values; And determining the target storage particles corresponding to the error storage points, and controlling the target storage particles to enter corresponding error states according to the parameters to be set.
- 5. The method for debugging a memory granule opening tool according to claim 1, wherein the step of updating a virtual micro control unit according to the control file comprises: compiling the control file into a binary file and sending the binary file to the virtual storage granules; and when the virtual storage equipment receives a working instruction, controlling the virtual storage particles to send the binary files to the virtual micro control unit.
- 6. The method of claim 1, wherein the step of controlling the virtual micro control unit to execute the debug instruction and outputting an execution result of the debug instruction comprises: The virtual micro control unit performs read-write test on the virtual storage particles according to the control file; When the read-write test has errors, outputting an error report corresponding to the read-write test.
- 7. A memory granule opening tool debugging device, comprising a memory, a processor and a memory granule opening tool debugging program stored on the memory and operable on the processor, wherein the processor implements the steps of the memory granule opening tool debugging method of any one of claims 1 to 6 when executing the memory granule opening tool debugging program.
- 8. A computer readable storage medium, wherein a memory granule opening tool debugging program is stored on the computer readable storage medium, and the memory granule opening tool debugging program, when executed by a processor, implements the steps of the memory granule opening tool debugging method of any one of claims 1 to 6.
Description
Method, device and readable storage medium for debugging memory granule card opening tool Technical Field The present application relates to the field of storage devices, and in particular, to a method for debugging a storage particle card opening tool, a storage particle card opening tool debugging device, and a computer readable storage medium. Background The memory includes an MCU (Microcontroller Unit, micro control unit) and NAND granules. And the MCU is stored with a control program for controlling the memory to complete corresponding storage actions. NAND is widely used in various large-capacity devices such as memory cards, usb discs, SSDs, emmcs, and the like. In the related art, a memory manufacturer purchases NAND pellets from a flash pellet manufacturer and further manufactures the memory. And after the finished product is produced, a corresponding card opening tool is debugged for the NAND particles of the memory, and the FTL (Flash Translation Layer, flash memory conversion layer) is burnt into the NAND particles by using the card opening tool. However, the number of NAND particles obtained by a memory manufacturer in the debugging process of the card opening tool is limited, so that the number of the captured fault logs is insufficient, and the debugging effect of the card opening tool is affected. Disclosure of Invention The embodiment of the application solves the technical problems that the quantity of the captured bug logs is insufficient and the debugging effect of the card opening tool is affected due to the limited quantity of NAND particles obtained by a memory manufacturer in the debugging process of the card opening tool in the related technology by providing the method for debugging the memory particle card opening tool, the device for debugging the memory particle card opening tool and the computer readable storage medium, and realizes the technical effects of logic flow and exception handling which cover as many business scenes as possible for debugging mass production. The embodiment of the application provides a method for debugging a memory particle card opening tool, which comprises the following steps: When a virtual host receives a debugging instruction of a card opening tool, determining NAND parameters corresponding to the debugging instruction; Generating virtual storage equipment based on the NAND parameters, and determining error storage points and corresponding error types; setting parameters to be set of the error storage point positions according to the error types, and updating the virtual storage equipment according to the parameters to be set; And controlling the updated virtual storage device to execute the debugging instruction and outputting an execution result of the debugging instruction. Optionally, when the virtual host receives a debug instruction of the card opening tool, the step of determining the NAND parameter corresponding to the debug instruction includes: When the virtual host receives the debugging instruction, determining a storage particle performance file corresponding to the debugging instruction; determining a wear function, performance parameters and basic attribute parameters corresponding to the stored particle performance file; The NAND parameter is determined from the wear function, the performance parameter, and the base attribute parameter. Optionally, the step of generating a virtual storage device based on the NAND parameter and determining an error storage point location and a corresponding error type includes: Running a preset generation algorithm, and generating the virtual storage device based on the NAND parameters; determining a target memory block based on the wear function; determining a position coordinate corresponding to the target storage block as the error storage point position; and acquiring the error type in the fault log, and randomly distributing the error type to the error storage point. Optionally, the step of setting the parameter to be set of the error storage point according to the error type, and updating the virtual storage device according to the parameter to be set includes: Determining a target parameter value corresponding to the error type; setting the parameters to be set corresponding to the error storage points according to the target parameter values; And determining the target storage particles corresponding to the error storage points, and controlling the target storage particles to enter corresponding error states according to the parameters to be set. Optionally, the step of controlling the updated virtual storage device to execute the debug instruction and outputting an execution result of the debug instruction includes: determining a control file corresponding to the virtual storage device based on the card opening tool; updating the virtual micro control unit according to the control file; and controlling the virtual micro control unit to execute the debugging instruction and outputting an ex