JP6899719B2 - Electronic control device for automobiles - Google Patents

Electronic control device for automobiles Download PDF

Info

Publication number
JP6899719B2
JP6899719B2 JP2017131830A JP2017131830A JP6899719B2 JP 6899719 B2 JP6899719 B2 JP 6899719B2 JP 2017131830 A JP2017131830 A JP 2017131830A JP 2017131830 A JP2017131830 A JP 2017131830A JP 6899719 B2 JP6899719 B2 JP 6899719B2
Authority
JP
Japan
Prior art keywords
update data
volatile memory
identification code
control device
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.)
Active
Application number
JP2017131830A
Other languages
Japanese (ja)
Other versions
JP2019016086A (en
Inventor
雅博 田畑
雅博 田畑
俊裕 ▲高▼橋
俊裕 ▲高▼橋
卓司 野村
卓司 野村
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hitachi Astemo Ltd
Original Assignee
Hitachi Astemo Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Hitachi Astemo Ltd filed Critical Hitachi Astemo Ltd
Priority to JP2017131830A priority Critical patent/JP6899719B2/en
Publication of JP2019016086A publication Critical patent/JP2019016086A/en
Application granted granted Critical
Publication of JP6899719B2 publication Critical patent/JP6899719B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Stored Programmes (AREA)

Description

本発明は、自動車用電子制御装置に関し、詳しくは、不揮発性メモリのデータを書き換えるときに更新データの識別コードを演算する技術に関する。 The present invention relates to an electronic control device for an automobile, and more particularly to a technique of calculating an identification code of update data when rewriting data in a non-volatile memory.

特許文献1には、電気的に書き換え可能な不揮発性メモリの内容を保証する内容保証値(CVN:Calibration Verification Number)を演算するCVN演算手段を備えた制御装置が開示されている。
この制御装置は、不揮発性メモリに書き換え用データを書き込む処理を実行したときに、CVN演算手段の演算が終了した後にこの演算結果を出力するよう構成される。
Patent Document 1 discloses a control device including a CVN calculation means for calculating a content guarantee value (CVN: Calibration Verification Number) that guarantees the contents of an electrically rewritable non-volatile memory.
This control device is configured to output the calculation result after the calculation of the CVN calculation means is completed when the process of writing the rewriting data to the non-volatile memory is executed.

特開2005−056263号公報Japanese Unexamined Patent Publication No. 2005-056263

ところで、制御用プログラムなどが書き換えられた後に起動された自動車用電子制御装置が、制御用プログラムにしたがって制御対象機器を制御する状態で更新データの識別コード(プログラムコードのチェックサム値などからなるCVN)を演算する場合、制御処理の合間(空き時間)で識別コードを演算することになるため、識別コードの演算完了に時間を要することになる。
このため、自動車用電子制御装置が起動されてから、更新データの識別コードを車両診断装置などに応答するまでに長い時間を要するという問題があった。
By the way, a CVN consisting of an identification code (checksum value of a program code, etc.) of update data in a state where an electronic control device for an automobile activated after a control program or the like is rewritten controls a device to be controlled according to the control program. ), Since the identification code is calculated between the control processes (free time), it takes time to complete the calculation of the identification code.
For this reason, there is a problem that it takes a long time from the activation of the electronic control device for automobiles to the response of the identification code of the update data to the vehicle diagnostic device or the like.

本発明は、従来の実情に鑑みてなされたものであり、その目的は、不揮発性メモリのデータが書き換えられるときに、更新データの識別コードの演算結果を速やかに得ることができる、自動車用電子制御装置を提供することを目的とする。 The present invention has been made in view of the conventional circumstances, and an object of the present invention is to be able to quickly obtain the calculation result of the identification code of the update data when the data of the non-volatile memory is rewritten. It is an object of the present invention to provide a control device.

本発明によれば、その1つの態様において、外部から送られた更新データを揮発性メモリに保存し、前記揮発性メモリに保存した前記更新データの容量が書き込み単位に達すると、前記書き込み単位の前記更新データを不揮発性メモリに書き込み、書き込み終了時点から次に前記不揮発性メモリに書き込む前記更新データの前記揮発性メモリへの保存を行う書き換え手段と、前記更新データを前記揮発性メモリに保存する処理中の処理待ち状態において、前記更新データの識別コードを演算する識別コード演算手段と、を有する。 According to the present invention, in one aspect thereof , update data sent from the outside is stored in a volatile memory, and when the capacity of the update data stored in the volatile memory reaches the write unit, the write unit A rewriting means for writing the update data to the non-volatile memory and saving the update data to be written to the non-volatile memory next from the end of writing to the volatile memory, and storing the update data in the volatile memory. It has an identification code calculation means for calculating the identification code of the update data in the processing waiting state during processing.

