Vehicle-mounted program burning method, device, equipment, storage medium and product

By using a preset program burning script in the vehicle SoC to automatically control the switching and burning of chip domains, the problems of low efficiency and insufficient accuracy of vehicle program burning are solved, and an efficient and accurate program burning process is achieved.

CN119149058BActive Publication Date: 2025-12-26ZHEJIANG ZEEKR INTELLIGENT TECH CO LTD +1
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202411277856.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-09-12
Publication Date
2025-12-26
Estimated Expiration
2044-09-12

AI Technical Summary

Technical Problem

Existing methods for programming vehicle-mounted SOCs are inefficient and prone to errors, increasing the risk of production accidents.

Method used

The system automatically controls several chip domains in the vehicle-mounted SOC using a preset programming script. It achieves automatic switching of chip domains and programming through programming port switching functions and single-domain programming functions, simplifying manual intervention.

Benefits of technology

It improves the efficiency and accuracy of vehicle-mounted program burning, reduces the possibility of human error, and simplifies the burning process.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119149058B_ABST
    Figure CN119149058B_ABST
Patent Text Reader

Abstract

The application discloses a vehicle-mounted program burning method and device, equipment, a storage medium and a product, and relates to the technical field of intelligent driving. The vehicle-mounted program burning method comprises the following steps: a plurality of chip domains are sequentially controlled according to a preset program burning script to execute corresponding program burning tasks. According to the application, the program burning script is preset to simplify the vehicle-mounted program burning process, thereby reducing manual intervention. The plurality of chip domains are sequentially controlled by the program burning script to execute corresponding program burning tasks, so that automatic switching of the chip domains can be realized, the program burning task can be completed, and the vehicle-mounted program burning efficiency can be improved while ensuring the accuracy of the vehicle-mounted program burning.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the technical field of intelligent driving, and particularly relates to a vehicle-mounted program burning method and device, equipment, a storage medium and a product. BACKGROUND

[0002] With the rapid development of intelligent driving technology, the existing intelligent driving hardware usually uses a vehicle-mounted SOC (System on Chip) containing both ARM (Advanced RISC Machine) chips and MCU (Micro Control Unit) chips. The vehicle-mounted SOC of this architecture can meet both the requirements of high computing power and fast reaction. However, the more complex the structure of the vehicle-mounted SOC is, the lower the efficiency of the corresponding vehicle-mounted program burning method is.

[0003] At present, the vehicle-mounted SOC is usually burned by using a manual burning method. However, the manual burning method needs a large amount of manual switching of the chip domains to be burned, and the process is tedious and prone to errors, which may cause production accidents.

[0004] Therefore, how to improve the efficiency of vehicle-mounted program burning while ensuring the accuracy of vehicle-mounted program burning is a problem to be solved at present. SUMMARY

[0005] The main purpose of the present application is to provide a vehicle-mounted program burning method, device, equipment, storage medium and product, which aims to solve the technical problem of how to improve the efficiency of vehicle-mounted program burning while ensuring the accuracy of vehicle-mounted program burning.

[0006] To achieve the above-mentioned purpose, the present application provides a vehicle-mounted program burning method applied to a vehicle-mounted SOC (System on Chip), wherein the vehicle-mounted SOC includes a plurality of chip domains, and the vehicle-mounted program burning method includes the following steps:

[0007] controlling the plurality of chip domains in sequence according to a preset program burning script to perform corresponding program burning tasks.

[0008] In an embodiment, the program burning script includes a burning port switching function, and the step of controlling the plurality of chip domains in sequence according to the preset program burning script to perform corresponding program burning tasks includes the following steps before the step:

[0009] obtaining a chip domain queue to be burned;

[0010] setting a burning port switching function according to the device identifier corresponding to each chip domain in the chip domain queue to be burned, wherein the burning port switching function is used to switch the chip domains according to the device identifier.

[0011] In an embodiment, the step of sequentially controlling the plurality of chip domains according to the preset program burning script to perform corresponding program burning tasks comprises:

[0012] According to the program burning script, the burning port switching function is called to determine a current chip domain to be burned from the queue of chip domains to be burned;

[0013] According to the program burning script, a preset single-domain burning function is called, and the current chip domain to be burned is controlled to perform a corresponding target program burning task based on the single-domain burning function;

[0014] In the case where the corresponding program burning task of the current chip domain to be burned is successfully executed, the burning port switching function is called to determine a new current chip domain to be burned, and the step of calling the preset single-domain burning function according to the program burning script to control the current chip domain to be burned to perform a corresponding target program burning task is returned, until a preset program burning stop condition is met, and a program burning result is obtained.

[0015] In an embodiment, the step of calling the preset single-domain burning function according to the program burning script and controlling the current chip domain to be burned to perform a corresponding program burning task based on the single-domain burning function comprises:

