Off-line burning device

By designing an offline burning device, the firmware read and write module and the device status switching module are used to burn the target firmware to the device to be burned offline, which solves the instability and low security caused by communication interruption in online burning. The problem has achieved higher stability and security.

CN222071210UActive Publication Date: 2024-11-26GODSON ZHONGKE (TAIYUAN) TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202420573572.8
Authority / Receiving Office
CN · China
Patent Type
Utility models(China)
Current Assignee / Owner
Filing Date
2024-03-22
Publication Date
2024-11-26
Estimated Expiration
2034-03-22

AI Technical Summary

Technical Problem

The existing online burning device may cause the burning device to be burned to be in an unstable state when communication is interrupted, affecting normal operation and have low security.

Method used

An offline recording device is designed, including a firmware reading and writing module, a firmware storage module, a burning interface module, a device status switching module and a processor module. By first storing the target firmware in the offline recording device, then in the offline state Download the device to be burned to avoid real-time communication interruption and improve device stability and security.

Benefits of technology

It effectively avoids the equipment instability caused by communication interruption during online burning, improves the normal operation safety of the equipment to be burned, and reduces the risk of burning.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN222071210U_ABST
    Figure CN222071210U_ABST
Patent Text Reader

Abstract

The utility model provides an off-line burning device, which relates to the technical field of integrated circuits and comprises a firmware read-write module, a firmware storage module, a burning interface module, an equipment state switching module and a processor module. The firmware read-write module is electrically connected with external first equipment; the firmware storage module is electrically connected with the firmware read-write module; the firmware storage module is used for storing target firmware burnt from the first equipment; the burning interface module is electrically connected with the firmware storage module; the burning interface module is used for connecting external equipment to be burnt; the equipment state switching module is electrically connected with the burning interface module; the processor module is electrically connected with the equipment state switching module; the processor module is used for configuring the to-be-burnt device to be in an offline burning state through the device state switching module. According to the invention, the normal operation of the to-be-burnt device can be prevented from being influenced by the burning process, so that the to-be-burnt device is prevented from being damaged, and the safety of the offline burning device is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present application relate to the field of integrated circuit technology, and in particular to an offline programming device. Background Art

[0002] In the manufacturing process of electronic equipment, chip burning is one of the key links. The existing burning device can be directly connected to the device to be burned through online burning. During the chip programming process of the device to be burned, the device to be burned needs to be in operation and communicate with the burning device in real time.

[0003] However, during the online burning process, if the communication is accidentally interrupted, the burned firmware may be only partially written to the device to be burned, causing the device to be burned to be in an unstable state, affecting the normal operation of the device to be burned, and having low security. Utility Model Content

[0004] In view of the above problems, an embodiment of the present application proposes an offline burning device to solve the problem that the existing burning device affects the normal operation of the device to be burned and has low security.

[0005] In a first aspect, an embodiment of the present application provides an offline burning device, including: a firmware reading and writing module, a firmware storage module, a burning interface module, a device state switching module and a processor module;

[0006] The firmware reading and writing module is electrically connected to an external first device;

[0007] The firmware storage module is electrically connected to the firmware read-write module; the firmware storage module is used to store the target firmware burned from the first device;

[0008] The burning interface module is electrically connected to the firmware storage module; the burning interface module is used to connect to an external device to be burned;

[0009] The device state switching module is electrically connected to the burning interface module;

[0010] The processor module is electrically connected to the device state switching module; the processor module is used to configure the device to be burned to an offline burning state through the device state switching module.

[0011] Optionally, the device state switching module includes: a power supply control unit and a state control unit;

[0012] The power supply control unit is electrically connected to the programming interface module and the processor module respectively; the power supply control unit is used to connect to the power supply input terminal of the device to be programmed through the programming interface module;

[0013] The state control unit is electrically connected to the programming interface module and the processor module respectively; the state control unit is used to connect to the state control terminal of the device to be programmed through the programming interface module.

[0014] Optionally, the power supply control unit includes: a first transistor;

[0015] The control electrode of the first transistor is electrically connected to the processor module, and the first electrode of the first transistor is used to connect to the power supply input terminal through the burning interface module.

[0016] Optionally, the state control unit includes: a second transistor;

[0017] The control electrode of the second transistor is electrically connected to the processor module, and the first electrode of the second transistor is used to connect to the state control terminal through the burning interface module.

[0018] Optionally, the offline burning device further includes: a path management module;

[0019] The path management module is electrically connected to the firmware reading and writing module, the firmware storage module and the burning interface module respectively; the control end of the path management module is electrically connected to the device state switching module.

[0020] Optionally, the offline burning device further includes: a power interface module and a power management module;

[0021] The power interface module is used to connect to an external power source;

[0022] The input end of the power management module is electrically connected to the power interface module, and the output end is electrically connected to the firmware read-write module, the firmware storage module, the burning interface module, the device state switching module, and the processor module respectively.

[0023] Optionally, the power management module includes: a voltage boost unit and a voltage stabilization unit;

[0024] The input end of the boost unit is electrically connected to the power interface module;

[0025] The input end of the voltage stabilizing unit is electrically connected to the output end of the voltage boosting unit, and the output end is electrically connected to the firmware reading and writing module, the firmware storage module, the burning interface module, the device state switching module, and the processor module respectively.

[0026] Optionally, the power interface module includes:

[0027] A power interface unit for connecting to a universal serial bus power supply device; and / or a battery interface unit for connecting to an external battery.

[0028] Optionally, the processor module includes: a security authentication unit electrically connected to the firmware storage module;

[0029] The security authentication unit is used to encrypt the security authentication information sent by the second device to obtain the security feature code of the target firmware.

[0030] Optionally, the processor module includes: a logging unit;

[0031] The log recording unit is used to connect to the device to be burned, and generate a target log according to feedback information sent by the device to be burned.

[0032] In an embodiment of the present application, the offline burning device includes a firmware read-write module, a firmware storage module, a burning interface module, a device state switching module and a processor module. Since the firmware read-write module is used to connect the first device, the firmware storage module is electrically connected to the firmware read-write module, and the firmware storage module is used to store the target firmware burned from the first device to the offline burning device. In this way, the target firmware can be burned from the first device to the offline burning device through the firmware read-write module and stored in the firmware storage module. The burning interface module is electrically connected to the firmware storage module, the burning interface module is used to connect the device to be burned, the device state switching module is electrically connected to the burning interface module, the processor module is electrically connected to the device state switching module, and the processor module is used to configure the device to be burned to the offline burning state through the device state switching module. In this way, in the offline burning state, the target firmware burned to the firmware storage module can be burned from the firmware storage module to the device to be burned through the burning interface module. Compared with the existing online burning method, it can avoid the problem of instability of the device to be burned due to real-time communication interruption, and can avoid the burning process affecting the normal operation of the device to be burned, thereby avoiding damage to the device to be burned and improving safety. BRIEF DESCRIPTION OF THE DRAWINGS

[0033] Figure 1 It is a circuit diagram of an offline programming device provided in an embodiment of the present application;

[0034] Figure 2 It is a circuit diagram of another offline programming device provided in an embodiment of the present application;

[0035] Figure 3 is a circuit diagram of a power supply control unit provided in an embodiment of the present application;

[0036] Figure 4 is a circuit diagram of a state control unit provided in an embodiment of the present application;

[0037] Figure 5It is a circuit diagram of a firmware read-write module provided in an embodiment of the present application;

[0038] Figure 6 is a circuit diagram of a path management module provided in an embodiment of the present application;

[0039] Figure 7 is a circuit diagram of a firmware storage module provided in an embodiment of the present application;

[0040] Figure 8 It is a circuit diagram of a burning interface module provided in an embodiment of the present application;

[0041] Fig. 9 This is one of the level timing diagrams of an offline programming device provided in an embodiment of the present application;

[0042] Fig.10 This is the second level timing diagram of an offline programming device provided in an embodiment of the present application;

[0043] Fig.11 is a circuit diagram of a processor core unit provided in an embodiment of the present application;

[0044] Fig.12 is a circuit diagram of another offline programming device provided in an embodiment of the present application;

[0045] Fig.13 This is a circuit connection diagram of a power interface module and a power management module provided in an embodiment of the present application;

[0046] Fig.14 It is a circuit connection diagram of a power interface module and a boost unit provided in an embodiment of the present application;

[0047] Fig.15 is a circuit diagram of a voltage stabilizing unit provided in an embodiment of the present application;

[0048] Fig.16 It is a schematic diagram of an offline programming process of an offline programming device provided in an embodiment of the present application.

[0049] Reference numerals:

[0050] Offline burning device 10; firmware reading and writing module 101; firmware storage module 102; burning interface module 103; device state switching module 104; power supply control unit 1041; state control unit 1042; processor module 105; security authentication unit 1051; log recording unit 1052; processor core unit 1053; path management module 106; power interface module 107; power interface unit 1071; battery interface unit 1072; power management module 108; boost unit 1081; voltage stabilizing unit 1082; first device 20; device to be burned 30; second device 40. DETAILED DESCRIPTION

[0051] The technical solutions in the embodiments of the present application will be clearly described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, rather than all of the embodiments.

[0052] First, the circuit principle of the burning device in the prior art is explained.

[0053] Existing burning devices are mainly used for burning ARM chips, and are usually written and optimized based on a specific ARM architecture to ensure normal operation on ARM chips. The host computer is connected to the burning device through a serial port or a Universal Serial Bus (USB) interface, and then the burning device downloads the firmware from the host computer to the chip. However, for chips with other architectures, due to different instruction sets and registers, as well as different packaging and pin arrangements, it is not suitable for burning multiple types of chips, and the adaptability is poor.

[0054] In the prior art, the burning device is usually connected to the device to be burned online. During the chip programming process of the device to be burned, the device needs to be in operation and communicate with the burning device in real time. This online burning method may cause potential damage to the device to be burned and cause data security issues. For example, before online burning, the electrical connection between the burning device and the device to be burned is often energized, which can easily lead to short circuits or other electrical failures and damage the device to be burned. During the online burning process, if the communication is accidentally interrupted, it may cause the burned firmware to be only partially written to the device to be burned, making the device in an unstable state and affecting normal operation. In addition, the online burning method requires the direct provision of the original HEX or BIN format firmware, which may cause the firmware to leak out and the risk of data leakage.

[0055] The embodiments of the present application are described in detail below through specific embodiments and their application scenarios in conjunction with the accompanying drawings.

[0056] Figure 1FIG. 1 shows a circuit diagram of an off-line programming device 10 provided in an embodiment of the present application. Figure 1 As shown, the offline burning device 10 includes: a firmware reading and writing module 101, a firmware storage module 102, a burning interface module 103, a device state switching module 104 and a processor module 105;

[0057] The firmware reading and writing module 101 is electrically connected to the external first device 20;

[0058] The firmware storage module 102 is electrically connected to the firmware read-write module 101; the firmware storage module 102 is used to store the target firmware burned from the first device 20;

[0059] The burning interface module 103 is electrically connected to the firmware storage module 102; the burning interface module 103 is used to connect to the external device to be burned 30;

[0060] The device state switching module 104 is electrically connected to the burning interface module 103;

[0061] The processor module 105 is electrically connected to the device state switching module 104 ; the processor module 105 is used to configure the device to be burned 30 to an offline burning state through the device state switching module 104 .

[0062] In the embodiment of the present application, the off-line burning device 10 includes a firmware read-write module 101, a firmware storage module 102, a burning interface module 103, a device state switching module 104 and a processor module 105. The off-line burning device 10 can be connected to an external first device 20 storing a target firmware to be burned, receive the target firmware sent by the first device 20 and store it, that is, the target firmware to be burned is burned from the first device 20 to the off-line burning device 10. The off-line burning device 10 can also be connected to a device 30 to be burned, and the target firmware burned to the off-line burning device 10 is burned from the off-line burning device 10 to the device 30 to be burned. Among them, the first device 20 can be a host computer connected to the off-line burning device 10. The device 30 to be burned can be a chip that needs to burn the target firmware, such as a microcontroller unit (MCU), or the device 30 to be burned includes a chip that needs to burn the target firmware, and the embodiment of the present application does not limit this. The device to be programmed 30 may further include a memory, such as a flash memory, and the offline programming apparatus 10 may program the target firmware into the memory of the device to be programmed 30 .

[0063] For example, the offline burning device 10 can be connected to the MCU that needs to burn the target firmware through the burning interface module 103. The processor module 105 of the offline burning device 10 can configure the MCU to the offline burning state through the device state switching module 104 and the burning interface module 103, and then the target firmware in the firmware storage module 102 is burned into the SPI Flash chip of the MCU through the burning interface module 103, thereby completing the firmware burning of the MCU.

[0064] In an embodiment of the present application, the target firmware may include chip firmware and a chip boot program, which match the device 30 to be burned. Before the firmware is burned, the chip firmware and the chip boot program can be packaged and synthesized into the target firmware through a firmware synthesis tool in the host computer. Among them, during the synthesis process, the firmware synthesis tool can set the start position and end position corresponding to each program, and add corresponding characters in the gap, and the final output file is the packaged target firmware. For example, the target firmware can be an original HEX file or a firmware in BIN format. This is only an example, and the embodiment of the present application is not limited to this.

[0065] In the embodiment of the present application, the firmware read-write module 101 can be a communication chip for communicating with the first device 20, and the firmware read-write module 101 can be connected to the first device 20 through a communication bus, and the firmware read-write module 101 is also electrically connected to the firmware storage module 102. For example, after the external host computer, that is, the first device 20 is connected to the offline burning device 10 through the USB interface, the firmware read-write module 101 is connected to the first device 20 through the USB bus, and the firmware read-write module 101 is connected to the firmware storage module 102 serial peripheral interface (Serial Peripheral Interface, SPI) bus. The user can send the target firmware that needs to be burned in the first device 20 to the firmware read-write module 101 through the host computer software deployed in the first device 20, and the firmware read-write module 101 sends the target firmware to the firmware storage module 102 for storage, thereby burning the target firmware from the host computer to the offline burning device 10.

[0066] In the embodiment of the present application, the firmware storage module 102 has a code protection mechanism. Specifically, the storage space of the firmware storage module 102 is divided into three sections, including a solidified code section, a code section, and a data section. For the solidified code section and the code section, rewrite permission is required to perform rewrite operations, and there is no permission restriction for the data section. In actual applications, after the target firmware is stored in the firmware storage module 102, the processor module 105 can close the operation permission to the firmware storage module 102, so that other external devices do not have the operation permission of the firmware storage module 102 of the offline burning device 10, which can avoid the risk of firmware leakage and improve security.

[0067] In a specific implementation, the firmware storage module 102 may be a flash memory, also known as a flash memory. For example, SPI Flash, SPI Flash is divided into NOR Flash and NAND Flash, and the characteristic of NOR Flash is that the application program can be directly run in the flash memory. In practical applications, the firmware storage module 102 may use NOR Flash, and the user may perform operations such as automatic erasing, data writing, error detection and recovery on the NOR Flash through the host computer software and the firmware read-write module 101. This is only an example, and the embodiments of the present application are not limited to this.

[0068] For example, the storage space of some Flash memories is divided into three segments: In System Programming (ISP) fixed code segment, code segment and data segment. The ISP fixed code segment can only be rewritten by the debug interface and SPI boot mode, and the code segment can only be rewritten by the debug interface, SPI boot mode and ISP program. In this way, the ISP fixed code segment and code segment cannot be directly operated, thereby realizing the code protection of the Flash memory.

[0069] In the embodiment of the present application, the burning interface module 103 can adopt a probe interface or a pin header interface, which is not limited in the embodiment of the present application. The burning interface module 103 may include an electrostatic and surge protection unit, which is used for electrostatic protection and surge suppression. For example, transient voltage suppressor diodes (TVS), electrostatic discharge tubes (ESD), etc. In practical applications, the burning interface module 103 may include an SPI interface, which is connected to the firmware storage module 102 via an SPI bus. This is only an example, and the embodiment of the present application does not limit this.

[0070] Alternatively, if Figure 2 As shown, the device state switching module 104 includes: a power supply control unit 1041 and a state control unit 1042;

[0071] The power supply control unit 1041 is electrically connected to the programming interface module 103 and the processor module 105 respectively; the power supply control unit 1041 is used to connect to the power supply input terminal 301 of the device to be programmed 30 through the programming interface module 103, so as to control the power supply state of the device to be programmed 30;

[0072] The state control unit 1042 is electrically connected to the programming interface module 103 and the processor module 105 respectively; the state control unit 1042 is used to connect to the state control terminal 302 of the device to be programmed 30 through the programming interface module 103, thereby sending the control signal of the processor module 105 to the device to be programmed 30.