本発明によれば、不揮発性メモリのデータが書き換えられるときに、更新データの識別コードの演算完了を早めることができる。 According to the present invention, when the data in the non-volatile memory is rewritten, the calculation completion of the identification code of the update data can be accelerated.

自動車用電子制御装置の一態様を示す構成ブロック図である。It is a block diagram which shows one aspect of the electronic control device for automobiles. 書き換えシステムの一態様を示す概略図である。It is the schematic which shows one aspect of the rewriting system. 書換えツールの一態様を示す構成ブロック図である。It is a block diagram which shows one aspect of the rewriting tool. フラッシュEEPROMのデータを書き換え動作の手順を示すタイムチャートである。It is a time chart which shows the procedure of the rewriting operation of the data of a flash EEPROM. フラッシュEEPROMのデータを書き換え動作の流れを概略的に示すフローチャートである。It is a flowchart which shows the flow of the rewriting operation of the data of a flash EEPROM roughly. 書き換え動作とCVN計算プロセスの進行状況との相関を例示するタイムチャートである。It is a time chart exemplifying the correlation between the rewriting operation and the progress of the CVN calculation process. フラッシュEEPROMの書き換え処理後の通常モードでのCVN計算プロセスを例示するタイムチャートである。It is a time chart which illustrates the CVN calculation process in a normal mode after the rewriting process of a flash EEPROM. リプログラミングタスクにおける書き換え処理及びCVN計算の流れを示すフローチャートである。It is a flowchart which shows the flow of the rewriting process and CVN calculation in the reprogramming task.

以下、本発明に係る自動車用電子制御装置の実施形態を図面に基づいて説明する。
図1は、自動車用電子制御装置の一態様を示す構成ブロック図である。
図1の自動車用電子制御装置100(以下、ECU100と称する。)は、自動車に搭載された各種の制御対象機器、例えば、燃料噴射弁、変速機、電動ブレーキシステム、ABS(Antilock Brake System)、可変バルブタイミング機構、可変圧縮比機構などを制御する電子機器であって、マイクロコンピュータを内蔵している。
Hereinafter, embodiments of the electronic control device for automobiles according to the present invention will be described with reference to the drawings.
FIG. 1 is a block diagram showing one aspect of an electronic control device for an automobile.
The automobile electronic control device 100 (hereinafter referred to as ECU 100) of FIG. 1 includes various controlled devices mounted on the automobile, such as a fuel injection valve, a transmission, an electric brake system, and an ABS (Antilock Brake System). It is an electronic device that controls a variable valve timing mechanism, a variable compression ratio mechanism, etc., and has a built-in microcomputer.

具体的には、ECU100は、CPU(Central Processing Unit)などのプロセッサ110と、ネットワークに接続するための通信回路120と、不揮発性メモリの一例としてのフラッシュEEPROM(Electrically Erasable Programmable Read-Only Memory)130と、揮発性メモリの一例としてのRAM(Random Access Memory)140と、プロセッサ110、通信回路120、フラッシュEEPROM130及びRAM140を相互に接続するバス150と、を有している。 Specifically, the ECU 100 includes a processor 110 such as a CPU (Central Processing Unit), a communication circuit 120 for connecting to a network, and a flash EEPROM (Electrically Erasable Programmable Read-Only Memory) 130 as an example of a non-volatile memory. It has a RAM (Random Access Memory) 140 as an example of a volatile memory, and a bus 150 that connects a processor 110, a communication circuit 120, a flash EEPROM 130, and a RAM 140 to each other.

フラッシュEEPROM130は、電気的にデータを消去及び書込むことで、データの書換えが可能な不揮発性メモリであり、前述の制御対象機器を制御するための制御用プログラム(アプリケーションプログラム)や制御データ(定数、マップなどの制御パラメータ)が格納される。
そして、プロセッサ110は、フラッシュEEPROM130に格納されている制御用プログラム及び制御データにしたがってプログラムの処理を実行する。
The flash EEPROM 130 is a non-volatile memory capable of rewriting data by electrically erasing and writing data, and is a control program (application program) or control data (constant) for controlling the above-mentioned controlled device. , Control parameters such as maps) are stored.
Then, the processor 110 executes the processing of the program according to the control program and the control data stored in the flash EEPROM 130.

図2は、ECU100のフラッシュEEPROM130に格納されている制御用プログラムや制御データを書き換えるための書き換えシステムの一態様を示す。
書き換え対象となるECU100は、CAN(Controller Area Network)、シリアル通信、FlexRay(登録商標)などのネットワークケーブル200を介して、書換えツール300に着脱可能に接続される。
FIG. 2 shows an aspect of a rewriting system for rewriting control programs and control data stored in the flash EEPROM 130 of the ECU 100.
The ECU 100 to be rewritten is detachably connected to the rewriting tool 300 via a network cable 200 such as CAN (Controller Area Network), serial communication, and FlexRay (registered trademark).

