Flash self-checking method, device and equipment, storage medium and program product
By changing the bit write operation of the original data to 0 in the Flash self-test program, the erase operation is eliminated, and the error-note data is directly read and self-test is performed, the problem of too long self-test time in the prior art is solved, and the startup speed of the electronic device and the service life of the Flash are improved.
Patent Information
- Application Number
- CN202510304156.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-03-14
- Publication Date
- 2025-08-01
AI Technical Summary
The existing Flash self-test method requires two erasing operations, two write operations and two read operations, resulting in too long self-test time and affecting the startup speed of the electronic device.
In the Flash self-test program, the bits of 1 in the original data are changed to bits of 0 through the write operation, eliminating the erase operation, and directly reading the wrong data for self-test, reducing the write and read operations.
It greatly reduces the execution time of self-test programs, extends the service life of Flash, and reduces the use of storage space.
Smart Images

Figure CN120406822A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of chip technology, and particularly to a Flash self-check method, device, equipment, storage medium and program product. Background Art
[0002] In modern electronic devices, Flash memory is widely used due to its non-volatility and high storage density. The Flash ECC (Error Correction Code) self-check function plays a crucial role in ensuring the data reliability of Flash. During the startup phase, regular maintenance period, or before loading specific functional modules of an electronic device, it is often necessary to execute the Flash ECC self-check process to detect potential storage errors in advance and avoid system failures or abnormal operations caused by incorrect data.
[0003] In related technologies, due to the characteristic that Flash requires erasing before writing data, two erasing operations, two writing operations, and two reading operations are required in existing Flash self-check methods. This often consumes a large amount of time, resulting in the electronic device being in a waiting state for a long time during the Flash self-check phase and unable to quickly enter the normal working process, affecting the user experience. Especially for mobile devices with extremely high requirements for startup speed, this startup delay time is even more unacceptable. Summary of the Invention
[0004] Aiming at the deficiencies of the existing technology, the present application provides a Flash self-check method, device, equipment, storage medium and program product. When executing the Flash self-check program to the error injection operation, at least one bit that is 1 in the original data is changed to a bit that is 0 through a writing operation in the storage space to obtain error-injected data. Since changing a bit that is 1 to a bit that is 0 through a writing operation in Flash does not require an erasing operation, the time for one erasing operation can be saved, and there is no need to read back the original data, saving the time for one reading operation as well. Thus, the execution time of the self-check program is significantly reduced.
[0005] To solve the above problems, the present invention provides the following technical solutions:
[0006] In a first aspect, an embodiment of the present application provides a Flash self-check method, including: writing a Flash self-check program including original data into the storage space of the Flash;
[0007] When executing the Flash self-check program to the error injection operation, at least one bit that is 1 in the original data is changed to a bit that is 0 through a writing operation in the storage space to obtain error-injected data;
[0008] Read the verification data corresponding to the mis-injected data and the original data for Flash self-check to obtain a self-check result.
[0009] In some embodiments, in the Flash self-check program, the original data is defined as constant data.
[0010] In some embodiments, writing the Flash self-check program including the original data into the storage space of the Flash includes:
[0011] Write the Flash self-check program including the original data and the verification data corresponding to the original data into the storage space of the Flash.
[0012] In some embodiments, before obtaining the mis-injected data by changing at least one bit of 1 in the original data to a bit of 0 through a write operation in the storage space when executing the Flash self-check program to the mis-injection operation, the method further includes:
[0013] Read the original data in the storage space;
[0014] Calculate and store the verification data corresponding to the original data according to the original data by using a pre-designed calculation method.
[0015] In some embodiments, before obtaining the mis-injected data by changing at least one bit of 1 in the original data to a bit of 0 through a write operation in the storage space when executing the Flash self-check program to the mis-injection operation, the method further includes:
[0016] Turn off the function of automatically calculating and storing verification data of the Flash.
[0017] In some embodiments, the storage identifier of the mis-injected data is stored in the Flash. After obtaining the mis-injected data by changing at least one bit of 1 in the original data to a bit of 0 through a write operation in the storage space when executing the Flash self-check program to the mis-injection operation, the method further includes:
[0018] Determine the storage identifier of the mis-injected data as a mis-injected identifier, and the mis-injected identifier indicates that the data stored in the storage space has undergone a mis-injection operation;
[0019] When executing the Flash self-check program again, when it is necessary to mis-inject the original data and the storage identifier is recognized as the mis-injected identifier, skip the mis-injection operation and directly read the mis-injected data and the verification data corresponding to the original data for Flash self-check to obtain a self-check result.
[0020] Second aspect, an embodiment of the present application provides a Flash self-checking device, and the Flash self-checking device includes:
[0021] A data writing module, configured to write a Flash self-checking program including original data into the storage space of the Flash;
[0022] An error injection module, configured to, when executing the Flash self-checking program to an error injection operation, change at least one bit that is 1 in the original data to a bit that is 0 in the storage space through a writing operation to obtain error-injected data;
[0023] A self-checking module, configured to read the error-injected data and the check data corresponding to the original data to perform Flash self-checking to obtain a self-checking result.
[0024] Third aspect, an embodiment of the present application provides an electronic device, and the electronic device includes:
[0025] At least one processor; and,
[0026] A memory communicatively connected to the at least one processor; wherein,
[0027] The memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the Flash self-checking method as described in the first aspect.
[0028] Fourth aspect, an embodiment of the present application provides a computer-readable storage medium, and the computer-readable storage medium stores an executable program, and the executable program is executed by a processor to implement the Flash self-checking method as described in the first aspect.
[0029] Fifth aspect, an embodiment of the present application provides a computer program product, including a computer program, and when the computer program is executed by a processor, the steps of the Flash self-checking method as described in the first aspect are implemented.
[0030] The present application provides a Flash self-checking method, device, equipment, storage medium and program product. By changing at least one bit that is 1 in the original data to a bit that is 0 in the storage space through a writing operation when executing the Flash self-checking program to an error injection operation, error-injected data is obtained. Since changing a bit that is 1 to a bit that is 0 in the Flash through a writing operation does not require an erasing operation, the time of one erasing operation can be saved, and there is no need to read back the original data, and the time of one reading operation is also saved, thereby greatly reducing the execution time of the self-checking program. Description of the Drawings
[0031] Figure 1It is a schematic flowchart of the first implementation manner of the Flash self-checking method provided by the embodiments of the present application.
[0032] Figure 2 It is a schematic flowchart of the second implementation manner of the Flash self-checking method provided by the embodiments of the present application.
[0033] Figure 3 It is a schematic structural diagram of the Flash self-checking device provided by the embodiments of the present application.
[0034] Figure 4 It is a schematic structural diagram of an electronic device provided by the embodiments of the present application.
[0035] Figure 5 It is a structural block diagram of a computer-readable storage medium provided by the embodiments of the present application. Specific embodiments
[0036] Next, the technical solutions in the embodiments of the present application will be clearly and completely described in conjunction with the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are only a part of the embodiments of the present application, rather than all the embodiments. All other embodiments obtained by those of ordinary skill in the art based on the embodiments of the present application without creative efforts shall fall within the protection scope of the present application.
[0037] In addition, the terms "first" and "second" are only used for descriptive purposes and cannot be construed as indicating or implying relative importance or implicitly specifying the quantity of the indicated technical features. Thus, the features defined with "first" and "second" may explicitly or implicitly include one or more of such features. In the description of the present invention, "a plurality of" means two or more unless otherwise specifically defined.
[0038] The present application provides a Flash self-checking method, device, equipment, storage medium and program product. When executing the Flash self-checking program to the error injection operation, at least one bit that is 1 in the original data is changed to 0 through a write operation in the storage space to obtain error-injected data. Since changing a bit that is 1 to 0 through a write operation in the Flash does not require an erase operation, the time of one erase operation can be saved, and there is no need to read back the original data, also saving the time of one read operation, thereby greatly reducing the execution time of the self-checking program.
[0039] Next, the Flash self-checking method provided by the present application will be specifically described in conjunction with the accompanying drawings.
[0040] Please refer to Figure 1 , Figure 1 It is a schematic flowchart of the first implementation manner of the Flash self-checking method provided by the embodiments of the present application. AsFigure 1 As shown, the Flash self-check method includes: step S100 to step S300.
[0041] Step S100: Write the Flash self-check program including the original data into the storage space of the Flash.
[0042] In some embodiments, in the Flash self-check program, the original data is defined as constant data. In this way, the original data can be directly written into the storage space of the Flash. If it is defined as other types of data, such as variable data, it will be written into a volatile storage medium (such as RAM (Random Access Memory)), because RAM is a volatile memory, which will cause the original data to be lost when the system is powered on again or in other situations.
[0043] In some embodiments, before writing the original data, a pre-designed calculation method can be used to calculate the check data corresponding to the original data first. The check data is used to detect errors in the data in the storage space.
[0044] In some embodiments, the Flash self-check program including the original data and the check data corresponding to the original data is written into the storage space of the Flash. In this way, when writing the original data, it is not necessary to calculate the check data corresponding to the original data again, but directly store the check data, thereby reducing the execution time of the self-check program.
[0045] In some embodiments, when the Flash writes the original data, it will automatically calculate and store the check data corresponding to the original data according to the original data by a pre-designed calculation method. That is, the function of the Flash to automatically calculate and store the check data is enabled. Before writing the Flash self-check program including the original data and the check data corresponding to the original data into the storage space of the Flash, first disable the function of the Flash to automatically calculate and store the check data, so that it is not necessary to calculate the check data corresponding to the original data when writing the original data.
[0046] Optionally, the check data is the ECC (Error Correction Code) value of the original data.
[0047] Optionally, the pre-designed calculation methods include parity check algorithm, Hamming code algorithm, cyclic redundancy check algorithm, etc.
[0048] In some embodiments, the check data corresponding to the original data can be calculated and stored after writing the original data. At this time, before step S200, the method further includes: step S110 to step S120.
[0049] Step S110: Read the original data in the storage space.
[0050] Step S120: Calculate and store the check data corresponding to the original data according to the original data by using a pre-designed calculation method.
[0051] In some embodiments, before step S200, the method further includes: turning off the function of automatically calculating and storing check data of the Flash. That is, turning off the function of the Flash to automatically calculate and store the corresponding check data for the newly written mis-injected data. In this way, the Flash does not calculate the corresponding check data according to the mis-injected data, but retains the check data corresponding to the original data for subsequent CPU to perform Flash self-check according to the check data.
[0052] Step S200: When executing the Flash self-check program to the mis-injection operation, change at least one bit of 1 in the original data to a bit of 0 in the storage space through a write operation to obtain mis-injected data.
[0053] The Flash self-check method in the related art generally includes the following steps:
[0054] 1. Obtain the original data and calculate the check data corresponding to the original data.
[0055] 2. Erase the data at the preset storage location.
[0056] Specifically, the Flash memory consists of many storage cells, and each storage cell can store a certain amount of data. The basic storage cell of the Flash memory is usually based on a floating-gate transistor structure. When writing data, different data states are represented by injecting charges into the floating gate. For example, injecting charges represents "0", and not injecting charges represents "1". However, once the charges in the floating gate are injected, it is difficult to directly change their states. Only by first clearing all the charges in the floating gate (i.e., the erase operation) can a write operation be performed again to ensure accurate storage of new data.
[0057] 3. Write the check data and the original data to the preset storage location.
[0058] 4. Read the original data.
[0059] 5. Change the bits to be injected with errors in the RAM to obtain mis-injected data, and at the same time turn off the function of the Flash to automatically calculate and write the ECC value.
[0060] 6. Erase the original data in the preset storage location.
[0061] 7. Rewrite the mis-injected data in the preset storage location.
[0062] 8. Read the mis-injected data and verify the data, and perform a Flash self-check. At this time, the mis-injected data does not match the verified data.
[0063] It can be understood that before step 1, there is also a step of writing a self-check program in the related art. In this application, the original data is written into the Flash together with the Flash self-check program, which is equivalent to omitting steps 1-3 in the prior art.
[0064] In this application, at least one bit that is 1 is changed to a bit that is 0 through a write operation. Since the write operation of the Flash memory can write a bit from 1 to 0, and the erase operation will restore the entire storage segment (the storage segment is the smallest storage unit for performing the erase operation) to 1, that is, if you want to change a bit from 0 to 1, you can only erase first and then write. The solution of this application only writes a bit from 1 to 0, so it can be directly written without performing steps 4-7 in the prior art.
[0065] Therefore, the prior art requires two erase operations, two write operations, and two read operations, while this application only requires one write operation and one read operation to complete the Flash self-check process.
[0066] In this application, since changing a bit that is 1 to a bit that is 0 in the Flash does not require an erase operation, the time for one erase operation can be saved when executing the Flash self-check program, and there is no need to read back the original data, saving the time for one read operation, thus greatly reducing the execution time of the self-check program. And because the number of erase and write operations is reduced, the service life of the Flash can also be extended.
[0067] In addition, by writing the original data into the Flash together with the self-check program, the time for one erase operation and one write operation is also saved when executing the Flash self-check program, further reducing the execution time of the self-check program. At the same time, since there is no need to perform an erase operation on the original data, there is no need to store the original data or mis-injected data separately in a complete storage segment, thus reducing the occupation of the Flash storage space.
[0068] In some embodiments, when using the single-bit mis-injection method, one bit that is 1 in the original data is changed to a bit that is 0 through a write operation in the storage space to obtain the mis-injected data.
[0069] In some embodiments, when using the multi-bit mis-injection method, multiple bits that are 1 in the original data are changed to bits that are 0 through a write operation in the storage space to obtain the mis-injected data.
[0070] Step S300: Read the verification data corresponding to the mis-injected data and the original data for Flash self-check, and obtain the self-check result.
[0071] In some embodiments, read the verification data corresponding to the mis-injected data and the original data, and use the verification data to verify the mis-injected data, thereby triggering a Flash fault and entering the fault handling service program. Then, in the fault handling service program, judge the status of the Flash fault and the relevant error messages to obtain the result of whether the Flash self-check is normal.
[0072] In some embodiments, the storage identifier of the mis-injected data is stored in the Flash. Please refer to Figure 2 , Figure 2 is the flowchart of the second embodiment of the Flash self-check method provided by the embodiment of the present application. As Figure 2 shown, after step S200, the Flash self-check method further includes steps S400 to S500. Among them, step S300 can be executed first and then step S400, or step S400 can be executed first and then step S300.
[0073] Step S400: Determine the storage identifier of the mis-injected data as the mis-injected identifier.
[0074] Among them, the mis-injected identifier indicates that the data stored in the storage space has been subjected to a mis-injection operation.
[0075] In some embodiments, the size of the storage identifier of the mis-injected data can be 1 or more bit positions, and the data type of the storage identifier can be a numerical value, a character, a string, etc.
[0076] Preferably, the size of the storage identifier of the mis-injected data is 1 bit position, and the data type is a numerical value.
[0077] In some embodiments, when the mis-injection operation is not performed on the original data, the storage identifier of the mis-injected data is determined as the non-mis-injected identifier. The non-mis-injected identifier indicates that the data stored in the storage space has not been subjected to a mis-injection operation. Among them, the non-mis-injected identifier is different from the mis-injected identifier.
[0078] Optionally, the mis-injected identifier is 1, and the non-mis-injected identifier is 0.
[0079] Optionally, the mis-injected identifier is 0, and the non-mis-injected identifier is 1.
[0080] Step S500: When the Flash self-check program is executed again, when it is necessary to mis-inject the original data and the storage identifier is recognized as the mis-injected identifier, skip the mis-injection operation and directly read the verification data corresponding to the mis-injected data and the original data for Flash self-check, and obtain the self-check result.
[0081] In the above manner, when the Flash self-check program is executed again, there is no need to perform the mis-injection operation, and the check data corresponding to the mis-injected data and the original data can be directly read for Flash self-check, greatly reducing the execution time of the self-check program.
[0082] In summary, the Flash self-check method provided by the embodiment of the present application has the following advantages:
[0083] 1. When executing the Flash self-check program to the mis-injection operation, at least one bit that is 1 in the original data is changed to a bit that is 0 through a write operation in the storage space to obtain mis-injected data. Since changing a bit that is 1 to a bit that is 0 through a write operation in Flash does not require an erase operation, the time for one erase operation can be saved, and there is no need to read back the original data, also saving the time for one read operation. Thus, the execution time of the self-check program is significantly reduced. Compared with the existing Flash self-check methods that require two erase operations, two write operations, and two read operations, only one write operation and one read operation are required in the present application to complete the Flash self-check process. Since the number of erase and write operations is reduced, the service life of the Flash can be extended. In addition, by writing the original data into the Flash together with the self-check program, the time for one erase operation and one write operation is also saved when executing the Flash self-check program, further reducing the execution time of the self-check program. At the same time, since there is no need to perform an erase operation on the original data, there is no need to store the original data or the mis-injected data separately in a complete storage segment, thereby reducing the occupancy of the Flash storage space.
[0084] 2. By defining the original data as constant data in the Flash self-check program, the original data can be directly written into the storage space of the Flash.
[0085] 3. When it is necessary to mis-inject the original data and the storage identifier is recognized as the mis-injected identifier, the mis-injection operation is skipped and the check data corresponding to the mis-injected data and the original data is directly read for Flash self-check to obtain the self-check result. In this way, when the Flash self-check program is executed again, there is no need to perform the mis-injection operation, and the check data corresponding to the mis-injected data and the original data can be directly read for Flash self-check, greatly reducing the execution time of the self-check program.
[0086] Please refer to Figure 3 , Figure 3 which is a schematic structural diagram of the Flash self-check device provided by the embodiment of the present application. As Figure 3 shown, the Flash self-check device 300 includes a data writing module 310, a mis-injection module 320, and a self-check module 330.
[0087] In some embodiments, the data writing module 310 is configured to write a Flash self-check program including original data into the storage space of the Flash.
[0088] In some embodiments, the error injection module 320 is configured to, when executing the Flash self-check program to the error injection operation, change at least one bit that is 1 in the original data to a bit that is 0 through a write operation in the storage space, so as to obtain error-injected data.
[0089] In some embodiments, the self-check module 330 is configured to read the check data corresponding to the error-injected data and the original data to perform Flash self-check, so as to obtain a self-check result.
[0090] Please refer to Figure 4 , Figure 4 which is a schematic structural diagram of an electronic device provided by an embodiment of the present application. As Figure 4 shown, the electronic device 400 includes: one or more processors 410 and a memory 420. Figure 4 Here, one processor 410 is taken as an example.
[0091] In some embodiments, the processor 410 and the memory 420 may be connected through a bus or other means. Figure 4 Here, being connected through a bus is taken as an example.
[0092] In some embodiments, the processor 410 is configured to write a Flash self-check program including original data into the storage space of the Flash; when executing the Flash self-check program to the error injection operation, change at least one bit that is 1 in the original data to a bit that is 0 through a write operation in the storage space, so as to obtain error-injected data; read the check data corresponding to the error-injected data and the original data to perform Flash self-check, so as to obtain a self-check result.
[0093] In some embodiments, the memory 420, as a non-volatile computer-readable storage medium, can be used to store non-volatile software programs, non-volatile computer-executable programs, and modules, such as program instructions / modules of the Flash self-check method in the embodiments of the present application. The processor 410 executes various functional applications and data processing of the electronic device 400 by running the non-volatile software programs, instructions, and modules stored in the memory 420, that is, implements the Flash self-check method in the above method embodiments.
[0094] In some embodiments, the memory 420 may include a program storage area and a data storage area. The program storage area may store an operating system and application programs required for at least one function. The data storage area may store data created according to the use of the electronic device 400 and the like. In addition, the memory 420 may include high-speed random access memory and may also include non-volatile memory, such as at least one magnetic disk storage device, a flash memory device, or other non-volatile solid-state storage devices. In some embodiments, the memory 420 may optionally include a memory remotely disposed relative to the processor 410, and these remote memories may be connected to the controller through a network. Examples of the above-mentioned network include but are not limited to the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0095] In some embodiments, one or more modules are stored in the memory 420 and, when executed by one or more processors 410, perform the Flash self-check method in any of the above method embodiments. For example, perform the method steps S100 to S300 described above. Figure 1 in the above.
[0096] Please refer to Figure 5 , Figure 5 which is a structural block diagram of a computer-readable storage medium provided by an embodiment of the present application. Program code 510 is stored in the computer-readable storage medium 500, and the program code 510 can be called by a processor to perform the Flash self-check method described in the above method embodiments.
[0097] The computer-readable storage medium 500 may be an electronic memory such as a flash memory, an EEPROM (electrically erasable programmable read-only memory), an EPROM, a hard disk, a Flash, or a ROM. Optionally, the computer-readable storage medium includes a non-volatile computer-readable medium. The computer-readable storage medium 500 has a storage space for program code that performs any method step in the above Flash self-check method. These program codes may be read out from or written into one or more computer program products. The program code may be compressed in a suitable form, for example.
[0098] In some embodiments, an embodiment of the present application further provides a computer program product, including a computer program that, when executed by a processor, implements the above Flash self-check method.
[0099] In summary, the present application provides a Flash self-checking method, device, equipment, storage medium and program product. The Flash self-checking method includes: writing a Flash self-checking program including original data into the storage space of the Flash; when executing the Flash self-checking program to the error injection operation, changing at least one bit that is 1 in the original data to a bit that is 0 through a writing operation in the storage space to obtain error-injected data; reading the error-injected data and the check data corresponding to the original data for Flash self-checking to obtain a self-checking result. In the present application, when executing the Flash self-checking program to the error injection operation, at least one bit that is 1 in the original data is changed to a bit that is 0 through a writing operation in the storage space to obtain error-injected data. Since changing a bit that is 1 to a bit that is 0 through a writing operation in the Flash does not require an erasing operation, the time of one erasing operation can be saved, and there is no need to read back the original data, saving the time of one reading operation, thus greatly reducing the execution time of the self-checking program.
[0100] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application and are not intended to limit them. Although the present application has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that they can still modify the technical solutions recorded in the foregoing embodiments or perform equivalent replacements for some of the technical features. These modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present application.
Claims
1. A Flash self-check method, characterized in that, Including: Writing a Flash self-check program including original data into the storage space of the Flash; When executing the Flash self-check program to the error-injection operation, changing at least one bit that is 1 in the original data to a bit that is 0 through a write operation in the storage space to obtain error-injected data; Reading the error-injected data and the check data corresponding to the original data for Flash self-check to obtain a self-check result.
2. The Flash self-check method according to claim 1, wherein In the Flash self-check program, the original data is defined as constant data.
3. The Flash self-checking method according to claim 1, characterized in that, The step of writing a Flash self-check program including original data into the storage space of the Flash includes: Writing a Flash self-check program including the original data and the check data corresponding to the original data into the storage space of the Flash.
4. The Flash self-checking method according to claim 1, wherein Before changing at least one bit that is 1 in the original data to a bit that is 0 through a write operation in the storage space to obtain error-injected data when executing the Flash self-check program to the error-injection operation, the method further includes: Reading the original data in the storage space; Calculating and storing the check data corresponding to the original data according to the original data by using a pre-designed calculation method.
5. The Flash self-check method according to claim 1, characterized in that, Before changing at least one bit that is 1 in the original data to a bit that is 0 through a write operation in the storage space to obtain error-injected data when executing the Flash self-check program to the error-injection operation, the method further includes: Turning off the function of automatically calculating and storing check data of the Flash.
6. The Flash self-checking method according to claim 1, wherein The storage identifier of the error-injected data is stored in the Flash. After changing at least one bit that is 1 in the original data to a bit that is 0 through a write operation in the storage space to obtain error-injected data when executing the Flash self-check program to the error-injection operation, the method further includes: Determining the storage identifier of the error-injected data as an error-injected identifier, and the error-injected identifier indicates that the data stored in the storage space has undergone an error-injection operation; When executing the Flash self-check program again, when it is necessary to inject an error into the original data and the storage identifier is recognized as the error-injected identifier, skipping the error-injection operation and directly reading the error-injected data and the check data corresponding to the original data for Flash self-check to obtain a self-check result.
7. A Flash self-checking device, characterized in that, The Flash self-check device includes: A data writing module, configured to write a Flash self-check program including original data into the storage space of the Flash; An error-injection module, configured to change at least one bit that is 1 in the original data to a bit that is 0 through a write operation in the storage space to obtain error-injected data when executing the Flash self-check program to the error-injection operation; A self-check module, configured to read the error-injected data and the check data corresponding to the original data for Flash self-check to obtain a self-check result.
8. An electronic device, characterized in that, The electronic device includes: At least one processor; and, A memory communicatively connected to the at least one processor; wherein, The memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to execute the Flash self-check method according to any one of claims 1 to 6.
9. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores an executable program, and the executable program is executed by a processor to implement the Flash self-check method according to any one of claims 1 to 6.
10. A computer program product, comprising a computer program, characterized in that, When the computer program is executed by a processor, the steps of the Flash self-check method according to any one of claims 1 to 6 are implemented.