Software upgrading method and device for processing kernel, electronic equipment and storage medium

Automatically obtaining and writing upgrade files through the serial terminal device, solving the problem of low efficiency of manual upgrade errors in the existing technology, realizing automatic upgrade of the processing kernel, and improving the software upgrade efficiency and success rate of the multi-processing kernel.

CN119248322APending Publication Date: 2025-01-03TIANJIN JINHANG COMP TECH RES INST
View PDF 0 Cites 2 Cited by

Patent Information

Application Number
CN202411456658.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-10-18
Publication Date
2025-01-03

AI Technical Summary

Technical Problem

The existing processing kernel software upgrade method requires manual intervention, which is prone to errors and is inefficient, and can only burn one processor, which makes it impossible for multi-processing cores to play the advantages of parallel processing, resulting in wasting hardware resources.

Method used

Connect the serial terminal device through the serial port, send information collection instructions to receive control information, and automatically obtain and write upgrade files according to the processing kernel serial number to be upgraded, realizing automatic upgrade, saving manpower, and improving upgrade efficiency.

Benefits of technology

It realizes the automated upgrade of processing kernel software, reduces human errors, improves upgrade efficiency, saves time, and ensures the advantages of parallel processing of multi-processing kernels.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119248322A_ABST
    Figure CN119248322A_ABST
Patent Text Reader

Abstract

The invention provides a software upgrading method and device of a processing kernel, electronic equipment and a storage medium, and particularly relates to the technical field of software upgrading of the processing kernel. The method comprises the following steps: a processing system sends an information collection instruction to serial port terminal equipment; receiving control information fed back by the serial port terminal equipment according to the information collection instruction; wherein the control information comprises a serial number of the processing kernel to be upgraded; obtaining an upgrading file sent by the serial port terminal equipment; and programming the upgrading file according to the serial number of the to-be-upgraded processing kernel, generating programming data corresponding to the upgrading file, and upgrading software of the to-be-upgraded processing kernel according to the programming data. According to the method, the manpower is saved, the upgrading time of the software for processing the kernel is saved, and the upgrading efficiency of the software for processing the kernel is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of software upgrade of a processing core, and in particular to a method, device, electronic device and storage medium for software upgrade of a processing core. Background Art

[0002] In the fields of aerospace, industrial control, etc., it is often necessary to maintain equipment and update software. Software upgrades are generally done by burning an emulator or upgrading through a serial port. Emulator burning has now been basically eliminated because it requires disassembly of the equipment.

[0003] The serial port upgrade method generally uses manual input of commands for burning, and the burning can only be performed once or only for one processor. With the manual input method, human errors may cause the upgrade to fail, resulting in the need for multiple upgrades. Only one processor or processing core can be burned, which will cause a waste of multiple processing cores and fail to give full play to the parallel processing advantages of multiple processing cores, resulting in a great waste of hardware resources.

[0004] Therefore, the method of upgrading the processing kernel by manual burning is prone to errors, and low upgrading efficiency is an existing problem.

[0005] Application Contents In view of this, the purpose of this application is to provide a software upgrade method, device, electronic device and storage medium for a processing kernel to solve the above-mentioned problems, realize automatic upgrading of the software of the processing kernel, save manpower and improve the upgrading efficiency of the software of the processing kernel.

[0006] In a first aspect, an embodiment of the present application provides a method for upgrading software of a processing core, which is applied to a processing system, wherein the processing system includes multiple processing cores, and the processing system is connected to a serial port terminal device via a serial port; the serial port terminal device pre-stores an upgrade file; the method includes: The processing system sends an information collection instruction to the serial port terminal device; The processing system receives control information fed back by the serial port terminal device according to the information collection instruction; wherein the control information includes the serial number of the processing core to be upgraded; The processing system obtains the upgrade file sent by the serial port terminal device; The processing system burns the upgrade file according to the serial number of the processing core to be upgraded, generates burning data corresponding to the upgrade file, and upgrades the software of the processing core to be upgraded according to the burning data.