なお、書き換えシステムは、ECU100と書換えツール300とをネットワークケーブル200を使用した有線で接続するシステムに限定されず、無線送受信器を使用した無線で接続するシステムとすることができる。
書換えツール300は、作業者がECU100(フラッシュEEPROM130)の書き換え作業を行うために使用する電子機器であり、例えば汎用のパーソナルコンピュータなどのコンピュータで構成される。
The rewriting system is not limited to a system in which the ECU 100 and the rewriting tool 300 are connected by wire using a network cable 200, and can be a system in which a wireless transmitter / receiver is used to connect wirelessly.
The rewriting tool 300 is an electronic device used by an operator to rewrite the ECU 100 (flash EEPROM 130), and is composed of a computer such as a general-purpose personal computer.

図3は、書換えツール300の一態様を示す構成ブロック図である。
書換えツール300は、CPUなどのプロセッサ310と、ネットワークに接続するための通信回路320と、ハードディスク装置、SSD(Solid State Drive)などのストレージ330と、マンマシンインターフェースとしての入出力装置340と、プロセッサ310、通信回路320、ストレージ330及び入出力装置340を相互に接続するバス350とを有している。
FIG. 3 is a block diagram showing one aspect of the rewriting tool 300.
The rewriting tool 300 includes a processor 310 such as a CPU, a communication circuit 320 for connecting to a network, a hard disk device, a storage 330 such as an SSD (Solid State Drive), an input / output device 340 as a man-machine interface, and a processor. It has a 310, a communication circuit 320, a storage 330, and a bus 350 that connects the input / output device 340 to each other.

入出力装置340は、LCD(Liquid Crystal Display)などの視覚表示装置と、キーボードと、マウスなどのポインティングデバイスとを含む。
ストレージ330は、例えば、図示しないネットワークに接続されたNAS(Network Attached Storage)、サーバのストレージなどであってもよい。
The input / output device 340 includes a visual display device such as an LCD (Liquid Crystal Display), a keyboard, and a pointing device such as a mouse.
The storage 330 may be, for example, NAS (Network Attached Storage) connected to a network (not shown), storage of a server, or the like.

ストレージ330には、ECU100のフラッシュEEPROM130に格納される制御用プログラムや制御データなどを書き換えるための更新データ(更新版の制御用プログラム、更新版の制御データ)が格納されている。
そして、ECU100は、外部装置である書換えツール300からの指示によってフラッシュEEPROM130のデータ(制御用プログラム、制御データ)を書き換える第1のモードと、フラッシュEEPROM130に格納された制御用プログラムにしたがって制御対象機器を制御する第2のモードとに切替え可能に構成されている。
The storage 330 stores update data (updated version of the control program, updated version of the control data) for rewriting the control program and control data stored in the flash EEPROM 130 of the ECU 100.
Then, the ECU 100 has a first mode in which the data (control program, control data) of the flash EEPROM 130 is rewritten according to an instruction from the rewriting tool 300, which is an external device, and a control target device according to the control program stored in the flash EEPROM 130. It is configured to be switchable to a second mode for controlling.

図4は、フラッシュEEPROM130のデータを書き換える動作(リプログラミング動作)の手順を示すタイムチャートであり、図5は、書き換え動作の流れを概略的に示すフローチャートである。
以下では、図4及び図5に基づき、フラッシュEEPROM130のデータの書き換え動作を説明する。
FIG. 4 is a time chart showing a procedure of an operation (reprogramming operation) of rewriting the data of the flash EEPROM 130, and FIG. 5 is a flowchart showing a flow of the rewriting operation.
Hereinafter, the data rewriting operation of the flash EEPROM 130 will be described with reference to FIGS. 4 and 5.

通常処理(S10)の状態で書換えツール300から書き換え指示があると(図4の時刻t1)、リプログラミングタスク(S11)が起動し、まず、フラッシュEEPROM130の書き換え領域の消去動作(S12)が開始される。
そして、フラッシュEEPROM130の消去が完了すると(図4の時刻t2)、データバッファリング/書き込み動作(S13,S14)に移行する。
When a rewriting instruction is given from the rewriting tool 300 in the normal processing (S10) state (time t1 in FIG. 4), the reprogramming task (S11) is activated, and first, the erasing operation (S12) of the rewriting area of the flash EEPROM 130 is started. Will be done.
Then, when the erasing of the flash EEPROM 130 is completed (time t2 in FIG. 4), the data buffering / writing operation (S13, S14) is started.