[0073] In the embodiment of the present application, the device state switching module 104 may include a power supply control unit 1041 and a state control unit 1042. The power supply control unit 1041 may be electrically connected to the power supply of the offline burning device 10, and the power supply control unit 1041 may also be connected to the power supply input terminal 301 of the device to be burned 30 through the burning interface module 103. The power supply control unit 1041 is used to respond to the first control signal sent by the processor module 105, conduct the power supply of the offline burning device 10 and the power supply input terminal 301 of the device to be burned 30, and the power supply of the offline burning device 10 supplies power to the device to be burned 30. The state control unit 1042 is used to respond to the second control signal sent by the processor module 105, and send a state control signal to the state control terminal 302 of the device to be burned 30, so that the device to be burned 30 is configured to be in the offline burning state.

[0074] Optionally, the power supply control unit 1041 includes:

[0075] A first transistor, a control electrode of the first transistor is electrically connected to the processor module 105 , and a first electrode of the first transistor is used to connect to the power supply input terminal 301 through the burning interface module 103 .

[0076] In the embodiment of the present application, the first transistor may be a metal oxide semiconductor field effect transistor (MOSFET), i.e., a MOS tube, and specifically, may be an N-channel or P-channel MOS tube, i.e., an NMOS tube or a PMOS tube. The control electrode of the first transistor may be a gate of the MOS tube, and the gate of the MOS tube may be electrically connected to the processor module 105, and may turn on the first electrode and the second electrode of the first transistor in response to a first control signal sent by the processor module 105.

[0077] For example, the first transistor may be a PMOS tube, the first electrode of the first transistor may be the drain of the PMOS tube, the second electrode may be the source of the PMOS tube, the source of the PMOS tube may be connected to the power supply of the offline burning device 10, the drain of the PMOS tube may be connected to the power supply input terminal 301 of the device to be burned 30 through the burning interface module 103, so that when the PMOS tube is turned on, the power supply of the offline burning device 10 supplies power to the device to be burned 30. Alternatively, the first transistor may be an NMOS tube, the first electrode of the first transistor may be the source of the NMOS tube, the second electrode may be the drain of the NMOS tube, the drain of the NMOS tube may be connected to the power supply of the offline burning device 10, the source of the NMOS tube may be connected to the power supply input terminal 301 of the device to be burned 30 through the burning interface module 103, so that when the NMOS tube is turned on, the power supply of the offline burning device 10 supplies power to the device to be burned 30. This is only an example, and the embodiment of the present application is not limited to this.

[0078] Figure 3 is a circuit diagram of a power supply control unit 1041 provided in an embodiment of the present application, such as Figure 3 As shown, the first transistor is a PMOS tube Q4, and the source (S) of the PMOS tube Q4 is connected to the 3.3V power supply of the offline burning device 10, that is, VCC_3V3. The drain (D) of the PMOS tube Q4 is connected to the power supply input terminal 301 of the device to be burned 30, that is, VCC_DEC, through the burning interface module 103. The gate (G) of the PMOS tube Q4 is connected to the VCC_PIN pin of the processor module 105 through the resistor R17, and is connected to VCC_3V3 through the resistor R15. VCC_3V3 can be Fig.15 The voltage stabilizing unit chip P1 shown is provided. The PMOS tube Q4 is disconnected under the control of the high level signal transmitted by VCC_3V3. When the first control signal sent by the processor module 105 to the gate (G) of the PMOS tube Q4 through the VCC_PIN pin is a low level signal, the PMOS tube Q4 is turned on, and VCC_3V3 supplies power to the device to be programmed 30 through the power supply input terminal 301 after the PMOS tube Q4 is turned on.

[0079] In the embodiment of the present application, since the control electrode of the first transistor is electrically connected to the processor module 105, the first electrode of the first transistor is used to connect to the power supply input terminal 301 through the burning interface module 103. In this way, the offline burning device 10 can power the device to be burned 30, thereby improving the practicality of the offline burning device 10 of the embodiment of the present application.

[0080] Optionally, the state control unit 1042 includes:

[0081] A second transistor, a control electrode of the second transistor is electrically connected to the processor module 105 , and a first electrode of the second transistor is used to connect to the state control terminal 302 through the burning interface module 103 .

[0082] In the embodiment of the present application, the second transistor may be a MOS transistor, an NMOS transistor or a PMOS transistor, and the number of the second transistors may be determined according to the number of the state control terminals 302 of the device to be programmed 30. Specifically, the number of the second transistors may be equal to the number of the state control terminals 302, and the first electrode of a second transistor may be connected to the state control terminal 302 of a device to be programmed 30 through the programming interface module 103. The control electrode of the second transistor may be the gate of the MOS transistor, and the gate of the MOS transistor may be electrically connected to the processor module 105, and the first electrode and the second electrode of the second transistor may be turned on in response to the second control signal sent by the processor module 105.

[0083] For example, the second transistor may be an NMOS tube, the first electrode of the second transistor may be the drain of the NMOS tube, the second electrode may be the source of the NMOS tube, the source of the NMOS tube may be grounded, and the drain of the NMOS tube may be connected to the state control terminal 302 of the device to be programmed 30, so that when the NMOS tube is turned on, a state control signal is sent to the device to be programmed 30. Alternatively, the second transistor may be a PMOS tube, the first electrode of the second transistor may be the source of the PMOS tube, the second electrode may be the drain of the PMOS tube, the drain of the PMOS tube may be grounded, and the source of the PMOS tube may be connected to the state control terminal 302 of the device to be programmed 30, so that when the PMOS tube is turned on, a state control signal is sent to the device to be programmed 30. This is only an example, and the embodiments of the present application are not limited to this.

[0084] Figure 4 is a circuit diagram of a state control unit 1042 provided in an embodiment of the present application, such as Figure 4As shown, in the present embodiment, the second transistor in the state control unit 1042 is Q2 and Q3, and the state control terminal 302 of the device 30 to be burned corresponds to Q2 and Q3, including DEV_MODE and DEV_BURNER. The source (S) of the NMOS tube Q2 is connected to the ground terminal GND. The drain (D) of the NMOS tube Q2 is connected to the VCC_3V3 power supply through the resistor R14, and the drain (D) of the NMOS tube Q2 is also connected to the DEV_MODE terminal of the device 30 to be burned through the burning interface module 103. The grid (G) of the NMOS tube Q2 is connected to the MODE_PIN pin of the processor module 105 through the resistor R18, and is connected to the ground terminal GND through the resistor R19. The NMOS tube Q2 is disconnected under the control of the low-level signal transmitted by the resistor R19. When the second control signal sent by the processor module 105 to the gate (G) of the NMOS tube Q2 through the MODE_PIN pin is a high-level signal, the NMOS tube Q2 is turned on. After the NMOS tube Q2 is turned on, the second control signal sends a high-level signal to the state control terminal 302 of the device to be burned 30, that is, the DEV_MODE terminal, through Q2.

[0085] See also Figure 4 , the source (S) of the NMOS tube Q3 is connected to the ground terminal GND. The drain (D) of the NMOS tube Q3 is connected to the DEV_BURNER terminal of the device to be burned 30 through the burning interface module 103. The gate (G) of the NMOS tube Q3 is connected to the BURNER_PIN pin of the processor module 105 through the resistor R16, and is connected to the ground terminal GND through the resistor R20. The NMOS tube Q3 is disconnected under the control of the low-level signal transmitted by the resistor R20. When the second control signal sent by the processor module 105 to the gate (G) of the NMOS tube Q3 through the BURNER_PIN pin is a high-level signal, the NMOS tube Q3 is turned on. After the NMOS tube Q3 is turned on, the second control signal sends a high-level signal to the state control terminal 302 of the device to be burned 30, that is, the DEV_BURNER terminal, through Q3.

[0086] In the embodiment of the present application, since the control electrode of the second transistor is electrically connected to the processor module 105, the first electrode of the second transistor is used to connect to the state control terminal 302 through the burning interface module 103. In this way, the processor module 105 can conveniently send a control signal to the state control terminal 302 of the device to be burned 30 through the second transistor, thereby configuring the device to be burned 30 to an offline burning state, thereby improving the practicality of the offline burning device 10 of the embodiment of the present application.

[0087] In the embodiment of the present application, the device state switching module 104 can be connected to the power supply input terminal 301 and the state control terminal 302 of the device to be burned 30 through the burning interface module 103, and the processor module 105 can send a control signal to the device state switching module 104 to control the power-on timing and working state of the device to be burned 30 through the device state switching module 104. Before firmware burning, the device to be burned 30 can be conveniently configured to an offline burning state, so that the offline burning device 10 of the embodiment of the present application can adapt to different production environments and equipment specifications.