[0007] Preferably, the control information further includes: a preset burning position corresponding to the serial number of the processing core to be upgraded; The processing system burns the upgrade file according to the serial number of the processing core to be upgraded, and generates the burning data corresponding to the upgrade file, including: The processing system determines the target burning position of the upgrade file according to the preset burning position corresponding to the serial number of the processing core to be upgraded; The processing system burns the upgrade file into the target burning location of the upgrade file and generates burning data corresponding to the upgrade file.

[0008] Preferably, the control information further includes: a serial number of a processing core to be run; and the method further includes: The processing system runs the burning data corresponding to the upgrade file according to the sequence number of the processing core to be run.

[0009] Preferably, the control information further includes: a preset loading position corresponding to the serial number of the processing core to be run and the memory length occupied by the upgrade file; The processing system runs the step of burning data corresponding to the upgrade file according to the sequence number of the processing core to be run, including: The processing system determines the target base address of the burning data corresponding to the upgrade file according to the preset loading position corresponding to the processing core to be run; The processing system determines the target memory space of the burning data corresponding to the upgrade file according to the target base address of the burning data corresponding to the upgrade file; The processing system reads the burning data corresponding to the upgrade file according to the memory length occupied by the upgrade file; The processing system moves the burning data corresponding to the upgrade file to the target memory space of the burning data corresponding to the upgrade file; The processing system runs the burning data corresponding to the upgrade file in the target memory space of the burning data corresponding to the upgrade file.

[0010] Preferably, the method further comprises: The processing system sends a request to start an upgrade instruction to the serial port terminal device; If the processing system receives the upgrade start instruction fed back by the serial port terminal device according to the upgrade start request instruction within a preset time, the processing system generates the information collection instruction.

[0011] Preferably, the method further comprises: If the processing system does not receive the upgrade startup instruction fed back by the serial port terminal device according to the upgrade startup instruction request within a preset time, the processing system runs the burning data corresponding to the pre-stored upgrade file.

[0012] Preferably, the method further comprises: The processing system burns the upgrade file according to the sequence number of the next processing core to be upgraded, and generates next burning data corresponding to the upgrade file.

[0013] The software upgrade method for the processing core provided by this application brings the following beneficial effects: The present application provides a method for upgrading the software of a processing core, in which a processing system receives control information fed back by a serial terminal device according to an information collection instruction, burns an upgrade file according to the sequence number of the processing core to be upgraded, generates burning data corresponding to the upgrade file, and upgrades the software of the processing core to be upgraded according to the burning data. The method saves manpower, saves the upgrade time of the processing core to be upgraded, and improves the upgrade efficiency of the software of the processing core to be upgraded.

[0014] In a second aspect, the present application further provides a software upgrade system for a processing core, the processing system comprising a plurality of processing cores, the processing system being connected to a serial port terminal device via a serial port; the serial port terminal device pre-stores an upgrade file; A sending module, used for sending an information collection instruction to the serial port terminal device; An acquisition module, configured to receive control information fed back by the serial port terminal device according to the information collection instruction; wherein the control information includes the serial number of the processing core to be upgraded; The acquisition module is also used to acquire the upgrade file sent by the serial port terminal device; The control module is used to burn the upgrade file according to the serial number of the processing core to be upgraded, generate the burning data corresponding to the upgrade file, and upgrade the software of the processing core to be upgraded according to the burning data.

[0015] The software upgrade device for the processing core provided in the embodiment of the present application has the same technical features as the software upgrade method for the processing core provided in the above-mentioned embodiment, so it can also solve the same technical problems and achieve the same technical effects.

[0016] In a third aspect, the present application also provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, the beneficial effects of any of the methods described above are achieved, which will not be repeated here.

[0017] In a fourth aspect, the present application further provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the beneficial effects of any of the methods described above are achieved, which will not be repeated here.

[0018] Other features and advantages of the present application will be described in the following description, and partly become apparent from the description, or understood by practicing the present application. The purpose and other advantages of the present application are realized and obtained by the structures particularly pointed out in the description and the drawings.