このデータバッファリング/書き込み動作においては、書換えツール300からネットワークを介して送られてくる更新データをRAM140に一時的に保存する処理(S13:データバッファリング処理)と、RAM140に保存された更新データの容量が書き込み単位に達するとフラッシュEEPROM130に書き込む処理(S14:書き込み処理)とが繰り返される。
そして、更新データのRAM140への保存、フラッシュEEPROM130への書き込みを繰り返し、更新データの書き込みが完了すると(図4の時刻t3)、次いで、ベリファイ(verify)動作(S15)に移行する。
In this data buffering / writing operation, a process of temporarily storing the update data sent from the rewriting tool 300 via the network in the RAM 140 (S13: data buffering process) and an update data stored in the RAM 140. When the capacity of the flash reaches the writing unit, the process of writing to the flash EEPROM 130 (S14: writing process) is repeated.
Then, the update data is repeatedly stored in the RAM 140 and written to the flash EEPROM 130, and when the writing of the update data is completed (time t3 in FIG. 4), the process proceeds to the verify operation (S15).

ベリファイ動作(S15)は、フラッシュEEPROM130に書き込まれたデータに誤りがないかをチェックする動作であり、書き込みデータに誤りがなければ、書き換え動作の正常完了を履歴として保存し(図4の時刻t4)、ECU100はリセットされる(S16)。
また、ECU100は、フラッシュEEPROM130への更新データの書き込み処理中に、更新データについてCVN(Calibration Verification Number)を演算するよう構成されている(S17)。
The verify operation (S15) is an operation of checking whether the data written in the flash EEPROM 130 has an error, and if there is no error in the written data, the normal completion of the rewrite operation is saved as a history (time t4 in FIG. 4). ), The ECU 100 is reset (S16).
Further, the ECU 100 is configured to calculate a CVN (Calibration Verification Number) for the update data during the process of writing the update data to the flash EEPROM 130 (S17).

CVNは、ソフトウエア照合用番号として用いられる識別コードであり、プログラムコードのチェックサム値として演算される。そして、このCVNを外部の診断装置などに出力することで更新データ(書き換えられた制御用プログラムや制御データ)の正当性が保証され、ECU100の不正改造が抑制される。
換言すれば、CVNは、フラッシュEEPROM130のデータ(更新内容)を保証する内容保証値であり、ECU100は、更新データの識別コードを演算する識別コード演算手段としての機能を備える。
CVN is an identification code used as a software verification number, and is calculated as a checksum value of a program code. Then, by outputting this CVN to an external diagnostic device or the like, the validity of the updated data (rewritten control program or control data) is guaranteed, and unauthorized modification of the ECU 100 is suppressed.
In other words, the CVN is a content guarantee value that guarantees the data (updated content) of the flash EEPROM 130, and the ECU 100 has a function as an identification code calculation means for calculating the identification code of the update data.

書き換え動作においては、前述のように、RAM140に一時的に保存した更新データの容量が書き込み単位に達するまでは書き込み動作は実施されず、また、ネットワーク受信のタイミングにも制約があるため、更新データのRAM140への保存処理中にプロセッサ110の空き時間(処理待ち状態)が発生する。そこで、ECU100は、書き込み処理中(更新データをRAM140に一時的に保存する処理中)の処理待ち状態で、更新データのCVNを演算するよう構成されている。 In the rewrite operation, as described above, the write operation is not performed until the capacity of the update data temporarily stored in the RAM 140 reaches the write unit, and the update data is also restricted in the network reception timing. A free time (processing waiting state) of the processor 110 occurs during the process of saving the data to the RAM 140. Therefore, the ECU 100 is configured to calculate the CVN of the update data in the processing waiting state during the writing process (the process of temporarily storing the update data in the RAM 140).

つまり、図4及び図5に示すように、更新データのRAM140への保存処理中に発生する空き時間を利用して、CVN計算動作が実行される。
なお、CVNの演算結果はフラッシュEEPROM130又は個別の不揮発性メモリに書き込まれる。
That is, as shown in FIGS. 4 and 5, the CVN calculation operation is executed by utilizing the free time generated during the process of storing the update data in the RAM 140.
The CVN calculation result is written in the flash EEPROM 130 or an individual non-volatile memory.