[0016] According to the program burning script, a preset single-domain burning function is called, and a recovery instruction is sent to a micro control unit (MCU) chip corresponding to the current chip domain to be burned based on the single-domain burning function, so as to control an advanced reduced instruction set computing (ARM) chip corresponding to the current chip domain to be burned to enter a recovery mode;

[0017] A recovery mode confirmation instruction is executed to obtain universal serial bus (USB) device information;

[0018] According to the USB device information, it is determined whether the current chip domain to be burned enters the recovery mode;

[0019] If yes, a burning program file position is determined according to the single-domain burning function, and a program file at the burning program file position is burned in the ARM chip corresponding to the current chip domain to be burned.

[0020] In an embodiment, the step of calling the preset single-domain burning function according to the program burning script and controlling the current chip domain to be burned to perform a corresponding target program burning task based on the single-domain burning function comprises:

[0021] After the target program burning task is successfully executed, a preset exit recovery instruction is sent to the current chip domain to be burned, so as to control the current chip domain to be burned to exit the recovery mode.

[0022] In an embodiment, the preset program burning script comprises a command transmission function used for performing serial port read-write operations on the respective MFU chip and ARM chip of the plurality of chip domains.

[0023] In addition, to achieve the above object, the present application further provides a vehicle-mounted program burning device, which comprises:

[0024] A script execution module is configured to sequentially control the plurality of chip domains according to the preset program burning script to perform corresponding program burning tasks.

[0025] In addition, to achieve the above object, the present application further provides a vehicle-mounted program burning device, which comprises a memory, a processor, and a computer program stored in the memory and executable on the processor, and the computer program is configured to implement the steps of the vehicle-mounted program burning method as described above.

[0026] In addition, to achieve the above object, the present application further provides a storage medium, which is a computer-readable storage medium, and the storage medium stores a computer program, and the computer program is executed by a processor to implement the steps of the vehicle-mounted program burning method as described above.

[0027] In addition, to achieve the above object, the present application further provides a computer program product, which comprises a computer program, and the computer program is executed by a processor to implement the steps of the vehicle-mounted program burning method as described above.

[0028] The present application provides a vehicle-mounted program burning method applied to a vehicle-mounted SOC, wherein the vehicle-mounted SOC comprises a plurality of chip domains, and the present application sequentially controls the plurality of chip domains according to a preset program burning script to perform corresponding program burning tasks. Based on the present application, the program burning script is preset to simplify the vehicle-mounted program burning process, thereby reducing manual intervention. The plurality of chip domains are sequentially controlled by the program burning script to perform corresponding program burning tasks, which can automatically switch each chip domain to complete the program burning task, thereby ensuring the accuracy of the vehicle-mounted program burning while improving the efficiency of the vehicle-mounted program burning. BRIEF DESCRIPTION OF DRAWINGS

[0029] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and serve to explain the principles of the present application together with the specification.

[0030] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the prior art, the accompanying drawings needed to be used in the description of the embodiments or the prior art will be briefly introduced. Obviously, for those of ordinary skill in the art, the other accompanying drawings can be obtained based on these accompanying drawings without any creative work.

[0031] Figure 1 The flowchart provided by the vehicle-mounted program burning method embodiment one of the present application;

[0032] Figure 2 The artificial burning flowchart of the vehicle-mounted program provided by the embodiment one of the present application;

[0033] Figure 3 The simple flowchart of burning based on the program burning script provided by the embodiment one of the present application;

[0034] Figure 4 The flowchart provided by the vehicle-mounted program burning method embodiment two of the present application;

[0035] Figure 5 The module structure diagram of the vehicle-mounted program burning device of the embodiment of the present application;

[0036] Figure 6 The device structure diagram of the hardware running environment involved in the vehicle-mounted program burning method embodiment of the present application.

[0037] The purpose realization, functional features and advantages of the present application will be further explained with reference to the accompanying drawings combined with the embodiments. DETAILED DESCRIPTION

[0038] It should be understood that the specific embodiments described herein are only used to explain the technical solutions of the present application, and are not used to limit the present application.

[0039] In order to better understand the technical solutions of the present application, the following will be described in detail combined with the accompanying drawings and specific embodiments.

[0040] The main solution of the embodiment of the present application is: according to the preset program burning script, the corresponding program burning task is executed in the chip domain in turn.

[0041] At present, the vehicle-mounted SOC is usually burned by using the artificial burning method. However, the artificial burning method needs a large amount of manual switching of the chip domain to be burned, and the process is tedious and easy to make mistakes, which may cause the occurrence of production accidents.

[0042] Based on the scheme, the vehicle program burning process is simplified by pre-setting the program burning script, so as to reduce manual intervention; the program burning script is used to control the chip domains one by one to perform the corresponding program burning task, so as to realize automatic switching of each chip domain and complete the program burning task, thereby ensuring the accuracy of the vehicle program burning while improving the efficiency of the vehicle program burning.

