A chip online upgrade method and device

By introducing presentation layer, processing layer and driver layer into the chip online upgrade system, flexible online upgrade based on user permissions and needs is achieved, solving the problems of high maintenance costs and poor flexibility in the existing technology, and improving upgrade efficiency and operation flexibility.

CN119759375APending Publication Date: 2025-04-04JI RUI ZHI YUAN (XIAMEN) TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411891093.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-20
Publication Date
2025-04-04

AI Technical Summary

Technical Problem

The existing online chip upgrade method is very costly and difficult to maintain when maintaining and expanding upgrade requirements, and is not easy to flexibly respond to the upgrade needs of different users.

Method used

The chip online upgrade system including presentation layer, processing layer and driver layer is adopted. The target configuration and operation are selected through user permissions and requirements, and the processing layer is used to analyze and record and read process files, generate chip instructions, and send them to the target chip through the driver layer for online upgrade.

Benefits of technology

It greatly shortens the process of online chip upgrade, improves development efficiency and operational flexibility, and reduces maintenance costs and difficulty.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119759375A_ABST
    Figure CN119759375A_ABST
Patent Text Reader

Abstract

The present invention discloses a method and device for online upgrading of a chip. An online upgrading system for a chip is applied, the system includes a presentation layer, a processing layer and a driver layer; the method includes: based on user authority and user needs, using the presentation layer to select a target configuration and a target operation from the user's authority configuration and operation type; the authority configuration includes configuring chips that support upgrades, configuring supported upgrade speeds and configuring supported online upgrade methods; the operation type includes burning firmware or reading firmware; using the processing layer to read the burning and reading process files corresponding to the target configuration, and parsing the burning and reading process files and the target operations to obtain chip instructions and send them to the driver layer; using the driver layer to send the chip instructions to the target chip, so that the target chip completes the online upgrade based on the chip instructions. This application is flexible in operation and has high upgrade efficiency.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of chip upgrade, and in particular to an online chip upgrade method and device. Background Art

[0002] Online chip upgrade, also known as remote upgrade or over-the-air upgrade, is a technology that updates the firmware in embedded devices wirelessly. This technology has been widely used in various electronic devices and systems, and is also an indispensable part of the chip development process. In actual applications, chips have different online upgrade requirements at different stages, and different users also have different online upgrade requirements when using chips. Therefore, how to shield these differences is the key point of the online upgrade process control method.

[0003] At present, when upgrading the chip, the relevant technology mainly implements the differentiated logic of the upgrade process completely in the internal application of the host computer, which makes the host computer application software difficult to maintain. And when the user puts forward a new upgrade requirement, the upgrade module needs to be modified again to meet the corresponding requirement. In the process of completing this requirement, the host computer software engineer also needs to understand the relationship between the various upgrade instructions in the upgrade module from other engineers, and it takes time to straighten out and adjust the logic of the module in the host computer. It can be seen that the existing method not only has high maintenance cost and difficulty, and is prone to errors, but also causes great inconvenience to developers and users.

[0004] Based on this, there is an urgent need for an online chip upgrade method and device to solve the above problems. Summary of the invention

[0005] The invention provides a chip online upgrading method and device, which are flexible in operation and high in upgrading efficiency.

[0006] The technical solution is as follows:

[0007] In a first aspect, an embodiment of the present invention provides an online upgrade method of a chip, which is applied to an online upgrade system of a chip, wherein the system includes a presentation layer, a processing layer, and a driver layer; the method includes:

[0008] Based on user authority and user needs, the presentation layer is used to select target configuration and target operation from the user's authority configuration and operation type; the authority configuration includes configuring supported chips for upgrading, configuring supported upgrade speeds, and configuring supported online upgrade methods; the operation type includes burning firmware or reading firmware;

[0009] Using the processing layer to read the burning and reading process file corresponding to the target configuration, and parsing the burning and reading process file and the target operation to obtain the chip instruction and send it to the driver layer;

[0010] The chip instruction is sent to the target chip by using the driver layer, so that the target chip completes the online upgrade based on the chip instruction.

[0011] In a second aspect, an embodiment of the present invention further provides an online upgrade device for a chip, which is applied to an online upgrade system for a chip, wherein the system includes a presentation layer, a processing layer, and a driver layer; the device includes:

[0012] The display unit is used to select a target configuration and a target operation from the user's authority configuration and operation type using the presentation layer based on the user's authority and user needs; the authority configuration includes configuring supported chips for upgrading, configuring supported upgrade speeds, and configuring supported online upgrade methods; the operation type includes burning firmware or reading firmware;

