A chip serial loading retransmission system and method

By introducing a watchdog module and a serial port module working together inside the chip, automatic retransmission is achieved after the startup program fails, solving the problem of chip startup failure in the existing technology and improving operating efficiency.

CN116382972BActive Publication Date: 2026-05-29SHANDONG YUNHAI GUOCHUANG CLOUD COMPUTING EQUIP IND INNOVATION CENT CO LTD

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
SHANDONG YUNHAI GUOCHUANG CLOUD COMPUTING EQUIP IND INNOVATION CENT CO LTD
Filing Date
2023-01-30
Publication Date
2026-05-29

Smart Images

  • Figure CN116382972B_ABST
    Figure CN116382972B_ABST
Patent Text Reader

Abstract

The application relates to the technical field of computers, in particular to a chip serial port loading retransmission system and method. The system comprises a chip and a serial port tool; the chip comprises a processor, a static random access memory, a serial port module and a watchdog module; the processor is used for executing the configuration of the serial port module, the issuing of instructions and the analysis of a starting program; the static random access memory is used for storing stack data in the process of executing the program by the processor and storing starting program data transmitted from the serial port module; the serial port module is used for receiving instructions from the processor and receiving starting program data transmitted from outside the chip; the serial port module is used for sending a serial port retransmission flag according to the starting state of the chip; the watchdog module is used for counting down, and when the watchdog is not disabled after a certain time, the watchdog triggers a system soft reset restart; the serial port tool comprises a plurality of program files.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of computer technology, and in particular to a retransmission system and method for loading serial ports on chips. Background Technology

[0002] Serial port loading is a common method for chip system startup. Typically, chip manufacturers incorporate a serial port module into the chip. When using the chip, its serial port connects to a serial port utility installed on the PC via a dedicated serial cable. The chip's serial port can not only print system information and input commands, but also transmit data to the chip. Serial port loading utilizes this data transmission capability to transfer the startup program from the PC to the chip, allowing the chip to execute this program, thus achieving serial port loading.

[0003] In existing serial port loading technology, after the chip is powered on, the internal processor continuously reads startup program data from the serial port. At this time, the user uses a serial port tool on a PC to send the startup program file to the serial port via a serial cable. The internal processor reads the program data and stores it in the chip's internal memory. After the data transmission is complete, the processor jumps to the designated location in the chip's internal memory to start executing the startup program. This serial port loading method has certain drawbacks. In the following situations, if the transmitted startup program itself has a problem, the chip cannot start. This will cause the chip to fail to boot. In this case, the only solution is to power off and on the chip again, and then repeat the process of sending the startup program using the serial port tool. This method is cumbersome and inefficient. To solve this technical problem, a retransmission system and method for chip serial port loading is proposed. Summary of the Invention

[0004] To address the technical problems existing in the prior art, this invention provides a chip serial port loading retransmission system and method, which can realize backup retransmission after a serial port loading program fails, supports automatic retransmission without interrupting chip power, simplifies the operation after existing serial port loading failures, and improves efficiency.

[0005] To achieve the above objectives, the embodiments of the present invention provide the following technical solutions:

[0006] In a first aspect, in one embodiment of the present invention, a retransmission system loaded via a chip serial port is provided, the system comprising:

[0007] The system includes a chip and a serial port tool, which are connected for communication.

[0008] The chip includes: a processor, a static random access memory, a serial port module, and a watchdog module;

[0009] The processor is used for configuring the serial port module, issuing instructions, and parsing and executing the startup program.

[0010] The static random access memory is used to store stack data during the processor's program execution process, as well as startup program data transmitted from the serial port module.

[0011] The serial port module is used to receive instructions from the processor and to receive startup program data transmitted from outside the chip, and further store it in static random access memory; it is also used to send a flag indicating whether serial port retransmission is needed based on the startup status of the chip.

[0012] The watchdog module is responsible for the countdown. If the watchdog is not disabled after a certain period of time, it will trigger a system soft reset, thereby restarting the system.