[0043] It should be noted that the execution subject of the embodiment can be a computing service device with data processing, network communication and program running functions, such as a tablet computer, a personal computer, a mobile phone, etc., or an electronic device, a vehicle program burning system, etc. capable of realizing the above functions. The vehicle program burning system is taken as an example to describe the embodiment and the following embodiments.

[0044] Based on this, the embodiment provides a vehicle program burning method, which is described with reference to Figure 1 , Figure 1 is a flowchart of the first embodiment of the vehicle program burning method.

[0045] In the embodiment, the vehicle program burning method is applied to a vehicle SOC, a vehicle SOC and a vehicle program burning system establish a communication connection, and the vehicle program burning method includes the step S100:

[0046] Step S100, according to the pre-set program burning script, the chip domains are controlled one by one to perform the corresponding program burning task.

[0047] It should be noted that the vehicle program burning method proposed in the application is applied to the scene of program burning of vehicle SOC in intelligent driving. The existing intelligent driving hardware usually uses SOC containing ARM chip and MCU chip, wherein the ARM chip can contain GPU (Graphic Processing Unit, graphic processor) and is used to process large computing power scenes such as image acquisition and processing; the MCU chip uses real-time operating system or no operating system to process functions such as vehicle regulations and safety that need fast response. In order to increase the computing power of SOC, the commonly used intelligent driving SOC contains double chip domains.

[0048] The vehicle SOC with the above architecture can meet the requirements of vehicle large computing power and fast response at the same time, but it also makes the burning of SOC program more complicated. Referring to Figure 2 , Figure 2 is a schematic diagram of manual burning process of vehicle program; as Figure 2As shown, at present, the method commonly used by the industry for the burning of this type of vehicle-mounted SOC is to first send instructions to the control port (serial port) of the MCU chip to control the ARM chip to enter the recovery mode (for example, the recovery mode), and then manually confirm success before burning the ARM end. If the vehicle-mounted SOC system contains multiple sets of ARM chip and MCU chip structures (a combination of an ARM chip and an MCU chip is usually referred to as a chip domain), it is also necessary to take the above-mentioned step for each domain respectively, and it is necessary to manually switch to the burning interface of another chip domain after the burning of a chip domain is completed, because the existing burning program cannot identify which chip domain the multiple burning interfaces belong to. However, the more complex the structure of the intelligent driving SOC is, the lower the efficiency of the current burning method will be, and because a large amount of manual switching work is involved, the chance of error will also be higher.

[0049] Based on the above considerations, the present application proposes a method for burning an intelligent driving vehicle-mounted SOC through a preset program burning script. Referring to Figure 3 , Figure 3 A simple process diagram for burning based on a program burning script is proposed for the embodiments of the present application; as Figure 3 shown, the scheme proposed in the present application can achieve one-key execution of program burning, and completely does not require manual switching of hardware interfaces during the burning process, nor does it require separate operation of the ARM and MCU of each chip domain in the vehicle-mounted SOC, simplifying the burning process of the intelligent driving SOC, improving the burning efficiency, and reducing the error rate.

[0050] In addition, it should be noted that before the vehicle-mounted program burning system burns the vehicle-mounted SOC, it is necessary to determine that the vehicle-mounted SOC meets the preset hardware burning conditions. The hardware burning conditions are as follows: a vehicle-mounted SOC for burning needs to be prepared, which includes a chip domain composed of an MCU chip and an ARM chip; it is necessary to ensure that the computer carried by the vehicle-mounted program burning system is powered on, and at the same time, the vehicle-mounted SOC is powered on; the version of the computer carried by the vehicle-mounted program burning system can select the operating system Linux 5.0 or above version. Among them, the computer version model is not specifically limited in the present embodiment, but the computer version model needs to support the running of the program burning script in the actual implementation process; it is also necessary to prepare sufficient connection cables, including MCU communication cables and ARM communication cables, and the number of connection cables needs to be doubled for each additional chip domain in the vehicle-mounted SOC. In addition, before the execution of the program burning script, the MCU communication cable and the ARM communication cable need to be connected to the vehicle-mounted SOC and the computer.

[0051] Further, the preset program burning script includes a command transmission function, which is used to perform serial port read-write operations on the MCU chip and the ARM chip of each of the plurality of chip domains.

[0052] It should be noted that the command transmission function can be constructed by a command line environment based on a Bash command, where Bash is a Shell (command line environment) of a Linux system. The read and write of the serial port are directly implemented by using the bash command, without the need to additionally install library files, with low requirements for the system and good compatibility. The serial port read and write operation can include sending sleep, wake-up, reading SOC state and the like.

[0053] Based on this, the program burning script can process the functions of serial communication and recovery result identification based on the Bash script, where the function of processing serial communication can include stably sending a recovery command to the MCU, and the recovery is used to identify whether the ARM chip enters the recovery mode, so that the program burning script starts to perform the program burning task only in the case that the ARM chip enters the recovery mode.