[0019] In order to make the above-mentioned objects, features and advantages of the present application more obvious and easy to understand, preferred embodiments are specifically cited below and described in detail with reference to the attached drawings. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0021] Figure 1 A flowchart of a method for upgrading software of a processing core provided in an embodiment of the present application; Figure 2 A diagram showing the connection relationship between the processing system and the serial port terminal device provided in the embodiment of the present application; Figure 3 A schematic diagram of the FLASH module structure provided in an embodiment of the present application; Figure 4 A schematic diagram of the DDR module structure provided in an embodiment of the present application; Figure 5 A schematic diagram of the structure of a software upgrade device for a processing core provided in an embodiment of the present application; Figure 6 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

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

[0023] To facilitate understanding of this embodiment, the embodiments of the present application are described in detail below.

[0024] The embodiment of the present application provides a method for upgrading software of a processing core, which is applied to a processing system, wherein the processing system includes a plurality of processing cores, and the processing system is connected to a serial terminal device via a serial port; the serial terminal device pre-stores an upgrade file; Figure 1 As shown, Figure 1 A flowchart of a method for upgrading the software of a processing kernel provided in an embodiment of the present application. The method comprises the following steps: S101, the processing system sends an information collection instruction to a serial port terminal device.

[0025] Specifically, the above-mentioned processing system is equipped with PSOC (Programmable System-on-Chip) of Fudan Microelectronics. The model of PSOC is JFMQL15T485. PSOC integrates PS (Processing System) and PL (Programmable Logic) of a quad-core processor with rich features on a single chip. Among them, PS is the core of PSOC. PS works together with on-chip memory, DDR (Double Data Rate) interface, various system functional components, peripheral I / O (Input / Output) interface and PL to form a feature-rich programmable system on chip. Figure 2 As shown, Figure 2 A connection relationship diagram of a processing system and a serial terminal device provided in an embodiment of the present application. The processing system 200 is connected to the serial terminal device 300 via an RS-232 serial port. The above-mentioned processing cores include processing core 0, processing core 1, processing core 2, and processing core 3. Bootloader software is provided in processing core 0. Processing core 0 upgrades the software of the above-mentioned processing cores through the bootloader software. The bootloader software generates the above-mentioned information collection instruction.

[0026] The information collection instruction includes: requesting the serial port terminal device 300 to send the serial number of the processing core to be upgraded, requesting the serial port terminal device 300 to send the serial number of the processing core to be run, requesting the serial port terminal device 300 to send the preset burning position corresponding to the serial number of the processing core to be upgraded, requesting the serial port terminal device 300 to send the preset loading position corresponding to the serial number of the processing core to be run, and requesting the serial port terminal device 300 to send the memory length occupied by the upgrade file. The information collection instruction is used to request the serial port terminal device to send control information.

[0027] S102, the processing system receives control information fed back by the serial port terminal device according to the information collection instruction.

[0028] The control information includes the serial number of the processing core to be upgraded.

[0029] Specifically, the serial port terminal device 300 stores and runs a script file in advance, and the script file stores control information. After receiving the information collection instruction, the serial port terminal device 300 selects control information from the script file according to the request of the information collection instruction.

[0030] With such a configuration, the processing system 200 can automatically obtain the control information sent by the serial port terminal device 300, so that when the software of the processing core is subsequently upgraded, the upgrade file can be automatically burned to obtain the burning data, thereby saving manpower, saving the time for upgrading the software of the processing core, and improving the upgrade efficiency of the software of the processing core.

[0031] S103, the processing system obtains the upgrade file sent by the serial port terminal device.

[0032] Specifically, the staff loads the upgrade file to the serial terminal device 300. After receiving the information collection instruction sent by the processing system 200, the serial terminal sends the upgrade file to the processing system 200 through a pre-agreed communication protocol, such as the Ymodem protocol.