[0013] A processing unit, configured to read a burning and reading process file corresponding to the target configuration using the processing layer, and parse the burning and reading process file and the target operation to obtain a chip instruction and send it to the driver layer;

[0014] The driver unit is used to send the chip instruction to the target chip by using the driver layer, so that the target chip completes the online upgrade based on the chip instruction.

[0015] In a third aspect, an embodiment of the present invention further provides an electronic device, including a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the method described in any embodiment of this specification is implemented.

[0016] In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium having a computer program stored thereon, which, when executed in a computer, enables the computer to execute the method described in any embodiment of this specification.

[0017] In a fifth aspect, an embodiment of the present invention further provides a computer program product, including a computer program, which implements the steps of the method described above when executed by a processor.

[0018] An embodiment of the present invention provides an online upgrade method for a chip. First, a configuration file is written in advance, including a permission configuration file and a burning and reading process file. Then, when the chip needs to be upgraded online, you only need to know the user permissions and user requirements, and you can use the presentation layer to select the corresponding target configuration and target operation, and send it to the processing layer. Then, based on the processing layer, the corresponding burning and reading process file is selected and parsed to obtain a chip instruction that can be recognized by the memory. Finally, the chip instruction is transmitted to the target chip through the driver layer, and the online upgrade and function verification of the target chip can be completed. It can be seen that the method of the present application can greatly shorten the upgrade process, improve development efficiency, and greatly improve operational flexibility. BRIEF DESCRIPTION OF THE DRAWINGS

[0019] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0020] Figure 1 This is a flow chart of an online chip upgrade method provided by an embodiment of the present invention;

[0021] Figure 2 It is a structural diagram of an online upgrade device for a chip provided by an embodiment of the present invention;

[0022] Figure 3 is a hardware architecture diagram of a computer device provided by an embodiment of the present invention;

[0023] Figure 4 The figure is a schematic diagram of an online upgrade system of a chip provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0024] In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, rather than all the embodiments. Based on the embodiments in the present invention, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present invention.

[0025] The specific implementation of the above concept is described below.

[0026] Please refer to Figure 1 and Figure 4An embodiment of the present invention provides an online chip upgrade method, which is applied to an online chip upgrade system. The system includes a presentation layer, a processing layer, and a driver layer. The method includes:

[0027] Step 100, based on user authority and user needs, the presentation layer is used to select a target configuration and a target operation from the user's authority configuration and operation type; the authority configuration includes configuring supported chips for upgrading, configuring supported upgrade speeds, and configuring supported online upgrade methods; the operation type includes burning firmware or reading firmware;

[0028] Step 102, using the processing layer to read the burning and reading process file corresponding to the target configuration, and parsing the burning and reading process file and the target operation to obtain the chip instruction and send it to the driver layer;

[0029] Step 104: Use the driver layer to send the chip instruction to the target chip, so that the target chip completes the online upgrade based on the chip instruction.

[0030] In this embodiment, first, configuration files are written in advance, including permission configuration files and burning and reading process files, etc. Then, when the chip needs to be upgraded online, you only need to know the user permissions and user requirements, and you can use the presentation layer to select the corresponding target configuration and target operation, and send it to the processing layer. Then, based on the processing layer, the corresponding burning and reading process files are selected and parsed to obtain chip instructions that can be recognized by the memory. Finally, the chip instructions are transmitted to the target chip through the driver layer, and the online upgrade and function verification of the target chip can be completed. It can be seen that the method of the present application can greatly shorten the upgrade process, improve development efficiency, and greatly improve operational flexibility.

[0031] In this embodiment, if Figure 4 As shown, the presentation layer communicates with the processing layer, the processing layer communicates with the driver layer, and the driver layer communicates with the chip. The presentation layer is used to receive user operations, such as configuring user operation permissions, configuring burning, reading Flash execution process, online firmware upgrade and online Flash reading, and send the received user operations to the processing layer. After receiving the user operation, the processing layer parses it into chip instructions and sends the chip instructions to the driver layer. The processing layer also returns the processing results to the presentation layer to display the execution results based on the presentation layer. The driver layer sends the chip instructions to hardware devices such as chips to enable the chip to complete the online upgrade.

[0032] Described below Figure 1 How the various steps are performed.

[0033] First, for step 100 , based on user authority and user needs, the presentation layer is used to select a target configuration and a target operation from the user's authority configuration and operation type.