図6は、更新データのRAM140への保存処理及び更新データのフラッシュEEPROM130への書き込み処理を繰り返す書き換え動作と、CVN計算プロセスの進行状況との相関を例示する図である。
CVN計算動作は、書き込み単位での書き込み終了時点から次の書き込み単位での書き込み開始までの間の更新データのRAM140への保存処理中に空き時間を利用して実施され、書き込み単位での書き込み処理中においてCVN計算動作は実施されない。
FIG. 6 is a diagram illustrating the correlation between the rewriting operation of repeating the process of storing the updated data in the RAM 140 and the process of writing the updated data to the flash EEPROM 130 and the progress of the CVN calculation process.
The CVN calculation operation is performed by utilizing the free time during the process of saving the update data in the RAM 140 from the end of writing in the writing unit to the start of writing in the next writing unit, and the writing process in the writing unit is performed. No CVN calculation operation is performed inside.

したがって、更新データのRAM140への保存処理中に、CVN計算プロセスが進行し、書き込み単位での書き込み処理中はCVN計算プロセスが中断される。
なお、ベリファイ動作中も空き時間(処理待ち状態)を利用してCVN計算を実施させることができる。したがって、更新データのRAM140への保存処理中にCVN計算を終えることができなかった場合に、残っているCVN計算をベリファイ動作中に実施させることができる。
Therefore, the CVN calculation process proceeds during the process of storing the update data in the RAM 140, and the CVN calculation process is interrupted during the write process in units of writing.
It should be noted that the CVN calculation can be performed by using the free time (processing waiting state) even during the verify operation. Therefore, if the CVN calculation cannot be completed during the process of storing the updated data in the RAM 140, the remaining CVN calculation can be performed during the verification operation.

また、更新データのRAM140への保存処理中に、書き込み単位の更新データについてのCVN計算を終えることができない場合は、書き込み動作の開始を遅らせてCVN計算を実行させることができる。
このようにして、ベリファイ動作終了までに全ての更新データについてのCVN計算を終えれば、ECU100がリセットされ、初期化処理(初期化モード)を経て通常モード(第2のモード)に移行したときには、直ちにCVN応答(CVNの外部への送信)を実施できる。
したがって、外部からのCVNの応答要求に対し、書き換え処理後にECU100がリセットされてから所定時間内にCVNを返信(応答)することができる。
Further, if the CVN calculation for the update data of the write unit cannot be completed during the storage process of the update data in the RAM 140, the start of the write operation can be delayed and the CVN calculation can be executed.
In this way, if the CVN calculation for all the update data is completed by the end of the verification operation, when the ECU 100 is reset and shifts to the normal mode (second mode) through the initialization process (initialization mode). , CVN response (transmission of CVN to the outside) can be performed immediately.
Therefore, in response to a CVN response request from the outside, the CVN can be replied (responded) within a predetermined time after the ECU 100 is reset after the rewriting process.

例えば、図7に示すように、フラッシュEEPROM130の書き換え処理後にECU100がリセットされ、制御動作を行う通常モード(第2のモード)になってから、空き時間(処理待ち状態)を利用してCVNの計算を行わせる場合には、種々の制御動作のための演算負荷が大きくCVN計算を行える空き時間を充分に確保することができず、更新データについてのCVN(プログラムコードのチェックサム値)の演算を終えるのに長い時間を要してしまう。
これに対し、書き換えに伴うリセット前の書き換え処理中(更新データのRAM140への保存処理中)にCVN計算を行わせれば、リセット時点でCVNの演算を予め完了させておくことが可能になり、通常モードに移行した直後にCVNを応答でき、フラッシュEEPROM130の記憶内容の保証をより確かなものとすることができる。
For example, as shown in FIG. 7, after the ECU 100 is reset after the rewriting process of the flash EEPROM 130 and the control operation is performed in the normal mode (second mode), the free time (processing waiting state) is used to perform the CVN. When the calculation is performed, the calculation load for various control operations is large and it is not possible to secure sufficient free time for CVN calculation, and the CVN (program code checksum value) calculation for the update data is performed. It takes a long time to finish.
On the other hand, if the CVN calculation is performed during the rewriting process before the reset accompanying the rewriting (during the process of saving the update data in the RAM 140), the CVN calculation can be completed in advance at the time of the reset. The CVN can be responded immediately after the transition to the normal mode, and the guarantee of the stored contents of the flash EEPROM 130 can be made more reliable.

なお、ECU100は、ベリファイ動作終了までに更新データについてのCVN計算を終えることができない場合に、リセット後の通常モードになってからの空き時間で残るCVN計算を実行することができる。
この場合も、書き換え処理中(更新データのRAM140への保存処理中)にCVN計算が進んでいるから、リセット後に通常モードになってからCVN計算を終えるまでの時間を充分に短くすることができる。
If the CVN calculation for the update data cannot be completed by the end of the verification operation, the ECU 100 can execute the CVN calculation remaining in the free time after the normal mode is set after the reset.
In this case as well, since the CVN calculation is in progress during the rewriting process (during the process of saving the update data to the RAM 140), the time from the normal mode after the reset to the end of the CVN calculation can be sufficiently shortened. ..