[0088] In the embodiment of the present application, since the power supply control unit 1041 is electrically connected to the burning interface module 103 and the processor module 105 respectively, the power supply control unit 1041 is used to connect the power supply input terminal 301 of the device to be burned 30 through the burning interface module 103, the state control unit 1042 is electrically connected to the burning interface module 103 and the processor module 105 respectively, and the state control unit 1042 is used to connect the state control terminal 302 of the device to be burned 30 through the burning interface module 103. In this way, the device state switching module 104 can be connected to the power supply input terminal 301 and the state control terminal 302 of the device to be burned 30 through the burning interface module 103, so that the processor module 105 can control the power supply and state of the device to be burned 30 through the device state switching module 104, so that the device to be burned 30 can be conveniently configured to be in an offline burning state. Compared with the existing online burning method, the burning process can avoid affecting the normal operation of the device to be burned 30 and avoid causing damage to the device to be burned 30, thereby reducing the operating risk of the burning process and improving the safety of the offline burning device 10.

[0089] Optionally, the off-line burning device 10 further includes: a path management module 106;

[0090] The path management module 106 is electrically connected to the firmware reading and writing module 101, the firmware storage module 102 and the burning interface module 103 respectively;

[0091] The control end of the path management module 106 is electrically connected to the device state switching module 104 .

[0092] In the embodiment of the present application, the target firmware needs to be burned from the host computer to the offline burning device 10 and stored in the firmware storage module 102, and burned from the firmware storage module 102 of the offline burning device 10 to the device to be burned 30. Figure 2As shown, the path management module 106 is electrically connected to the firmware storage module 102, and the path management of the firmware storage module 102 can be performed through the path management module 106. Specifically, the path management module 106 is also electrically connected to the firmware read-write module 101 and the burning interface module 103, so that the firmware storage module 102 is electrically connected to the firmware read-write module 101 through the path management module 106 as the first path of the firmware storage module 102, and the firmware storage module 102 can also be electrically connected to the burning interface module 103 through the path management module 106 as the second path of the firmware storage module 102.

[0093] In the present application embodiment, Figure 2 As shown, the control end of the path management module 106 is electrically connected to the state control unit 1042 of the device state switching module 104. The state control unit 1042 of the device state switching module 104 can send a path switching control signal to the control end of the path management module 106, so that the firmware storage module 102 switches between the first path and the second path. The control end of the path management module 106 can be connected to Figure 4 The drain of the NMOS tube Q3 in the state control unit 1042 is electrically connected, DEV_BURNER can be used as a path switching control signal, and the path management module 106 can switch the firmware storage module 102 to the second path in response to the DEV_BURNER signal, so that the paths of the firmware storage module 102, the path management module 106 and the burning interface module 103 are turned on.

[0094] For example, when the device 30 to be burned is configured to be in an offline burning state, the path management module 106 can switch the firmware storage module 102 to the second path according to the switching control signal sent by the state control unit 1042 of the device state switching module 104, so that the paths of the firmware storage module 102, the path management module 106 and the burning interface module 103 are connected. In this way, the firmware storage module 102 can send the target firmware to the path management module 106, and the path management module 106 sends the target firmware to the burning interface module 103, and the burning interface module 103 sends the target firmware to the device 30 to be burned.

[0095] In the embodiment of the present application, since the firmware storage module 102 is electrically connected to the firmware read-write module 101 through the path management module 106, the firmware storage module 102 is also electrically connected to the burning interface module 103 through the path management module 106, and the control end of the path management module 106 is electrically connected to the device state switching module 104. In this way, the path connected to the firmware storage module 102 can be managed by the path management module 106, and the path management module 106 can be controlled by the device state switching module 104 to switch between the first path and the second path, which can improve the practicality of the offline burning device 10 of the embodiment of the present application.

[0096] Figure 5 1 is a circuit diagram of a firmware read / write module 101 provided in an embodiment of the present application. The first device 20 may include a Universal Serial Bus (USB), the firmware read / write module 101 may be a USB bus adapter chip, and the firmware storage module 102 may be an SPI Flash. Figure 5 As shown, the UD+ pin of the firmware read / write module 101 can be connected to the D+ data line of the USB bus, and the pin UD- can be connected to the D- data line of the USB bus, and the target firmware sent by the first device 20 is received through the D+ data line and the D- data line. The firmware read / write module 101 may include an SPI interface, which are pins D0, D3, D5 and D7, respectively, for transmitting chip select signals The firmware read / write module 101 can send the target firmware to the path management module 106 via the SPI bus.

[0097] See also Figure 5, the VCC pin of the firmware read-write module 101 can be connected to the VCC_3V3 power supply, the SDA pin can be connected to the VCC_3V3 power supply through a resistor R13, and the BUSY pin can be electrically connected to the ground terminal GND. The RSTI pin and the V3 pin of the firmware read-write module 101 can be connected to the VCC_3V3 power supply, the RSTI pin can be connected to the ground terminal GND through a resistor R12, and filtered by capacitors C13 and C15. The ERR# pin and the PEMP pin of the firmware read-write module 101 can also be connected to the Universal Asynchronous Receiver / Transmitter (UART) interface to transmit data via a serial bus. The firmware read-write module 101 is externally connected to the direct-insertion crystal oscillator Y1 and the oscillation capacitors C17 and C18 through the XI and XO pins, and is connected to the ground terminal GND through the GND pin. Among them, resistors R12 and R13 can be chip resistors, capacitors C13, C15, C17 and C18 can be chip capacitors, and the communication chip U4 used by the firmware read-write module 101 can support multiple types of SPIFlash. This is just an example, and the embodiment of the present application does not limit this.

[0098] Figure 6 is a circuit diagram of a path management module 106 provided in an embodiment of the present application. The path management module 106 may be a switch chip U5.

[0099] Pin IN can be connected with Figure 4 A state control signal output terminal of the state control unit 1042 is electrically connected, and the state control signal output terminal is used to output the DEV_BURNER signal.

[0100] The path management module 106 and the firmware reading and writing module 101 can be connected via an SPI bus. Figure 6 As shown, the S1D pin can be connected to Figure 5 The D0 pin of the firmware read-write module 101 is electrically connected to receive the chip select signal sent by the firmware read-write module 101 The S1A pin can be connected to Figure 5 The D3 pin of the firmware read-write module 101 is electrically connected to receive the clock signal CH_CLK_SPI0_CLK sent by the firmware read-write module 101. The S1B pin can be connected to Figure 5 The D5 pin of the firmware read / write module 101 is electrically connected, and the S1C pin can be electrically connected to Figure 5The D7 pin of the firmware read-write module 101 is electrically connected, CH_MISO_SPI_MISO is the master device input / slave device output pin, CH_MOSI_SPI_MOSI is the master device output / slave device input pin, and the firmware read-write module 101 can perform SPI communication with the path management module 106 through the CH_MISO_SPI_MISO pin and the CH_MOSI_SPI_MOSI pin.

[0101] The VCC pin and the EN pin can be connected to a VCC_3V3 power supply, and electrically connected to a ground terminal GND through capacitors C14 and C16. The capacitors C14 and C16 can be chip capacitors.

[0102] Like the pins S1A, S1B, S1C and S1D, the pins S2A, S2B, S2C and S2D can be used as SPI interfaces and respectively connected to the firmware storage module 102 through the SPI bus.

[0103] Figure 7 1 is a circuit diagram of a firmware storage module 102 provided in an embodiment of the present application. The firmware storage module 102 may be a SPI Flash chip U3. The firmware storage module 102 and Figure 6 The path management module 106 shown may be connected via a SPI bus.

[0104] like Figure 7 As shown, the CE# pin can be connected to Figure 6 The S2D pin of the path management module 106 is electrically connected to receive the chip select signal CS sent by the path management module 106, and the CE# pin can also be connected to the VCC_3V3 power supply through the resistor R6. The SCK pin can be connected to Figure 6 The SO pin can be electrically connected to the S2A pin of the path management module 106. Figure 6 The pin S2C of the path management module 106 is electrically connected, and the pin S1 can be electrically connected to Figure 6 The WP# pin can be connected to the VCC_3V3 power supply through the resistor R9, and the VSS pin and the HOLD# pin can be electrically connected to the ground terminal GND respectively. The VDD pin can be connected to the VCC_3V3 power supply and electrically connected to the ground terminal GND through the capacitors C11 and C12, and the capacitors C11 and C12 can be chip capacitors.