[0054] In this embodiment, the plurality of chip domains are sequentially controlled according to the preset program burning script to perform corresponding program burning tasks. The program burning script is used to simplify the vehicle program burning process, thereby reducing manual intervention. The plurality of chip domains are sequentially controlled by the program burning script to perform corresponding program burning tasks, so that automatic switching of each chip domain can be realized, and the program burning task can be completed, thereby the vehicle program burning efficiency can be improved while ensuring the accuracy of the vehicle program burning.

[0055] In a feasible embodiment, before the step of sequentially controlling the plurality of chip domains according to the preset program burning script to perform corresponding program burning tasks, the steps S10-S20 can be included.

[0056] In step S10, a chip domain queue to be burned is acquired.

[0057] It should be noted that first, a data structure needs to be defined to store the chip domain information to be burned. In this embodiment, the data structure for storing the chip domain to be burned can be a queue, and each element in the queue represents a chip domain and contains the related information of the chip domain.

[0058] In step S20, a burning port switching function is set according to the device identifier corresponding to each chip domain in the chip domain queue to be burned, and the burning port switching function is used to switch the chip domain according to the device identifier.

[0059] Specifically, the chip domain queue to be burned is traversed, and for each chip domain, the corresponding device identifier is parsed. The device identifier is usually used to uniquely identify a device or an interface on a device. More specifically, the device identifier can be set according to the serial port name.

[0060] In this embodiment, a chip domain queue to be burned is obtained; a burning port switching function is set according to a device identifier corresponding to each chip domain in the chip domain queue to be burned, and the burning port switching function is used to switch the chip domain according to the device identifier. In this embodiment, the burning port switching function is set to realize automatic switching of the burning port. In the case where multiple chip domains need to be burned, manual intervention can be effectively avoided, the accuracy of the vehicle program burning is ensured, and the efficiency of the vehicle program burning is improved.

[0061] Based on the first embodiment of the present application, the same or similar contents as the above-mentioned first embodiment can be referred to the above description, and will not be described hereinafter. On this basis, please refer to Figure 4 , Figure 4 The flowchart of the second embodiment of the vehicle program burning method of the present application is shown in FIG. 10. As shown in FIG. 10, the step S100 of sequentially controlling the plurality of chip domains according to the preset program burning script to execute the corresponding program burning task can include steps S1001-S1004. Figure 4

[0062] In step S1001, the burning port switching function is called according to the program burning script to determine the current chip domain to be burned from the chip domain queue to be burned.

[0063] After the program burning script is set, the current instruction and configuration parameter to be executed need to be read from the program burning script. According to the program burning script, the previously set burning port switching function is called. The burning port switching function first checks the chip domain queue to be burned, and determines the current chip domain to be burned from the chip domain queue to be burned according to the device identifier.

[0064] In step S1002, a preset single-domain burning function is called according to the program burning script, and the current chip domain to be burned is controlled to execute the corresponding target program burning task based on the single-domain burning function.

[0065] In this embodiment, the preset single-domain burning function is called using the current chip domain to be burned determined in step S1001. The single-domain burning function controls the hardware device to execute the target program burning task of the current chip domain to be burned according to the preset burning parameters and steps. It should be noted that the progress and state of the burning process need to be monitored to ensure that the burning process proceeds normally.

[0066] ​Step S1003, in the case that the program burning task corresponding to the current chip domain to be burned is executed successfully, the burning port switching function is called to determine a new current chip domain to be burned, and the step of returning to execute a preset single-domain burning function according to the program burning script to control the current chip domain to be burned to execute a corresponding target program burning task is returned until a preset program burning stop condition is met.

[0067] After the burning task of the current chip domain to be burned is completed, the burning result is checked to determine whether it is successful. More specifically, the state or return information of the device can be read to determine whether the current burning task is successful. If the current burning task is successful, the burning port switching function is called again to determine the next chip domain to be burned. At the same time, the step S1002 is returned to call the single-domain burning function according to the information of the new current chip domain to be burned and execute a corresponding burning task. The steps S1002 and S1003 are repeated until a preset program burning stop condition is met.

[0068] It should be noted that the program burning stop condition can include that all chip domains have been burned, a maximum burning time limit is reached, an error occurs, and the like.

[0069] Step S1004, a program burning result is obtained.

[0070] It should be noted that the program burning result can be a domain name of all chip domains whose program burning is completed or a time consumption of completing the program burning, which is used as a basis for judging the efficiency of the program burning.

[0071] In a feasible implementation, the step S1002 of calling a preset single-domain burning function according to the program burning script and controlling the current chip domain to be burned to execute a corresponding program burning task based on the single-domain burning function can include steps S10021-S10024:

[0072] Step S10021, a preset single-domain burning function is called according to the program burning script, and a resume instruction is sent to a micro control unit (MCU) chip corresponding to the current chip domain to be burned based on the single-domain burning function to control an advanced reduced instruction set computing (ARM) chip corresponding to the current chip domain to be burned to enter a resume mode.