図8は、リプログラミングタスクにおける書き換え処理及びCVN計算の流れを示すフローチャートである。
まず、ECU100は、ステップS501で、フラッシュEEPROM130の書き換え領域を消去する処理を実施し、次のステップS502では、消去処理が完了したか否かを判断する。
FIG. 8 is a flowchart showing the flow of rewriting processing and CVN calculation in the reprogramming task.
First, the ECU 100 performs a process of erasing the rewrite area of the flash EEPROM 130 in step S501, and determines whether or not the erasing process is completed in the next step S502.

そして、ECU100は、消去処理が完了していない場合、ステップS501に戻って消去処理を継続させ、消去処理が完了するとステップS503に進む。
ECU100は、ステップS503で、書換えツール300からネットワークを介して送られてくる更新データをRAM140に一時的に保存するデータバッファリング処理を実施する。
Then, if the erasing process is not completed, the ECU 100 returns to step S501 to continue the erasing process, and when the erasing process is completed, proceeds to step S503.
In step S503, the ECU 100 performs a data buffering process for temporarily storing the update data sent from the rewriting tool 300 via the network in the RAM 140.

そして、ECU100は、ステップS504で、RAM140に保存した更新データの容量が書き込み単位に達したか否かを判断し、書き込み単位に達していない場合は、ステップS505に進む。
ECU100は、ステップS505で、空き時間で更新データについてのCVNの計算を実行し、ステップS503のデータバッファリング処理に戻る。
なお、ステップS505で、ECU100は、CVN計算よりも書換えツール300とのネットワーク通信(CAN通信)が優先し、ネットワーク通信が発生するとCVN計算を中断する。
Then, in step S504, the ECU 100 determines whether or not the capacity of the update data stored in the RAM 140 has reached the write unit, and if not, proceeds to step S505.
In step S505, the ECU 100 executes CVN calculation for the updated data in the free time, and returns to the data buffering process in step S503.
In step S505, the ECU 100 gives priority to network communication (CAN communication) with the rewriting tool 300 over CVN calculation, and interrupts CVN calculation when network communication occurs.

一方、ECU100は、ステップS504で、RAM140に保存した更新データの容量が書き込み単位に達したと判断すると、ステップS506に進み、RAM140に一時的に保存した更新データをフラッシュEEPROM130に書き込む処理を実施する。
そして、ECU100は、次のステップS507で、更新データのフラッシュEEPROM130への書き込みが全て終わったか否かを判断し、書き込み処理が残っている場合はステップS503のバッファリング処理に戻る。
On the other hand, when the ECU 100 determines in step S504 that the capacity of the update data stored in the RAM 140 has reached the write unit, the ECU 100 proceeds to step S506 and executes a process of writing the update data temporarily stored in the RAM 140 to the flash EEPROM 130. ..
Then, in the next step S507, the ECU 100 determines whether or not all the writing of the update data to the flash EEPROM 130 has been completed, and if the writing process remains, returns to the buffering process of step S503.

つまり、ECU100は、データバッファリング処理と書き込み処理とを繰り返し、書き込み単位毎にフラッシュEEPROM130に更新データを書き込み、更新データのバッファリング処理中の空き時間でCVN計算を実行する。
更新データのフラッシュEEPROM130への書き込みが全て終わると、ECU100は、ステップS508に進み、フラッシュEEPROM130に書き込んだデータ(更新プログラム、更新データ)に誤りがないかをチェックする動作であるベリファイ確認を実行する。
That is, the ECU 100 repeats the data buffering process and the write process, writes the update data to the flash EEPROM 130 for each write unit, and executes the CVN calculation in the free time during the update data buffering process.
When all the update data has been written to the flash EEPROM 130, the ECU 100 proceeds to step S508 and executes verification confirmation, which is an operation of checking whether the data (update program, update data) written to the flash EEPROM 130 is correct. ..

ECU100は、次のステップS509でベリファイ確認が終了したか否かを判断し、ベリファイ確認が終了していなければステップS508に戻ってベリファイ確認を継続して実行する。
一方、ベリファイ確認が終了すると、ECU100は、ステップS510で、リセット処理によって初期化モードに移行する。
The ECU 100 determines whether or not the verification confirmation is completed in the next step S509, and if the verification confirmation is not completed, returns to the step S508 and continuously executes the verification confirmation.
On the other hand, when the verification confirmation is completed, the ECU 100 shifts to the initialization mode by the reset process in step S510.