[0013] The serial port tool includes multiple program files; the serial port tool is installed on a PC, and the chip's startup program file is sent to the chip through the serial port tool.

[0014] As a further aspect of the present invention, the program file includes program file 1 and program file 2.

[0015] As a further embodiment of the present invention, the serial port module includes a buffer module, a configuration module, a read channel module, and a flag module;

[0016] The cache module is used to cache the startup program data received by the serial port module from outside the chip, and then send it to the chip's internal memory.

[0017] The configuration module is used to receive instructions sent by the chip's internal processor, mainly including configuring the serial port rate and reading the serial port status.

[0018] The read channel module is used to receive external startup program data through the chip and send it to the cache module.

[0019] The flag module is used to send a flag indicating whether serial port retransmission is needed based on the chip's startup status.

[0020] Secondly, in another embodiment provided by the present invention, a retransmission method for loading a chip serial port is provided, the method comprising the following steps:

[0021] S10. The processor reads the startup program data from the serial port module and writes the startup program data into the internal static random access memory. The startup program data is obtained through one of the program files transmitted by the serial port tool.

[0022] S20. The processor jumps to static random access memory to execute the startup program;

[0023] S30. Determine if the startup program is running normally; if the startup program is correct and running normally, the processor will disable the watchdog module, and the entire process will end.

[0024] If the startup process fails and the chip fails to start, the serial port module will send a retransmission flag through the internal flag module, enable the watchdog module, trigger a soft reset after the countdown timer is set, restart, and the process will jump to S10.

[0025] As a further aspect of the present invention, before S10, where the processor reads the startup program data from the serial port module, the following steps are also included:

[0026] The processor is configured with a serial port module;

[0027] The processor continuously reads the cache status of the serial port module to determine whether there is startup program data in the cache. When startup program data exists in the serial port module, the processor reads the startup program data through the read channel of the serial port module.

[0028] As a further aspect of the present invention, step S20, where the processor jumps to the static random access memory to execute the boot program, further includes:

[0029] S201. Determine whether the data counting is complete; when the counting is complete, it means that the entire startup program has been transferred to the chip, and the processor will jump to the static random access memory to execute the startup program.

[0030] S202. When the counting is not completed, the processor continues to read the cache status of the serial port module to determine whether there is startup program data in the cache of the serial port module. When there is startup program data in the serial port module, the processor reads the startup program data through the read channel of the serial port module and jumps to S201.

[0031] As a further aspect of the present invention, if the startup program malfunctions and causes the chip to fail to start, the serial port module will send a retransmission flag through the internal flag module, activate the watchdog module, trigger a soft reset after a countdown set time, restart, and the process jumps to S10, further including:

[0032] If it is determined that there is no data in the serial port module's buffer, then it continues to check if the timeout has occurred; if the timeout has not occurred, the process jumps to continue reading the status of the serial port module's buffer.

[0033] If a timeout occurs, the serial port module will send a retransmission flag through the internal flag module; then the watchdog module will be activated, triggering a soft reset after the countdown timer is set, the chip will restart, and the process will jump to S10.

[0034] As a further aspect of the present invention, if the chip fails to boot due to an abnormal startup procedure, the serial port module will send a retransmission flag through the internal flag module, activate the watchdog module, trigger a soft reset after a countdown set time, restart, and the process jumps to S10, further including:

[0035] After receiving the retransmission flag, the serial port tool waits for a set time and then sends the unsent data from multiple program files to the serial port module in the chip in order to generate new startup program data.

[0036] As a further aspect of the present invention, the detailed working process of the serial port tool includes:

[0037] Send program file 1 to the serial port;

[0038] Check if a retransmission flag has been received;

[0039] If not, the task ends; if yes, wait for the set time and then send program file 2 to the serial port module.

[0040] As a further aspect of the present invention, the serial port tool waits for a set time longer than the watchdog countdown set time.

[0041] The technical solution provided by this invention has the following beneficial effects:

[0042] The chip serial port loading retransmission system and method provided by this invention works in coordination between the chip's internal and external components. Utilizing the chip's internal watchdog module and serial port module, when the startup program file transmitted by the external serial port tool fails to start or times out, a serial port retransmission flag is issued and the chip is triggered to soft reset and restart. After receiving the retransmission flag, the serial port tool will send another startup program file to the chip to ensure that the chip can start normally.

[0043] These or other aspects of the invention will become more apparent from the following description of embodiments. It should be understood that the foregoing general description and the following detailed description are exemplary and explanatory only, and are not intended to limit the invention. Attached Figure Description

[0044] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other embodiments can be obtained based on these drawings without creative effort.

[0045] Figure 1 This is a structural block diagram of a chip serial port loading retransmission system according to an embodiment of the present invention;

[0046] Figure 2 This is a structural block diagram of the serial port module in a retransmission system with chip serial port loading according to an embodiment of the present invention;

[0047] Figure 3 A flowchart of a retransmission system loaded via a chip serial port according to an embodiment of the present invention;

[0048] Figure 4 This is a flowchart illustrating the workflow of a serial port tool in a retransmission system loaded via a chip serial port, according to an embodiment of the present invention.

[0049] Figure 5 This is a flowchart of a chip serial port loading retransmission method according to an embodiment of the present invention. Detailed Implementation

[0050] Various embodiments and / or forms are described below with reference to the accompanying drawings. In the following description, numerous specific details are disclosed for illustrative purposes to provide a general understanding of more than one form. However, those skilled in the art will understand that these forms can be implemented without specific details. Specific examples of more than one form will be described in detail in the following description and drawings. However, these forms are merely illustrative and may utilize a portion of the principles and methods of various forms; the descriptions are intended to encompass all forms and their equivalents. Specifically, the terms "embodiment," "example," "form," "illustration," etc., as used in this specification can be interpreted as meaning that any form or design described may be better or more advantageous than other forms or designs.

[0051] Furthermore, various forms and characteristics can be embodied in systems that include more than one device, terminal, server, equipment, component, and / or module. It should be understood and recognized that various systems may include additional devices, terminals, servers, equipment, components, and / or modules, and / or may not include all of the multiple devices, terminals, servers, equipment, components, and modules shown in the figure.

[0052] The terms "computer program," "component," "module," and "system" used in this specification are used interchangeably, and "computer" refers to related entities, hardware, firmware, software, combinations of software and hardware, or the execution of software. For example, a component can be a process executing on a processor, a processor, an object, a thread of execution, a program, and / or a computer, but is not limited thereto. For example, it can be an application program executing on a computer device and / or all components of the computing device. More than one component can be installed within a processor and / or a thread of execution. A component can be localized within a single computer. A component can also be distributed between two or more computers.

[0053] Furthermore, these components can be executed by various computer-readable media constructed to internally store various data. These components, for example, can communicate locally and / or remotely based on signals having more than one data packet (e.g., data emitted by a component interacting with other components on a local system or a distributed system, and data transmitted to other systems via networks such as the Internet).

[0054] Hereinafter, regardless of the symbols used in the drawings, the same or similar constituent elements will be assigned the same symbols, and repeated descriptions of these elements will be omitted. Furthermore, when describing the embodiments disclosed in this specification, detailed descriptions of well-known technologies will be omitted if it is determined that such detailed descriptions would obscure the essence of the invention. Moreover, the accompanying drawings are only for easier understanding of the embodiments disclosed in this specification, and the technical concepts disclosed in this specification are not limited to the drawings.

[0055] The terminology used in this specification is for illustrative purposes and not for limiting the invention. Unless otherwise specified, the singular includes the plural. The use of “comprises” and / or “comprising” in this specification does not exclude the presence or addition of more than one other constituent element in addition to the mentioned constituent elements.

[0056] The terms "first," "second," etc., can be used to describe various elements or components, but the elements or components are not limited to those terms. The terms are used to distinguish one element or component from others. Therefore, the first element or component mentioned below can also be a second element or component within the technical concept of this invention.