[0073] Exemplarily, the program burning system sends a recovery instruction (for example, a recovery instruction) to the serial port of the MCU chip to enter the recovery mode, assuming that the serial port identifiers of the MCU chip are ttyACM1 and ttyACM3 in the default state, and assuming that the chip domains that need to be burned are the A domain and the B domain. When burning the A domain, the recovery instruction is sent to ttyACM1; when burning the B domain, the recovery instruction is sent to ttyACM3. It should be noted that, in order to prevent the default port from being occupied, no other serial port device can be installed on the burning computer.

[0074] In step S10022, a recovery mode confirmation instruction is executed to obtain serial port interface bus USB device information;

[0075] After sending the recovery instruction to the serial port of the MCU chip, it is necessary to identify whether the ARM chip of the same chip domain enters the recovery mode. It should be noted that the program burning script can only be executed on the device that enters the recovery mode. After the recovery instruction is sent, the corresponding chip domain enters the recovery mode, but there is a certain probability that the recovery mode entry fails. Therefore, before burning the current chip domain to be burned, it is necessary to confirm whether the corresponding domain is in the recovery mode. The “lsusb” instruction is executed on the vehicle program burning system, which is used to display USB related information and will obtain USB device information of all USB devices. The USB device refers to all external devices connected to the vehicle program burning system through the serial port interface bus. In the scenario of burning the vehicle SOC system, the USB device is generally a controller device carrying the vehicle SOC system (including a chip domain composed of an MCU chip and an ARM chip), such as a power domain controller, a chassis domain controller, and the like.

[0076] In addition, in the embodiment, a maximum number threshold of sending the recovery instruction to the serial port of the MCU chip can be set. Before the number of times of sending the recovery instruction to the serial port of the MCU chip is less than the maximum number threshold, as long as the ARM chip enters the recovery mode successfully after sending the recovery instruction once, the next step is entered, that is, step S10022 is entered. If the number of times of sending the recovery instruction to the serial port of the MCU chip is greater than or equal to the maximum number threshold, but the ARM chip fails to enter the recovery mode, it is determined that the sending fails, and the automatic burning process is terminated (that is, the preset program burning stop condition is met). In this way, the situation that the recovery mode entry fails due to accidental factors can be avoided, and the stable entry of the ARM chip into the recovery mode is ensured.

[0077] In step S10023, whether the current chip domain to be burned enters the recovery mode is judged according to the USB device information.

[0078] According to the vendor ID (identity) and the device ID in the USB device information, it can be determined whether the ARM chip in the same chip domain is in the recovery mode.

[0079] For example, a USB device, specifically, an ADCU (Autonomous Driving Control Unit) device, and the vendor ID and the device ID of the ADCU are 9307 and 7305 respectively. The "lsusb" instruction is executed on the program burning system, and the information containing 9307 or 7305 is searched from the USB device information returned to the vehicle-mounted program burning system, according to which it can be identified whether the ADCU device is contained in all USB devices, if yes, it indicates that the ADCU enters the recovery mode.

[0080] If yes, in step S10024, the program file position of the burning program file is determined according to the single-domain burning function, and the program file at the program file position of the burning program file is burned in the ARM chip corresponding to the current chip domain to be burned.

[0081] It should be noted that the program file position of the burning program file can be a path for searching the corresponding program file. For example, the statement in the single-domain burning function can be written as ". / flash.sh path / to / burn_file a", wherein "flash.sh" is the single-domain burning function to be called in the above step, and the single-domain burning function is provided with a parameter indicating the program file position of the burning program file; "path / to / burn" is used to specify the program file path, and "a" indicates the chip domain identification corresponding to the ARM to be burned; for example, there are two chip domains marked as "a" and "b" to be burned, which indicates that the current chip domain to be burned is "a" domain, and the program file at the program file position of the burning program file is burned in the ARM chip corresponding to the "a" domain.

[0082] In another possible implementation, after step S1002, the single-domain burning function preset according to the program burning script is called, and the current chip domain to be burned is controlled to execute the corresponding target program burning task based on the single-domain burning function.

[0083] After the target program burning task is executed successfully, a preset exit recovery instruction is sent to the current chip domain to be burned, so as to control the current chip domain to be burned to exit the recovery mode.

[0084] It should be noted that the exit recovery instruction is set by the chip supplier of the vehicle SOC system, for example, a "pmstate set" instruction. After exiting the recovery mode, the current chip domain to be programmed will enter a working state, and the vehicle program programming system will enter a working state. At this time, the "lsusb" instruction is executed again through the vehicle program programming system to obtain new USB device information. In the new USB device information, if the manufacturer ID and the device ID of the USB device corresponding to the current chip domain to be programmed cannot be detected, it indicates that the ARM chip in the current chip domain to be programmed successfully exits the recovery mode, that is, the current chip domain to be programmed successfully exits the recovery mode.

