Software burning method, automotive electronic control unit, burning device and system
The direct communication method through the serial programming and debugging interface solves the problems of tedious programming, long time consumption, easy data loss, and high failure rate of programming the automobile steering wheel switch software, improves programming efficiency and reliability, and reduces the disassembly and repair rate , increased storage space.
Patent Information
- Application Number
- CN202210978239.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-08-15
- Publication Date
- 2024-09-10
- Estimated Expiration
- 2042-08-15
AI Technical Summary
The existing software programming method for automobile steering wheel switches is cumbersome, time-consuming, easy to lose data, has a high failure rate, and has a high disassembly and repair rate. The programming process of the left and right controllers is inefficient and involves the risk of data loss.
A serial programming and debugging interface is used to connect the master electronic control unit and the slave electronic control unit. They communicate directly through the hardware-level interface to avoid frame loss in bus transmission data. The master electronic control unit programs the slave electronic control unit before upgrading to free up memory space. Reduce boot program residency and improve programming efficiency and reliability.
It improves the efficiency and reliability of software programming, reduces the disassembly and repair rate, avoids data loss and application loss caused by abnormal boot program execution, increases storage space, and provides greater support for complex applications.
Smart Images

Figure CN117632153B
Abstract
Description
Technical Field
[0001] The present application belongs to the field of automotive electronic system control, and specifically relates to a software burning method, an automotive electronic control unit, a burning device and a system. Background Art
[0002] A large number of car control functions are integrated into the steering wheel and its peripheral devices in the car. The car steering wheel switch usually includes a left controller and a right controller. The left and right controllers control different functional modules in the car respectively and usually have the characteristics of independent operation of the left and right. For example, the left controller may include specific functions, such as: left panel 2D touch system, left panel pressure collection system, left panel panel tactile feedback system, left panel lighting system. The right controller may include other specific functional modules, such as: right panel 2D touch system, right panel pressure collection system, right panel panel tactile feedback system, right panel lighting system, right panel power supply system, right panel steering wheel vibration reminder system, right panel steering wheel hand-off detection and constant temperature system, right panel voice prompt system. Limited by the design of the car steering wheel switch of the whole vehicle, the right controller is connected to the car control bus network (CAN), the left controller and the right controller communicate through the car control bus network, and the right controller and the left controller form a master controller and a slave controller relationship. The above electrical architecture is generally symmetrical and has similar functions.
[0003] In the prior art, when the vehicle system program is burned and upgraded, the drivers of the controllers on both sides need to be loaded separately, and the left and right boards are burned separately and one by one. The right board is directly burned and upgraded through the vehicle control bus network. When the left board is burned, the right board needs to convert the data packet into the corresponding protocol format and send it to the left board through the UART, CAN, I2C or SPI interface for burning and upgrading, thereby completing the burning and upgrading of the left and right boards.
[0004] The defects of the above method are:
[0005] First, the upgrade description files for the left board and the right board need to be selected and pushed separately on the burning device, which may cause confusion and increase the risk of mis-burning.
[0006] Second, the left and right boards are burned separately and one by one, which is inefficient and increases time cost;
[0007] Third, under high bus load, there is a certain risk of data loss when forwarding data from the right board to the left board, which may easily cause the upgrade failure;
[0008] Fourth, the ROM of both left and right controllers contains a driver program for erasing memory. If the program runs away, the erase memory may be accidentally executed and the application program may be accidentally lost.
[0009] Fifth, the left board is used as a slave controller, and the bootloader will be fixed in the memory of the left board. When there is a bug in the bootloader, it cannot be updated and repaired, which may cause the permanent programming failure of the left board application and increase the cost of disassembly and repair; Summary of the invention
[0010] The purpose of the embodiments of the present application is to provide a software burning method, an automotive electronic control unit, a burning device and a system, which can solve the problems in the prior art that the software burning operation is cumbersome, time-consuming, data is easily lost, the failure rate is high, and the disassembly return rate is high.
[0011] In a first aspect, an embodiment of the present application provides a method for software burning of an automotive electronic control unit, the method being applied to the electronic control unit, the electronic control unit comprising a master electronic control unit and a slave electronic control unit connected via a serial burning and debugging interface, wherein the master electronic control unit is connected to a vehicle control bus, comprising:
[0012] The main electronic control unit loads the serial burning and debugging interface driver program according to the serial burning and debugging interface driver program issued by the burning device;
[0013] The master electronic control unit receives a slave control unit data packet sent by the programming device, wherein the slave control unit data packet includes application data required for updating the slave electronic control unit;
[0014] After the master electronic control unit performs adaptation processing on the slave control unit data packet, the data packet is transmitted to the slave electronic control unit through the serial programming debugging interface, so that the slave electronic control unit executes application program update and completes the reset of the slave electronic control unit according to the reset instruction of the master electronic control unit;
[0015] The main electronic control unit receives a main control unit data packet sent by the burning device and executes an application program update, wherein the main control unit data packet includes application program data required for the main electronic control unit to be updated;
[0016] The main electronic control unit completes the resetting of the main electronic control unit according to the resetting instruction of the programming device.
[0017] In a second aspect, an embodiment of the present application provides a software burning method for an automotive electronic control unit, the method being applied to a burning device that cooperates with the automotive electronic control unit, the electronic control unit comprising a master electronic control unit and a slave electronic control unit connected via a serial burning and debugging interface, wherein the master electronic control unit is connected to a vehicle control bus, comprising:
[0018] Storing the packaged burning file to the burning device, the packaged burning file includes information related to each driver file, application file and configuration file required in the software burning process;
[0019] Parsing the packaged burning file to obtain a parsed burning file;
[0020] Sending a serial burning and debugging interface driver program obtained according to the parsed burning file to the main electronic control unit, so that the main electronic control unit loads the serial burning and debugging interface driver program;
[0021] Sending a slave control unit data packet obtained according to the parsed burning file to the master electronic control unit, so that the master electronic control unit updates the application of the slave electronic control unit through the serial burning and debugging interface, wherein the slave control unit data packet includes application data required for updating the slave electronic control unit;
[0022] A main control unit data packet obtained according to the parsed burning file is sent to the main electronic control unit so that the main electronic control unit executes application program update, wherein the main control unit data packet includes application program data required for the main electronic control unit to be updated.
[0023] In a third aspect, an embodiment of the present application provides an automotive electronic control unit, which includes a master electronic control unit and a slave electronic control unit connected via a serial programming and debugging interface, wherein only the master electronic control unit is connected to a vehicle control bus, and the automotive electronic control unit is used to execute the method described in the first aspect.
[0024] In a fourth aspect, an embodiment of the present application provides a software burning device for an automotive electronic control unit, which cooperates with an automotive electronic control unit, wherein the electronic control unit includes a master electronic control unit and a slave electronic control unit connected via a serial burning and debugging interface, wherein only the master electronic control unit is connected to the automotive control bus, and the software burning device is used to execute the method described in the second aspect.
[0025] In a fifth aspect, an embodiment of the present application provides a software burning system for an automotive electronic control unit, comprising the automotive electronic control unit as described in the third aspect and the software burning device as described in the fourth aspect.
[0026] Applying this method to upgrade the automotive electronic control unit has the following beneficial effects:
[0027] First, the master electronic control unit first upgrades the slave electronic control unit through the serial programming and debugging interface before upgrading itself, thereby avoiding the failure of the master electronic control unit to upgrade the slave electronic control unit, which leads to the inability to upgrade the slave electronic control unit and causes the disassembly and repair.
[0028] Second, the slave electronic control unit and the master electronic control unit communicate directly through a hardware-level interface, the serial programming and debugging interface, thereby avoiding the need to reside or load a boot program in the slave electronic control unit, and further avoiding the adverse situation in which the boot program accidentally executes an erase instruction under abnormal circumstances, resulting in further erasure of the application program in the slave electronic control unit.
[0029] Third, since there is no need to store a boot program in the electronic control unit, the memory space in the electronic control unit is released, which can provide a larger space for storing application programs and provide support for complex applications with large storage volumes.
[0030] Fourth, since the slave electronic control unit and the master electronic control unit communicate directly through the hardware-level interface - the serial programming and debugging interface without occupying the vehicle control bus network, the risk of data frame loss under high bus load rate caused by data transmission between the master and slave electronic control units through the bus is eliminated. BRIEF DESCRIPTION OF THE DRAWINGS
[0031] Figure 1 is a schematic diagram of a system framework of an automotive electronic control unit and a programming device according to an embodiment of the present invention;
[0032] Figure 2 is a schematic diagram of a framework of a steering wheel switch electronic control unit according to an embodiment of the present invention;
[0033] Figure 3 is a flow chart of a programming method according to an embodiment of the present invention;
[0034] Figure 4 is a flow chart of a programming method according to another embodiment of the present invention;
[0035] Figure 5 It is a flow chart of instruction interaction between an electronic control unit and a burning device according to a specific example of the present invention.
[0036] Definition of terms:
[0037] NOB: Node Bootloader, node bootloader;
[0038] UAPPS: User Application Segment, user program segment;
[0039] SWD: Serial Wire Debug, serial programming debug interface;
[0040] FLD: Flash Driver, non-volatile program memory driver;
[0041] SWDD: Serial Wire Debug Driver, serial communication driver;
[0042] USM: User Mode, which is the normal function program mode;
[0043] PRM: Programmer Mode, programmer mode, that is, burning mode. DETAILED DESCRIPTION
[0044] The following will be combined with the drawings in the embodiments of the present application to clearly describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, rather than all the embodiments. All other embodiments obtained by ordinary technicians in this field based on the embodiments in the present application belong to the scope of protection of this application.
[0045] The terms "first", "second", etc. in the specification and claims of the present application are used to distinguish similar objects, and are not used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable under appropriate circumstances, so that the embodiments of the present application can be implemented in an order other than those illustrated or described here, and the objects distinguished by "first", "second", etc. are generally of one type, and the number of objects is not limited. For example, the first object can be one or more. In addition, "and / or" in the specification and claims represents at least one of the connected objects, and the character " / " generally indicates that the objects associated with each other are in an "or" relationship.
[0046] Below, a software burning method for an automotive electronic control unit provided in an embodiment of the present application is described in detail through specific embodiments and application scenarios.
[0047] [First embodiment]
[0048] According to the first embodiment of the present invention, Figure 1As shown, the automotive electronic control unit 100 implemented in the present invention is an automotive electronic control unit with a specific architecture, such as an automotive steering wheel switch, and includes a master electronic control unit 102 and a slave electronic control unit 103 connected via a serial programming and debugging (SWD) interface 101, wherein only the master electronic control unit 102 is connected to the automotive control bus 104. The slave electronic control unit 103 is not connected to the automotive control bus 104, and the slave electronic control unit 103 can only perform bidirectional data transmission with the master electronic control unit 102 via the serial programming and debugging interface 101.
[0049] In one embodiment, the master ECU and the slave ECU may control different specific functions, such as in the example of a steering wheel switch, such as Figure 2 As shown, the master electronic control unit may be the steering wheel right panel ECU-R, for example including: right panel 2D touch control system, right panel pressure collection system, right panel panel tactile feedback system, right panel lighting system, right panel power supply system, right panel steering wheel vibration reminder system, right panel steering wheel constant temperature system, right panel voice prompt system, right panel bus interface, and left and right panel communication SWD interface. The slave electronic control unit may be the steering wheel left panel ECU-L, including: left panel 2D touch control system, left panel pressure collection system, left panel panel tactile feedback system, left panel lighting system, and left and right panel communication SWD interface. The master electronic control unit and the slave electronic control unit may be ECU, MCU, SOC or any other form of control device.
[0050] During the manufacturing process of automotive application equipment in the production workshop, the SWD interface communication line between the master and slave electronic control units is usually disconnected. Through a burner such as Jlink, the application program of the slave electronic control unit can be burned into the memory of the slave electronic control unit, and the bootloader and application program of the master electronic control unit can be burned into the memory of the master electronic control unit.
[0051] After leaving the factory, if the application programs in the master and slave electronic control units need to be upgraded, it is necessary to use a method of accessing the automobile control bus network through a programming device for programming and upgrading.
[0052] In one embodiment, the serial programming debug interface can be SWD, JTAG, ETM or SWV.
[0053] The programming method provided in this embodiment is as follows: Figure 3 As shown, the following steps are included:
[0054] In S301, the main electronic control unit loads the serial programming and debugging interface driver according to the serial programming and debugging interface driver issued by the programming device.
[0055] The serial programming debug interface driver may be, for example, a SWD driver.
[0056] In S302, the master electronic control unit receives a slave control unit data packet sent by the programming device, wherein the slave control unit data packet includes application data required for updating the slave electronic control unit.
[0057] In S303, the master electronic control unit adapts the slave control unit data packet and transmits it to the slave electronic control unit through the serial programming debugging interface, so that the slave electronic control unit executes the application program update and completes the reset of the slave electronic control unit according to the reset instruction of the master electronic control unit.
[0058] The master electronic control unit performs adaptation processing on the slave control unit data packet, including: unpacking the slave control unit data packet and repackaging it according to the serial programming and debugging interface communication protocol.
[0059] In S304, the main electronic control unit receives a main control unit data packet sent by the burning device and executes application program update, wherein the main control unit data packet includes application program data required for the main electronic control unit update.
[0060] In S305 , the main electronic control unit is updated and reset according to the reset instruction of the programming device.
[0061] Furthermore, after step S303, the method may further include the following steps: the main electronic control unit performs memory driver loading in the main electronic control unit according to the node boot program and memory driver program issued by the burning device, so as to subsequently perform application program update in the boot program of the main electronic control unit.
[0062] In addition, before the serial burning and debugging interface driver (SWD driver) of step S301 is loaded, the main electronic control unit can also provide first information according to the instruction of the burning device, so that the burning device can determine whether the electronic control unit meets the burning conditions according to the first information, wherein the first information at least includes the version number of the current application, the software code, and the current status information of the vehicle.
[0063] Specifically, the software code is stored in the node boot program, and the software code is used to identify the electronic control unit to be burned and upgraded. The vehicle current state information can be the current speed information of the vehicle. For example, when the version number of the application required for the update is higher than the version number of the current application, the electronic control unit to be burned and upgraded is determined by the software code. Further, when the current state of the vehicle indicates that the speed is zero or in a parking state, it is determined that the electronic control unit meets the burning conditions.
[0064] Optionally, the method further includes the following steps: before the main electronic control unit loads the serial programming and debugging interface driver (SWD driver), the main electronic control unit stops running the current application according to the instruction of the programming device; and sets the functional mode of the main electronic control unit to the programming mode.
[0065] The above has introduced the programming method of the present invention based on the first embodiment of the present invention. Applying this method to program and upgrade the automotive electronic control unit has the following beneficial effects:
[0066] First, the master electronic control unit first upgrades the slave electronic control unit through the serial programming and debugging interface before upgrading itself, thereby avoiding the failure of the master electronic control unit to upgrade the slave electronic control unit, which leads to the inability to upgrade the slave electronic control unit and causes the disassembly and repair.
[0067] Second, the slave electronic control unit and the master electronic control unit communicate directly through a hardware-level interface, the serial programming and debugging interface, thereby avoiding the need to reside or load a boot program in the slave electronic control unit, and further avoiding the adverse situation in which the boot program accidentally executes an erase instruction under abnormal circumstances, resulting in further erasure of the application program in the slave electronic control unit.
[0068] Third, since there is no need to store a boot program in the electronic control unit, the memory space in the electronic control unit is released, which can provide a larger space for storing application programs and provide support for complex applications with large storage volumes.
[0069] Fourth, since the slave electronic control unit and the master electronic control unit communicate directly through the hardware-level interface - the serial programming and debugging interface without occupying the vehicle control bus network, the risk of data frame loss under high bus load rate caused by data transmission between the master and slave electronic control units through the bus is eliminated.
[0070] [Second embodiment]
[0071] The software burning method according to the first embodiment of the present invention has been introduced above. The above embodiment is applied to the electronic control unit side. The software burning method according to the second embodiment of the present invention is introduced below in conjunction with the accompanying drawings. The method is applied to a burning device that cooperates with an automotive electronic control unit. As in the first embodiment, the electronic control unit includes a master electronic control unit and a slave electronic control unit connected through a serial burning and debugging interface, wherein only the master electronic control unit is connected to the automotive control bus, and the slave electronic control unit is not connected to the automotive control bus. The slave electronic control unit can only perform bidirectional data transmission with the master electronic control unit through the serial burning and debugging interface.
[0072] The burning device in this embodiment can be a vehicle diagnostic instrument VDS or a vehicle-mounted PAD, or it can be a network access device through FOTA, both of which communicate with the electronic control unit by accessing the vehicle bus control network, and are collectively referred to as burning devices.
[0073] like Figure 4 As shown, the method comprises the following steps:
[0074] In S401, the packaged burning file is stored in the burning device, and the packaged burning file includes information related to various driver files, application files and configuration files required in the software burning process.
[0075] In one embodiment, the driver file, application file and configuration file may be binary files, and the file formats thereof include but are not limited to .SREC files, .S19 files, .HEX files and .BIN files. In one embodiment, the configuration file includes a SWD driver start address, a memory driver start address, a master electronic control unit application start address, a slave electronic control unit application start address and a check value.
[0076] In S402, the packaged burning file is parsed to obtain a parsed burning file.
[0077] In S403, a serial programming and debugging interface driver (SWD driver) obtained according to the parsed programming file is sent to the main electronic control unit, so that the main electronic control unit loads the serial programming and debugging interface driver (SWD driver).
[0078] In S404, the slave control unit data packet obtained according to the parsed burning file is sent to the master electronic control unit, so that the master electronic control unit updates the application of the slave electronic control unit through the serial burning debugging interface. The slave control unit data packet includes the application data required for the slave electronic control unit to update.
[0079] In S405, a main control unit data packet obtained according to the parsed burning file is sent to the main electronic control unit so that the main electronic control unit executes application program update. The main control unit data packet includes application program data required for the main electronic control unit to update.
[0080] Optionally, before S401, the method further includes: sending an instruction to a main electronic control unit to obtain first information from the main electronic control unit, so as to determine whether the electronic control unit meets the burning conditions based on the first information, wherein the first information includes at least the version number of the current application, the software code, and the current status information of the vehicle.
[0081] Specifically, the software code is stored in the node boot program, and the software code is used to identify the electronic control unit to be burned and upgraded. The vehicle current state information can be the current speed information of the vehicle. For example, when the version number of the application required for the update is higher than the version number of the current application, the electronic control unit to be burned and upgraded is determined by the software code. Further, when the current state of the vehicle indicates that the speed is zero or in a parking state, it is determined that the electronic control unit meets the burning conditions.
[0082] The software burning method according to the second embodiment of the present invention has been introduced above. In coordination with the first embodiment, the software burning method is applied to the burning device side. By cooperating with the software burning method applied to the automotive electronic control unit side, the following beneficial effects can be achieved:
[0083] First, all the information related to various driver files, application files and configuration files required by the master and slave electronic control units during the software burning process are formed into a complete package burning file and sent to the burning device at one time, avoiding the cumbersome operation, confusion and misburning caused by the need to select upgrade description files or drivers separately in the traditional software burning method.
[0084] Second, in an optional embodiment, the burning device will determine whether the electronic control unit meets the burning conditions, and will only perform subsequent burning operations if the burning conditions are met, avoiding burning failures caused by software version upgrade errors, software and hardware mismatches, and vehicle conditions that cannot support burning operations.
[0085] [Third embodiment]
[0086] Next, continue to refer to Figure 1 According to a third embodiment of the present invention, an automotive electronic control unit 100 is provided, wherein the electronic control unit comprises a master electronic control unit 102 and a slave electronic control unit 103 connected via a serial programming and debugging (SWD) interface 101, wherein only the master electronic control unit 102 is connected to a vehicle control bus 104, and the automotive electronic control unit 100 is used to execute the method described in the first embodiment.
[0087] [Fourth embodiment]
[0088] Next, continue to refer to Figure 1, a software burning device 105 for an automotive electronic control unit according to a fourth embodiment of the present invention is introduced, the software burning device 105 cooperates with an automotive electronic control unit 100, the electronic control unit 100 includes a master electronic control unit 102 and a slave electronic control unit 103 connected via a serial burning and debugging (SWD) interface 101, wherein only the master electronic control unit 102 is connected to a vehicle control bus 104, and the software burning device 105 is used to execute the method described in the second embodiment of the present invention.
[0089] [Fifth embodiment]
[0090] Next, continue to refer to Figure 1 , introduces a software burning system for an automotive electronic control unit according to a fifth embodiment of the present invention, including the automotive electronic control unit 100 as described in the third embodiment of the present invention and the software burning device 105 as described in the fourth embodiment of the present invention.
[0091] The above has introduced the burning method, control unit, burning device and system of the present invention according to the five aspects of the embodiments of the present invention. The above scheme solves the problems in the prior art that the software burning operation is cumbersome, time-consuming, data is easily lost, the failure rate is high, and the disassembly return rate is high.
[0092]
example
[0093] The following will be combined Figure 2 The example of the steering wheel switch system is introduced in detail, and a specific example of the instruction interaction between the electronic control unit and the burning device of the present invention is described in detail. In the steering wheel switch system, the master electronic control unit is the steering wheel right plate ECU-R, and the slave electronic control unit is the steering wheel left plate ECU-L.
[0094] Figure 5 The flowchart of the instruction interaction between the electronic control unit and the burning device of the present invention is shown. Figure 5 As shown, in step S501, the SWD driver binary file .SREC and the application UAPP binary file .SREC of the left board and the FlashDriver driver binary file .SREC and the application UAPP binary file .SREC and the configuration file .XML of the right board are synthesized into a burning upgrade package .XCP and downloaded to the burning device, such as the local VDS or the local vehicle-mounted PAD.
[0095] In step S502, a communication connection is established between the burning device and the ODB interface of the whole vehicle, and an upgrade package file is selected on the burning device once, without distinguishing between the left board upgrade package and the right board upgrade package; or it is pushed to the CANFD interface of the whole vehicle control bus through the on-board FOTA wireless method to establish a communication connection with the right board, and the upgrade package file is issued.
[0096] In step S503, the left board is first upgraded by burning. The burning device reads the application UAPP software version and the boot program (NOB) software code from the right board according to the protocol request. After receiving the request, the right board responds with the result, and the burning device determines whether the burning conditions are met.
[0097] In step S504, the burning device parses the .XCP burning upgrade package, reads the configuration file, requests the left board to burn according to the protocol, and the right board stops the running of the functional program UAPPS-R and responds to the request success message; the configuration file config.XML described here includes but is not limited to the starting address of the SWD program, the starting address of the FlashDriver driver, the starting addresses of UAPPS-L and UAPPS-R, and the check value.
[0098] In step S505, the programming device sends a request to switch from the user mode USM to the programming mode PRM according to the protocol, and the right board responds with a switching success message.
[0099] In step S506, the programming device sends the SWD driver SWDD data according to the protocol, and the right board stores the received data in the RAM, completes the loading operation and responds to the loading result.
[0100] In step S507, the burning device sends a UAPPS-L data request according to the protocol, unpacks or assembles the package in the PRM mode, and the left board completes the burning and updating of the right board through the clock and data interface, and responds to the verification result.
[0101] In step S508, the right board outputs a low level signal through the reset pin to passively reset the left board, and the left board responds to the reset result.
[0102] In step S509, the burning device requests the right board to burn according to the protocol, and the right board jumps from the UAPPS program to the NOB boot program and responds to the jump result.
[0103] In step S510, the programming device sends a boot program to load the FlashDriver driver according to the protocol, and the right board completes loading the FLD program into the RAM space and responds with a result.
[0104] In step S511, the burning device sends the right board UAPPS-R according to the protocol, and the right board executes the FLD program to complete the erasure and burning update of the right board and responds to the burning result.
[0105] In step S512, the burning device requests a software reset of the right board according to the protocol. After the right board reset is completed, the node boot program is exited, the UAPPS-R program is run, the function mode USM is restored, and the result is responded.
[0106] In step S513, the burning device receives a burning success response and exits the upgrade request.
[0107] The memory referred to in the embodiments of the present invention can be used to store software programs and various data. The memory may mainly include a first storage area for storing programs or instructions and a second storage area for storing data, wherein the first storage area may store an operating system, an application program or instructions required for at least one function, etc. In addition, the memory may include a volatile memory or a non-volatile memory, or the memory may include both volatile and non-volatile memories. Among them, the non-volatile memory may be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory may be a random access memory (RAM), a static random access memory (SRAM), a dynamic random access memory (DRAM), a synchronous dynamic random access memory (SDRAM), a double data rate synchronous dynamic random access memory (DDRSDRAM), an enhanced synchronous dynamic random access memory (ESDRAM), a synchronous link dynamic random access memory (SLDRAM) and a direct memory bus random access memory (DRRAM). The memory in the embodiments of the present application includes but is not limited to these and any other suitable types of memory.
[0108] The embodiments of the present application are described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific implementation methods. The above-mentioned specific implementation methods are merely illustrative and not restrictive. Under the guidance of the present application, ordinary technicians in this field can also make many forms without departing from the purpose of the present application and the scope of protection of the claims, all of which are within the protection of the present application.
Claims
1. A software programming method for an automotive electronic control unit, characterized in that: The method is applied to the electronic control unit, the electronic control unit includes a master electronic control unit and a slave electronic control unit connected via a serial programming debugging interface, wherein the master electronic control unit is connected to a vehicle control bus, and includes: The main electronic control unit loads the serial burning and debugging interface driver program according to the serial burning and debugging interface driver program issued by the burning device; The master electronic control unit receives a slave control unit data packet sent by the programming device, wherein the slave control unit data packet includes application data required for updating the slave electronic control unit; After the master electronic control unit performs adaptation processing on the slave control unit data packet, the data packet is transmitted to the slave electronic control unit through the serial programming debugging interface, so that the slave electronic control unit executes application program update and completes the reset of the slave electronic control unit according to the reset instruction of the master electronic control unit; The main electronic control unit receives a main control unit data packet sent by the burning device and executes an application program update, wherein the main control unit data packet includes application program data required for the main electronic control unit to be updated; The main electronic control unit completes the resetting of the main electronic control unit according to the resetting instruction of the programming device.
2. The software programming method according to claim 1, characterized in that: The method further comprises: After the slave electronic control unit completes the reset, the master electronic control unit performs memory driver loading in the master electronic control unit according to the node boot program and memory driver program issued by the burning device, so as to update the application program in the boot program of the master electronic control unit.
3. The software programming method according to claim 1, characterized in that: The method further comprises: Before the main electronic control unit performs serial programming and debugging interface driver loading, the main electronic control unit provides first information according to the instruction of the programming device, so that the programming device determines whether the electronic control unit meets the programming conditions according to the first information, wherein the first information at least includes the version number of the current application, the software code, and the current status information of the vehicle.
4. The software programming method according to claim 1, characterized in that: The method further comprises: Before the main electronic control unit performs serial programming and debugging interface driver loading, the main electronic control unit stops running the current application according to the instruction of the programming device; and sets the function mode of the main electronic control unit to the programming mode.
5. The software programming method according to claim 1, characterized in that: The master electronic control unit performs adaptation processing on the slave control unit data packet, including: unpacking the slave control unit data packet, and repackaging it according to the serial programming debugging interface communication protocol for sending.
6. A method for burning software of an automotive electronic control unit, characterized in that: The method is applied to a burning device matched with the automobile electronic control unit, the electronic control unit comprises a master electronic control unit and a slave electronic control unit connected via a serial burning and debugging interface, wherein the master electronic control unit is connected to the automobile control bus, and comprises: Storing the packaged burning file to the burning device, the packaged burning file includes information related to each driver file, application file and configuration file required in the software burning process; Parsing the packaged burning file to obtain a parsed burning file; Sending a serial burning and debugging interface driver program obtained according to the parsed burning file to the main electronic control unit, so that the main electronic control unit loads the serial burning and debugging interface driver program; Sending a slave control unit data packet obtained according to the parsed burning file to the master electronic control unit, so that the master electronic control unit updates the application of the slave electronic control unit through the serial burning and debugging interface, wherein the slave control unit data packet includes application data required for updating the slave electronic control unit; A main control unit data packet obtained according to the parsed burning file is sent to the main electronic control unit so that the main electronic control unit executes application program update, wherein the main control unit data packet includes application program data required for the main electronic control unit to be updated.
7. The software programming method according to claim 6, characterized in that: The method further comprises: Send an instruction to the main electronic control unit to obtain first information from the main electronic control unit, so as to determine whether the electronic control unit meets the burning conditions according to the first information, wherein the first information at least includes the version number of the current application, the software code, and the current status information of the vehicle.
8. The software programming method according to claim 6, characterized in that: The configuration files included in the packaged flash file include: The starting address of the serial programming debug interface driver, the starting address of the memory driver, the starting address of the master electronic control unit application, and the starting address of the slave electronic control unit application.
9. An automotive electronic control unit, comprising a master electronic control unit and a slave electronic control unit connected via a serial programming debugging interface, wherein: The main electronic control unit is connected to a vehicle control bus, and the vehicle electronic control unit is used to execute the method according to any one of claims 1 to 5.
10. A software burning device for an automotive electronic control unit, characterized in that: The software burning device cooperates with an automobile electronic control unit, and the electronic control unit includes a master electronic control unit and a slave electronic control unit connected through a serial burning and debugging interface, wherein the master electronic control unit is connected to a vehicle control bus, and the software burning device is used to execute the method described in any one of claims 6-8.
11. A software burning system for an automotive electronic control unit, comprising the automotive electronic control unit as claimed in claim 9 and the software burning device as claimed in claim 10.
