Method, device and electronic equipment for automatic update of embedded application firmware

By adding configuration information to the application firmware library, the firmware is automatically updated based on the hardware version number and chip series ID, which solves the problems of difficult firmware verification and frequent updates caused by the compatibility of the burning device with multiple chips, and achieves stable and efficient device updates.

CN115904443BActive Publication Date: 2025-11-25SUZHOU HUAXIN MICROELECTRONICS
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202211574583.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-12-08
Publication Date
2025-11-25
Estimated Expiration
2042-12-08

AI Technical Summary

Technical Problem

In the current embedded software firmware update process, the burning device needs to be compatible with multiple chips, which makes firmware verification difficult and requires frequent updates, making the operation complex.

Method used

Add configuration information to the application firmware library, automatically update the firmware based on the hardware version number and configuration information of the device being burned, generate the corresponding firmware file with the corresponding extension by reading the configuration file and chip series ID, and restart the device when the hardware version number matches or the chip series is the same.

Benefits of technology

This technology enables the programming device to program different types of chips to meet various needs, simplifies the operation process, reduces the complexity and frequency of firmware updates, and improves the stability and efficiency of the device.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115904443B_ABST
    Figure CN115904443B_ABST
Patent Text Reader

Abstract

The application discloses a kind of embedded application firmware automatic updating method, device and electronic equipment, the method includes the following steps: application firmware is added configuration information in application firmware library;And according to the hardware version number of burning equipment and the configuration information in the application firmware library, update the current application firmware in the burning equipment.The method can be added the configuration information of application firmware in application firmware library, so that the burning equipment can be in the same type chip, and different requirements are burned, and different chips are time-sharingly burned, to realize the automatic updating of the application firmware of burning equipment, and simultaneously update firmware whether the special firmware, generation date and the same series firmware are determined whether the firmware needs to be downloaded this time.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the field of application firmware update, and in particular to a method, device and electronic equipment for automatically updating embedded application firmware. BACKGROUND

[0002] With the wide application of embedded systems in various industries, embedded software becomes more and more complex and diverse. In order to meet the application requirements, enhance the system's ability to adapt, reduce the development and production costs, and meet the slight changes between different customers.

[0003] In the field of MCU, a burning device needs to be compatible with the burning functions of hundreds of chips at the same time. If all the functions are integrated in one burning firmware program, once the burning function of a certain chip needs to be changed, the entire program needs to be changed, and the modification of the burning function of one chip may affect the functions of another chip. Therefore, the program may be in a constantly updated and unstable state, which increases the difficulty of firmware verification. If the burning program of each or several chips is written independently, although the above-mentioned problem is solved, the problem of frequent firmware update still exists. For the operator, it is necessary to know the chip model corresponding to each burning firmware program, so as to select the correct firmware to refresh the burning device, which makes it difficult for the operator to use the burning device.

[0004] The information disclosed in this section is only intended to increase the understanding of the overall background of the present application, and should not be regarded as acknowledging or implying in any form that the information constitutes prior art known to those skilled in the art. SUMMARY

[0005] The present application aims to provide a method, device and electronic equipment for automatically updating embedded application firmware, which solves the problem that the application firmware in the burning device cannot be updated stably as needed.

[0006] To achieve the above-mentioned purpose, the embodiments of the present application provide a method for automatically updating embedded application firmware.

[0007] In one or more embodiments of the present application, the method comprises: adding configuration information to the application firmware in the application firmware library; and updating the current application firmware in the burning device according to the hardware version number of the burning device and the configuration information in the application firmware library.

[0008] In one or more embodiments of the present application, the adding configuration information to the application firmware in the application firmware library comprises: reading the configuration file and the application firmware and displaying corresponding information on an operation interface; selecting a corresponding hardware version and chip series on the operation interface; and adding an information package in front of the application firmware and generating an application firmware file with a corresponding extension according to the hardware version number.

[0009] In one or more embodiments of the present application, the reading the configuration file and the application firmware and displaying corresponding information on an operation interface comprises: reading a configuration file in a fixed format, wherein the configuration file in the fixed format comprises but is not limited to a chip name, a chip ID and a chip series ID; reading a hardware configuration file according to a hardware version number; and reading an application firmware which needs to add configuration information from an application firmware library.

