CN107632862A - A kind of multistage start-up loading method of vehicle electronic control unit ECU - Google Patents
A kind of multistage start-up loading method of vehicle electronic control unit ECU Download PDFInfo
- Publication number
- CN107632862A CN107632862A CN201710853248.6A CN201710853248A CN107632862A CN 107632862 A CN107632862 A CN 107632862A CN 201710853248 A CN201710853248 A CN 201710853248A CN 107632862 A CN107632862 A CN 107632862A
- Authority
- CN
- China
- Prior art keywords
- application
- upgrading
- ecu
- control unit
- electronic control
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Landscapes
- Stored Programmes (AREA)
Abstract
The invention provides the multistage start-up loading method of vehicle electronic control unit ECU a kind of, this method includes two-stage loading Bootloader:Bootloader0 and Bootloader1, the storage region of the ECU is in turn divided into Bootloader0 subregions, Bootloader1 subregions and Application subregions, it is characterized in that, after the upper electricity of ECU, first start Bootloader0, check whether there is upgrading Bootloader1 or Application request, if, then Bootloader0 upgrades to Bootloader1 or Application, restarts ECU after upgrading successfully;If it is not, Bootloader0 guiding Bootloader1 starts, after Bootloader1 starts, upgrading Application request is checked whether there is, if so, then Bootloader1 upgrades to Application;If it is not, Bootloader1 guiding Application starts.The method of the invention is not only safe and reliable, while can also accelerate ECU exploitation, is provided a great convenience for later maintenance and upgrading.
Description
Technical field
The present invention relates to automobile technical field, more particularly to a kind of vehicle electronic control unit ECU multistage start-up loading
Method.
Background technology
Need continually to carry out program burn writing work in vehicle electronic control unit ECU development process, traditional burning
WriteMode is usually to be downloaded using chip specific download device by BDM or JTAG debugging interfaces, in later maintenance, if
Need ROMPaq, it is necessary to ECU is disassembled from vehicle, to debug and maintenance brings great inconvenience.
And although traditional Bootloader can upgrade Application program, the work(of itself can not be upgraded
Energy.
For having been put into for the ECU used, it is badly in need of a kind of convenient, fast and reliable and secure program upgrading side
Method.
To solve the above problems, the present invention proposes the multistage start-up loading method of vehicle electronic control unit ECU a kind of.
The content of the invention
The technical problems to be solved by the invention are to provide a kind of vehicle electronic control unit ECU multistage start-up loading side
Method.Technical scheme is used by the present invention solves above-mentioned technical problem:A kind of vehicle electronic control unit(ECU)Multistage open
Dynamic loading(Bootloader)Method, this method include two-stage loading Bootloader:Bootloader0 and Bootloader1,
The storage region of the ECU is in turn divided into Bootloader0 subregions, Bootloader1 subregions and Application subregions,
Characterized in that, on ECU electricity after, first start Bootloader0, check whether there is upgrading Bootloader1 or
Application request, if so, then Bootloader0 upgrades to Bootloader1 or Application, rise
Restart ECU after level success;If it is not, Bootloader0 guiding Bootloader1 starts, after Bootloader1 starts,
Upgrading Application request is checked whether there is, if so, then Bootloader1 upgrades to Application;Such as
Fruit does not have, then Bootloader1 guides Application to start.
Preferably, above-mentioned vehicle electronic control unit ECU multistage start-up loading method, it is characterised in that
Bootloader0 possesses upgrading Bootloader1 function.
Preferably, above-mentioned vehicle electronic control unit ECU multistage start-up loading method, it is characterised in that
Bootloader0 possesses upgrading Application function.
Preferably, above-mentioned vehicle electronic control unit ECU multistage start-up loading method, it is characterised in that
Bootloader0 subregions are non-erasable.
Preferably, above-mentioned vehicle electronic control unit ECU multistage start-up loading method, it is characterised in that
Bootloader1 possesses upgrading Application function.
Preferably, above-mentioned vehicle electronic control unit ECU multistage start-up loading method, it is characterised in that
Bootloader0 guiding Bootloader1 start process be:Bootloader0 finds Bootloader1 from the address of agreement
Check information and status information, if check information is correct, and status information is then jumped to not upgrade
At the address of Bootloader1 executable code, Booting sequence is completed;If status information is to be upgraded, enter upgrading
Pattern, Bootloader1 is upgraded, upgrading restarts ECU after terminating.
Preferably, above-mentioned vehicle electronic control unit ECU multistage start-up loading method, it is characterised in that
Bootloader0 guiding Application start process be:Bootloader0 finds Application from the address of agreement
Check information and status information, if check information is correct, and status information is then jumped to not upgrade
At the address of Application executable code, Booting sequence is completed;If status information is to be upgraded, enter upgrading
Pattern, Application is upgraded, upgrading restarts ECU after terminating.
Preferably, above-mentioned vehicle electronic control unit ECU multistage start-up loading method, it is characterised in that
Bootloader1 guiding Application start process be:Bootloader1 finds Application from the address of agreement
Check information and status information, if check information is correct, and status information is then jumped to not upgrade
At the address of Application executable code, Booting sequence is completed;If status information is to be upgraded, enter upgrading
Pattern, Application is upgraded, upgrading restarts ECU after terminating.
Preferably, above-mentioned vehicle electronic control unit ECU multistage start-up loading method, it is characterised in that above-mentioned any
A kind of mode of upgrading includes two kinds:CAN upgrades mode and LIN upgrading modes.
Brief description of the drawings
Fig. 1 is the multistage boot load method flow chart of vehicle electronic control unit.
Fig. 2 is Bootloader1 upgrade method flow chart.
Fig. 3 is Application upgrade method flow chart.
Embodiment
The preferable one embodiment of the present invention is provided below in conjunction with the accompanying drawings, to describe technical scheme in detail.
Bootloader0:Support to start Bootloader1, upgrade Bootloader1, while support to start
Application, upgrade Application;Upgrading mode realizes that Bootloader0 takes storage generally by CAN communication
Space is smaller, generally not over 8K bytes.
Bootloader1:Support to start Application, upgrade Application;Upgrading mode is generally by CAN
Communication is realized, can be upgraded the whole memory cell in addition to itself and Bootloader0, is typically to meet car gage specification
, such as UDS.
Bootloader0 is not support Online Erasing, and this is to preferably protect the safety of code.
The all no authorities of Bootloader1 and Application are modified to Bootloader0, can be set by way of software
Write-protect is put to realize, write-protect setting can also be carried out to Bootloader0 by way of hardware.
In the present embodiment, Bootloader0 is first carried out after electricity on ECU, complete to Bootloader1 or
Application upgrading or startup.
Referring to Fig. 1, in the present embodiment, the start-up loading method based on two-stage Bootloader comprises the steps of.
After the upper electricity of 1-1, ECU, from specified address start Bootloader0, start to perform basic operation, including initialization
RAM, FLASH, timer and the Central Shanxi Plain are broken.
1-2, Bootloader0 read Bootloader1 status information from specified address, are confirmed whether have upgrading please
Ask(Upgrade request is by specifying the content of FLASH addresses to realize).If so, perform step 1-3;If it is not carried out step 1-
4。
1-3, Bootloader0 enter upgrade mode, and escalation process is as shown in Figure 2.
1-4, Bootloader0 read Bootloader1 check information from specified address(Check information is by specifying
The content of FLASH addresses is realized), confirm whether its function is effective.If invalid, step 1-8 is performed;If effectively, start
Bootloader1, perform step 1-5.
1-5, Bootloader1 read Application status information from specified address, are confirmed whether have upgrading please
Ask(Upgrade request is by specifying the content of FLASH addresses to realize).If so, perform step 1-6;If not provided, perform step
1-7。
1-6, Bootloader1 enter upgrade mode, and escalation process is as shown in Figure 3.
1-7, Bootloader1 read Application check information from specified address(Check information is by specifying
The content of FLASH addresses is realized), confirm whether its function is effective.If invalid, step 1-6 is performed;If effectively, start
Application, jump to specified address and perform.
1-8, Bootloader0 read Application status information from specified address, are confirmed whether have upgrading please
Ask(Upgrade request is by specifying the content of FLASH addresses to realize).If so, perform step 1-3;If not provided, perform step
1-9。
1-9, Bootloader0 read Application check information from specified address(Check information is by specifying
The content of FLASH addresses is realized), confirm whether its function is effective.If invalid, step 1-3 is performed;If effectively, start
Application, jump to specified address and perform.
Although the foregoing describing the specific embodiment of the present invention, but it is to be understood that these are only to explain the present invention,
On the premise of without departing substantially from the principle and essence of the present invention, various changes or modifications can be made to these embodiments.
Claims (9)
1. the multistage start-up loading method of vehicle electronic control unit ECU a kind of, this method includes two-stage loading Bootloader:
Bootloader0 and Bootloader1, the ECU storage region be in turn divided into Bootloader0 subregions,
Bootloader1 subregions and Application subregions, it is characterised in that after the upper electricity of ECU, first start Bootloader0, check
Whether upgrading Bootloader1 or Application request is had, if so, then Bootloader0 is to Bootloader1
Or Application is upgraded, ECU is restarted after upgrading successfully;If it is not, Bootloader0 is guided
Bootloader1 starts, and after Bootloader1 starts, upgrading Application request is checked whether there is, if so, then
Bootloader1 upgrades to Application;If it is not, Bootloader1 guiding Application starts.
A kind of 2. vehicle electronic control unit ECU as claimed in claim 1 multistage start-up loading method, it is characterised in that
Bootloader0 possesses upgrading Bootloader1 function.
A kind of 3. vehicle electronic control unit ECU as claimed in claim 1 multistage start-up loading method, it is characterised in that
Bootloader0 possesses upgrading Application function.
A kind of 4. vehicle electronic control unit ECU as claimed in claim 1 multistage start-up loading method, it is characterised in that
Bootloader0 subregions are non-erasable.
A kind of 5. vehicle electronic control unit ECU as claimed in claim 1 multistage start-up loading method, it is characterised in that
Bootloader1 possesses upgrading Application function.
A kind of 6. vehicle electronic control unit ECU as claimed in claim 1 multistage start-up loading method, it is characterised in that
Bootloader0 guiding Bootloader1 start process be:Bootloader0 finds Bootloader1 from the address of agreement
Check information and status information, if check information is correct, and status information is then jumped to not upgrade
At the address of Bootloader1 executable code, Booting sequence is completed;If status information is to be upgraded, enter upgrading
Pattern, Bootloader1 is upgraded, upgrading restarts ECU after terminating.
A kind of 7. vehicle electronic control unit ECU as claimed in claim 1 multistage start-up loading method, it is characterised in that
Bootloader0 guiding Application start process be:Bootloader0 finds Application from the address of agreement
Check information and status information, if check information is correct, and status information is then jumped to not upgrade
At the address of Application executable code, Booting sequence is completed;If status information is to be upgraded, enter upgrading
Pattern, Application is upgraded, upgrading restarts ECU after terminating.
A kind of 8. vehicle electronic control unit ECU as claimed in claim 1 multistage start-up loading method, it is characterised in that
Bootloader1 guiding Application start process be:Bootloader1 finds Application from the address of agreement
Check information and status information, if check information is correct, and status information is then jumped to not upgrade
At the address of Application executable code, Booting sequence is completed;If status information is to be upgraded, enter upgrading
Pattern, Application is upgraded, upgrading restarts ECU after terminating.
A kind of 9. vehicle electronic control unit ECU as claimed in claim 1 multistage start-up loading method, it is characterised in that
The mode of any one above-mentioned upgrading includes two kinds:CAN upgrades mode and LIN upgrading modes.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710853248.6A CN107632862A (en) | 2017-09-20 | 2017-09-20 | A kind of multistage start-up loading method of vehicle electronic control unit ECU |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710853248.6A CN107632862A (en) | 2017-09-20 | 2017-09-20 | A kind of multistage start-up loading method of vehicle electronic control unit ECU |
Publications (1)
Publication Number | Publication Date |
---|---|
CN107632862A true CN107632862A (en) | 2018-01-26 |
Family
ID=61102323
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710853248.6A Pending CN107632862A (en) | 2017-09-20 | 2017-09-20 | A kind of multistage start-up loading method of vehicle electronic control unit ECU |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107632862A (en) |
Cited By (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108647040A (en) * | 2018-05-10 | 2018-10-12 | 上海纳恩汽车技术有限公司 | A kind of Bootloader frameworks based on PEPS system and write with a brush dipped in Chinese ink method |
CN109375941A (en) * | 2018-09-29 | 2019-02-22 | 延锋伟世通电子科技(南京)有限公司 | A kind of novel master-slave mode flash boot loader method for upgrading software applied to combination instrument |
CN109933348A (en) * | 2019-01-21 | 2019-06-25 | 宁波普瑞均胜汽车电子有限公司 | The update method and device of Bootloader in a kind of electronic control unit |
CN109947454A (en) * | 2019-03-29 | 2019-06-28 | 北京经纬恒润科技有限公司 | A kind of data processing method and system |
CN110244966A (en) * | 2019-06-18 | 2019-09-17 | 广东戈兰玛汽车***有限公司 | A kind of BOOTLOADER program online updating method based on UDS |
WO2020094065A1 (en) * | 2018-11-07 | 2020-05-14 | 中兴通讯股份有限公司 | Method and apparatus for upgrading vehicle-mounted tbox, device, and storage medium |
CN112596766A (en) * | 2020-12-24 | 2021-04-02 | 浙江合众新能源汽车有限公司 | Software upgrading method and device based on Bootloader |
CN112925546A (en) * | 2021-03-10 | 2021-06-08 | 云度新能源汽车股份有限公司 | Multi-stage verification method and system for preventing vehicle-mounted ECU (electronic control Unit) from refreshing errors |
CN116643772A (en) * | 2023-05-30 | 2023-08-25 | 深圳市乐祺微电子科技有限公司 | Low-cost chip OTA upgrading method |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20040078119A1 (en) * | 2002-08-05 | 2004-04-22 | Luitje William V. | Flash loader for vehicle electronic control units |
CN102902556A (en) * | 2012-09-06 | 2013-01-30 | 深圳市共进电子股份有限公司 | Multistage boot load method of embedded equipment |
CN104809009A (en) * | 2015-03-23 | 2015-07-29 | 陕西法士特齿轮有限责任公司 | Program loading leading method of electric control system of car |
CN106250196A (en) * | 2016-08-12 | 2016-12-21 | 上海金脉电子科技有限公司 | The method updating vehicle-mounted boot loader by CAN communication |
CN106325903A (en) * | 2015-06-25 | 2017-01-11 | 中兴通讯股份有限公司 | A start processing method and device |
-
2017
- 2017-09-20 CN CN201710853248.6A patent/CN107632862A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20040078119A1 (en) * | 2002-08-05 | 2004-04-22 | Luitje William V. | Flash loader for vehicle electronic control units |
CN102902556A (en) * | 2012-09-06 | 2013-01-30 | 深圳市共进电子股份有限公司 | Multistage boot load method of embedded equipment |
CN104809009A (en) * | 2015-03-23 | 2015-07-29 | 陕西法士特齿轮有限责任公司 | Program loading leading method of electric control system of car |
CN106325903A (en) * | 2015-06-25 | 2017-01-11 | 中兴通讯股份有限公司 | A start processing method and device |
CN106250196A (en) * | 2016-08-12 | 2016-12-21 | 上海金脉电子科技有限公司 | The method updating vehicle-mounted boot loader by CAN communication |
Cited By (14)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108647040A (en) * | 2018-05-10 | 2018-10-12 | 上海纳恩汽车技术有限公司 | A kind of Bootloader frameworks based on PEPS system and write with a brush dipped in Chinese ink method |
CN109375941A (en) * | 2018-09-29 | 2019-02-22 | 延锋伟世通电子科技(南京)有限公司 | A kind of novel master-slave mode flash boot loader method for upgrading software applied to combination instrument |
CN109375941B (en) * | 2018-09-29 | 2022-01-07 | 延锋伟世通电子科技(南京)有限公司 | Novel master-slave flash boot loader software upgrading method applied to combination instrument |
CN111158712A (en) * | 2018-11-07 | 2020-05-15 | 中兴通讯股份有限公司 | Vehicle-mounted Tbox upgrading method, device, equipment and storage medium |
WO2020094065A1 (en) * | 2018-11-07 | 2020-05-14 | 中兴通讯股份有限公司 | Method and apparatus for upgrading vehicle-mounted tbox, device, and storage medium |
US11995427B2 (en) | 2018-11-07 | 2024-05-28 | Zte Corporation | Method, apparatus, device, and storage medium for upgrading vehicle-mounted Tbox |
CN109933348A (en) * | 2019-01-21 | 2019-06-25 | 宁波普瑞均胜汽车电子有限公司 | The update method and device of Bootloader in a kind of electronic control unit |
CN109947454A (en) * | 2019-03-29 | 2019-06-28 | 北京经纬恒润科技有限公司 | A kind of data processing method and system |
CN109947454B (en) * | 2019-03-29 | 2022-07-15 | 北京经纬恒润科技股份有限公司 | Data processing method and system |
CN110244966A (en) * | 2019-06-18 | 2019-09-17 | 广东戈兰玛汽车***有限公司 | A kind of BOOTLOADER program online updating method based on UDS |
CN112596766A (en) * | 2020-12-24 | 2021-04-02 | 浙江合众新能源汽车有限公司 | Software upgrading method and device based on Bootloader |
CN112925546A (en) * | 2021-03-10 | 2021-06-08 | 云度新能源汽车股份有限公司 | Multi-stage verification method and system for preventing vehicle-mounted ECU (electronic control Unit) from refreshing errors |
CN112925546B (en) * | 2021-03-10 | 2023-07-25 | 云度新能源汽车股份有限公司 | Multistage verification method and system for preventing vehicle-mounted ECU from refreshing errors |
CN116643772A (en) * | 2023-05-30 | 2023-08-25 | 深圳市乐祺微电子科技有限公司 | Low-cost chip OTA upgrading method |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107632862A (en) | A kind of multistage start-up loading method of vehicle electronic control unit ECU | |
CN102945176B (en) | Terminal unit start, upgrade method and equipment | |
CN101431441B (en) | Method for on-line updating FPGA system embedded with CPU | |
KR100506203B1 (en) | Booting and boot code update method and system thereof | |
CN104572206A (en) | Application program self updating and backup recovery method | |
CN104102518B (en) | double-CPU system and program upgrading method thereof | |
CN110231952A (en) | A kind of ECU program backup and circulation upgrade control method and device | |
CN105320554A (en) | Program updating method as well as client and system for program updating | |
EP2192516A1 (en) | Method for upgrading antivirus software and terminal and system thereof | |
CN110597542B (en) | Software automatic OTA (over the air) upgrading method and device and electronic equipment | |
US20140325496A1 (en) | Apparatus and method for firmware upgrade using usb | |
CN111796848A (en) | Bootloader software updating method and device, embedded controller and storage medium | |
WO2016091071A1 (en) | Linux kernel driver loading method and device | |
CN106020861A (en) | FOTA upgrading method and system for smart watch | |
CN106250196A (en) | The method updating vehicle-mounted boot loader by CAN communication | |
CN102799452B (en) | system software upgrading method and device | |
WO2015154538A1 (en) | Memory booting method and device | |
WO2018024198A1 (en) | Application upgrade method and system for set-top box, and set-top box | |
CN104407878A (en) | On-line upgrading method of C6000 digital signal processor | |
CN107526574A (en) | The control method and device of system start-up mode | |
CN104182239A (en) | Upgrading method and upgrading device for file system based on embedded Linux equipment | |
CN107566169A (en) | A kind of firmware upgrade method and router based on openwrt | |
CN110837383B (en) | Application installation-free upgrading method and device | |
CN105677409A (en) | System upgrading method and device | |
CN110580167A (en) | system upgrading method, intelligent device and server |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
WD01 | Invention patent application deemed withdrawn after publication | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20180126 |