[0057] Unless otherwise defined, all terms used in this specification (including technical and scientific terms) are to be understood in the sense commonly understood by one of ordinary skill in the art to which this invention pertains. Furthermore, terms defined in commonly used dictionaries should not be interpreted ideally or excessively unless specifically defined otherwise.

[0058] Furthermore, the term "or" does not mean exclusive "or" but inclusive "or". That is, unless otherwise specific or contextually ambiguous, "X uses A or B" implies one of the natural connotations. That is, "X uses A or B" can be any of the above when X uses A or B; X uses B or X uses both A and B. And it should be understood that the term "and / or" as used in this specification refers to all possible combinations of more than one of the related items listed.

[0059] In addition, the terms “information” and “data” used in this specification are generally used interchangeably.

[0060] The suffixes “module” and “section” used in the following description of the constituent elements are merely assigned or used interchangeably for the convenience of writing the specification, and they do not have any distinguishing meaning or function in themselves.

[0061] Specifically, the embodiments of the present invention will be further described below with reference to the accompanying drawings.

[0062] Please see Figure 1 In an embodiment of the present invention, a retransmission system for chip serial port loading is also provided. The system includes a chip and a serial port tool, and the chip and the serial port tool are communicatively connected.

[0063] The chip includes: a processor, a static random access memory, a serial port module, and a watchdog module;

[0064] The processor is used for configuring the serial port module, issuing instructions, and parsing and executing the startup program.

[0065] The static random access memory is used to store stack data during the processor's program execution process, as well as startup program data transmitted from the serial port module; it is a high-speed static random access memory within the chip.

[0066] The serial port module is used to receive instructions from the processor and to receive startup program data transmitted from outside the chip, and further store it in static random access memory; it is also used to send a flag indicating whether serial port retransmission is needed based on the startup status of the chip.

[0067] The watchdog module is responsible for the countdown. If the watchdog is not disabled after a certain period of time, it will trigger a system soft reset, thereby restarting the system.

[0068] The serial port tool includes multiple program files; the serial port tool is installed on a PC, and the chip's startup program file is sent to the chip through the serial port tool.

[0069] The program files include program file 1 and program file 2.

[0070] This invention provides multiple program file retransmission strategies, automatically transmitting program file 2 when program file 1 fails to start.

[0071] Please see Figure 2 The serial port module includes a cache module, a configuration module, a read channel module, and a flag module.

[0072] The cache module is used to cache the startup program data received by the serial port module from outside the chip, and then send it to the chip's internal memory.

[0073] The configuration module is used to receive instructions sent by the chip's internal processor, mainly including configuring the serial port rate and reading the serial port status.

[0074] The read channel module is used to receive external startup program data through the chip and send it to the cache module.

[0075] The flag module is used to send a flag indicating whether serial port retransmission is needed based on the chip's startup status.

[0076] The chip serial port loading retransmission mechanism proposed in this invention can realize backup retransmission after a serial port loading program fails, supports automatic retransmission without interrupting power to the chip, simplifies the operation after existing serial port loading failures, and improves efficiency.

[0077] Please see Figure 3 When the chip is powered on for the first time, (1) the processor in the chip will first configure the serial port module, including the initialization register of the serial port module, the serial port speed, etc.; (2) then the processor in the chip will continuously read the cache status of the serial port module; (3) determine whether there is data in the cache of the serial port module; (4) when there is data in the serial port cache, the processor reads the startup program data through the read channel of the serial port module; (5) then writes it into the internal static random access memory of the chip; (6) next, determine whether the data counting is complete; (7) when the counting is complete, it means that the startup program has been completely transmitted to the chip, and at this time the processor will jump to the static random access memory to execute the startup program; (8) when the counting is not complete, the process jumps to (3) to continue to read the cache status of the serial port module and repeat (4) to ( 6) Process; (9) After the processor jumps to the static random access memory to execute the startup program, it is determined whether the startup program is running normally; (10) When the startup program is correct and running normally, the processor will disable the watchdog inside the chip, and the whole process ends; (11) If the startup program is abnormal and causes the chip to fail to start, the serial port module will send a retransmission flag through the internal flag module; (12) Then the internal watchdog module of the chip is enabled, and a soft reset is triggered after the countdown is set, the chip restarts, and the process jumps to (1); (13) When it is determined in process (3) that there is no data in the serial port module cache, it is determined whether the timeout has occurred; (14) If the timeout has not occurred, the process jumps to (3) to continue reading the cache status of the serial port module; (15) If the timeout has occurred, the process jumps to (11) and (12).