[0010] In one or more embodiments of the present application, the updating the current application firmware in the burning device according to the hardware version number of the burning device and the configuration information in the application firmware library comprises: obtaining a hardware version number of the burning device, a generation time of the application firmware and a version of the application firmware; obtaining a corresponding application firmware file from the application firmware library according to the hardware version number of the burning device and the configuration information of the application firmware; judging whether a chip series of the application firmware obtained from the application firmware library and a chip series of the current application firmware in the burning device are in the same series; if not, judging whether the generation time of the current application firmware is earlier than the generation time of the application firmware obtained from the application firmware library; if not, judging whether the current application firmware is a special firmware; if not, selecting a corresponding application firmware file from the application firmware library to update the current application firmware, and restarting the burning device to make the burning device enter a normal operation mode.

[0011] In one or more embodiments of the present application, the method further comprises: when the chip series of the application firmware obtained from the application firmware library and the chip series of the current application firmware in the burning device are in the same series, or when the generation time of the current application firmware is earlier than the generation time of the application firmware obtained from the application firmware library, or when the current firmware is a special firmware, restarting the burning device to make the burning device enter a normal operation mode.

[0012] In one or more embodiments of the present application, the information package comprises: a communication header, a file version, a series ID, a time, a 512 address starting to store 64 hardware version lists and a 768 address starting to store 128 chip lists.

[0013] In one or more embodiments of the present application, the method further comprises: the burning device is provided with a hardware version number capable of being read; and the application firmware is provided with a specified communication protocol.

[0014] In another aspect of the present application, a device for automatic updating of embedded application firmware is provided, which comprises a configuration module and an updating module.

[0015] The configuration module is configured to add configuration information to the application firmware in an application firmware library.

[0016] The updating module is configured to update a current application firmware in the burning device according to a hardware version number of the burning device and the configuration information in the application firmware library.

[0017] In one or more embodiments of the present application, the configuration module is further configured to: read a configuration file and the application firmware, and display corresponding information on an operation interface; select a corresponding hardware version and a chip series on the operation interface; and add an information package in front of the application firmware, and generate an application firmware file with a corresponding extension according to the hardware version number.

[0018] In one or more embodiments of the present application, the configuration module is further configured to: read a configuration file in a fixed format, wherein the configuration file in the fixed format includes but is not limited to a chip name, a chip ID, and a chip series ID; read a hardware configuration file according to a hardware version number; and read an application firmware which needs to add configuration information from an application firmware library.

[0019] In one or more embodiments of the present application, the updating module is further configured to: obtain a hardware version number of the burning device, a generation time of the application firmware, and a version of the application firmware; obtain a corresponding application firmware file and configuration information of the application firmware from the application firmware library according to the hardware version number of the burning device; determine whether a chip series of the application firmware obtained from the application firmware library and a chip series of a current application firmware in the burning device are in the same series; if not, determine whether the generation time of the current application firmware is earlier than the generation time of the application firmware obtained from the application firmware library; if not, determine whether the current application firmware is a special firmware; if not, select a corresponding application firmware file from the application firmware library to update the current application firmware, and restart the burning device so that the burning device enters a normal operation mode.

[0020] In one or more embodiments of the present application, the update module is further configured to: restart the burning device and make the burning device enter a normal operation mode when the chip series of the application firmware obtained from the application firmware library and the chip series of the current application firmware in the burning device are the same series, or when the generation time of the current application firmware is earlier than the generation time of the application firmware obtained from the application firmware library, or when the current firmware is a special firmware.

[0021] In one or more embodiments of the present application, the information package comprises: a communication header, a file version, a series ID, a time, a 512 address starting to store 64 hardware version lists, and a 768 address starting to store 128 chip lists.

[0022] In one or more embodiments of the present application, the burning device is provided with a hardware version number capable of being read, and the application firmware is provided with a specified communication protocol.

[0023] In another aspect of the present application, an electronic device is provided, comprising: at least one processor; and a memory storing instructions which, when executed by the at least one processor, cause the at least one processor to perform the method for automatically updating embedded application firmware as described above.

[0024] In another aspect of the present application, a computer readable storage medium is provided, the computer readable storage medium storing a computer program which, when executed by a processor, implements the steps of the method for automatically updating embedded application firmware as described.

[0025] Compared with the prior art, the method, device and electronic device for automatically updating embedded application firmware according to the embodiments of the present application can add configuration information of application firmware in an application firmware library, so that the burning device can perform burning with different requirements when the chips are of the same type, perform time-sharing burning of different chips, and thus realize automatic updating of the application firmware of the burning device. BRIEF DESCRIPTION OF DRAWINGS

[0026] Figure 1 is a flowchart of the method for automatically updating embedded application firmware according to an embodiment of the present application;

[0027] Figure 2 is a configuration flowchart of the method for automatically updating embedded application firmware according to an embodiment of the present application;