[0034] The following are specific descriptions of permission configuration and operation types:

[0035] First, the permission configuration includes:

[0036] (1) Configuring chips that support upgrades, that is, chips that support upgrades. Users can configure the names of one or more chips for selection based on their authority and actual needs. This application has no limit on the number of configurable chips.

[0037] (2) Configure the supported upgrade speed, such as 20KHz, 100KHz, 400KHz, 750KHz, etc. This configuration only supports the programmers CH341T and CH347F.

[0038] (3) Configure the supported online upgrade methods, such as supporting IIC to SPI burning and DMA burning, where IIC to SPI burning speed is slow, and DMA burning is fast burning. Of course, users can also expand according to the specific burning method, and this application does not make specific restrictions.

[0039] Secondly, the operation types include burning firmware or reading firmware, among which burning firmware is used to trigger the online upgrade operation of the chip; reading firmware is used to monitor the upgrade results of the chip to adjust the upgrade process in real time based on the upgrade results. It should be noted that burning firmware and reading firmware are complete and universal upgrade / reading instructions within the system. After the initialization instructions are fully and correctly executed, this set of embedded universal upgrade instructions can run normally. Therefore, for chip upgrades, there is no need to perform special processing on the burning firmware or reading firmware instructions. Users only need to configure matching initialization instructions and end instructions according to their own needs.

[0040] In this step, since different users have different permissions and upgrade requirements, it is necessary to select specific target configurations and target operations according to user permissions and user requirements. The target configuration includes the target chip, target upgrade speed, and target upgrade method. For example, the target chip is chip A, the target upgrade speed is 20KHz, and the target upgrade method is DMA burning. The target operation is to burn the firmware, that is, to upgrade chip A.

[0041] Secondly, for step 102, the processing layer is used to read the burning and reading process file corresponding to the target configuration, and the burning and reading process file and the target operation are parsed to obtain the chip instruction and send it to the driver layer.

[0042] In this step, the burning and reading process files are configured based on the presentation layer. Different chips and different upgrade requirements correspond to different burning and reading process files, which are pre-written by engineers based on user permissions and user requirements. The burning and reading process files can be XML files, which are not specifically limited in this application. It should also be noted that before the presentation layer transmits each data to the processing layer, it is also used to determine the validity of the data. If it is valid, it is sent to the processing layer, otherwise, it is not sent.

[0043] In some implementations, the burning and reading process file includes: chip attribute information, initialization instructions before burning, and end instructions after burning is completed. Specifically as follows:

[0044] A. Chip attribute information: name, number, device address, offset address for burning / reading, default upgrade method, SPI address length (unit: byte) and the location of the Flash that needs to be upgraded.

[0045] B. Initialization instructions before burning and end instructions after burning: Both instructions communicate with the chip in the form of reading and writing registers. Related sub-instructions are written in sequence and executed in sequence to form functional logic. For example, after the read and write instructions are executed in sequence, OCM can be stopped, Flash can be deprotected, internal or external Flash functions can be set, and hardware protection effects can be increased.

[0046] In some implementations, the related sub-instructions include: read register instruction, write register instruction, compare register instruction, delay instruction, read first then write register instruction, built-in function instruction and display instruction. Each sub-instruction is explained in detail below.

[0047] a. Read register instruction: read register in bytes.

[0048] b. Write register instruction: write register in byte / bit form.

[0049] c. Compare register instruction: read the register in byte form and compare it with the target value.

[0050] d. Delay instruction: delay the system in milliseconds.

[0051] e. Read first and then write register instruction: Execute the read register instruction first, and pass the read value back to the subsequent write register instruction.

[0052] f. Built-in function instructions: When the logic of read-write related instructions is too complex and it is impossible to use sequential writing instructions to implement the function, and complex writing logic is required, the logic interface released by code writing can be performed within the system, and the logic interface can be configured in the burning and reading process files to implement the function, so as to use the built-in function command to implement specific logic.

[0053] g. Display instructions: You can combine the read register instruction and the write register instruction to generate a log of the instruction execution information.

[0054] In summary, once the target configuration and target operation are determined, the processing layer can be used to read the burning and reading process files corresponding to the target configuration, and parse the burning and reading process files and target operations to obtain chip instructions and send them to the driver layer. The specific process is as follows:

[0055] Step S1, using the processing layer to parse the target configuration, obtain the name of the target chip, the target upgrade speed and the target upgrade method;

[0056] Step S2, based on the name of the target chip, obtaining the attribute information, initialization instruction and end instruction of the target chip in the burning and reading process file;