[0078] Please see Figure 4The detailed process of the external serial port tool working on the chip is as follows: (1) First, the serial port tool sends the startup program file 1 to the chip's serial port; (2) Check if a retransmission flag is received; (3) If no retransmission flag is received from the chip, it means that the startup program file 1 has been successfully started, and the process ends; (4) If a retransmission flag is received from the chip, it means that the startup file 1 has failed to start successfully, and a retransmission is required. The serial port tool will send the startup program file 2 to the serial port after waiting for a fixed time. The fixed waiting time must be greater than 10 ... Figure 3 The watchdog countdown time mentioned in step (12).

[0079] This invention utilizes the chip's internal and external working mechanisms. By employing the chip's internal watchdog module and serial port module, when the startup program file transmitted from the external serial port tool fails to start or times out, a serial port retransmission flag is issued, triggering a soft reset and restart of the chip. Upon receiving the retransmission flag, the serial port tool will send another startup program file to the chip to ensure that the chip can start normally.

[0080] Figure 5 This is a flowchart of a chip serial port loading retransmission method provided by an embodiment of the present invention, as shown in Figure XXXX. The chip serial port loading retransmission method includes steps S10 to S30.

[0081] S10. The processor reads the startup program data from the serial port module and writes the startup program data into the internal static random access memory. The startup program data is obtained through one of the program files transmitted by the serial port tool.

[0082] In an embodiment of the present invention, the processor reads the startup program data through the read channel of the serial port module.

[0083] In an embodiment of the present invention, before step S10, where the processor reads the startup program data from the serial port module, the method further includes:

[0084] S101, Processor configuration serial port module;

[0085] The processor is configured with a serial port module, including configuring the initialization register of the serial port module and the serial port speed, etc.

[0086] S102. The processor continuously reads the cache status of the serial port module to determine whether there is startup program data in the cache of the serial port module. When there is startup program data in the serial port module, the processor reads the startup program data through the read channel of the serial port module.

[0087] S20. The processor jumps to static random access memory to execute the startup program;

[0088] In an embodiment of the present invention, step S20, where the processor jumps to the static random access memory to execute the boot program, further includes:

[0089] S201. Determine whether the data counting is complete; when the counting is complete, it means that the entire startup program has been transferred to the chip, and the processor will jump to the static random access memory to execute the startup program.

[0090] S202. When the counting is not completed, the processor continues to read the cache status of the serial port module to determine whether there is startup program data in the cache of the serial port module. When there is startup program data in the serial port module, the processor reads the startup program data through the read channel of the serial port module and jumps to S201.

[0091] S30. Determine if the startup program is running normally; if the startup program is correct and running normally, the processor will disable the watchdog module, and the entire process will end.

[0092] If the startup process fails and the chip fails to start, the serial port module will send a retransmission flag through the internal flag module, enable the watchdog module, trigger a soft reset after the countdown timer is set, restart, and the process will jump to S10.

[0093] In an embodiment of the present invention, if the startup program malfunctions and causes the chip to fail to start, the serial port module will send a retransmission flag through the internal flag module, enable the watchdog module, trigger a soft reset after a countdown set time, restart, and the process jumps to S10, further including:

[0094] If it is determined that there is no data in the serial port module's buffer, then it continues to check if the timeout has occurred; if the timeout has not occurred, the process jumps to continue reading the status of the serial port module's buffer.

[0095] If a timeout occurs, the serial port module will send a retransmission flag through the internal flag module; then the watchdog module will be activated, triggering a soft reset after the countdown timer is set, the chip will restart, and the process will jump to S10.