[0033] S104, the processing system burns the upgrade file according to the serial number of the processing core to be upgraded, generates burning data corresponding to the upgrade file, and upgrades the software of the processing core to be upgraded according to the burning data.

[0034] Specifically, the processing system 200 burns the upgrade file and generates burning data corresponding to the upgrade file, thereby ensuring the permanent preservation of the upgrade file.

[0035] The embodiment of the present application provides a method for upgrading the software of a processing kernel, in which the processing system 200 receives the control information fed back by the serial terminal device 300 according to the information collection instruction, burns the upgrade file according to the sequence number of the processing kernel to be upgraded, generates the burning data corresponding to the upgrade file, and upgrades the software of the processing kernel to be upgraded according to the burning data. Compared with the prior art, in which the update configuration parameters corresponding to the processing kernel are burned into the processing system 200 manually according to the upgrade requirements to achieve the upgrade of the processing kernel, this method does not require manual matching of each update configuration parameter with the processing kernel, and manually burning it into the processing system 200, thereby achieving the automatic upgrade of the software of the processing kernel. This method saves manpower, saves the upgrade time of the software of the processing kernel, and improves the upgrade efficiency of the software of the processing kernel. In addition, since the step of matching each update configuration parameter with the software of the processing kernel by manpower is omitted, the matching result of the update configuration parameter with the processing kernel is more accurate, thereby improving the upgrade success rate of the processing kernel, and greatly reducing the situation of upgrade failure caused by human error.

[0036] The following is an introduction to the way in which the processing system 200 burns the upgrade file according to the serial number of the processing core to be upgraded. The above control information also includes: the above control information also includes: the preset burning position corresponding to the serial number of the processing core to be upgraded; the processing system determines the target burning position of the upgrade file according to the preset burning position corresponding to the serial number of the processing core to be upgraded, burns the upgrade file into the target burning position of the upgrade file, and generates burning data corresponding to the upgrade file.

[0037] Specifically, the processing system 200 has a FLASH (Flash EEPROM Memory) module 400. The processing system 200 burns the upgrade file into the FLASH module 400. The FLASH module 400 is a non-volatile memory that can keep the stored data from being lost in the event of a power outage, and can ensure that the processing system 200 can automatically load the upgrade file after restarting or powering off without re-downloading or reconfiguring. The FLASH module 400 can be expanded to 32MB for use. The above-mentioned processing system 200 accesses the FLASH module 400 through QSPI (Quad Serial Peripheral Interface), and the processing system 200 can perform operations such as reading, writing, erasing, and programming on the QSPI.

[0038] like Figure 3 As shown, Figure 3A schematic diagram of the FLASH module structure provided in an embodiment of the present application. The FLASH module 400 uses 8M-10M space to store app0, 10M-12M space to store app1, 12M-14M to store app2, and 14M-16M to store app3. Among them, app0 is the burning data generated by processing kernel 0 to burn the upgrade file, app1 is the burning data generated by processing kernel 1 to burn the upgrade file, app2 is the burning data generated by processing kernel 2 to burn the upgrade file, and app3 is the burning data generated by processing kernel 3 to burn the upgrade file. In the above-mentioned FALSH module 400, app0, app1, app2, and app3 occupy 3MB of usage space respectively, and the offset base address is 0x1000000. The FALSH module 400 burns the upgrade file into the target burning position (app0, app1, app2, app3) of the upgrade file through the bootloader software. A 128KB storage space is pre-set in the FLASH module for storing the above-mentioned control information.

[0039] This method ensures the persistent preservation of the upgrade file, and can ensure that the processing system 200 can automatically load the upgrade file after restart or power failure without re-downloading or reconfiguring, thereby improving the reconfigurability of the upgrade file storage.