[0028] Figure 3 is a schematic diagram of an operation interface of the method for automatically updating embedded application firmware according to an embodiment of the present application;

[0029] Figure 4is a flow chart of an updating method of the automatic updating method of embedded application firmware according to an embodiment of the present application;

[0030] Figure 5 is a structural diagram of the automatic updating device of embedded application firmware according to an embodiment of the present application;

[0031] Figure 6 is a hardware structural diagram of the computing device of the automatic updating device of embedded application firmware according to an embodiment of the present application. DETAILED DESCRIPTION

[0032] The specific embodiments of the present application are described in detail below with reference to the accompanying drawings, but the protection scope of the present application is not limited by the specific embodiments.

[0033] Unless otherwise clearly indicated, in the entire specification and claims, the term "comprise" or its variants such as "contain" or "include" etc. will be understood to include the stated element or component, but not to exclude the presence of other elements or components.

[0034] The technical solutions provided by the embodiments of the present application are described in detail below with reference to the accompanying drawings.

[0035] Embodiment 1

[0036] As shown in Figures 1 to 4 , a method of automatic updating of embedded application firmware in an embodiment of the present application is introduced, which comprises the following steps.

[0037] In step S101, configuration information is added to the application firmware in the application firmware library.

[0038] As shown in Figure 2 , in the application firmware library (a group of application firmware files in a fixed folder), all possible application firmware (with extension.bin) is placed, the software for adding configuration information is opened, the fixed format configuration file is read, and the fixed format configuration file includes but is not limited to chip name, chip ID, and chip series ID; the hardware configuration file (hardware version information) is read according to the hardware version number of the burning device, and each hardware corresponds to a hardware configuration file; the application firmware which wants to add configuration information is read from the application firmware library, and the information read above is displayed on the operation interface (as shown in Figure 3 ).

[0039] Select the corresponding hardware version and chip series on the operation interface, and add a package to the application firmware according to the information collected in the above steps, wherein the package includes but is not limited to: (1) a 4-byte communication header, (2) a 2-byte file version, (3) a 2-byte series ID, (4) a 4-byte current date and time information, (5) a 512 address starting to store 64 hardware version lists, and (6) a 768 address starting to store 128 chip lists. Finally, generate an application firmware file with a corresponding extension according to the hardware version number.

[0040] A hardware version list is formed in a fixed format for adding firmware configuration information; different devices set the version number in the hardware list; and configuration information is added according to the firmware generation date, generation version, whether it is special firmware, and the corresponding hardware version.

[0041] In this embodiment, the burning device has a hardware version number that can be read, and the application firmware has a part of the necessary communication protocol, such as reading the hardware version number and uploading it to the host computer, reading the current application firmware type whether it is a special firmware identifier and uploading it to the host computer, reading the application firmware generation date and uploading it to the host computer, and storing the current compilation time when compiling.

[0042] In step S102, the current application firmware in the burning device is updated according to the hardware version number of the burning device and the configuration information in the application firmware library.

[0043] The generated application firmware library is placed in the host computer software package, the host computer software is opened, the chip is selected, the CCS file is opened, the download is clicked, and after the download is completed, the current firmware program in the burning device is communicated.

[0044] The hardware version number of the burning device, the generation time of the application firmware, and the version of the application firmware are obtained; if the above information reading fails, the burning device is restarted, the burning device enters the normal operation mode, and the program download and application firmware update process ends; if the above information reading is successful, the host computer reads the file with a corresponding extension in the application firmware library according to the hardware version number of the burning device, and obtains the configuration information of the corresponding application firmware.

[0045] If the chip series of the application firmware obtained from the application firmware library and the chip series of the current application firmware in the burning device are the same, the burning device is restarted, the burning device enters the normal operation mode, and the program downloading and firmware updating process ends. If the chip series are not the same, whether the generation time of the current application firmware is earlier than the generation time of the application firmware obtained from the application firmware library is compared. If the generation time of the current application firmware is earlier, the burning device is restarted, the burning device enters the normal operation mode, and the program downloading and firmware updating process ends. If the generation time of the current application firmware is not earlier, whether the type of the application firmware read by communication is special firmware is judged. If the type of the application firmware is not special firmware, the burning device is restarted, the burning device enters the normal operation mode, and the program downloading and firmware updating process ends. If the type of the application firmware is special firmware, the corresponding application firmware file is selected from the application firmware library to update the current application firmware, and the burning device is restarted to make the burning device enter the normal operation mode.