[0096] In an embodiment of the present invention, if the chip fails to boot due to an abnormal startup procedure, the serial port module will send a retransmission flag through the internal flag module, enable the watchdog module, trigger a soft reset after a countdown set time, restart, and the process jumps to S10, which also includes:

[0097] After receiving the retransmission flag, the serial port tool waits for a set time and then sends the unsent data from multiple program files to the serial port module in the chip in order to generate new startup program data.

[0098] Please see Figure 4 In an embodiment of the present invention, the detailed working process of the serial port tool includes:

[0099] The program file 1 is sent to the serial port;

[0100] Check if a retransmission flag has been received;

[0101] If not, the task ends; if yes, wait for the set time and then send program file 2 to the serial port module.

[0102] The serial port tool's waiting time must be longer than the watchdog timer's countdown time.

[0103] In this invention, the serial port tool is used to provide different program files for the chip, facilitating multiple startups.

[0104] This invention utilizes the chip's internal and external working mechanisms. By employing the chip's internal watchdog module and serial port module, when the startup program file transmitted from the external serial port tool fails to start or times out, a serial port retransmission flag is issued, triggering a soft reset and restart of the chip. Upon receiving the retransmission flag, the serial port tool will send another startup program file to the chip to ensure that the chip can start normally.

[0105] It should be understood that although the above description follows a certain order, these steps are not necessarily executed in that order. Unless otherwise expressly stated herein, there is no strict order restriction on the execution of these steps, and they can be executed in other orders. Moreover, some steps in this embodiment may include multiple steps or multiple stages, which are not necessarily completed at the same time, but may be executed at different times. The execution order of these steps or stages is not necessarily sequential, but may be performed alternately or in turn with other steps or at least a portion of the steps or stages in other steps.

[0106] Those skilled in the art will understand that all or part of the processes in the methods of the above embodiments can be implemented by a computer program instructing related hardware. The computer program can be stored in a non-volatile computer-readable storage medium, and when executed, it can include the processes of the embodiments of the above methods. Furthermore, any references to memory, storage, databases, or other media used in the embodiments provided by this invention can include at least one of non-volatile and volatile memory.

[0107] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions, and improvements made within the spirit and principles of the present invention should be included within the protection scope of the present invention.

[0108] The above are exemplary embodiments disclosed in this invention. However, it should be noted that various changes and modifications can be made without departing from the scope of the embodiments of this invention as defined by the claims. The functions, steps, and / or actions of the methods according to the disclosed embodiments described herein do not need to be performed in any particular order. Furthermore, although the elements disclosed in the embodiments of this invention may be described or claimed individually, they may be understood as multiple unless explicitly limited to a singular number.

[0109] It should be understood that, as used herein, the singular form "a" is intended to include the plural form as well, unless the context clearly supports an exception. It should also be understood that, as used herein, "and / or" refers to any and all possible combinations of one or more of the associatedly listed items. The embodiment numbers disclosed above are for descriptive purposes only and do not represent the superiority or inferiority of the embodiments.

[0110] Those skilled in the art should understand that the discussion of any of the above embodiments is merely exemplary and is not intended to imply that the scope of the invention (including the claims) is limited to these examples. Within the framework of the invention, technical features of the above embodiments or different embodiments can be combined, and many other variations of different aspects of the invention exist, which are not provided in the details for the sake of brevity. Therefore, any omissions, modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of the invention should be included within the protection scope of the invention.

Claims