上記実施形態で説明した各技術的思想は、矛盾が生じない限りにおいて、適宜組み合わせて使用することができる。
また、好ましい実施形態を参照して本発明の内容を具体的に説明したが、本発明の基本的技術思想及び教示に基づいて、当業者であれば、種々の変形態様を採り得ることは自明である。
例えば、ECU100は、更新データの書き込み完了までにCVN計算が終わらず、ベリファイ中にCVN計算の残りを実行する場合、CVN計算の完了を待ってベリファイの終了とすることができる。
The technical ideas described in the above embodiments can be used in combination as appropriate as long as there is no contradiction.
In addition, although the contents of the present invention have been specifically described with reference to preferred embodiments, it is obvious that those skilled in the art can adopt various modifications based on the basic technical idea and teaching of the present invention. Is.
For example, when the CVN calculation is not completed by the completion of writing the update data and the rest of the CVN calculation is executed during the verification, the ECU 100 can wait for the completion of the CVN calculation to end the verification.

また、更新データの識別コードは、プログラムコードのチェックサム値に限定されるものではなく、本発明は、更新データに固有のものとして演算される種々の識別コードの演算に適用できる。 Further, the identification code of the update data is not limited to the checksum value of the program code, and the present invention can be applied to the calculation of various identification codes calculated as being unique to the update data.

ここで、上述した実施形態から把握し得る技術的思想について、以下に記載する。
自動車用電子制御装置は、その一態様において、電気的に記憶内容が書き換え可能であるとともに制御用プログラムが格納される不揮発性メモリと、揮発性メモリと、プログラム処理を実行するプロセッサと、を備え、
前記不揮発性メモリに格納される制御用プログラムを書き換える処理として、更新データを前記揮発性メモリに一時的に保存するバッファリング処理を含み、
前記バッファリング処理中に前記更新データの識別コードを演算する、
自動車用電子制御装置。
Here, the technical ideas that can be grasped from the above-described embodiments will be described below.
In one aspect of the electronic control device for automobiles, the electronic control device includes a non-volatile memory in which the stored contents can be electrically rewritten and a control program is stored, a volatile memory, and a processor that executes program processing. ,
As a process of rewriting the control program stored in the non-volatile memory, a buffering process of temporarily storing the update data in the volatile memory is included.
The identification code of the update data is calculated during the buffering process.
Electronic control device for automobiles.

100…自動車用電子制御装置(ECU)、110…プロセッサ、130…フラッシュEEPROM(不揮発性メモリ)、140…RAM(揮発性メモリ)、300…書換えツール 100 ... Automotive electronic control unit (ECU), 110 ... Processor, 130 ... Flash EEPROM (nonvolatile memory), 140 ... RAM (volatile memory), 300 ... Rewriting tool

Claims (3)

電気的に記憶内容が書き換え可能な不揮発性メモリと、揮発性メモリとを備え、外部からの指示によって前記不揮発性メモリのデータを書き換える第1のモードと、前記不揮発性メモリに格納された制御用プログラムにしたがって制御対象機器を制御する第2のモードとに切替え可能な自動車用電子制御装置であって、
前記第1のモードにおいて、外部から送られた更新データを前記揮発性メモリに保存し、前記揮発性メモリに保存した前記更新データの容量が書き込み単位に達すると、前記書き込み単位の前記更新データを前記不揮発性メモリに書き込み、書き込み終了時点から次に前記不揮発性メモリに書き込む前記更新データの前記揮発性メモリへの保存を行う書き換え手段と、
前記更新データを前記揮発性メモリに保存する処理中の処理待ち状態において、前記更新データの識別コードを演算する識別コード演算手段と、
を有する、自動車用電子制御装置。
A first mode, which includes a non-volatile memory whose storage contents can be electrically rewritten and a volatile memory, and rewrites data in the non-volatile memory according to an external instruction, and a control stored in the non-volatile memory. An electronic control device for automobiles that can be switched to a second mode in which the controlled device is controlled according to a program.
In the first mode, the update data sent from the outside is stored in the volatile memory, and when the capacity of the update data stored in the volatile memory reaches the write unit, the update data of the write unit is stored. A rewriting means for writing to the non-volatile memory and saving the update data to be written to the non-volatile memory from the time when the writing is completed to the volatile memory.
An identification code calculation means for calculating the identification code of the update data in a processing waiting state during the process of storing the update data in the volatile memory .
Electronic control device for automobiles.
請求項1記載の自動車用電子制御装置であって、
前記識別コード演算手段は、
前記書き込み単位の前記更新データについて前記識別コードの演算を終えることができないときに、前記書き込み単位の前記更新データの前記不揮発性メモリへの書き込み動作の開始を遅らせて前記識別コードの演算を行なう、
自動車用電子制御装置。
The electronic control device for an automobile according to claim 1.
The identification code calculation means
When the operation of the identification code for the update data of the write unit cannot be completed, the calculation of the identification code is performed by delaying the start of the operation of writing the update data of the write unit to the non-volatile memory.
Electronic control device for automobiles.
請求項1記載の自動車用電子制御装置であって、
前記識別コード演算手段は、
外部との通信が発生したときに前記識別コードの演算を中断する、
自動車用電子制御装置。
The electronic control device for an automobile according to claim 1.
The identification code calculation means
When communication with the outside occurs, the operation of the identification code is interrupted.
Electronic control device for automobiles.
JP2017131830A 2017-07-05 2017-07-05 Electronic control device for automobiles Active JP6899719B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2017131830A JP6899719B2 (en) 2017-07-05 2017-07-05 Electronic control device for automobiles

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2017131830A JP6899719B2 (en) 2017-07-05 2017-07-05 Electronic control device for automobiles