[0105] The firmware storage module 102 may also include an indicator light circuit, which is composed of a light emitting diode (LED). Figure 7As shown, the SCK pin of the firmware storage module 102 can be connected to the gate of the PMOS tube Q1, the source of the PMOS tube Q1 is connected to the VCC_3V3 power supply through the resistor R7, the drain of the PMOS tube Q1 is connected to the light-emitting diode LED3 through the resistor R10, and LED3 is electrically connected to the ground terminal GND. When the SCK pin sends a low-level signal to the PMOS tube Q1, the PMOS tube Q1 is turned on and LED3 emits light. Among them, LED3 can be a blue SMD LED. Alternatively, the indicator light circuit can also use an NMOS tube for switch control, the SCK pin can be connected to the gate of the NMOS tube, the source of the NMOS tube is connected to the light-emitting diode LED3, LED3 is also electrically connected to the ground terminal GND, and the drain of the NMOS tube is connected to the VCC_3V3 power supply. When the SCK pin sends a high-level signal to the NMOS tube, the NMOS tube is turned on and LED3 emits light.

[0106] Figure 8 1 is a circuit diagram of a programming interface module 103 provided in an embodiment of the present application. The programming interface module 103 adopts a probe interface, and the programming interface module 103 is electrically connected to the path management module 106 via an SPI bus. Figure 8 As shown, the programming interface module 103 includes CS, SCK, MOSI and MISO interfaces. Figure 6 The path management module 106 can be provided with an SPI interface connected to the programming interface module 103. The pins connecting the path management module 106 to the firmware storage module 102 are different from the pins connecting the path management module 106 to the programming interface module 103. JP2, JP4-JP9 and JP12-JP14 are jumper interfaces of the programming interface module 103, which are used to connect the device to be programmed 30. Among them, JP5 can be connected to Figure 3 JP2 and JP12 can be connected to the drain (D) of the first transistor of the power supply control unit 1041, that is, the PMOS tube Q4. JP5 can also be used to connect the power supply input terminal 301 of the device to be burned 30. Figure 4 The drains (D) of the NMOS transistors Q2 and Q3 of the state control unit 1042 are electrically connected respectively. JP2 and JP12 can also be used to connect the state control terminal 302 of the device to be burned 30 to send state control signals DEV_MODE and DEV_BURNER to the device to be burned 30. Figure 8 In the embodiment, D1 to D4 and D6 are electrostatic and surge protection units of the programming interface module 103 .

[0107] In the embodiment of the present application, the processor module 105 may further include a processor core unit 1053, and the processor core unit 1053 is electrically connected to the device state switching module 104. Specifically, the processor core unit 1053 may include a power supply control signal terminal and a state control signal terminal. Among them, the power supply control signal terminal is electrically connected to the power supply control unit 1041 of the device state switching module 104, and is used to send a first control signal to the power supply control unit 1041, and the state control signal terminal can be electrically connected to the state control unit 1042 of the device state switching module 104, and is used to send a second control signal to the state control unit 1042.

[0108] In a specific implementation, the power supply control signal terminal of the processor core unit 1053 can be electrically connected to the control electrode of the first transistor in the power supply control unit 1041, and the processor core unit 1053 can send a first control signal to the first transistor to control the first transistor to be turned on, so that the power supply connected to the second electrode of the first transistor supplies power to the power supply input terminal 301 of the device to be programmed 30 connected to the first electrode of the first transistor. The state control signal terminal of the processor core unit 1053 can be electrically connected to the control electrode of the second transistor in the state control unit 1042, respectively, and the processor core unit 1053 can send a second control signal to the second transistor to control the second transistor to be turned on, thereby sending a state control signal to the state control terminal 302 of the device to be programmed 30 connected to the first electrode of the second transistor, and controlling the device to be programmed 30 to perform offline programming.

[0109] In the embodiment of the present application, the processor core unit 1053 can control the power-on timing and working state of the device to be burned 30 by sending the first control signal and the second control signal to the device state switching module 104, that is, the device to be burned 30 is powered and the state control signal is sent to the device to be burned 30 through the device state switching module 104, so as to configure the device to be burned 30 to be in the offline burning state. Figure 3 and Figure 4In the device state switching module 104 shown, the first control signal can be a low-level signal. The processor core unit 1053 sends a low-level signal to the control electrode of the first transistor, that is, the gate of the PMOS tube Q4, so that the PMOS tube Q4 is turned on. The VCC_3V3 power supply connected to the PMOS tube Q4 can supply power to the device to be burned 30. The second control signal can include a first control sub-signal and a second control sub-signal. The first control sub-signal and the second control sub-signal can be high-level signals respectively. The second transistor includes an NMOS tube Q2 and an NMOS tube Q3. The processor core unit 1053 sends a high-level signal to the NMOS tube Q2 in the state control unit 1042, so that the NMOS tube Q2 in the state control unit 1042 is turned on. Then, the processor core unit 1053 sends a first state control sub-signal (DEV_MODE) to the device to be burned 30 through the NMOS tube Q2. At this time, the first state control sub-signal (DEV_MODE) is a high-level signal. The first state control sub-signal (DEV_MODE) is used to perform mode control on the device to be burned 30.

[0110] Similarly, the processor core unit 1053 sends a high-level signal to the NMOS tube Q3 in the state control unit 1042, so that the NMOS tube Q3 in the state control unit 1042 is turned on, and the processor core unit 1053 sends a second state control sub-signal (DEV_BURNER) to the device to be burned 30 through the NMOS tube Q3. At this time, the second state control sub-signal (DEV_BURNER) is a high-level signal, and the second state control sub-signal (DEV_BURNER) is used to perform burning control on the device to be burned 30.

[0111] like Fig. 9 As shown, the control signal transmitted by the VCC_PIN pin of the processor module 105 to send the first control signal to the PMOS tube Q4 changes from a high level signal to a low level signal, the control signal transmitted by the MODE_PIN pin of the processor module 105 to send the second control signal to the NMOS tube Q2 changes from a low level signal to a high level signal, and the control signal transmitted by the BURNER_PIN pin of the processor module 105 to send the second control signal to the NMOS tube Q3 changes from a low level signal to a high level signal, so that the device to be burned 30 can be configured to an offline burning state. The aforementioned state control signal includes a first state control sub-signal (DEV_MODE) and a second state control sub-signal (DEV_BURNER). Among them, the second state control sub-signal (DEV_BURNER) can also be used as a path switching control signal, which is sent by the device state switching module 104 to the control end of the path management module 106, thereby controlling the path management module 106 to switch the path of the firmware storage module 102 to the burning interface module 103.

[0112] In a specific implementation, the processor core unit 1053 may also send a third control signal to the first transistor to control the first transistor to be disconnected and stop supplying power to the power supply input terminal 301 of the device to be programmed 30. Figure 3 and Figure 4 In the device state switching module 104 shown, the third control signal may be a high-level signal, and the processor core unit 1053 sends a high-level signal to the gate of the PMOS tube Q4 of the power supply control unit 1041, so that the PMOS tube Q4 is disconnected, and the VCC_3V3 power supply connected to the PMOS tube Q4 stops supplying power to the device to be burned 30. The processor core unit 1053 sends a low-level signal to the NMOS tube Q2, so that the NMOS tube Q2 of the power supply control unit 1041 is disconnected, and the first state control sub-signal (DEV_MODE) is a low-level signal, and the second state control sub-signal (DEV_BURNER) may remain unchanged and still be a high-level signal.

[0113] like Fig.10 As shown, the control signal transmitted by the VCC_PIN pin changes from a low level signal to a high level signal, the control signal transmitted by the MODE_PIN pin changes from a high level signal to a low level signal, and the control signal transmitted by the BURNER_PIN pin changes from a high level signal to a low level signal. In this way, the device to be burned 30 can be configured to the standby state by the level changes of the two control signals.

[0114] In the embodiment of the present application, the processor core unit 1053 can control the power-on timing of the device to be burned 30 through the device state switching module 104, and can flexibly switch the device to be burned 30 between the offline burning state and the standby state, so as to avoid the burning process affecting the normal operation of the device to be burned 30, avoid damage to the device to be burned 30, reduce the operational risk of the burning process, improve the safety of the offline burning device 10, and enable the offline burning device 10 to adapt to different production environments and equipment specifications.

[0115] Optionally, the processor module 105 includes: a security authentication unit 1051 electrically connected to the firmware storage module 102;

[0116] The security authentication unit 1051 is used to encrypt the security authentication information sent by the second device 40 to obtain the security feature code of the target firmware.

[0117] In the embodiment of the present application, the second device 40 can be a host computer connected to the off-line burning device 10, and the second device 40 and the first device 20 can be the same host computer, or different host computers, which is not limited in the embodiment of the present application. In practical applications, the target firmware can be first burned from the first device 20 to the off-line burning device 10 and stored in the firmware storage module 102. Then, when the burning device 30 is to be burned, the off-line burning device 10 is electrically connected to the second device 40, and the target firmware is burned from the firmware storage module 102 to the device 30 to be burned under the control of the second device 40.