1. A retransmission system loaded via a chip serial port, characterized in that, The system includes a chip and a serial port tool, which are connected for communication. The chip includes: a processor, a static random access memory, a serial port module, and a watchdog module; The processor is used for configuring the serial port module, issuing instructions, and parsing and executing the startup program. The static random access memory is used to store stack data during the processor's program execution process, as well as startup program data transmitted from the serial port module. The serial port module is used to receive instructions from the processor and to receive startup program data transmitted from outside the chip, and further store it in static random access memory; it is also used to send a flag indicating whether serial port retransmission is needed based on the startup status of the chip. The watchdog module is responsible for the countdown. If the watchdog is not disabled after a certain period of time, it will trigger a system soft reset, thereby restarting the system. The serial port tool includes multiple program files; the serial port tool is installed on a PC, and the chip's startup program file is sent to the chip through the serial port tool; The serial port module includes a buffer module, a configuration module, a read channel module, and a flag module; The cache module is used to cache the startup program data received by the serial port module from outside the chip, and then send it to the chip's internal memory. The configuration module is used to receive instructions sent by the chip's internal processor, mainly including configuring the serial port rate and reading the serial port status; The read channel module is used to receive external startup program data through the chip and send it to the cache module. The flag module is used to send a flag indicating whether serial port retransmission is needed based on the chip's startup status.

2. The retransmission system with chip serial port loading according to claim 1, characterized in that, The program files include program file 1 and program file 2.

3. A retransmission method for chip serial port loading, characterized in that, The method, applied to the retransmission system loaded via a chip serial port as described in any one of claims 1-2, comprises: S10. The processor reads the startup program data from the serial port module and writes the startup program data into the internal static random access memory. The startup program data is obtained through one of the program files transmitted by the serial port tool. S20. The processor jumps to static random access memory to execute the startup program; S30. Determine if the startup program is running normally; if the startup program is correct and running normally, the processor will disable the watchdog module, and the entire process will end. If the startup process fails and the chip fails to start, the serial port module will send a retransmission flag through the internal flag module, enable the watchdog module, trigger a soft reset after the countdown timer is set, restart, and the process will jump to S10.

4. The retransmission method for chip serial port loading as described in claim 3, characterized in that, S10, where the processor reads the startup program data from the serial port module, also includes the following: The processor is configured with a serial port module; The processor continuously reads the cache status of the serial port module to determine whether there is startup program data in the cache of the serial port module; when there is startup program data in the serial port module, the processor reads the startup program data through the serial port module.

5. The retransmission method for chip serial port loading as described in claim 3, characterized in that, The step S20, where the processor jumps to the static random access memory to execute the boot program, also includes: S201. Determine whether the data counting is complete; when the counting is complete, it means that the entire startup program has been transferred to the chip, and the processor will jump to the static random access memory to execute the startup program. S202. When the counting is not completed, the processor continues to read the cache status of the serial port module to determine whether there is startup program data in the cache of the serial port module. When there is startup program data in the serial port module, the processor reads the startup program data through the read channel of the serial port module and jumps to S201.

6. The retransmission method for chip serial port loading as described in any one of claims 4-5, characterized in that, If the startup program malfunctions and causes the chip to fail to start, the serial port module will send a retransmission flag through its internal flag module, activate the watchdog module, trigger a soft reset after a set countdown time, restart the chip, and the process will jump to S10, which also includes: If it is determined that there is no data in the serial port module's buffer, then it continues to check if the timeout has occurred; if the timeout has not occurred, the process jumps to continue reading the status of the serial port module's buffer. If a timeout occurs, the serial port module will send a retransmission flag through the internal flag module; then the watchdog module will be activated, triggering a soft reset after the countdown timer is set, the chip will restart, and the process will jump to S10.

7. The retransmission method for chip serial port loading as described in claim 6, characterized in that, If the startup process malfunctions and causes the chip to fail to boot, the serial port module will send a retransmission flag through its internal flag module, activate the watchdog module, trigger a soft reset after a set countdown time, restart the chip, and the process will jump to S10, which also includes: After receiving the retransmission flag, the serial port tool waits for a set time and then sends the unsent data from multiple program files to the serial port module in the chip in order to generate new startup program data.

8. The retransmission method for chip serial port loading as described in claim 7, characterized in that, The detailed working process of the serial port tool includes: Send program file 1 to the serial port; Check if a retransmission flag has been received; If not, the task ends; if yes, wait for the set time and then send program file 2 to the serial port module.

9. The retransmission method for chip serial port loading as described in claim 8, characterized in that, The serial port tool waits for a longer time than the watchdog timer countdown time.