[0040] In one embodiment, the control information further includes: the serial number of the processing core to be run, the preset loading position corresponding to the serial number of the processing core to be run, and the memory length occupied by the upgrade file. The processing system determines the target base address of the burning data corresponding to the upgrade file according to the preset loading position corresponding to the processing core to be run, determines the target memory space of the burning data corresponding to the upgrade file according to the target base address of the burning data corresponding to the upgrade file, reads the burning data corresponding to the upgrade file according to the memory length occupied by the upgrade file, moves the burning data corresponding to the upgrade file to the target memory space of the burning data corresponding to the upgrade file, and runs the burning data corresponding to the upgrade file in the target memory space of the burning data corresponding to the upgrade file.

[0041] Specifically, the processing system 200 has a DDR (Double Data Rate) module 500. The bootloader software in the processing system 200 can transfer the programming data corresponding to the upgrade file from the above-mentioned FALSH module 400 to the DDR module 500. Figure 4 As shown, Figure 4Schematic diagram of the DDR module structure provided by the embodiment of the present application. core0 indicates that the target base address of the upgrade file run by processing core 0 is 0x800000, core1 indicates that the target base address of the upgrade file run by processing core 1 is 0x1000000, core2 indicates that the target base address of the upgrade file run by processing core 2 is 0x1800000, and core3 indicates that the target base address of the upgrade file run by processing core 3 is 0x2000000. Each of the above target memory spaces is 8MB. After the software upgrade of the processing core to be upgraded is completed, the processing system 200 will be powered off and restarted so that the processing system 200 runs the corresponding burning data of the upgrade file according to the sequence number of the processing core to be run to verify whether the software of the upgraded processing core to be upgraded is successfully upgraded.

[0042] In this method, the burning data corresponding to the upgrade file is run according to the sequence number of the processing core to be run. Among them, the processing core to be run can be one of the processing core 0, processing core 1, processing core 2 and processing core 3, or two, or three, or all of them, which has high flexibility.

[0043] In one implementation, the processing system sends a request to start an upgrade instruction to the serial terminal device; If the processing system receives the upgrade start instruction fed back by the serial port terminal device according to the upgrade start instruction request within the preset time, the processing system generates an information collection instruction.

[0044] Specifically, before upgrading the software of the processing core, the processing system 200 will send a request to start the upgrade instruction to the serial port terminal device 300. The script file at the serial port terminal device 300 will automatically feed back the start upgrade instruction to the processing system 200 according to the request to start the upgrade instruction. The start upgrade instruction is U enter. The processing system 200 will wait for receiving the start upgrade instruction (U enter) within a preset time. If the processing system 200 receives the start upgrade instruction (U enter) within the preset time, it means that the FLASH module 400 in the processing system 200 needs to burn new control information. At this time, the processing system 200 needs to send an information collection instruction to the serial port terminal device 300 to obtain the control information required for the software upgrade of the processing core from the serial port terminal device 300. The preset time is 50ms.

[0045] In this manner, the serial port terminal device 300 can determine whether to feed back the start-upgrade instruction to the processing system 200 according to the request start-upgrade instruction, thereby accurately controlling the upgrade process of the software of the processing kernel in the processing system 200 .

[0046] In one implementation, if the processing system does not receive the upgrade startup instruction fed back by the serial port terminal device according to the upgrade startup instruction request within a preset time, the processing system runs the burning data corresponding to the pre-stored upgrade file.

[0047] Specifically, the processing system 200 waits for 50ms (within the preset time) but does not receive the request to start the upgrade instruction (U enter) fed back by the serial port terminal device 300, then it will run the burning data corresponding to the previous (pre-stored) upgrade file based on the control information stored in the preset 128KB storage space in the FLASH module 400.

[0048] In this manner, even if the processing system 200 does not receive the request to start the upgrade instruction fed back by the serial port terminal device 300, the burning data corresponding to the last (pre-stored) upgrade file can be executed, which has high flexibility.

[0049] In one implementation, the processing system burns the upgrade file according to the sequence number of the next processing core to be upgraded, and generates the next burning data corresponding to the upgrade file.

[0050] Specifically, after the software upgrade of the previous processing core is completed, the processing system can automatically burn the upgrade file according to the sequence number of the next processing core to be upgraded to complete the software upgrade of the next processing core to be upgraded.