[0085] In the embodiment, according to the program programming script, the programming port switching function is called to determine the current chip domain to be programmed from the chip domain queue to be programmed; the preset single-domain programming function is called according to the program programming script, and the current chip domain to be programmed is controlled to execute the corresponding target program programming task based on the single-domain programming function; in the case that the program programming task corresponding to the current chip domain to be programmed is successfully executed, the programming port switching function is called to determine a new current chip domain to be programmed, and the step of executing the preset single-domain programming function according to the program programming script to control the current chip domain to be programmed to execute the corresponding target program programming task is returned until the preset program programming stop condition is met. The scheme in the embodiment automatically switches the chip domains to be programmed, can completely avoid the intervention of manual switching of hardware interfaces, does not need manual intervention of the ARM chip and the MCU chip in the vehicle SOC system, simplifies the process of vehicle program programming, and can improve the efficiency of vehicle program programming while ensuring the accuracy of vehicle program programming.

[0086] It should be noted that the above embodiments can be reasonably combined according to actual conditions, and the embodiment will not be repeated here.

[0087] The application also provides a vehicle program programming device, please refer to Figure 5 , the vehicle program programming device comprises:

[0088] The script execution module 10 is used for sequentially controlling the plurality of chip domains according to a preset program programming script to execute corresponding program programming tasks

[0089] Optionally, the script execution module 10 is further used for:

[0090] obtaining a queue of chip domains to be programmed;

[0091] According to the device identifier corresponding to each chip domain in the queue of chip domains to be programmed, a programming port switching function is set, and the programming port switching function is used for switching chip domains according to the device identifier.

[0092] Optionally, the script execution module 10 is further configured to:

[0093] According to the program burning script, the burning port switching function is called to determine a current chip domain to be burned from the chip domain queue to be burned;

[0094] According to the program burning script, a preset single-domain burning function is called, and the current chip domain to be burned is controlled to execute a corresponding target program burning task based on the single-domain burning function;

[0095] In a case where the program burning task corresponding to the current chip domain to be burned is successfully executed, the burning port switching function is called to determine a new current chip domain to be burned, and the step of calling the preset single-domain burning function according to the program burning script to control the current chip domain to be burned to execute the corresponding target program burning task is returned until a preset program burning stop condition is met, and a program burning result is obtained.

[0096] Optionally, the script execution module 10 is further configured to:

[0097] According to the program burning script, a preset single-domain burning function is called, and a recovery instruction is sent to a micro control unit MCU chip corresponding to the current chip domain to be burned based on the single-domain burning function, so as to control an advanced reduced instruction set computing ARM chip corresponding to the current chip domain to be burned to enter a recovery mode;

[0098] A recovery mode confirmation instruction is executed to obtain universal serial bus USB device information;

[0099] According to the USB device information, it is determined whether the current chip domain to be burned enters the recovery mode;

[0100] If yes, a burning program file position is determined according to the single-domain burning function, and a program file at the burning program file position is burned in the ARM chip corresponding to the current chip domain to be burned.

[0101] Optionally, the script execution module 10 is further configured to:

[0102] After the target program burning task is successfully executed, a preset exit recovery instruction is sent to the current chip domain to be burned, so as to control the current chip domain to be burned to exit the recovery mode.

[0103] Optionally, the preset program burning script includes a command transmission function, and the command transmission function is configured to perform serial port read-write operations on the MFU chip and the ARM chip of each of the chip domains.

[0104] The vehicle-mounted program burning device provided in the present application adopts the vehicle-mounted program burning method in the above embodiment, and can solve the technical problem of how to improve the vehicle-mounted program burning efficiency while ensuring the accuracy of vehicle-mounted program burning. Compared with the prior art, the vehicle-mounted program burning device provided in the present application has the same beneficial effects as the vehicle-mounted program burning method provided in the above embodiment, and other technical features in the vehicle-mounted program burning device are the same as the features disclosed in the above embodiment method, which will not be repeated here.

[0105] The present application provides a vehicle-mounted program burning device, which comprises at least one processor and a memory in communication connection with the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the vehicle-mounted program burning method in the above embodiment one.

[0106] Reference will be made to the following description Figure 6 which shows a structural schematic diagram of a vehicle-mounted program burning device suitable for implementing the embodiments of the present application. The vehicle-mounted program burning device in the embodiments of the present application can include but is not limited to mobile terminals such as mobile phones, notebook computers, digital broadcast receivers, PDAs (Personal Digital Assistant), PADs (Portable Application Description), PMPs (Portable Media Player), vehicle-mounted terminals (such as vehicle-mounted navigation terminals), and the like, and fixed terminals such as digital TVs, desktop computers, and the like. Figure 6 The vehicle-mounted program burning device shown is only an example, and should not bring any limitation to the functions and use range of the embodiments of the present application.

