NAND Flash starting method, electronic equipment and computer readable storage medium
By reading and decoding firmware boot information from the firmware space of NAND Flash, and using the enable control information and transmission quantity information of command control characters for multi-level booting, the problem of high cost and limited compatibility of firmware space updates caused by differences in NAND Flash manufacturers is solved, and faster and safer firmware booting and applicability are achieved.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-12-31
- Publication Date
- 2026-03-17
AI Technical Summary
In existing technologies, differences among NAND Flash manufacturers lead to high costs and limited compatibility for firmware updates, and inconsistent rereading methods result in data reading errors.
By reading firmware boot information from the firmware space of NAND Flash, decoding and processing it to obtain firmware boot commands, and using the enable control information and transmission quantity information of each command control character to perform multi-level booting, it is applicable to different NAND Flash manufacturers.
This enables faster and safer booting of NAND Flash firmware, improves the applicability and adaptability of the method, and reduces the frequency of firmware space updates.
Smart Images

Figure CN121680951A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of memory testing technology, and in particular to a NAND Flash boot method, an electronic device, and a computer-readable storage medium. Background Technology
[0002] For storage system firmware, a firmware space is typically used to boot the embedded code, which in turn boots different firmware versions. For controller manufacturers, firmware space is relatively expensive. Furthermore, if a manufacturer releases a new NAND Flash chip (non-volatile memory, also known as flash memory) with different instructions than previous NAND Flash chips, the controller manufacturer must update the embedded code in the firmware space to successfully adapt to the new NAND Flash. In existing technology, if an error occurs while reading information from the NAND Flash, a reread mechanism is added to ensure data integrity. However, the command parameters for rereads may differ between different NAND Flash manufacturers, thus limiting the method's adaptability. Summary of the Invention
[0003] The present invention aims to solve at least one of the technical problems existing in the prior art.
[0004] To address this, the present invention proposes a NAND Flash boot method that can boot the firmware in NAND Flash faster and more securely, and is applicable to different NAND Flash manufacturers, thus improving the applicability of the method.
[0005] The present invention also proposes an electronic device that applies the above-described NAND Flash boot method.
[0006] The present invention also proposes a computer-readable storage medium that applies the above-described NAND Flash boot method.
[0007] A NAND Flash boot method according to a first aspect of the present invention, the method comprising: Read firmware boot information from the firmware space of NAND Flash; The firmware boot information is decoded to obtain a firmware boot command; wherein the firmware boot command includes several command control characters, and each command control character includes enable control information and transmission quantity information; Firmware boot processing is performed based on the enable control information and the transmission quantity information of each command control character in the firmware boot command to drive the NAND Flash to boot.
[0008] According to some embodiments of the present invention, the firmware booting process based on the enable control information and the transmission quantity information of each command control character in the firmware boot command to drive the NAND Flash to boot includes: For each of the command control characters, if the enable control information of the command control character indicates that it is enabled, a corresponding number of the command control characters are sent according to the sending quantity information. The corresponding operation is performed according to the corresponding number of command control characters so that the firmware is booted.
[0009] According to some embodiments of the present invention, for each of the command control characters, when the enable control information of the command control character indicates that it is enabled, sending a corresponding number of the command control characters according to the sending quantity information includes: When the command control character is an execution command character, and when the enable control information of the execution command character indicates that it is enabled, the corresponding number of execution command characters are sent according to the sending quantity information; When the command control character is a destination address character, and when the enable control information of the destination address character indicates that it is enabled, the corresponding number of the destination address characters are sent according to the sending quantity information. When the command control character is a data content character, and when the enable control information of the data content character indicates that it is enabled, the corresponding number of the data content characters are sent according to the sending quantity information.
[0010] According to some embodiments of the present invention, the step of performing corresponding operations based on a corresponding number of the command control characters to cause the firmware to be booted includes: When the command control character is an execution command character, the operation type is determined based on the preceding command character, and command operation processing is performed based on the operation command character and the operation type; wherein, the execution command character includes the preceding command character and the operation command character; When the command control character is a destination address character, the corresponding data address is determined according to the corresponding number of the destination address characters; When the command control character is a data content character, the corresponding data content is determined according to the corresponding number of the data content characters.
[0011] According to some embodiments of the present invention, the method further includes: When the command control character is a hardware status character, and the enable control information of the hardware status character indicates that it is enabled, the system waits for the command operation to end.
[0012] According to some embodiments of the present invention, before reading firmware boot information from the firmware space of the NAND Flash, the method further includes: The firmware boot command is subjected to error detection and correction encoding processing to obtain the firmware boot information; The firmware boot information is stored in the target area of the firmware space of the NAND Flash.
[0013] According to some embodiments of the present invention, the method further includes: Obtain the tagging information of the NAND Flash; The preset default configuration is fixed in the firmware space of the NAND Flash according to the marking information of the NAND Flash.
[0014] According to some embodiments of the present invention, the method further includes: If the command control character is the execution command character, and if the enable control information of the execution command character is disabled, then the transmission of the execution command character shall be stopped. If the command control character is the destination address character, and if the enable control information of the destination address character indicates that it is disabled, then the transmission of the destination address character shall be stopped. If the command control character is the data content character, and if the enable control information of the data content character indicates that it is disabled, then the transmission of the data content character shall be stopped.
[0015] An electronic device according to a second aspect of the present invention includes: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the NAND Flash boot method as described above.
[0016] According to a third aspect of the present invention, a computer-readable storage medium stores computer-executable instructions that, when executed by a control processor, implement the NAND Flash boot method as described above.
[0017] The NAND Flash boot method according to embodiments of the present invention has at least the following beneficial effects: During the NAND Flash boot process, firmware boot information is first read from the firmware space of the NAND Flash; then, the firmware boot information is decoded to obtain a firmware boot command; wherein, the firmware boot command includes several command control characters, each command control character including enable control information and transmission quantity information; finally, firmware boot processing can be performed according to the enable control information and transmission quantity information of each command control character in the firmware boot command to drive the NAND Flash boot. Through the above technical solution, firmware boot processing is performed according to the enable control information and transmission quantity information of each command control character in the firmware boot command. By compressing the firmware boot information sufficiently and using multi-level booting, the firmware in the NAND Flash can be booted faster and more securely. Furthermore, this method is applicable to different NAND Flash manufacturers, improving the applicability of the method. Attached Figure Description
[0018] The accompanying drawings are provided to further understand the technical solutions of this disclosure and constitute a part of the specification. They are used together with the embodiments of this disclosure to explain the technical solutions of this disclosure and do not constitute a limitation on the technical solutions of this disclosure.
[0019] Figure 1 This is a flowchart of a NAND Flash boot method provided in an embodiment of the present invention; Figure 2 This is a schematic diagram of the firmware boot command format; Figure 3 This is a diagram illustrating the composition of command and control characters; Figure 4 yes Figure 1 Step S300 method sub-flowchart; Figure 5 yes Figure 4 Step S310 method sub-flowchart; Figure 6 This is a flowchart illustrating the specific software control process for NAND Flash startup. Figure 7 yes Figure 4 Step S320 method sub-flowchart; Figure 8 This is a flowchart of a method when the command control character is a hardware status character; Figure 9 It is execution Figure 1 The method sub-flowchart preceding step S100; Figure 10This is a flowchart of a NAND Flash boot method provided in another embodiment of the present invention; Figure 11 This is a flowchart of a method for characterizing enable control information as disabled, provided in one embodiment of the present invention. Figure 12 This is a schematic diagram of the structure of an electronic device provided in one embodiment of the present invention. Detailed Implementation
[0020] To make the objectives, technical solutions, and advantages of this invention clearer, the invention will be further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative and not intended to limit the invention.
[0021] In the description of this invention, "several" means one or more, "more than" means two or more, "greater than," "less than," and "exceeding" are understood to exclude the stated number, while "above," "below," and "within" are understood to include the stated number. The use of "first" and "second" in the description is merely for distinguishing technical features and should not be construed as indicating or implying relative importance, or implicitly indicating the number of indicated technical features, or implicitly indicating the order of the indicated technical features.
[0022] In the description of this invention, unless otherwise explicitly defined, terms such as "set up," "install," and "connect" should be interpreted broadly, and those skilled in the art can reasonably determine the specific meaning of the above terms in this invention in conjunction with the specific content of the technical solution.
[0023] This invention provides a NAND Flash boot method, an electronic device, and a computer-readable storage medium. The method includes: during the NAND Flash boot process, firstly, reading firmware boot information from the firmware space of the NAND Flash; then, decoding the firmware boot information to obtain a firmware boot command; wherein, the firmware boot command includes several command control characters, each command control character including enable control information and transmission quantity information; finally, firmware boot processing is performed based on the enable control information and transmission quantity information of each command control character in the firmware boot command to drive the NAND Flash to boot. Through the above technical solution, firmware boot processing is performed based on the enable control information and transmission quantity information of each command control character in the firmware boot command. By compressing the firmware boot information to a sufficiently small size and using multi-level booting, the firmware in the NAND Flash can be booted faster and more securely. Furthermore, this method is applicable to different NAND Flash manufacturers, improving its applicability.
[0024] The embodiments of the present invention will be further described below with reference to the accompanying drawings.
[0025] like Figure 1 As shown, Figure 1 This is a flowchart of the NAND Flash boot method. The method includes, but is not limited to, steps S100, S200, and S300: Step S100: Read firmware boot information from the firmware space of NAND Flash; Step S200: Decode the firmware boot information to obtain the firmware boot command; wherein, the firmware boot command includes several command control characters, and each command control character includes enable control information and transmission quantity information; Step S300: Perform firmware boot processing based on the enable control information and transmission quantity information of each command control character in the firmware boot command to drive the NAND Flash to boot.
[0026] It should be noted that during the NAND Flash boot process, firmware boot information is first read from the NAND Flash firmware space. Then, the firmware boot information is decoded to obtain the firmware boot command. This firmware boot command includes several command control characters, each containing enable control information and transmission quantity information. Finally, firmware boot processing is performed based on the enable control information and transmission quantity information of each command control character in the firmware boot command to drive the NAND Flash to boot. Through this technical solution, firmware boot processing is performed based on the enable control information and transmission quantity information of each command control character in the firmware boot command. By compressing the firmware boot information sufficiently and using multi-level booting, the firmware in the NAND Flash can be booted faster and more securely. Furthermore, this method is applicable to different NAND Flash manufacturers, improving its applicability.
[0027] It is worth noting that the firmware boot information is read from the firmware space of the NAND Flash. The firmware boot information can be considered as the basic command information for booting the firmware. Then, the firmware boot information is decoded to obtain the firmware boot command. Since the firmware boot command includes several command control characters, and each command control character includes enable control information and transmission quantity information, the firmware boot process can be performed according to the enable control information and transmission quantity information of each command control character in the firmware boot command to drive the NAND Flash to start.
[0028] It's important to note that for all NAND Flash, the command to read a page is generally sent as 00-addr-30, making compatibility in reading a page of NAND data relatively easy to achieve. For the controller firmware space, it's generally possible to read back data from the pre-written memory firmware at a specified address. In practical NAND applications, the data retention capabilities of different NAND Flash chips are as follows: SLC > MLC > TLC > QLC; where SLC stands for single-layer cell, MLC for multi-layer cell, TLC for three-layer cell, and QLC for four-layer cell. Most NAND manufacturers include a command to enter SLC mode with their TLC NAND, turning some blocks into SLC blocks to store important information. If the data is severely corrupted, a reread method may be necessary to correctly retrieve the data; however, consistency among these commands is difficult even within the same manufacturer, making it difficult to adapt firmware spaces that cannot modify code information to most NAND Flash chips. Controller manufacturers often use encoding to write prepared data into NAND flash memory. After reading back, the data can be decoded according to the prepared encoding format. This operation can effectively prevent data bit flipping in NAND flash. The encoding method used in this invention addresses this by dividing the smallest write unit in NAND flash memory into pages. Controller manufacturers typically divide these pages into several parts, usually called codewords, and then encode and randomize each codeword using error correction codes. Given a fixed error correction code capability, shorter data encoding results in stronger error correction. A codeword is a complete data unit containing the original data and a check bit after encoding. Therefore, only the valid data of this page is encoded. Using this scheme as a logical basis, the first-level boot information is more robust and less prone to damage than other information. However, the first-level boot information must be sufficiently short for this scheme to be effective and reasonable. Because of the short information requirement, storing more information in NAND flash memory using this method would result in significant space wastage. Therefore, the remaining firmware information must be stored using normal encoding methods. The first-level boot information is the firmware boot information in this embodiment of the invention. To enhance the data security of NAND Flash and the stability of data transmission, all manufacturers have their own instructions to send reread instructions and control differential signals; based on this, the purpose of this invention is to configure the measures set by these manufacturers into the boot program of the firmware space through the above method.The above technical solution uses error correction code encoding to store the first-level instruction boot information in a designated location in the NAND flash memory. A reasonable program structure is constructed, and the code solidified in the firmware space executes different actions from the designated location according to different boot information. By executing different actions according to the boot information, the second-level boot information in the NAND flash memory can be booted up faster and more safely, followed by the third-level boot information, and finally the entire firmware can be booted up.
[0029] like Figure 2 As shown, Figure 2 This is a schematic diagram of the firmware boot command format. Figure 2 In this code, "PRE CMD" is the prefix command character, "CMD" is the operation command character, "ADDR" is the destination address character, and "DATA" is the data content character. "PRE CMD1" and "PRE CMD2" distinguish different prefix command characters, and "CMD1" and "CMD2" distinguish different operation command characters. Except for "CMD" and "PRE CMD," which are one byte in length, the lengths of the others are indefinite and configurable. Figure 2 None of the block diagrams are mandatory and can be flexibly configured as needed; whether "CMD" is sent, whether "ADDR" and "DATA" are sent, and the determination of their sizes are all controlled by status bits. For example... Figure 3 As shown, Figure 3 This is a diagram illustrating the composition of command and control characters; the meaning of the transmission quantity branch represents... Figure 2 How many commands (in bytes) need to be sent to each command or address, enabling the control information representative. Figure 2 The program only needs to specify which parts of the command need to be sent; a single bit is sufficient to control the number of commands sent. Furthermore, if the command is complex, only... Figure 2 The firmware boot command can be executed repeatedly a certain number of times.
[0030] Additionally, in one embodiment, such as Figure 4 As shown, firmware booting is performed based on the enable control information and transmission quantity information of each command control character in the firmware boot command to drive the NAND Flash to start. This may include, but is not limited to, steps S310 and S320: Step S310: For each command control character, if the enable control information of the command control character indicates that it is enabled, send the corresponding number of command control characters according to the sending quantity information. Step S320: Perform the corresponding operation according to the corresponding number of command control characters so that the firmware is booted.
[0031] It should be noted that during the firmware boot process to drive NAND Flash startup, based on the enable control information and transmission quantity information of each command control character in the firmware boot command, for each command control character, if the enable control information of the command control character indicates that it is enabled, the corresponding number of command control characters are sent according to the transmission quantity information; then, the corresponding operation can be performed according to the corresponding number of command control characters to enable the firmware to boot; through the above technical solution, the firmware can be booted more quickly and securely.
[0032] It is worth noting that the quantity information indicates the number of command control characters that need to be sent; the enable control information indicates that the operation corresponding to the command control character needs to be executed.
[0033] Additionally, in one embodiment, such as Figure 5 As shown, for each command control character, if the enable control information of the command control character indicates that it is enabled, a corresponding number of command control characters are sent according to the sending quantity information, which may include, but is not limited to, steps S311, S312, and S313: Step S311: When the command control character is an execution command character, and when the enable control information of the execution command character is enabled, send the corresponding number of execution command characters according to the sending quantity information. Step S312: When the command control character is a destination address character, and when the enable control information of the destination address character is enabled, send the corresponding number of destination address characters according to the sending quantity information. Step S313: When the command control character is a data content character, and when the enable control information of the data content character is enabled, send the corresponding number of data content characters according to the sending quantity information.
[0034] It should be noted that, for each command control character, when the enable control information of the command control character indicates that it is enabled, a corresponding number of command control characters are sent according to the send quantity information. Similarly, when the command control character is an execution command character, a corresponding number of execution command characters are sent according to the send quantity information, provided the enable control information for the execution command character is enabled. When the command control character is a destination address character, a corresponding number of destination address characters are sent according to the send quantity information, provided the enable control information for the destination address character is enabled. When the command control character is a data content character, a corresponding number of data content characters are sent according to the send quantity information, provided the enable control information for the data content character is enabled. Controlling the firmware boot process through enable control information and send quantity information makes firmware boot control simpler and faster.
[0035] like Figure 6 As shown, Figure 6 A detailed software control flowchart for NAND Flash booting is disclosed. This solution repeats the command timing sequence several times to meet the timing requirements of existing NAND Flash devices on the market and the control requirements of most future NAND Flash devices. Then, the sending unit and control status are packaged into the first-level boot information; the first-level boot information of each NAND can be obtained in the first stage of the firmware space.
[0036] Based on the aforementioned command information, the NAND Flash and controller can be configured to the most suitable communication interface mode and interface rate, thereby significantly shortening the boot time and greatly improving the boot success rate. Especially in high-temperature or other environments with poor signal strength, enabling the differential signal lines of the NAND Flash can better capture the signal timing of the NAND Flash, avoiding signal sampling errors during transmission. Furthermore, the data retention capabilities of different NAND Flash manufacturers vary. Some NAND Flash chips experience significant data offset after harsh environments, requiring appropriate reread parameters for successful data recovery. This solution, however, can successfully recover data even when data reading is inaccurate by setting appropriate reread parameters. Utilizing a more powerful error correction algorithm ensures that the first-level boot information can withstand higher levels of interference, enabling faster and safer boot processing for subsequent firmware. This solution differs from other manufacturers' solutions in that it allows for flexible adjustment of the sent command information, better compatibility with various NAND Flash chips on the market, and reduced firmware update frequency. Based on the advantage of configurable arbitrary commands, the key lies in the first-level boot information. Although the first-level boot information has been encoded with special error correction codes to enhance the success rate of successful readback, this solution still needs to have several default command schemes built in, so that if the first-level boot information fails to read normally, there is still a chance to read back the correct data.
[0037] Additionally, in one embodiment, such as Figure 7 As shown, corresponding operations are performed based on the corresponding number of command control characters to enable the firmware to be booted, which may include, but is not limited to, steps S321, S322, and S323: Step S321: When the command control character is an execution command character, the operation type is determined according to the preceding command character, and the command operation is performed according to the operation command character and the operation type; wherein, the execution command character includes the preceding command character and the operation command character; Step S322: When the command control character is a destination address character, determine the corresponding data address based on the corresponding number of destination address characters; Step S323: When the command control character is a data content character, determine the corresponding data content based on the corresponding number of data content characters.
[0038] It should be noted that, in the process of executing corresponding operations based on a certain number of command control characters to boot the firmware, firstly, when the command control character is an execution command character, the operation type is determined based on the preceding command character, and then command operation processing is performed based on the operation command character and the operation type; wherein, the execution command character includes the preceding command character and the operation command character; next, when the command control character is a destination address character, the corresponding data address is determined based on a certain number of destination address characters; finally, when the command control character is a data content character, the corresponding data content is determined based on a certain number of data content characters. Through the above technical solution, corresponding operations can be executed based on a certain number of command control characters, so that the firmware can be accurately booted.
[0039] Additionally, in one embodiment, such as Figure 8 As shown, the NAND Flash boot method of the present invention may also include, but is not limited to, step S314: Step S314: If the command control character is a hardware status character and the enable control information of the hardware status character indicates that it is enabled, wait for the command operation to end.
[0040] It should be noted that when the command control character is a hardware status character, and the enable control information of the hardware status character is indicated as enabled, it is possible to wait for the command operation to complete. When the firmware boot command is about to complete, the enable control information of the hardware status character will be indicated as enabled, and then it is possible to wait for the command operation to complete.
[0041] Additionally, in one embodiment, such as Figure 9 As shown, before reading the firmware boot information from the firmware space of the NAND Flash, the NAND Flash boot method of the present invention may also include, but is not limited to, steps S110 and S120: Step S110: Perform error detection and correction encoding processing on the firmware boot command to obtain firmware boot information; Step S120: Store the firmware boot information in the target area of the firmware space of the NAND Flash.
[0042] It should be noted that before reading the firmware boot information from the firmware space of the NAND Flash, the firmware boot command is first processed by error detection and correction encoding to obtain the firmware boot information; then the firmware boot information is stored in the target area of the firmware space of the NAND Flash; through the above technical solution, the firmware boot command is processed by error detection and correction encoding to improve the error correction capability of the data, thereby making the firmware boot more accurate.
[0043] Additionally, in one embodiment, such as Figure 10 As shown, the NAND Flash boot method of the present invention may also include, but is not limited to, steps S410 and S420: Step S410: Obtain the tagging information of NAND Flash; Step S420: The preset default configuration is fixed in the firmware space of the NAND Flash according to the marking information of the NAND Flash.
[0044] It should be noted that the NAND Flash boot method of the present invention can also obtain the marking information of the NAND Flash; and according to the marking information of the NAND Flash, the preset default configuration is solidified in the firmware space of the NAND Flash, thereby ensuring the robustness of the firmware boot information and making the firmware boot process safer and more reliable.
[0045] Additionally, in one embodiment, such as Figure 11 As shown, the NAND Flash boot method of the present invention may also include, but is not limited to, steps S510, S520 and S530: Step S510: If the command control character is an execution command character, and if the enable control information of the execution command character is disabled, stop sending the execution command character; Step S520: If the command control character is the destination address character, and if the enable control information of the destination address character is disabled, stop sending the destination address character; Step S530: If the command control character is a data content character, and if the enable control information of the data content character is disabled, stop sending the data content character.
[0046] It should be noted that, in the NAND Flash boot method of the present invention, when the command control character is an execution command character, if the enable control information of the execution command character is disabled, the transmission of the execution command character is stopped; when the command control character is a destination address character, if the enable control information of the destination address character is disabled, the transmission of the destination address character is stopped; when the command control character is a data content character, if the enable control information of the data content character is disabled, the transmission of the data content character is stopped. Through the above settings, the firmware boot command can be flexibly set to better adapt to the requirements of firmware booting.
[0047] In some embodiments of the present invention, such as Figure 12As shown, an embodiment of the present invention also provides an electronic device 700, including: a memory 720, a processor 710, and a computer program stored on the memory 720 and executable on the processor 710. When the processor 710 executes the computer program, it implements the NAND Flash boot method in the above embodiment.
[0048] In some embodiments of the present invention, one embodiment of the present invention also provides a computer-readable storage medium storing computer-executable instructions that are executed by a processor or controller, for example, by a processor in the above-described device embodiments, such that the processor performs the NAND Flash boot method in the above-described embodiments.
[0049] It will be understood by those skilled in the art that all or some of the steps and systems in the methods disclosed above can be implemented as software, firmware, hardware, and suitable combinations thereof. Some or all of the physical components can be implemented as software executed by a processor, such as a central processing unit, digital signal processor, or microprocessor, or as hardware, or as an integrated circuit, such as an application-specific integrated circuit. Such software can be distributed on a computer-readable medium, which can include computer storage media (or non-transitory media) and communication media (or transient media). As is known to those skilled in the art, the term computer storage media includes volatile and non-volatile, removable and non-removable media implemented in any method or technology for storing information (such as computer-readable instructions, data structures, program modules, or other data). Computer storage media includes, but is not limited to, RAM, ROM, EEPROM, flash memory or other memory technologies, CD-ROM, digital versatile disc (DVD) or other optical disc storage, magnetic cartridges, magnetic tape, disk storage or other magnetic storage devices, or any other medium that can be used to store desired information and is accessible to a computer. Furthermore, as is known to those skilled in the art, communication media typically contain computer-readable instructions, data structures, program modules, or other data in modulated data signals such as carrier waves or other transmission mechanisms, and may include any information delivery medium.
[0050] The above is a detailed description of the preferred embodiments of the present invention. However, the present invention is not limited to the above embodiments. Those skilled in the art can make various equivalent modifications or substitutions without departing from the spirit of the present invention. All such equivalent modifications or substitutions are included within the scope defined by the claims of the present invention.
Claims
1. A NAND Flash starting method, characterized in that, The method comprises: reading firmware boot information from a firmware space of a NAND Flash; decoding the firmware boot information to obtain firmware boot commands; wherein each of the firmware boot commands comprises enabling control information and sending quantity information; performing firmware boot processing according to the enabling control information and the sending quantity information of each of the firmware boot commands to drive the NAND Flash to start.
2. The NAND Flash booting method of claim 1, wherein, The firmware boot processing according to the enabling control information and the sending quantity information of each of the firmware boot commands to drive the NAND Flash to start comprises: for each of the firmware boot commands, if the enabling control information of the firmware boot command indicates enabling, sending a corresponding number of the firmware boot commands according to the sending quantity information; performing corresponding operations according to the corresponding number of the firmware boot commands to make firmware be boot.
3. The NAND Flash booting method of claim 2, wherein, The sending a corresponding number of the firmware boot commands according to the sending quantity information if the enabling control information of the firmware boot command indicates enabling comprises: if the firmware boot command is an execution command character, sending a corresponding number of the execution command characters according to the sending quantity information if the enabling control information of the execution command character indicates enabling; if the firmware boot command is a destination address character, sending a corresponding number of the destination address characters according to the sending quantity information if the enabling control information of the destination address character indicates enabling; if the firmware boot command is a data content character, sending a corresponding number of the data content characters according to the sending quantity information if the enabling control information of the data content character indicates enabling.
4. The NAND Flash booting method of claim 3, wherein, The performing corresponding operations according to the corresponding number of the firmware boot commands to make firmware be boot comprises: if the firmware boot command is an execution command character, determining an operation type according to a preceding command character and performing command operation processing according to an operation command character and the operation type; wherein the execution command character comprises the preceding command character and the operation command character; if the firmware boot command is a destination address character, determining a corresponding data address according to the corresponding number of the destination address characters; if the firmware boot command is a data content character, determining a corresponding data content according to the corresponding number of the data content characters.
5. The NAND Flash booting method of claim 4, wherein, The method further comprises: if the firmware boot command is a hardware state character and the enabling control information of the hardware state character indicates enabling, waiting for the end of the command operation.
6. The NAND Flash booting method of claim 1, wherein, Before the reading firmware boot information from a firmware space of a NAND Flash, the method further comprises: performing error detection and correction encoding processing on the firmware boot commands to obtain the firmware boot information; storing the firmware boot information in a target area of the firmware space of the NAND Flash.
7. The NAND Flash booting method of claim 1, wherein, The method further comprises: acquiring mark information of the NAND Flash; firmware space of the NAND Flash according to the mark information of the NAND Flash.
8. The NAND Flash booting method of claim 3, wherein, The method further comprises: in case that the command control character is the execution command character, stopping sending the execution command character in case that the enable control information of the execution command character represents non-enable; in case that the command control character is the destination address character, stopping sending the destination address character in case that the enable control information of the destination address character represents non-enable; in case that the command control character is the data content character, stopping sending the data content character in case that the enable control information of the data content character represents non-enable.
9. An electronic device, comprising: comprise: a memory, a processor, and a computer program stored in the memory and executable on the processor, the processor implementing the NAND Flash booting method according to any one of claims 1 to 8 when executing the computer program.
10. A computer-readable storage medium, the computer-readable storage medium storing computer-executable instructions, wherein, The computer executable instructions are executable by the processor to implement the NAND Flash booting method according to any one of claims 1 to 8.