[0051] In this way, the processing system can continuously burn the upgrade file without human intervention, thus realizing the automatic upgrade of the software of the processing core. This method saves manpower, saves the upgrade time of the software of multiple processing cores, and improves the upgrade efficiency of the software of multiple processing cores.

[0052] Based on the above method embodiment, the embodiment of the present application also provides a software upgrade system for a processing core, wherein the processing system 200 includes multiple processing cores, and the processing system 200 is connected to a serial port terminal device 300 via a serial port; the serial port terminal device 300 stores an upgrade file in advance. Figure 5 As shown, Figure 5 A schematic diagram of the structure of a software upgrade device for a processing kernel provided in an embodiment of the present application. The device includes a sending module 51, an acquisition module 52 and a control module 53; wherein the functions of each module are as follows: The sending module 51 is used to send information collection instructions to the serial port terminal device; The acquisition module 52 is used to receive the control information fed back by the serial terminal device according to the information collection instruction; wherein the control information includes the serial number of the processing core to be upgraded; The acquisition module 52 is also used to acquire the upgrade file sent by the serial terminal device; The control module 53 is used to burn the upgrade file according to the serial number of the processing core to be upgraded, generate the burning data corresponding to the upgrade file, and upgrade the software of the processing core to be upgraded according to the burning data.

[0053] Preferably, the control information also includes: a preset burning position corresponding to the serial number of the processing core to be upgraded; The control module 53 is specifically used to determine the target burning position of the upgrade file according to the preset burning position corresponding to the serial number of the processing core to be upgraded; burn the upgrade file into the target burning position of the upgrade file, and generate the burning data corresponding to the upgrade file.

[0054] Preferably, the control information also includes: the serial number of the processing core to be run; The control module 53 is also used to run the burning data corresponding to the upgrade file according to the sequence number of the processing core to be run.

[0055] Preferably, the control information also includes: a preset loading position corresponding to the serial number of the processing core to be run and the memory length occupied by the upgrade file; The control module 53 is specifically used to determine the target base address of the burning data corresponding to the upgrade file according to the preset loading position corresponding to the processing core to be run; determine the target memory space of the burning data corresponding to the upgrade file according to the target base address of the burning data corresponding to the upgrade file; read the burning data corresponding to the upgrade file according to the memory length occupied by the upgrade file; move the burning data corresponding to the upgrade file to the target memory space of the burning data corresponding to the upgrade file; and run the burning data corresponding to the upgrade file in the target memory space of the burning data corresponding to the upgrade file.

[0056] Preferably, the sending module 51 is further used to send a request to start the upgrade instruction to the serial terminal device; The control module 53 is further configured to generate an information collection instruction if the processing system receives an upgrade start instruction fed back by the serial port terminal device according to the upgrade start instruction request within a preset time.

[0057] Preferably, the control module 53 is further configured to execute the burning data corresponding to the pre-stored upgrade file if the processing system does not receive the upgrade startup instruction fed back by the serial port terminal device according to the upgrade startup instruction request within a preset time.

[0058] Preferably, the control module 53 is further used to burn the upgrade file according to the sequence number of the next processing core to be upgraded, and generate the next burning data corresponding to the upgrade file.

[0059] The software upgrade device for the processing core provided in the embodiment of the present application has the same technical features as the software upgrade method for the processing core provided in the above-mentioned embodiment, so it can also solve the same technical problems and achieve the same technical effects.

[0060] An embodiment of the present application also provides an electronic device, including a processor and a memory, wherein the memory stores machine executable instructions that can be executed by the processor, and the processor executes the machine executable instructions to implement the software upgrade method of the above-mentioned processing core.

[0061] See also Figure 6 As shown, the electronic device includes a processor 100 and a memory 101, wherein the memory 101 stores machine executable instructions that can be executed by the processor 100, and the processor 100 executes the machine executable instructions to implement the software upgrade method of the above-mentioned processing core.