[0107] As Figure 6As shown, the in-vehicle program burning device can include a processing device 1001 (e.g., a central processing unit, a graphics processing unit, etc.) that can perform various appropriate actions and processes according to programs stored in a read-only memory (ROM) 1002 or programs loaded from a storage device 1003 into a random access memory (RAM) 1004. Various programs and data required for operation of the in-vehicle program burning device are also stored in the RAM 1004. The processing device 1001, the ROM 1002, and the RAM 1004 are connected to each other through a bus 1005. An input / output (I / O) interface 1006 is also connected to the bus. Generally, the following systems can be connected to the I / O interface 1006: input devices 1007 including, for example, a touch screen, a touch pad, a keyboard, a mouse, an image sensor, a microphone, an accelerometer, a gyroscope, etc.; output devices 1008 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; the storage device 1003 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 1009. The communication device 1009 can allow the in-vehicle program burning device to communicate wirelessly or wired with other devices to exchange data. Although the in-vehicle program burning device with various systems is shown in the figure, it should be understood that all the shown systems are not required to be implemented or possessed. More or less systems can be alternatively implemented or possessed.

[0108] In particular, according to embodiments of the present disclosure, the processes described above with reference to the flowcharts can be implemented as a computer software program. For example, embodiments of the present disclosure include a computer program product comprising a computer program carried on a computer readable medium, the computer program containing program code for performing the methods shown in the flowcharts. In such embodiments, the computer program can be downloaded and installed from a network through the communication device, or installed from the storage device 1003, or installed from the ROM 1002. When the computer program is executed by the processing device 1001, the above-mentioned functions defined in the methods of embodiments of the present disclosure are performed.

[0109] The in-vehicle program burning device provided by the present disclosure adopts the in-vehicle program burning method in the above embodiments, and can solve the technical problem of how to improve the efficiency of in-vehicle program burning while ensuring the accuracy of in-vehicle program burning. Compared with the prior art, the in-vehicle program burning device provided by the present disclosure has the same beneficial effects as the in-vehicle program burning method provided by the above embodiments, and other technical features in the in-vehicle program burning device are the same as the features disclosed in the previous embodiment method, which will not be repeated here.

[0110] It should be understood that various aspects of the disclosure can be implemented in hardware, software, firmware, or a combination thereof. In the description of the above embodiments, specific features, structures, materials or characteristics can be combined in any appropriate manner in any one or more embodiments or examples.

[0111] The above description is merely illustrative of the application and is not intended to limit the scope of the application. Any variations and modifications that can be made by any person skilled in the art within the spirit and scope of the application are intended to be encompassed by the application. Therefore, the scope of the application should be determined by the scope of the claims.

[0112] The application provides a computer readable storage medium having computer readable program instructions (i.e. computer programs) stored thereon, the computer readable program instructions being used to perform the vehicle-mounted program burning method in the above embodiments.

[0113] The computer readable storage medium provided by the application may, for example, be a U disk, but is not limited to an electric, magnetic, optical, electromagnetic, infrared, or semiconductor system, system, or device, or any combination thereof. More specific examples of the computer readable storage medium can include, but are not limited to, an electric connection having one or more conductive wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any appropriate combination thereof. In the present embodiment, the computer readable storage medium can be any tangible medium containing or storing a program that can be used by or in conjunction with an instruction execution system, system, or device. The program code contained on the computer readable storage medium can be transmitted by any appropriate medium, including but not limited to an electric wire, an optical cable, an RF (Radio Frequency), etc., or any appropriate combination thereof.

[0114] The above computer readable storage medium can be contained in the vehicle-mounted program burning device; or can exist separately without being assembled into the vehicle-mounted program burning device.

[0115] The computer readable storage medium described above carries one or more programs, when the one or more programs are executed by the vehicle program burning device, the vehicle program burning device is caused to: sequentially control the chip domains according to a preset program burning script to perform corresponding program burning tasks.

[0116] Computer program code for carrying out operations of the present application can be written in any combination of one or more programming languages, including an object oriented programming language such as Java, Smalltalk, C++ or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code can execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the latter scenario, the remote computer can be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or the connection can be made to an external computer (for example, through the Internet using an Internet Service Provider).

[0117] The flow diagrams and the block diagrams in the drawings are illustrations of architectures, functionalities, and operations of possible implementations of systems, methods, and computer program products according to various embodiments of the present application. In this regard, each block in the flow diagrams or block diagrams can represent a module, a segment, or a portion of code, which comprises one or more executable instructions for implementing the specified logical functions. It should also be noted that in some alternative implementations, the functions noted in the blocks can occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and / or flow diagrams, and combinations thereof, can be implemented by special purpose hardware-based systems that perform the specified functions or operations, or combinations of special purpose hardware and computer instructions.

[0118] The modules involved in the embodiments of the present application can be implemented in the manner of software or in the manner of hardware. Among them, the name of the module does not constitute a limitation to the unit itself in some cases.