Publications (2)

Publication Number Publication Date
JP2019016086A JP2019016086A (en) 2019-01-31
JP6899719B2 true JP6899719B2 (en) 2021-07-07

Family

ID=65356908

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2017131830A Active JP6899719B2 (en) 2017-07-05 2017-07-05 Electronic control device for automobiles

Country Status (1)

Country Link
JP (1) JP6899719B2 (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20220204008A1 (en) * 2019-05-28 2022-06-30 Hitachi Astemo, Ltd. Arithmetic processing device, vehicle control device, and update method
CN110789504B (en) * 2019-10-18 2021-06-22 江苏大学 Nonlinear composite ABS control method based on electromagnetic braking hysteresis compensation
JP7373590B2 (en) * 2020-01-10 2023-11-02 日立Astemo株式会社 Electronic control device and electronic control system
CN114488997B (en) * 2021-12-28 2024-05-10 深圳市元征科技股份有限公司 ECU (electronic control Unit) refreshing method and device, electronic equipment and storage medium

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH09288573A (en) * 1996-04-23 1997-11-04 Mitsubishi Electric Corp On-vehicle controller
JP3626328B2 (en) * 1997-07-24 2005-03-09 三菱電機株式会社 Vehicle control device
JPH11296364A (en) * 1998-04-09 1999-10-29 Alpine Electronics Inc Method for updating data in storage device of on-vehicle electronic equipment
JP2005056263A (en) * 2003-08-06 2005-03-03 Nissan Motor Co Ltd Controller
JP5035511B2 (en) * 2006-09-13 2012-09-26 日本精工株式会社 Electric power steering control device, external connection device for electric power steering control device, and external program transfer method for electric power steering control device
JP5835271B2 (en) * 2013-05-29 2015-12-24 株式会社デンソー Electronic control device and memory rewriting method

Also Published As

Publication number Publication date
JP2019016086A (en) 2019-01-31

Similar Documents

Publication Publication Date Title
JP6899719B2 (en) Electronic control device for automobiles
JP2007287022A (en) Information storage method for electronic control device
JP6913621B2 (en) Electronic control device for automobiles
CN103744712A (en) Method and device for updating application program
JP6415990B2 (en) Electronic control unit for automobile
JP2012093961A (en) Control apparatus and method, and program write system
CN114115929A (en) Software update device, update control method, and non-temporary storage medium
US20220244946A1 (en) Ota master, update control method, non-transitory storage medium, and vehicle
JP6408450B2 (en) Electronic control unit for automobile
JP6765343B2 (en) Rewriting system, rewriting device and computer
JP2018180869A (en) Rewrite system, rewrite device and computer
JP5158883B2 (en) Firmware update method and firmware update apparatus
JP6334776B1 (en) Electronic control unit
JP4910402B2 (en) Nonvolatile memory rewriting device and rewriting method
US20220342653A1 (en) Ota master, center, system, update method, non-transitory storage medium, and vehicle
JP2005056263A (en) Controller
US11954480B2 (en) Center, OTA master, system, method, non-transitory storage medium, and vehicle
US20220405080A1 (en) Ota master, system, method, non-transitory storage medium, and vehicle
US20230032451A1 (en) Center, method, and non-transitory storage medium
US20220405083A1 (en) Ota master, system, method, non-transitory storage medium, and vehicle
KR101956843B1 (en) Method for applying calibration data to vehicle using integrated software for multi vehicles and Apparatus thereof
US20220391193A1 (en) Ota master, system, method, non-transitory storage medium, and vehicle
JP6950383B2 (en) Memory access device and memory access method
KR101900729B1 (en) Method for running PLC operating system
KR20090011733A (en) Download method of ccp software

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20191121

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20200916

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20201020

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20201202

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20210518

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20210615

R150 Certificate of patent or registration of utility model

Ref document number: 6899719

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250