[0118] In the embodiment of the present application, the security authentication information may be a unique characteristic code of the device to be burned 30. Fig.12 As shown, the processor module 105 can be electrically connected to the second device 40 to receive the security authentication information sent by the second device 40. Among them, the processor module 105 can be electrically connected to the second device 40 through a USB bus. The user can configure the security authentication information to the security authentication unit 1051 of the processor module 105 through the USB interface of the second device 40. The security authentication unit 1051 can encrypt the security authentication information through an encryption algorithm, and obtain the security feature code of the target firmware according to the security authentication information and the encryption result. For example, the security authentication information may include: the software version number and message digest algorithm 5 (Message-Digest Algorithm 5, MD5) information of the target firmware, and the product PN code and hardware version number of the device 30 to be burned, etc. The four character strings of the product PN code, hardware version number, software version number and MD5 information of the complete firmware can be merged together to form a unique feature code of the device 30 to be burned as the security authentication information of the device 30 to be burned. This is only an example, and the embodiment of the present application is not limited to this.

[0119] In a specific implementation, the security authentication unit 1051 can use a national secret algorithm for encryption, such as the SM2 elliptic curve public key cryptographic algorithm. Specifically, the security authentication unit 1051 uses the SM2 private key to encrypt the security authentication information to generate a digital signature of the device to be burned 30, and the digital signature, firmware MD5 information, and SM2 public key can be used as the security feature code of the target firmware.

[0120] In the embodiment of the present application, the security authentication unit 1051 can send the security feature code of the target firmware to the firmware storage module 102 through the path management module 106, and the firmware storage module 102 stores it. When the device 30 to be burned is burned, the target firmware and the security feature code can be burned from the firmware storage module 102 to the device 30 to be burned.

[0121] In the present application embodiment, Fig.12As shown, the processor module 105 can be electrically connected to the firmware storage module 102 through the path management module 106. The security authentication unit 1051 of the processor module 105 can send the security feature code to the firmware storage module 102 through the path management module 106, and the firmware storage module 102 stores the security feature code.

[0122] In a specific embodiment, Fig.12 As shown, the security authentication unit 1051, the log recording unit 1052 and the processor core unit 1053 of the processor module 105 can be integrated inside the processor chip. The processor module 105 is also electrically connected to the second device 40, and the security authentication unit 1051 and the log recording unit 1052 are integrated in the processor module 105 chip. The processor module 105 can be electrically connected to the firmware storage module 102 through the path management module 106. The processor module 105 is also electrically connected to the device state switching module 104 for input / output (I / O) control, and the device 30 to be burned can be flexibly switched between the offline burning state and the standby state through the device state switching module 104.

[0123] like Fig.11 As shown, the processor core unit 1053 may be a processor chip U6, which is integrated into the processor 105 together with the security authentication unit 1051 and the log recording unit 1052. The processor chip U6 includes an SPI interface, namely pins 60 to 63, and the processor chip U6 can be connected to the SPI bus. Figure 6 The path management module 106 shown sends the security feature code to the firmware storage module 102 through the path management module 106 .

[0124] In an embodiment of the present application, the target firmware can be burned to the firmware burning address of the device to be burned 30, and the security feature code can be burned to the address where the firmware burning address is offset by a certain amount. Among them, the firmware burning address can be the internal address of the chip in the device to be burned 30, such as the internal address of the SPI Flash chip of the MCU. For example, the security feature code can be burned to the firmware burning address offset 0X100, and 0x400 represents 1KB. This is only an example, and the embodiment of the present application is not limited to this. The security feature code of the target firmware can be used to perform security authentication when the target firmware is burned to the burning device 30, so as to protect the security and consistency of the data.

[0125] In the embodiment of the present application, the security authentication unit 1051 is used to encrypt the security authentication information sent by the second device 40 to obtain the security feature code of the target firmware. Since the security authentication unit 1051 is electrically connected to the firmware storage module 102, the security authentication unit 1051 can send the security feature code to the firmware storage module 102 for storage. In this way, in actual applications, security authentication can be performed based on the security feature code of the target firmware in the firmware storage module 102, thereby improving the security of the burning process.

[0126] Optionally, the processor module 105 includes: a log recording unit 1052;

[0127] The log recording unit 1052 is used to connect to the device to be burned 30 and generate a target log according to the feedback information sent by the device to be burned 30.

[0128] In the present application embodiment, Fig.12 As shown, after the target firmware is burned into the device to be burned 30, the processor module 105 can configure the device to be burned 30 to a standby state through the device state switching module 104. In the standby state, the device to be burned 30 can perform security authentication according to the security feature code burned into the device to be burned together with the target firmware. If the security authentication is successful, it means that the target firmware is burned successfully, otherwise the burning fails.

[0129] In the embodiment of the present application, the device to be burned 30 can also be electrically connected to the offline burning device 10 through a serial port, and the device to be burned 30 can obtain feedback information according to the result of the security authentication, and send the feedback information through the serial port to the offline burning device 10. Specifically, the processor of the device to be burned 30 can be connected to the processor module 105 of the offline burning device 10 through a serial port, and the processor of the device to be burned 30 can send the feedback information to the processor module 105 of the offline burning device 10, so that the log recording unit 1052 in the processor module 105 generates a target log according to the feedback information.

[0130] For example, the device to be burned 30 can decrypt the digital signature according to the SM2 public key in the security feature code. If the firmware MD5 information obtained by decryption is consistent with the firmware MD5 information in the security feature code, it means that the security authentication is successful, otherwise the security authentication fails. Wherein, the firmware MD5 information can verify the firmware integrity. The device to be burned 30 can send the product PN coding obtained by decryption and the security authentication result to the log recording unit 1052 as feedback information.

[0131] In the embodiment of the present application, if the feedback information characterizes the success of burning target firmware of burning device 30, then the log recording unit 1052 can generate the first log according to the feedback information. If the feedback information characterizes the failure of burning target firmware of burning device 30, then the log recording unit 1052 can generate the second log according to the feedback information. For example, the first log can record the product PN coding of the successful burning, and the second log can record the product PN coding of the failed burning. Like this, it is convenient for the user to carry out troubleshooting and product quality tracing. It is only an example to illustrate here, and the embodiment of the present application is not limited to this.

[0132] In a specific implementation, the security authentication unit 1051, the log recording unit 1052 and the processor core unit 1053 of the processor module 105 may adopt an integrated processor chip, such as Fig.11 As shown, the processor chip U6 can serve as a processor core unit 1053 , integrating a security authentication unit 1051 and a log recording unit 1052 on the chip. Fig.11 The processor module 105 includes debugging interfaces, namely a clock interface, a reset interface, a test data input interface, a test data output interface connection and a mode selection interface. The processor module 105 also includes electrical configuration pins BS0 and BS1, Fig.11 The processor chip shown reads the configuration levels on the BS0 and BS1 pins when it boots up, thus determining the boot mode.

[0133] The processor module 105 also includes an SPI interface, including pins 60 to 63. The processor module 105 can be connected to the Figure 6 The path management module 106 shown sends the security feature code obtained by the security authentication unit 1051 to the firmware storage module 102 through the path management module 106 .

[0134] The processor module 105 also includes a power supply control signal terminal VCC_PIN and state control signal terminals MODE_PIN and BURNER_PIN. VCC_PIN can be connected to Figure 3 The gate of the PMOS tube Q4 in the middle, MODE_PIN can be connected Figure 4 The gate of the NMOS tube Q2 in the middle, BURNER_PIN can be connected Figure 4 The processor module 105 can send a high level signal or a low level signal to the MOS tube in the device state switching module 104 through the pins VCC_PIN, MODE_PIN and BURNER_PIN, respectively, so as to control the power-on timing of the device to be burned 30 through the device state switching module 104, so that the device to be burned 30 can be flexibly switched between the offline burning state and the standby state, so that the device to be burned 30 can adapt to different production environments and equipment specifications.

[0135] See also Fig.11 The processor module 105 may also include a Universal Asynchronous Receiver / Transmitter (UART) interface, including a signal transmitting end UART_TX and a signal receiving end UART_RX. The UART interface is used to connect to the device to be programmed 30. The UART interface is a physical interface form of serial communication. The processor module 105 can be connected to the UART interface of the processor in the device to be programmed 30 through a serial port, and can receive feedback information sent by the device to be programmed 30 through the UART interface. Figure 8 The burning interface module 103 shown, UART0_TX and UART0_RX of the processor module 105 can be electrically connected to the jumper interfaces JP13 and JP14 of the burning interface module 103. The processor module 105 can also be connected to the VCC_3V3 power supply and filtered through a capacitor. The processor module 105 is externally connected to crystal oscillators XT1 and XT2, resistors R21 and R22, and oscillation capacitors C27 to C30.