[0062] Further, Figure 6 The electronic device shown further includes a bus 102 and a communication interface 103 , and the processor 100 , the communication interface 103 and the memory 101 are connected via the bus 102 .

[0063] Among them, the memory 101 may include a high-speed random access memory (RAM), and may also include a non-volatile memory (non-volatile memory), such as at least one disk storage. The communication connection between the system network element and at least one other network element is realized through at least one communication interface 103 (which can be wired or wireless), and the Internet, wide area network, local area network, metropolitan area network, etc. can be used. The bus 102 can be an ISA (Industrial Standard Architecture) bus, a PCI (Peripheral Component Interconnect) bus or an EISA (Enhanced Industry Standard Architecture) bus, etc. The above-mentioned bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 6 Only one bidirectional arrow is used in the diagram, but this does not mean that there is only one bus or only one type of bus.

[0064] The processor 100 may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method can be completed by the hardware integrated logic circuit or software instructions in the processor 100. The above processor 100 can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components. The methods, steps and logic block diagrams disclosed in the embodiments of the present application can be implemented or executed. The general processor can be a microprocessor or the processor can also be any conventional processor, etc. The steps of the method disclosed in the embodiments of the present application can be directly embodied as a hardware decoding processor for execution, or a combination of hardware and software modules in the decoding processor for execution. The software module may be located in a storage medium mature in the art, such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory, or an electrically erasable programmable memory, a register, etc. The storage medium is located in the memory 101, and the processor 100 reads the information in the memory 101 and completes the steps of the method of the above embodiment in combination with its hardware.

[0065] This embodiment also provides a machine-readable storage medium, which stores machine-executable instructions. When the machine-executable instructions are called and executed by a processor, the machine-executable instructions prompt the processor to implement the software upgrade method of the above-mentioned processing core.

[0066] The computer program product of the software upgrade method, device and electronic device of the processing core provided in the embodiments of the present application includes a computer-readable storage medium storing program code, and the instructions included in the program code can be used to execute the method described in the previous method embodiment. The specific implementation can refer to the method embodiment, which will not be repeated here. The technicians in the relevant field can clearly understand that for the convenience and simplicity of description, the specific working process of the system and device described above can refer to the corresponding process in the previous method embodiment, which will not be repeated here.

[0067] In addition, in the description of the embodiments of the present application, unless otherwise clearly specified and limited, the terms "installed", "connected", and "connected" should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be directly connected, or indirectly connected through an intermediate medium, or it can be the internal connection of two components. For ordinary technicians in this field, the specific meanings of the above terms in this application can be understood according to specific circumstances. If the function is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a non-volatile computer-readable storage medium that can be executed by a processor. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art or the part of the technical solution can be embodied in the form of a software product, which is stored in a storage medium and includes a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage media include: U disk, mobile hard disk, read-only memory (ROM), random access memory (RAM), disk or optical disk and other media that can store program codes.

[0068] In the description of the present application, it should be noted that the terms "center", "upper", "lower", "left", "right", "vertical", "horizontal", "inner", "outer", etc., indicating the orientation or positional relationship, are based on the orientation or positional relationship shown in the drawings, and are only for the convenience of describing the present application and simplifying the description, rather than indicating or implying that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as limiting the present application. In addition, the terms "first", "second", and "third" are used for descriptive purposes only, and cannot be understood as indicating or implying relative importance.

[0069] Finally, it should be noted that the above-described embodiments are only specific implementation methods of the present application, which are used to illustrate the technical solutions of the present application, rather than to limit them. The protection scope of the present application is not limited thereto. Although the present application is described in detail with reference to the above-described embodiments, ordinary technicians in the field should understand that any technician familiar with the technical field can still modify the technical solutions recorded in the above-described embodiments within the technical scope disclosed in the present application, or can easily think of changes, or make equivalent replacements for some of the technical features therein; and these modifications, changes or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present application, and should be included in the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims

1. A method for upgrading software of a processing kernel, characterized in that: Applied to a processing system, the processing system includes a plurality of processing cores, and the processing system is connected to a serial port terminal device via a serial port; The serial port terminal device pre-stores an upgrade file; the method comprises: The processing system sends an information collection instruction to the serial port terminal device; The processing system receives control information fed back by the serial port terminal device according to the information collection instruction; wherein the control information includes the serial number of the processing core to be upgraded; The processing system obtains the upgrade file sent by the serial port terminal device; The processing system burns the upgrade file according to the serial number of the processing core to be upgraded, generates burning data corresponding to the upgrade file, and upgrades the software of the processing core to be upgraded according to the burning data.

2. The method for upgrading the software of the processing core according to claim 1, characterized in that: The control information also includes: a preset burning position corresponding to the serial number of the processing core to be upgraded; The processing system burns the upgrade file according to the serial number of the processing core to be upgraded, and generates the burning data corresponding to the upgrade file, including: The processing system determines the target burning position of the upgrade file according to the preset burning position corresponding to the serial number of the processing core to be upgraded; The processing system burns the upgrade file into the target burning location of the upgrade file and generates burning data corresponding to the upgrade file.

3. The method for upgrading the software of the processing core according to claim 1, characterized in that: The control information also includes: the serial number of the processing core to be run; the method also includes: The processing system runs the burning data corresponding to the upgrade file according to the sequence number of the processing core to be run.

4. The method for upgrading the software of the processing core according to claim 3, characterized in that: The control information also includes: a preset loading position corresponding to the serial number of the processing core to be run and the memory length occupied by the upgrade file; The processing system runs the step of burning data corresponding to the upgrade file according to the sequence number of the processing core to be run, including: The processing system determines the target base address of the burning data corresponding to the upgrade file according to the preset loading position corresponding to the processing core to be run; The processing system determines the target memory space of the burning data corresponding to the upgrade file according to the target base address of the burning data corresponding to the upgrade file; The processing system reads the burning data corresponding to the upgrade file according to the memory length occupied by the upgrade file; The processing system moves the burning data corresponding to the upgrade file to the target memory space of the burning data corresponding to the upgrade file; The processing system runs the burning data corresponding to the upgrade file in the target memory space of the burning data corresponding to the upgrade file.

5. The method for upgrading the software of the processing core according to claim 1, characterized in that: The method further comprises: The processing system sends a request to start an upgrade instruction to the serial port terminal device; If the processing system receives the upgrade start instruction fed back by the serial port terminal device according to the upgrade start request instruction within a preset time, the processing system generates the information collection instruction.

6. The method for upgrading the software of the processing core according to claim 5, characterized in that: The method further comprises: If the processing system does not receive the upgrade startup instruction fed back by the serial port terminal device according to the upgrade startup instruction request within a preset time, the processing system runs the burning data corresponding to the pre-stored upgrade file.

7. The method for upgrading the software of the processing core according to claim 1, characterized in that: The method further comprises: The processing system burns the upgrade file according to the sequence number of the next processing core to be upgraded, and generates next burning data corresponding to the upgrade file.

8. A software upgrade system for a processing kernel, characterized in that: The processing system includes a plurality of processing cores, and the processing system is connected to a serial terminal device via a serial port; the serial terminal device pre-stores an upgrade file; A sending module, used for sending an information collection instruction to the serial port terminal device; An acquisition module, configured to receive control information fed back by the serial port terminal device according to the information collection instruction; wherein the control information includes the serial number of the processing core to be upgraded; The acquisition module is also used to acquire the upgrade file sent by the serial port terminal device; The control module is used to burn the upgrade file according to the serial number of the processing core to be upgraded, generate the burning data corresponding to the upgrade file, and upgrade the software of the processing core to be upgraded according to the burning data.

9. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 7 are implemented.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the method described in any one of claims 1 to 7 are executed.

Citation Information

Cited By

  • Software kernel upgrading data processing method and system

    CN120803500A

  • A software kernel upgrade data processing method and system

    CN120803500B