[0057] Step S3, transmitting the attribute information of the target chip to the upgrade Flash and read Flash methods respectively;

[0058] Step S4, converting the initialization instruction and the end instruction into instructions recognizable by the chip and storing them in the memory;

[0059] Step S5, parsing the firmware burning operation or the firmware reading operation to obtain an upgrade instruction or a read instruction corresponding to the target chip;

[0060] Step S6, converting the initialization instruction, the upgrade instruction or the read instruction, and the end instruction into chip instructions in sequence according to a preset execution order, and sending the chip instructions to the driver layer.

[0061] In this embodiment, the processing layer plays the role of a data logic processing center in the entire architecture, and data distribution and encapsulation processing in the entire architecture are all completed in this module. The operation of the presentation layer is received upward, and the corresponding user operation is instantiated into a series of instructions and sent to the driver layer to complete the corresponding operation. The specific implementation process is as follows S1 to S6. Specifically: After steps S1 to S5, the memory already contains: initialization instructions, burning end instructions, and chip attribute information. In the case of permission information limitation, according to user selection, the upgrade Flash and Flash reading methods embedded in the application software already contain the attribute information of the chip. The processing layer will obtain the corresponding initialization and end instructions based on the authority and attribute information. For step S6, the initialization instructions, the internally embedded general upgrade / read instructions, and the burning end instructions are executed sequentially, and the relevant sub-instructions are converted into chip instructions after being executed sequentially.

[0062] Before sending chip instructions to the driver layer, the processing layer also includes:

[0063] Based on the format requirements of the driver layer, the chip instructions are encapsulated into a data packet in a preset format, and the data packet in the preset format is sent to the driver layer in the form of a dynamic link library called by the application software. The preset formats include CH341T, CH347F, USB and FTDI formats.

[0064] Finally, for step 104, the chip instruction is sent to the target chip by using the driver layer, so that the target chip completes the online upgrade based on the chip instruction.

[0065] In this step, after the target chip receives the chip instruction sent by the driver layer, it will automatically complete the online upgrade. At this time, the data in the memory will change accordingly. The user can trigger the read operation by clicking the read firmware icon on the graphical interface of the presentation layer, and the read result will be displayed in the graphical interface, so that the user can view the upgrade result.

[0066] From the above scheme, it can be seen that this application uses permission to manage online upgrades, sequentially executes multi-format custom upgrade instructions to form functional logic, and manages the upgrade process using XML configuration, which can quickly achieve chip online upgrade process control.

[0067] like Figure 2 , Figure 3 As shown, an embodiment of the present invention provides an online upgrade device for a chip. The device embodiment can be implemented by software, or by hardware or a combination of software and hardware. From the hardware level, Figure 2 As shown, it is a hardware architecture diagram of a computing device where an online upgrade device of a chip provided by an embodiment of the present invention is located, except Figure 2 In addition to the processor, memory, network interface, and non-volatile memory shown in the figure, the computing device in which the device is located in the embodiment may also generally include other hardware, such as a forwarding chip responsible for processing messages, etc. Taking software implementation as an example, Figure 3 As shown, as a device in a logical sense, the CPU of the computing device in which it is located reads the corresponding computer program in the non-volatile memory into the internal memory and runs it.

[0068] Please refer to Figure 3 The embodiment of the present invention provides an online upgrade device for a chip, which is applied to an online upgrade system for a chip. The system includes a presentation layer, a processing layer, and a driver layer. The device includes:

[0069] The display unit 300 is used to select a target configuration and a target operation from the user's authority configuration and operation type using the presentation layer based on the user's authority and user needs; the authority configuration includes configuring the chips supported for upgrading, configuring the upgrade speed supported, and configuring the online upgrade method supported; the operation type includes burning firmware or reading firmware;

[0070] The processing unit 302 is used to read the burning and reading process file corresponding to the target configuration using the processing layer, and parse the burning and reading process file and the target operation to obtain the chip instruction and send it to the driver layer;

[0071] The driver unit 304 is used to send the chip instruction to the target chip by using the driver layer, so that the target chip completes the online upgrade based on the chip instruction.

[0072] In some embodiments, the target configuration includes a target chip, a target upgrade speed, and a target upgrade method;

[0073] The burning and reading process files include the attribute information of the target chip, the initialization instructions before burning, and the end instructions after burning is completed;

[0074] The target chip's attribute information includes: name, number, device address, offset address for burning / reading, default upgrade method, SPI address length, and the location of the Flash to be upgraded;