[0119] The readable storage medium provided by the application is a computer readable storage medium, which stores computer readable program instructions (i.e. computer program) for executing the vehicle program burning method described above, and can solve the technical problem of how to improve the vehicle program burning efficiency while ensuring the accuracy of the vehicle program burning. Compared with the prior art, the beneficial effects of the computer readable storage medium provided by the application are the same as those of the vehicle program burning method provided by the above-mentioned embodiments, and will not be repeated here.

[0120] The application also provides a computer program product, comprising a computer program, which, when executed by a processor, implements the steps of the vehicle program burning method as described above.

[0121] The computer program product provided by the application can solve the technical problem of how to improve the vehicle program burning efficiency while ensuring the accuracy of the vehicle program burning. Compared with the prior art, the beneficial effects of the computer program product provided by the application are the same as those of the vehicle program burning method provided by the above-mentioned embodiments, and will not be repeated here.

[0122] The above-mentioned is only part of the embodiments of the application, and does not limit the patent scope of the application, and any equivalent structural transformation, direct / indirect application in other related technical fields made by using the content of the application specification and drawings under the technical concept of the application are included in the patent protection scope of the application.

Claims

1. An in-vehicle program burning method, characterized by, The method is applied to a vehicle-mounted system on chip (SOC), and the vehicle-mounted SOC includes a plurality of chip domains, and the method includes the following steps: According to a preset program burning script, the plurality of chip domains are sequentially controlled to execute corresponding program burning tasks. The program burning script includes a burning port switching function, and before the step of sequentially controlling the plurality of chip domains according to the preset program burning script to execute corresponding program burning tasks, the following steps are included: An unburned chip domain queue is obtained. According to the device identifier corresponding to each chip domain in the unburned chip domain queue, a burning port switching function is set, and the burning port switching function is used to switch the chip domain according to the device identifier.

2. The method of claim 1, wherein, According to the program burning script, the burning port switching function is called to determine a current unburned chip domain from the unburned chip domain queue. According to the program burning script, a preset single-domain burning function is called, and the current unburned chip domain is controlled to execute a corresponding target program burning task based on the single-domain burning function. If the corresponding program burning task of the current unburned chip domain is successfully executed, the burning port switching function is called to determine a new current unburned chip domain, and the step of calling the preset single-domain burning function according to the program burning script to control the current unburned chip domain to execute the corresponding target program burning task is returned, until a preset program burning stop condition is met, and a program burning result is obtained. The step of calling the preset single-domain burning function according to the program burning script and controlling the current unburned chip domain to execute the corresponding program burning task based on the single-domain burning function includes the following steps:

3. The method of claim 2, wherein, According to the program burning script, a preset single-domain burning function is called, and a recovery instruction is sent to a micro control unit (MCU) chip corresponding to the current unburned chip domain based on the single-domain burning function, so that an advanced reduced instruction set computing (RISC) machine (ARM) chip corresponding to the current unburned chip domain enters a recovery mode. A recovery mode confirmation instruction is executed to obtain universal serial bus (USB) device information. According to the USB device information, it is judged whether the current unburned chip domain enters the recovery mode. If yes, a burning program file position is determined according to the single-domain burning function, and a program file at the burning program file position is burned in the ARM chip corresponding to the current unburned chip domain. After the target program burning task is successfully executed, a preset exit recovery instruction is sent to the current unburned chip domain to control the current unburned chip domain to exit the recovery mode.

4. The method of claim 2, wherein, The preset program burning script includes a command transmission function, and the command transmission function is used to perform serial port read-write operations on the MFU chip and the ARM chip of each chip domain. ​ 5. The method of any one of claims 1 to 4, wherein, ​ 6. An in-vehicle program burning device, characterized by comprising: The application is applied to a vehicle SOC (System on Chip), the vehicle SOC includes a plurality of chip domains, and the vehicle program burning device includes: A script execution module is configured to control the chip domains in sequence according to a preset program burning script to perform corresponding program burning tasks, and the program burning script includes a burning port switching function. The script execution module is further configured to obtain a chip domain queue to be burned before the step of controlling the chip domains in sequence according to the preset program burning script to perform corresponding program burning tasks. The burning port switching function is set according to a device identifier corresponding to each chip domain in the chip domain queue to be burned, and the burning port switching function is configured to switch the chip domains according to the device identifier.

7. An in-vehicle program burning device, characterized by comprising: The device includes a memory, a processor, and a computer program stored on the memory and executable on the processor, and the computer program is configured to implement the steps of the vehicle program burning method according to any one of claims 1 to 5.

8. A storage medium, characterized by The storage medium is a computer readable storage medium, and the storage medium stores a computer program, and the computer program is executed by the processor to implement the steps of the vehicle program burning method according to any one of claims 1 to 5.

9. A computer program product, characterised in that, The computer program product includes a computer program, and the computer program is executed by the processor to implement the steps of the vehicle program burning method according to any one of claims 1 to 5.

Citation Information

Patent Citations

  • Multi-chip firmware burning method, system and device and storage medium

    CN110704075A

  • Continuous integration method and device of vehicle software, electronic equipment and storage medium

    CN116301987A