[0136] In the embodiment of the present application, the log recording unit 1052 is used to connect to the device to be burned 30, and generate a target log according to the feedback information sent by the device to be burned 30. In this way, the firmware burning result of the device to be burned 10 can be recorded through the target log, which is convenient for users to perform troubleshooting and product quality tracing.

[0137] Alternatively, if Fig.13 As shown, the off-line burning device 10 further includes: a power interface module 107 and a power management module 108;

[0138] The power interface module 107 is used to connect to an external power source;

[0139] The input end of the power management module 108 is electrically connected to the power interface module 107 , and the output end is electrically connected to the firmware read-write module 101 , the firmware storage module 102 , the burning interface module 103 , the device state switching module 104 , and the processor module 105 .

[0140] In the embodiment of the present application, the power supply of the offline burning device 10 itself can be a 5V direct current (DC) power supply, and the working voltage required by the offline burning device 10 can be 5V, 3.3V, etc. The power interface module 107 of the offline burning device 10 can be connected to an external power supply, and the external power supply can be a USB Type-C power supply or a lithium battery. The input end of the power management module 108 receives the power supply voltage input by the external power supply, and can supply power to the firmware reading and writing module 101, the firmware storage module 102, the burning interface module 103, the device state switching module 104, and the processor module 105. The power management module 108 can realize functions such as boosting and voltage stabilization, and provide the required working voltage for other modules. For example, the power management module 108 can manage the charge and discharge of the lithium battery, including overcharge protection, over-discharge protection, charging status indication, etc., which can improve the safety and stability of the lithium battery during the charging and discharging process, and prevent the battery from being damaged by overcharging or over-discharging. This is only an example, and the embodiment of the present application is not limited to this.

[0141] Optionally, the power interface module 107 includes:

[0142] A power interface unit 1071 for connecting to a universal serial bus power device; and / or a battery interface unit 1072 for connecting to an external battery.

[0143] In the embodiment of the present application, the power interface unit 1071 may be a Type-C power interface for connecting to a USB Type-C power source. The battery interface unit 1072 may be a lithium battery interface for connecting to a lithium battery. Fig.13 As shown, the power interface module 107 may include a power interface unit 1071 and a battery interface unit 1072, the power interface unit 1071 is a Type-C power interface, the battery interface unit 1072 is a lithium battery interface, the Type-C power interface and the lithium battery interface are electrically connected to the power management module 108 respectively, and the power management module 108 can supply power to each power module of the offline burning device 10, for example, the power management module 108 is electrically connected to the processor core unit 1053, and can provide 3.3V DC power to the processor core unit 1053.

[0144] In the embodiment of the present application, since the power interface module 107 includes a power interface unit 1071 and / or a battery interface unit 1072, the power interface unit 1071 is used to connect to a universal serial bus power supply device, and the battery interface unit 1072 is used to connect to an external battery. In this way, the offline burning device 10 can be powered by a USB power supply device or a battery, which can improve the practicality of the offline burning device 10 of the embodiment of the present application.

[0145] Alternatively, if Fig.13As shown, the power management module 108 includes: a boost unit 1081 and a voltage stabilizing unit 1082;

[0146] The input end of the boost unit 1081 is electrically connected to the power interface module 107;

[0147] The input end of the voltage stabilizing unit 1082 is electrically connected to the output end of the boosting unit 1081 , and the output end of the voltage stabilizing unit 1082 is electrically connected to the firmware reading and writing module 101 , the firmware storage module 102 , the burning interface module 103 , the device state switching module 104 , and the processor module 105 , respectively.

[0148] In the embodiment of the present application, if the power supply voltage of the external power supply is lower than the working voltage of each module, it is necessary to boost and stabilize the power supply voltage to provide a stable working voltage for each module. For example, if the external power supply is a 3.7V lithium battery and the working voltage of each module is 5V, the 3.7V voltage output by the lithium battery needs to be boosted to 5V. The power management module 108 can use a DC-DC boost circuit to complete the voltage boost, and then output a stable 5V voltage through a voltage regulator. Fig.13 As shown, the power interface module 107 includes a power interface unit 1071 and a battery interface unit 1072. The power interface unit 1071 is a Type-C power interface, and the battery interface unit 1072 is a lithium battery interface. The power management module 108 includes a boost unit 1081 and a voltage regulator unit 1082. The boost unit 1081 is a synchronous boost circuit, and the voltage regulator unit 1082 is a low dropout linear regulator (Low Drop Out, LDO). This is only an example, and the embodiments of the present application are not limited to this.

[0149] In the embodiment of the present application, since the input end of the boost unit 1081 is electrically connected to the power interface module 107, the input end of the voltage stabilizing unit 1082 is electrically connected to the output end of the boost unit 1081, and the output end of the voltage stabilizing unit 1082 is electrically connected to the firmware read-write module 101, the firmware storage module 102, the burning interface module 103, the device state switching module 104, and the processor module 105. In this way, the boost unit 1081 can provide the required power supply voltage for the offline burning device 10 and the device to be burned 30, and the voltage stabilizing unit 1082 can improve the stability of the power supply voltage, which can improve the safety of the offline burning device of the embodiment of the present application.

[0150] Fig.14 and Fig.15 1 is a circuit diagram of the power interface module 107 and the power management module 108 provided in an embodiment of the present application. Fig.14The boost unit chip U2 in the system is a built-in 5V / 0.3A, 1MHz output synchronous switching boost converter that can output a fixed voltage of 5V with an efficiency of 95%. The standby current is as low as 3μA, which can support long-term standby of lithium batteries. The Vin pin of chip U2 can be connected to the USB Type-C power supply, namely VCC_USB, and is also connected to fuse F1 and electrostatic and surge protection unit D5, and is filtered by capacitors C3 and C4. The ENBST pin of chip U2 can be connected to the power switch, and the power switch interface 3 can be connected to VBAT through resistor R2. Interface 1 of the power switch can be grounded through resistor R1, and interface 1 is electrically connected to interface 2. Users can manually control the lithium battery power supply through the power switch.

[0151] The power management module 108 may also include an indicator light circuit, such as Fig.14 As shown, the STAT pin and ISET pin of chip U2 can be connected to LED1 and LED2 respectively, LED1 and LED2 are connected to VCC_USB through resistor R5, and the ISET pin is also grounded through resistor R4. When the USB Type-C power supply is powered, the indicator circuit lights up to indicate that the offline burning device is powered by the USB Type-C power supply. The BAT pin of chip U2 can be connected to the lithium battery power supply, namely VBAT, and the SW pin of chip U2 can be connected to VBAT through the power inductor L1, and filtered by capacitors C9 and C10. The power inductor can reduce high-frequency signal interference, making the DC power more stable, and can also limit the current in the circuit to protect other components from being damaged by overload. The 5VOUT pin of chip U2 can output a 5V voltage, and is filtered by capacitors C1 and C2. Fig.14 In the embodiment, chip U1 is used to connect to the USB Type-C data interface of the host computer, and the A7 and A6 pins of chip U1 can be connected to the pins UD- and UD+ of the firmware read-write module 101 through the D- data line and the D+ data line respectively, so as to communicate between the host computer and the firmware read-write module 101.

[0152] Fig.15 The voltage regulator chip P1 in the circuit is a low-power LDO. In practical applications, a complementary metal oxide semiconductor (CMOS) step-down voltage regulator can be used, which has the advantages of high ripple suppression rate, low power consumption, low voltage drop, and over-current and short-circuit protection. The IN pin of the chip P1 can be connected to Fig.14 The 5VOUT pin of the middle chip U2 is electrically connected, and the OUT pin of the chip P1 can output a voltage of 3.3 V. The chip P1 is provided with an input filter component composed of capacitors C5 and C6, and an output filter component composed of capacitors C7 and C8.

[0153] In the embodiment of the present application, since the power interface module 107 is used to connect to an external power source, the input end of the power management module 108 is electrically connected to the power interface module 107, and the output end of the power management module 108 is electrically connected to the firmware read-write module 101, the firmware storage module 102, the burning interface module 103, the device state switching module 104, and the processor module 105. In this way, the external power source connected to the offline burning device 10 can be used to power each module of the offline burning device and the device to be burned 30, which can improve the practicality of the offline burning device 10 of the embodiment of the present application.