[0075] The chip initialization instructions before burning and the end instructions after burning are communicated with the chip in the form of reading and writing registers. The relevant sub-instructions are written in sequence and executed in sequence to form the corresponding functional logic.

[0076] In some implementations, the target operation includes a firmware burning operation and a firmware reading operation; the processing unit 302 is configured to perform the following operations:

[0077] The processing layer is used to parse the target configuration to obtain the name of the target chip, the target upgrade speed and the target upgrade method;

[0078] Based on the name of the target chip, obtain the attribute information, initialization instructions and end instructions of the target chip in the burning and reading process file;

[0079] The attribute information of the target chip is transmitted to the upgrade Flash and read Flash methods respectively;

[0080] Convert the initialization instruction and the end instruction into instructions recognizable by the chip and store them into the memory;

[0081] Parse the firmware burning operation or firmware reading operation to obtain the upgrade instruction or read instruction corresponding to the target chip;

[0082] The initialization instruction, upgrade instruction or read instruction, and end instruction are converted into chip instructions in sequence according to the preset execution order, and the chip instructions are sent to the driver layer.

[0083] In some implementations, before the processing layer sends the chip instruction to the driver layer, the processing layer further includes:

[0084] Based on the format requirements of the driver layer, the chip instructions are encapsulated into a data packet in a preset format, and the data packet in the preset format is sent to the driver layer in the form of a dynamic link library called by the application software.

[0085] In some implementations, the related sub-instructions include: a read register instruction, a write register instruction, a compare register instruction, a delay instruction, a read-before-write register instruction, a built-in function instruction, and a display instruction.

[0086] It should be noted that the online chip upgrade device provided in the above embodiment is only illustrated by the division of the above functional modules. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above. In addition, the online chip upgrade device provided in the above embodiment and the online chip upgrade method embodiment belong to the same concept. The specific implementation process is detailed in the method embodiment and will not be repeated here.

[0087] The embodiment of the present application also provides a computer device, please refer to Figure 3 The computer device includes a processor and a memory, in which at least one instruction, at least one program, a code set or an instruction set is stored, and the at least one instruction, at least one program, a code set or an instruction set is loaded and executed by the processor to implement the online upgrade method of the chip provided in the above-mentioned method embodiments.

[0088] An embodiment of the present application also provides a computer-readable storage medium, on which is stored at least one instruction, at least one program, code set or instruction set, and the at least one instruction, at least one program, code set or instruction set is loaded and executed by a processor to implement the online upgrade method of the chip provided in the above-mentioned method embodiments.

[0089] An embodiment of the present application also provides a computer program product, which includes a computer program. A processor of a computer device reads the computer program from a computer-readable storage medium, and the processor executes the computer program, so that the computer device executes the online upgrade method of the chip described in any of the above embodiments.

[0090] For the convenience of description, the above system or device is described by dividing it into various modules or units according to its functions. Of course, when implementing the present application, the functions of each unit can be implemented in the same or multiple software and / or hardware.

[0091] It can be known from the description of the above implementation methods that those skilled in the art can clearly understand that the present application can be implemented by means of software plus a necessary general hardware platform. Based on such an understanding, the technical solution of the present application can be essentially or partly contributed to the prior art in the form of a software product, which can be stored in a storage medium such as ROM / RAM, a magnetic disk, an optical disk, etc., and includes several instructions for enabling a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in the various embodiments of the present application or certain parts of the embodiments.

[0092] Finally, it should be noted that, in this article, relational terms such as first, second, third and fourth are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the statement "comprise a ..." do not exclude the presence of other identical elements in the process, method, article or device including the elements.

[0093] The above is only a preferred implementation of the present application. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present application. These improvements and modifications should also be regarded as the scope of protection of the present application.

Claims

1. A chip online upgrade method, characterized in that: An online upgrade system applied to a chip, the system comprising a presentation layer, a processing layer and a driver layer; the method comprising: Based on user authority and user needs, the presentation layer is used to select target configuration and target operation from the user's authority configuration and operation type; the authority configuration includes configuring supported chips for upgrading, configuring supported upgrade speeds, and configuring supported online upgrade methods; the operation type includes burning firmware or reading firmware; Using the processing layer to read the burning and reading process file corresponding to the target configuration, and parsing the burning and reading process file and the target operation to obtain the chip instruction and send it to the driver layer; The chip instruction is sent to the target chip by using the driver layer, so that the target chip completes the online upgrade based on the chip instruction.