[0046] The embedded application firmware automatic updating method, device and electronic equipment according to the embodiment of the application can add configuration information of application firmware in an application firmware library, so that the burning device can perform burning of different requirements and time-sharing burning of different chips when the chips are of the same type, thereby realizing automatic updating of the application firmware of the burning device.

[0047] As shown in Figure 5 , the embedded application firmware automatic updating device according to the embodiment of the application is introduced.

[0048] In the embodiment of the application, the embedded application firmware automatic updating device comprises a configuration module 501 and an updating module 502.

[0049] The configuration module 501 is configured to add configuration information to the application firmware in the application firmware library.

[0050] The updating module 502 is configured to update the current application firmware in the burning device according to the hardware version number of the burning device and the configuration information in the application firmware library.

[0051] The configuration module 501 is further configured to read the configuration file and the application firmware, and display the corresponding information on an operation interface; select the corresponding hardware version and chip series on the operation interface; and add an information package in front of the application firmware, and generate an application firmware file with a corresponding extension according to the hardware version number.

[0052] The configuration module 501 is further configured to read a configuration file in a fixed format, wherein the configuration file in the fixed format comprises but is not limited to a chip name, a chip ID and a chip series ID; read a hardware configuration file according to the hardware version number; and read the application firmware which needs to add configuration information from the application firmware library.

[0053] The updating module 502 is further configured to: acquire a hardware version number of the burning device, a generation time of the application firmware and a version of the application firmware; acquire corresponding application firmware files and configuration information of the application firmware from the application firmware library according to the hardware version number of the burning device; determine whether the chip series of the application firmware acquired from the application firmware library and the chip series of the current application firmware in the burning device are the same; if not, determine whether the generation time of the current application firmware is earlier than the generation time of the application firmware acquired from the application firmware library; if not, determine whether the current application firmware is a special firmware; if not, select corresponding application firmware files from the application firmware library to update the current application firmware, and restart the burning device to make the burning device enter a normal operation mode.

[0054] The updating module 502 is further configured to: when the chip series of the application firmware acquired from the application firmware library and the chip series of the current application firmware in the burning device are the same, or when the generation time of the current application firmware is earlier than the generation time of the application firmware acquired from the application firmware library, or when the current firmware is a special firmware, restart the burning device to make the burning device enter a normal operation mode.

[0055] In the embodiment, the information package includes: a communication header, a file version, a series ID, a time, 512 address starting to store 64 hardware version lists and 768 address starting to store 128 chip lists. The burning device has a readable hardware version number; and the application firmware has a specified communication protocol.

[0056] Figure 6 A hardware structure diagram of a computing device 60 for automatic updating of embedded application firmware according to an embodiment of the present specification is shown. As shown in Figure 6 The computing device 60 can include at least one processor 601, a memory 602 (for example, a non-volatile memory), an internal memory 603 and a communication interface 604, and the at least one processor 601, the memory 602, the internal memory 603 and the communication interface 604 are connected together via a bus 605. The at least one processor 601 executes at least one computer readable instruction stored or encoded in the memory 602.

[0057] It should be understood that the computer executable instructions stored in the memory 602, when executed, cause the at least one processor 601 to perform various operations and functions described above in combination with the Figures 1-6 various embodiments of the present specification.

[0058] In embodiments of the present specification, computing device 60 can include, but is not limited to, a personal computer, a server computer, a work station, a desktop computer, a laptop computer, a notebook computer, a mobile computing device, a smart phone, a tablet computer, a cellular phone, a personal digital assistant (PDA), a handheld device, a messaging device, a wearable computing device, a consumer electronic device, and the like.

[0059] According to one embodiment, a program product, such as a machine-readable medium, is provided. The machine-readable medium can have instructions (i.e., the aforementioned elements embodied in software) stored therein, which when executed by a machine, cause the machine to perform the various embodiments described in this specification. Figures 1-6 The various operations and functions described. Specifically, a system or apparatus can be provided with a readable storage medium having stored thereon software program code implementing the functions of any of the embodiments described above, and causing a computer or processor of the system or apparatus to read and execute the instructions stored in the readable storage medium.

[0060] The embedded application firmware automatic updating method, device and electronic equipment according to the embodiments of the present application can add the configuration information of the application firmware in the application firmware library, so that the burning device can perform burning with different requirements and time-sharing burning of different chips when the chips are of the same type, thereby realizing the automatic updating of the application firmware of the burning device.

[0061] Those skilled in the art will appreciate that embodiments of the present application can be supplied as a method, a system, or a computer program product. Thus, the present application can take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present application can take the form of a computer program product on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROMs, optical storage media, etc.) having computer usable program code embodied in the medium.