[0154] Fig.16 1 is a schematic diagram of an offline programming process of an offline programming device 10 provided in an embodiment of the present application. Fig.16 As shown, the user can package the chip firmware and the chip boot program into a target firmware in the host computer through a firmware synthesis tool. The host computer can burn the target firmware to the offline burning device 10 through the firmware read-write module 101 and store it in the firmware storage module 102. The host computer can also send security authentication information, such as product PN code, hardware version number, software version number and MD5 information of the complete firmware, to the processor module 101 of the offline burning device 10, so that the security authentication unit 1051 of the processor module 101 can perform security authentication of the target firmware. The offline burning device 10 can be used as a power supply device for the device 30 to be burned, and the external power supply of the offline burning device 10 outputs a power supply voltage to the device 30 to be burned, providing safe energy for the device 30 to be burned. The processor module 105 can configure the device to be burned 30 to an offline burning state through the electrically connected device state switching module 104 and the burning interface module 103 by configuring the power supply control signal terminal and the state control signal terminal, such as the level timing of the VCC_PIN, MODE_PIN, and NLBURNER_PIN pins.

[0155] See also Fig.16, the security authentication unit 1051 encrypts the security authentication information, obtains the security feature code of the target firmware, and sends the security feature code to the firmware storage module 102 for storage. The offline burning device 10 is connected to the device to be burned 30, and the target firmware and the security feature code are burned into the chip to be burned in the device to be burned 30. During the burning process, the device to be burned 30 can monitor the chip status to ensure the stability and reliability of the burning process. Specifically, the device to be burned 30 can be started using the chip boot program in the target firmware. At this time, the device to be burned 30 has been configured to be burned. Every time the boot program successfully copies a packet of data, the number of packets currently successfully copied + 1, so that the progress and status of the burning process can be known. After the target firmware is completely burned into the device to be burned 30, the processor core unit 1053 can configure the device to be burned 30 to the standby state through the electrically connected device state switching module 104 and the burning interface module 103 by configuring the power supply control signal terminal and the state control signal terminal, such as the level timing of the VCC_PIN, MODE_PIN, and NLBURNER_PIN pins.

[0156] See also Fig.16 In the standby state, the device to be burned 30 can perform security authentication according to the security feature code. If the security authentication is successful, it means that the target firmware is burned successfully, otherwise the burning fails. The device to be burned 30 will feedback information

[0157] The log recording unit 1052 of the processor module 105 in the offline burning device 10 records the product PN code of the successful burning if the security authentication is successful, otherwise the product PN code of the failed burning can be recorded, and the user is prompted that the burning failed through the indicator light circuit of the firmware storage module 101. In this way, it is convenient for users to perform troubleshooting and product quality tracing.

[0158] The offline burning device 10 of the embodiment of the present application has the advantages of high safety performance, strong adaptability, autonomous controllability, high efficiency and portable power supply. The offline burning device 10 of the embodiment of the present application configures the device to be burned to the offline burning state for firmware burning, which will not affect the normal operation of the device to be burned 30, avoids damaging the burning device 30, and can reduce the operational risk of the burning process. After the target firmware is stored in the firmware storage module 102, the operating authority of the firmware storage module 102 can be closed, so that the risk of firmware leakage can be avoided. When the target firmware is burned by the burning device 30, security authentication is carried out, which can prevent unauthorized access and data leakage, and protect the security and consistency of data. The offline burning device 10 of the embodiment of the present application can support various types of chip burning, such as the MCU of the LoongArch architecture, which can adapt to different production environments and equipment specifications.

[0159] The existing firmware burning requires the user to use a computer with a Linux system to connect to a debugger, and then the debugger is connected to the device to be burned 30. The user needs to manually input commands multiple times during the entire burning process, and the download status can only be known by checking the log returned by the debugger to the computer end, which is time-consuming and labor-intensive. The offline burning device 10 of the embodiment of the present application can dynamically switch the working state of the device to be burned 30, and completely burn the target firmware into the device to be burned 30 in the offline burning state, and the user no longer needs to input the burning command on the computer end, which reduces the time required for the burning process and can improve the burning efficiency.

[0160] In the embodiment of the present application, the offline burning device 10 includes a firmware read-write module 101, a firmware storage module 102, a burning interface module 103, a device state switching module 104 and a processor module 105. Since the firmware read-write module 101 is used to connect the first device 20, the firmware storage module 102 is electrically connected to the firmware read-write module 101, and the firmware storage module 102 is used to store the target firmware burned from the first device 20 to the offline burning device 10. In this way, the target firmware can be burned from the first device 20 to the offline burning device 10 through the firmware read-write module 101, and stored in the firmware storage module 102. The burning interface module 103 is electrically connected to the firmware storage module 102, the burning interface module 103 is used to connect the device to be burned 30, the device state switching module 104 is electrically connected to the burning interface module 103, the processor module 105 is electrically connected to the device state switching module 104, and the processor module 105 is used to configure the device to be burned 30 to the offline burning state through the device state switching module 104. In this way, the target firmware that has been burned into the firmware storage module 102 can be burned into the device 30 to be burned from the firmware storage module 102 through the burning interface module 103 in the offline burning state. Compared with the existing online burning method, the problem of instability of the device 30 to be burned caused by the interruption of real-time communication can be avoided, and the burning process can be avoided from affecting the normal operation of the device 30 to be burned, thereby avoiding damage to the device 30 to be burned, and improving safety.

[0161] The offline burning device provided by the utility model is introduced in detail above. The principle and implementation mode of the utility model are explained in this article by using specific examples. The description of the above embodiments is only used to help understand the method and core idea of ​​the utility model. At the same time, for those skilled in the art, according to the idea of ​​the utility model, there will be changes in the specific implementation mode and application scope. In summary, the content of this specification should not be understood as limiting the utility model.

Claims

1. An off-line burning device, characterized in that: include: Firmware reading and writing module, firmware storage module, burning interface module, device status switching module and processor module; The firmware reading and writing module is electrically connected to an external first device; The firmware storage module is electrically connected to the firmware read-write module; the firmware storage module is used to store the target firmware burned from the first device; The burning interface module is electrically connected to the firmware storage module; the burning interface module is used to connect to an external device to be burned; The device state switching module is electrically connected to the burning interface module; The processor module is electrically connected to the device state switching module; the processor module is used to configure the device to be burned to an offline burning state through the device state switching module.

2. The off-line burning device according to claim 1, characterized in that: The device state switching module includes: a power supply control unit and a state control unit; The power supply control unit is electrically connected to the programming interface module and the processor module respectively; the power supply control unit is used to connect to the power supply input terminal of the device to be programmed through the programming interface module; The state control unit is electrically connected to the programming interface module and the processor module respectively; the state control unit is used to connect to the state control terminal of the device to be programmed through the programming interface module.

3. The off-line burning device according to claim 2, characterized in that: The power supply control unit comprises: a first transistor; The control electrode of the first transistor is electrically connected to the processor module, and the first electrode of the first transistor is used to connect to the power supply input terminal through the burning interface module.

4. The off-line burning device according to claim 2, characterized in that: The state control unit includes: a second transistor; The control electrode of the second transistor is electrically connected to the processor module, and the first electrode of the second transistor is used to connect to the state control terminal through the burning interface module.

5. The off-line burning device according to any one of claims 1 to 4, characterized in that: The offline burning device also includes: a path management module; The path management module is electrically connected to the firmware reading and writing module, the firmware storage module and the burning interface module respectively; The control end of the path management module is electrically connected to the device state switching module.

6. The off-line burning device according to any one of claims 1 to 4, characterized in that: The offline burning device also includes: a power interface module and a power management module; The power interface module is used to connect to an external power source; The input end of the power management module is electrically connected to the power interface module, and the output end is electrically connected to the firmware read-write module, the firmware storage module, the burning interface module, the device state switching module, and the processor module respectively.

7. The off-line burning device according to claim 6, characterized in that: The power management module includes: a voltage boost unit and a voltage stabilization unit; The input end of the boost unit is electrically connected to the power interface module; The input end of the voltage stabilizing unit is electrically connected to the output end of the voltage boosting unit, and the output end is electrically connected to the firmware reading and writing module, the firmware storage module, the burning interface module, the device state switching module, and the processor module respectively.

8. The off-line burning device according to claim 6, characterized in that: The power interface module comprises: A power interface unit for connecting to a universal serial bus power supply device; and / or a battery interface unit for connecting to an external battery.

9. The off-line burning device according to any one of claims 1 to 4, characterized in that: The processor module includes: a security authentication unit electrically connected to the firmware storage module; The security authentication unit is used to encrypt the security authentication information sent by the second device to obtain the security feature code of the target firmware.

10. The off-line burning device according to any one of claims 1 to 4, characterized in that: The processor module includes: a log recording unit; The log recording unit is used to connect to the device to be burned, and generate a target log according to feedback information sent by the device to be burned.