2. The method according to claim 1, characterized in that The target configuration includes a target chip, a target upgrade speed and a target upgrade method; The burning and reading process file includes the attribute information of the target chip, the initialization instruction before burning and the end instruction after burning is completed; The attribute information of the target chip includes: name, number, device address, offset address for burning / reading, default upgrade mode, SPI address length and the location of the Flash to be upgraded; The initialization instruction of the chip before burning and the end instruction after burning are communicated with the chip in the form of reading and writing registers, and related sub-instructions are written in sequence and executed in sequence to form corresponding functional logic.

3. The method according to claim 2, characterized in that The target operation includes a firmware burning operation and a firmware reading operation; the using the processing layer to read the burning and reading process files corresponding to the target configuration, and parsing the burning and reading process files and the target operation to obtain a chip instruction and send it to the driver layer, including: Utilizing the processing layer to parse the target configuration, obtaining the name of the target chip, the target upgrade speed, and the target upgrade method; Based on the name of the target chip, obtain the attribute information, initialization instruction and end instruction of the target chip in the burning and reading process file; Transmitting the attribute information of the target chip to the upgrade Flash and read Flash methods respectively; Convert the initialization instruction and the end instruction into instructions recognizable by the chip and store them in the memory; Parsing the firmware burning operation or the firmware reading operation to obtain an upgrade instruction or a read instruction corresponding to the target chip; The initialization instruction, the upgrade instruction or the read instruction, and the end instruction are sequentially converted into chip instructions according to a preset execution order, and the chip instructions are sent to the driver layer.

4. The method according to claim 2, characterized in that: Before sending the chip instruction to the driving layer, the processing layer further includes: Based on the format requirement of the driver layer, the chip instruction is encapsulated into a data packet in a preset format, and the data packet in the preset format is sent to the driver layer in the form of calling a dynamic link library through application software.

5. The method according to claim 2, characterized in that: The related sub-instructions include: read register instruction, write register instruction, compare register instruction, delay instruction, read first then write register instruction, built-in function instruction and display instruction.

6. An online chip upgrade device, characterized in that: An online upgrade system for a chip, the system comprising a presentation layer, a processing layer and a driver layer; the device comprising: The display unit is used to select a target configuration and a target operation from the user's authority configuration and operation type using the presentation layer based on the user's authority and user needs; the authority configuration includes configuring supported chips for upgrading, configuring supported upgrade speeds, and configuring supported online upgrade methods; the operation type includes burning firmware or reading firmware; A processing unit, configured to read a burning and reading process file corresponding to the target configuration using the processing layer, and parse the burning and reading process file and the target operation to obtain a chip instruction and send it to the driver layer; The driver unit is used to send the chip instruction to the target chip by using the driver layer, so that the target chip completes the online upgrade based on the chip instruction.

7. The device according to claim 6, characterized in that The target configuration includes a target chip, a target upgrade speed and a target upgrade method; The burning and reading process file includes the attribute information of the target chip, the initialization instruction before burning and the end instruction after burning is completed; The attribute information of the target chip includes: name, number, device address, offset address for burning / reading, default upgrade mode, SPI address length and the location of the Flash to be upgraded; The initialization instruction of the chip before burning and the end instruction after burning are communicated with the chip in the form of reading and writing registers, and related sub-instructions are written in sequence and executed in sequence to form corresponding functional logic.

8. The device according to claim 7, characterized in that The target operation includes a firmware burning operation and a firmware reading operation; the processing unit is used to perform the following operations: Utilizing the processing layer to parse the target configuration, obtaining the name of the target chip, the target upgrade speed, and the target upgrade method; Based on the name of the target chip, obtain the attribute information, initialization instruction and end instruction of the target chip in the burning and reading process file; Transmitting the attribute information of the target chip to the upgrade Flash and read Flash methods respectively; Convert the initialization instruction and the end instruction into instructions recognizable by the chip and store them in the memory; Parsing the firmware burning operation or the firmware reading operation to obtain an upgrade instruction or a read instruction corresponding to the target chip; The initialization instruction, the upgrade instruction or the read instruction, and the end instruction are sequentially converted into chip instructions according to a preset execution order, and the chip instructions are sent to the driver layer.

9. A computing device, comprising a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the method according to any one of claims 1 to 5 is implemented.

10. A computer-readable storage medium having a computer program stored thereon, which, when executed in a computer, causes the computer to execute the method according to any one of claims 1 to 5.