[0062] The present application is described with reference to the flowcharts and / or block diagrams of the methods, apparatus (systems) and computer program products according to the embodiments of the present application. It should be understood that each flow and / or block in the flowcharts and / or block diagrams, as well as combinations of flows and / or blocks in the flowcharts and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing apparatus to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing apparatus produce the functions specified in the flowcharts and / or block diagrams. Figure 1 The functions specified in a flow or multiple flows and / or blocks Figure 1 The functions specified in a flow or multiple flows and / or blocks

[0063] These computer program instructions can also be stored in a computer- readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instructions which implement the Figure 1 function specified in the flow or flows and / or blocks Figure 1 of the block or blocks.

[0064] The computer program instructions can also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions that are executed on the computer or other programmable apparatus provide steps for implementing the Figure 1 function specified in the flow or flows and / or blocks Figure 1 of the block or blocks.

[0065] The foregoing description of specific exemplary embodiments of the application has been presented for the purposes of illustration and description. It is not intended to be exhaustive or to limit the application to the precise form disclosed, and various modifications and variations are possible in light of the above teachings. It is intended that the scope of the application be limited not with the specific examples presented, but rather by the claims appended hereto.

Claims

1. A method for automatic firmware updates in embedded applications, characterized in that, The method includes: Add configuration information to the application firmware in the application firmware library, and place all potentially used application firmware in the application firmware library; and Update the current application firmware in the burning device according to the hardware version number of the burning device and the configuration information in the application firmware library; The step of updating the current application firmware in the burning device based on the hardware version number of the burning device and the configuration information in the application firmware library includes: obtaining the hardware version number of the burning device, the generation time of the application firmware, and the version of the application firmware; obtaining the corresponding application firmware file and the configuration information of the application firmware from the application firmware library based on the hardware version number of the burning device; determining whether the chip series of the application firmware obtained from the application firmware library and the chip series of the current application firmware in the burning device are of the same series; if not, determining whether the generation time of the current application firmware is earlier than the generation time of the application firmware obtained from the application firmware library; if not, determining whether the current application firmware is special firmware; if not, selecting the corresponding application firmware file from the application firmware library to update the current application firmware, and restarting the burning device to put the burning device into normal operating mode.

2. The method for automatic firmware update of embedded applications as described in claim 1, characterized in that, Adding configuration information to the application firmware in the application firmware library includes: Read the configuration file and application firmware, and display the corresponding information on the operation interface; Select the corresponding hardware version and chip series on the user interface; and An information packet is added before the application firmware, and an application firmware file with the corresponding extension is generated according to the hardware version number.

3. The method for automatic firmware update of embedded applications as described in claim 2, characterized in that, The process of reading the configuration file and application firmware, and displaying the corresponding information on the operation interface, includes: Read a configuration file in a fixed format, wherein the configuration file in a fixed format includes, but is not limited to, chip name, chip ID, and chip series ID; Read the hardware configuration file based on the hardware version number; and Read the application firmware that needs additional configuration information from the application firmware library.

4. The method for automatic firmware update of embedded applications as described in claim 2, characterized in that, The method further includes: When the chip series of the application firmware obtained from the application firmware library and the chip series of the current application firmware in the burning device are the same series, or when the generation time of the current application firmware is earlier than the generation time of the application firmware obtained from the application firmware library, or when the current firmware is a special firmware, the burning device is restarted to put the burning device into normal operation mode.

5. The method for automatic firmware update of embedded applications as described in claim 2, characterized in that, The information packet includes: a communication header, file version, series ID, time, a list of 64 hardware versions starting at address 512, and a list of 128 chips starting at address 768.

6. The method for automatic firmware update of embedded applications as described in claim 1, characterized in that, The method further includes: The programming device has a readable hardware version number; and The application firmware has a specified communication protocol.

7. An apparatus for automatic firmware update of embedded applications, applied to the method for automatic firmware update of embedded applications as described in any one of claims 1-6, characterized in that, The device includes: The configuration module is used to add configuration information to the application firmware in the application firmware library; and The update module is used to update the current application firmware in the burning device according to the hardware version number of the burning device and the configuration information in the application firmware library.

8. An electronic device, characterized in that, include: At least one processor; as well as A memory that stores instructions, when executed by the at least one processor, cause the at least one processor to perform the method for automatic firmware update of an embedded application as described in any one of claims 1 to 6.

9. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program that, when executed by a processor, implements the steps of the method for automatic firmware update of embedded applications as described in any one of claims 1 to 6.

Citation Information

Patent Citations

  • Firmware updating method and system, lower computer and storage medium

    CN115098139A