JP6293612B2 - Vehicle control device - Google Patents

Vehicle control device Download PDF

Info

Publication number
JP6293612B2
JP6293612B2 JP2014161086A JP2014161086A JP6293612B2 JP 6293612 B2 JP6293612 B2 JP 6293612B2 JP 2014161086 A JP2014161086 A JP 2014161086A JP 2014161086 A JP2014161086 A JP 2014161086A JP 6293612 B2 JP6293612 B2 JP 6293612B2
Authority
JP
Japan
Prior art keywords
rewrite
core
control program
data
stored
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.)
Expired - Fee Related
Application number
JP2014161086A
Other languages
Japanese (ja)
Other versions
JP2016037157A (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.)
Honda Motor Co Ltd
Original Assignee
Honda Motor Co 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 Honda Motor Co Ltd filed Critical Honda Motor Co Ltd
Priority to JP2014161086A priority Critical patent/JP6293612B2/en
Publication of JP2016037157A publication Critical patent/JP2016037157A/en
Application granted granted Critical
Publication of JP6293612B2 publication Critical patent/JP6293612B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Description

本発明は、車両に搭載された内燃機関、変速機、空調装置などの制御対象を制御する車両用制御装置に関し、特に複数のプロセッサコアを含んで構成されるマルチコア型演算処理ユニットを用いて制御対象を制御する制御装置に関する。   The present invention relates to a vehicle control device that controls a control target such as an internal combustion engine, a transmission, and an air conditioner mounted on a vehicle, and in particular, controls using a multi-core type arithmetic processing unit including a plurality of processor cores. The present invention relates to a control device that controls an object.

特許文献1には、複数の処理部(プロセッサコア)を含んで構成されるマルチコア型演算処理ユニットを用いて車両に搭載された制御対象を制御する制御装置が示されている。この装置によれば、イグニッションスイッチがオン状態にあるときは、複数の処理部のすべてを作動させ、イグニッションスイッチがオフ状態にあるときは、複数の処理部の一部のみを作動させ、イグニッションスイッチがオフ状態にあるときに、制御装置の処理負荷が増加する場合、例えば外部故障診断処理や自己診断処理が行われる場合には、作動させる処理部の数を増加させる制御が行われる。   Patent Document 1 discloses a control device that controls a control target mounted on a vehicle using a multi-core arithmetic processing unit including a plurality of processing units (processor cores). According to this apparatus, when the ignition switch is in the on state, all of the plurality of processing units are operated, and when the ignition switch is in the off state, only a part of the plurality of processing units is operated. When the processing load of the control device increases when the is in the off state, for example, when an external failure diagnosis process or a self-diagnosis process is performed, control is performed to increase the number of processing units to be operated.

特許文献2には、マルチコア型演算処理ユニットに含まれる1つコアから他のコアに割込によってイベントを通知する際にイベントの誤通知を防止する手法が示されている。   Patent Document 2 discloses a technique for preventing an erroneous notification of an event when an event is notified from one core included in a multi-core arithmetic processing unit to another core by an interrupt.

特開2013−199180号公報JP 2013-199180 A 特開2012−108786号公報JP 2012-108786 A

複数のプロセッサコアを含んで構成されるマルチコア型演算処理ユニットの各プロセッサコアが実行する制御プログラムを書き換えることが必要となる場合、例えば車両に搭載される制御対象を制御する制御ユニットが実行する制御プログラム中にバグが発見された場合や、制御性能を高めるための改良が行われた場合などには、書き換え可能な読み出し専用メモリ(以下単に「ROM」という)に格納された制御プログラムを、外部装置によって書き換えることが行われる。   When it is necessary to rewrite a control program executed by each processor core of a multi-core arithmetic processing unit configured to include a plurality of processor cores, for example, control executed by a control unit that controls a control target mounted on a vehicle When a bug is found in a program or when improvements are made to improve control performance, a control program stored in a rewritable read-only memory (hereinafter simply referred to as “ROM”) Rewriting is performed by the device.

特許文献1及び2には、マルチコア型演算処理ユニットを用いた車両用制御装置が示されているが、ROMに格納されている制御プログラムの書き換え処理は示されていない。また、特許文献1には、イグニッションスイッチがオフ状態にあるときに、複数の処理部(コア)の一部を作動させないようにして、消費電力を低減する点が記載されているが、イグニッションスイッチがオン状態にあるときには、全ての処理部が作動状態とされる。上述した制御プログラムの書き換え処理は通常、イグニッションスイッチをオン状態として実行されるため、特許文献1に示された装置では、制御プログラムの書き換え処理時に消費電力を低減するための制御は行われない。   Patent Documents 1 and 2 show a vehicle control device using a multi-core type arithmetic processing unit, but do not show a rewrite process of a control program stored in a ROM. In addition, Patent Document 1 describes that when the ignition switch is in an OFF state, a part of the plurality of processing units (cores) is not operated to reduce power consumption. When is in the on state, all the processing units are activated. Since the above-described control program rewriting process is normally executed with the ignition switch turned on, the apparatus disclosed in Patent Literature 1 does not perform control for reducing power consumption during the control program rewriting process.

車両に搭載される内燃機関の作動を制御する制御装置に適用されるマルチコア型演算処理ユニットの制御プログラムを書き換える場合には、内燃機関の作動を継続できないため、発電(バッテリの充電)ができない状態となり、さらに最近は制御内容が複雑化しているため、書き換えに要する時間が長くなる傾向がある。したがって、イグニッションスイッチをオンした状態で制御プログラムの書き換え処理を実行し、かつ書き換え処理実行中の消費電力を低減すること及び書き換え処理時間を短縮することが求められている。   When rewriting a control program for a multi-core type arithmetic processing unit applied to a control device that controls the operation of an internal combustion engine mounted on a vehicle, the operation of the internal combustion engine cannot be continued, and power generation (battery charging) is not possible. Furthermore, recently, since the control content has become complicated, the time required for rewriting tends to increase. Therefore, it is required to execute the rewriting process of the control program with the ignition switch turned on, to reduce the power consumption during the rewriting process, and to shorten the rewriting process time.

マルチコア型演算処理ユニットの構成には、非対称型の構成と対称型の構成とがあり、非対称型の構成を有するマルチコア型演算処理ユニットでは、複数のプロセッサコアのそれぞれに対応して、キャッシュメモリ及び制御プログラムを格納するROMが設けられる。したがって、非対称型の構成を有するマルチコア型演算処理ユニットの制御プログラムを外部装置によって書き換える場合には、その構成上の特徴を生かした手法が適用可能である。   The configuration of the multi-core type arithmetic processing unit includes an asymmetric type configuration and a symmetric type configuration. In the multi-core type arithmetic processing unit having an asymmetric type configuration, a cache memory and a A ROM for storing the control program is provided. Therefore, when the control program of the multi-core arithmetic processing unit having an asymmetric type configuration is rewritten by an external device, a method that takes advantage of the configuration features can be applied.

本発明は、上述した事情に鑑みなされたものであり、非対称型の構成を有するマルチコア型演算処理ユニットに含まれる複数のプロセッサコアが実行する制御プログラムを、外部装置によって書き換える処理を適切に実行し、書き換え処理を比較的高速に実行することができる車両用制御装置を提供することを目的とする。   The present invention has been made in view of the above-described circumstances, and appropriately executes processing for rewriting a control program executed by a plurality of processor cores included in a multi-core arithmetic processing unit having an asymmetric configuration by an external device. An object of the present invention is to provide a vehicle control device capable of executing rewriting processing at a relatively high speed.

上記目的を達成するため請求項1に記載の発明は、複数のプロセッサコアを含んで構成されるマルチコア型演算処理ユニットを用いて車両に搭載された制御対象の制御を行う車両用制御装置において、前記マルチコア型演算処理ユニット(11)は、前記複数のプロセッサコア(21〜23)のそれぞれに対応して設けられたキャッシュメモリ(31〜33)と、前記複数のプロセッサコアのそれぞれに対応して設けられ、前記複数のプロセッサコアが実行する制御プログラムを格納する書き換え可能な読み出し専用メモリ(41〜43)と、外部装置(2)との間でデータの送受信を行う通信部(54)とを備え、前記マルチコア型演算処理ユニット(11)が、前記外部装置から前記通信部を介して前記制御プログラムの書き換え要求を受信したときは、該書き換え要求の対象となる制御プログラムを実行する対象プロセッサコア(21〜23の何れか一つ、例えば22)が、対応する前記読み出し専用メモリ(例えば42)に格納されている制御プログラムの書き換え処理を実行し、該書き換え処理では、前記制御プログラムの書き換え用データを前記通信部を介して受信し、受信したデータを対応する前記キャッシュメモリ(例えば32)に格納し、該格納した書き換え用データが所定データ量(DW)に達する毎に対応する前記読み出し専用メモリ(例えば42)への書き込み処理を実行し、前記対象プロセッサコア(例えば22)は、前記書き換え処理を実行するときは、前記対象プロセッサコア以外のプロセッサコア(例えば21,23)の作動を休止させることを特徴とする。 In order to achieve the above object, an invention according to claim 1 is a vehicle control device that controls a control object mounted on a vehicle using a multi-core arithmetic processing unit including a plurality of processor cores. The multi-core type arithmetic processing unit (11) corresponds to each of the plurality of processor cores (21 to 23) and the cache memory (31 to 33) provided corresponding to each of the plurality of processor cores (21 to 23). A rewritable read-only memory (41 to 43) that is provided and stores control programs executed by the plurality of processor cores, and a communication unit (54) that transmits and receives data to and from the external device (2). The multi-core arithmetic processing unit (11) sends a request for rewriting the control program from the external device via the communication unit. When received, the target processor core (any one of 21 to 23, for example, 22) that executes the control program that is the target of the rewrite request is stored in the corresponding read-only memory (for example, 42). A rewrite process of the control program is executed. In the rewrite process, rewrite data of the control program is received via the communication unit, and the received data is stored in the corresponding cache memory (for example, 32). Each time the rewritten data reaches a predetermined data amount (DW), a write process to the corresponding read-only memory (for example, 42) is executed, and the target processor core (for example, 22) executes the rewrite process is a Rukoto rested the operation of the processor core other than the target processor core (e.g., 21, 23) And butterflies.

この構成によれば、マルチコア型演算処理ユニットが、外部装置から通信部を介して制御プログラムの書き換え要求を受信したときは、書き換え要求の対象となる制御プログラムを実行する対象プロセッサコアによって、対応する読み出し専用メモリに格納されている制御プログラムの書き換え処理が実行され、該書き換え処理では、制御プログラムの書き換え用データが通信部を介して受信され、受信されたデータが対応するキャッシュメモリに格納され、該格納された書き換え用データが所定データ量に達する毎に対応する読み出し専用メモリへの書き込み処理が実行される。キャッシュメモリを書き換え用データを一時的に格納するバッファメモリとして使用することによって、書き換え処理を比較的高速で行うことができ、書き換え処理時間を短縮することによって消費電力を抑制することができる。さらに、書き換え処理実行中において、書き換え処理を実行しないプロセッサコアの作動を休止させる制御が行われるので、消費電力を抑制することができる。 According to this configuration, when the multi-core arithmetic processing unit receives a control program rewrite request from an external device via the communication unit, the multi-core arithmetic processing unit responds by the target processor core that executes the control program that is the target of the rewrite request. A rewrite process of the control program stored in the read-only memory is executed. In the rewrite process, rewrite data of the control program is received via the communication unit, and the received data is stored in the corresponding cache memory, Each time the stored rewrite data reaches a predetermined data amount, a write process to the corresponding read-only memory is executed. By using the cache memory as a buffer memory for temporarily storing rewrite data, the rewrite process can be performed at a relatively high speed, and the power consumption can be suppressed by shortening the rewrite process time. Further, during execution of the rewriting process, control is performed to stop the operation of the processor core that does not execute the rewriting process, so that power consumption can be suppressed.

請求項に記載の発明は、請求項1に記載の車両用制御装置において、前記対象プロセッサコアは、対応する前記読み出し専用メモリに格納されている書き換え処理プログラムを起動することにより、前記書き換え処理を実行し、対応する前記読み出し専用メモリの、前記書き換え処理プログラムが格納されている記憶領域以外の記憶領域に格納されている制御プログラムの書き換えを行うことを特徴とする。 The invention according to claim 2, in the vehicle control system according to claim 1, wherein the target processor core, by starting the rewriting processing program stored in the corresponding one of the read-only memory, the rewrite processing And the control program stored in the storage area other than the storage area in which the rewrite processing program is stored in the corresponding read-only memory is rewritten.

この構成によれば、対象プロセッサコアに対応する読み出し専用メモリに格納されている書き換え処理プログラムを起動することにより、書き換え処理が実行され、対応する読み出し専用メモリの、書き換え処理プログラムが格納されている記憶領域以外の記憶領域に格納されている制御プログラムの書き換えが行われる。対応する読み出し専用メモリに格納されている書き換え処理プログラムを起動して書き換え処理を実行するため、例えば書き換え処理プログラムをキャッシュメモリにコピーして起動する処理が不要となり、書き換えのために必要とされる付加的な処理を簡易化できる。また、書き換え処理中にイグニッションスイッチがオフされたりバッテリ電圧が低下した場合、または通信異常が発生したような場合においても、対応する読み出し専用メモリに格納されている書き換え処理プログラムが失われることが無いため、電源電圧あるいは通信異常が正常に復帰すれば、再び書き換え処理を実行することができる。さらに、マルチコア型演算処理ユニットの再起動時にも書き換え処理が実行されるため、書き換え処理に不要なプロセッサコアを直ちに休止することができる。   According to this configuration, by starting the rewrite processing program stored in the read-only memory corresponding to the target processor core, the rewrite processing is executed, and the rewrite processing program of the corresponding read-only memory is stored. The control program stored in the storage area other than the storage area is rewritten. Since the rewrite processing program stored in the corresponding read-only memory is activated to execute the rewrite processing, for example, the process of copying and reactivating the rewrite processing program to the cache memory becomes unnecessary, and is required for rewriting. Additional processing can be simplified. Also, even if the ignition switch is turned off or the battery voltage drops during rewrite processing, or if a communication error occurs, the rewrite processing program stored in the corresponding read-only memory will not be lost. Therefore, if the power supply voltage or the communication abnormality is restored normally, the rewriting process can be executed again. Furthermore, since the rewriting process is executed even when the multi-core arithmetic processing unit is restarted, a processor core unnecessary for the rewriting process can be immediately stopped.

本発明の一実施形態にかかる車両用制御装置の構成を示すブロック図である。It is a block diagram which shows the structure of the control apparatus for vehicles concerning one Embodiment of this invention. 図1に示すマルチコア型演算処理ユニット(MCU)の構成を示すブロック図ある。FIG. 2 is a block diagram illustrating a configuration of a multi-core arithmetic processing unit (MCU) illustrated in FIG. 1. 図1に示すMCUの構成を示すブロック図である。It is a block diagram which shows the structure of MCU shown in FIG. 外部装置によって非対称型の構成を有するMCUの制御プログラムを書き換える処理を説明するためのタイムチャートである。It is a time chart for demonstrating the process which rewrites the control program of MCU which has an asymmetrical structure with an external device. 図4に示す動作例に対応するMCUを構成する各コアが実行する通常制御及び特定のコアが実行するイベント処理のフローチャートである。5 is a flowchart of normal control executed by each core constituting the MCU corresponding to the operation example shown in FIG. 4 and event processing executed by a specific core. 図4の動作例に対応する書き換え要求対応処理のフローチャートである。5 is a flowchart of a rewrite request handling process corresponding to the operation example of FIG. 図6の処理で実行される書き換えモード遷移処理のフローチャートである。It is a flowchart of the rewrite mode transition process performed by the process of FIG. 図6の処理で実行される書き換え監視処理のフローチャートである。It is a flowchart of the rewriting monitoring process performed by the process of FIG. 書き換え対象ROMを使用するプロセッサコアによって実行される、書き換え用データの受信を実行する処理のフローチャートである。It is a flowchart of the process which performs the reception of the data for rewriting performed by the processor core which uses rewriting object ROM. 書き換え用データのROMへの書き込みを実行する処理のフローチャートである。It is a flowchart of the process which performs writing of the data for rewriting to ROM. 図1に示す構成の変形例を示すブロック図である。It is a block diagram which shows the modification of the structure shown in FIG.

以下本発明の実施の形態を図面を参照して説明する。
図1は本発明の一実施形態にかかる車両用制御装置の構成を示すブロック図であり、この制御装置は、車両1に搭載された内燃機関、変速機、空調装置などの制御を行うマルチコア型演算処理ユニット(以下「MCU」という)11〜14と、それらを相互に接続するバス3とを備えている。バス3は、データリンクコネクタ4を介して、外部装置2と接続可能に構成されている。外部装置2は、MCU11〜14のROM(Read Only Memory)に格納されている制御プログラムの書き換えや、MCU11〜14を含む制御装置、内燃機関、変速機などの制御対象、制御に使用される各種センサ及びアクチュエータなど(以下全体として「制御系」という)の故障診断などを行う。MCU11〜14が備えるROMは、何れも記憶内容を書き換え可能なものである。
Embodiments of the present invention will be described below with reference to the drawings.
FIG. 1 is a block diagram showing the configuration of a vehicle control apparatus according to an embodiment of the present invention. This control apparatus is a multi-core type that controls an internal combustion engine, a transmission, an air conditioner and the like mounted on a vehicle 1. Arithmetic processing units (hereinafter referred to as “MCU”) 11 to 14 and a bus 3 for connecting them to each other are provided. The bus 3 is configured to be connectable to the external device 2 via the data link connector 4. The external device 2 is used to rewrite a control program stored in a ROM (Read Only Memory) of the MCUs 11 to 14, a control device including the MCUs 11 to 14, an internal combustion engine, a transmission target, and various types used for control. Diagnose failures of sensors and actuators (hereinafter referred to as “control system” as a whole). Any of the ROMs included in the MCUs 11 to 14 can rewrite the stored contents.

図2は、MCU11の構成を示すブロック図であり、MCU11は3つのプロセッサコア(以下単に「コア」という)21〜23と、コア21が使用するキャッシュメモリ(以下「CAM」という)31、コア21が実行する制御プログラムを格納するROM41、及びバス55と、コア22が使用するCAM32、コア22が実行する制御プログラムを格納するROM42、及びバス56と、コア23が使用するCAM33、コア23が実行する制御プログラムを格納するROM43、及びバス57と、3つのコア間の通信を仲介するインタフェースとして機能するコア間通信部51と、コア21〜23が使用可能な共有メモリ52と、制御系の各種センサ及びアクチュエータが接続された入出力部53と、バス3上のデータの受信及びバス3へのデータの送信を行う外部通信部54とを備えている。MCU11では、車両1に搭載された内燃機関の制御に必要な処理を、3つコア21〜23が分担して実行する。MCU12は、MCU11と同様の構成(以下「非対称型の構成」という)を有する。   FIG. 2 is a block diagram showing the configuration of the MCU 11. The MCU 11 includes three processor cores (hereinafter simply referred to as “core”) 21 to 23, a cache memory (hereinafter referred to as “CAM”) 31 used by the core 21, and a core. ROM 41 and bus 55 for storing the control program executed by 21 and CAM 32 used by the core 22, ROM 42 and bus 56 for storing the control program executed by the core 22, CAM 33 and core 23 used by the core 23 ROM 43 for storing a control program to be executed, bus 57, inter-core communication unit 51 functioning as an interface that mediates communication between the three cores, shared memory 52 usable by cores 21 to 23, control system Input / output unit 53 to which various sensors and actuators are connected; And an external communication unit 54 for sending data to 3. In the MCU 11, the three cores 21 to 23 execute processing necessary for controlling the internal combustion engine mounted on the vehicle 1. The MCU 12 has the same configuration as the MCU 11 (hereinafter referred to as “asymmetrical configuration”).

図3は、MCU13の構成を示すブロック図であり、MCU13は2つのコア61,62と、コア61が使用するCAM71と、コア62が使用するCAM72と、コア61,62が使用可能な共有メモリ81と、コア61,62が実行する制御プログラムを格納するROM82と、制御系の各種センサ及びアクチュエータが接続された入出力部83と、バス3上のデータの受信及びバス3へのデータの送信を行う外部通信部84とを備えている。MCU13では、例えば車両1に搭載された変速機の制御に必要な処理を、2つコア61,62が分担して実行する。MCU14は、MCU13と同様の構成(以下「対称型の構成」という)を有する。   FIG. 3 is a block diagram illustrating the configuration of the MCU 13. The MCU 13 includes two cores 61 and 62, a CAM 71 used by the core 61, a CAM 72 used by the core 62, and a shared memory usable by the cores 61 and 62. 81, ROM 82 for storing control programs executed by the cores 61 and 62, an input / output unit 83 to which various sensors and actuators of the control system are connected, reception of data on the bus 3, and transmission of data to the bus 3 And an external communication unit 84 for performing the above. In the MCU 13, for example, the two cores 61 and 62 execute processing necessary for controlling the transmission mounted on the vehicle 1. The MCU 14 has the same configuration as the MCU 13 (hereinafter referred to as “symmetrical configuration”).

図4は、外部装置2によってMCU11の制御プログラムを書き換える処理を説明するためのタイムチャートであり、この図には、コア22に対応するROM42に格納された制御プログラムの書き換え処理動作例が示されている。この動作例では、コア21が制御プログラムの書き換え要求を受信する処理を実行し、コア22が書き換え用データの受信処理、及び受信したデータをROM42に書き込む処理を実行する。このときコア22が実行する受信処理及び書き込み処理のプログラムは、ROM42のブート領域に格納されており、ROM42に格納された制御プログラムの書き換えは、ブート領域以外の領域に格納されている制御プログラムについて実行される。   FIG. 4 is a time chart for explaining the process of rewriting the control program of the MCU 11 by the external device 2. This figure shows an example of the rewrite processing operation example of the control program stored in the ROM 42 corresponding to the core 22. ing. In this operation example, the core 21 executes a process of receiving a rewrite request for a control program, and the core 22 executes a process of receiving data for rewriting and a process of writing the received data in the ROM 42. At this time, the program of the reception process and the writing process executed by the core 22 is stored in the boot area of the ROM 42, and the control program stored in the ROM 42 is rewritten with respect to the control program stored in an area other than the boot area. Executed.

図4(a)〜(f)は、それぞれバス3上のメッセージ(上側:外部装置2が送出し、MCU11が受信するメッセージ、下側:MCU11が送出し、外部装置2へ送信するメッセージ)、コア21で実行される処理、コア22で実行される処理、CAM32への書き込みデータ、ROM42への書き込みデータ(ただし、BTはブート領域に格納されている受信処理プログラム及び書き込み処理プログラムを起動することを示す)、及びコア23で実行される処理の推移を示す。図4(a),(d),及び(e)に破線で示すデータは、制御プログラムの書き換え用データを示している。   4 (a) to 4 (f) are respectively messages on the bus 3 (upper: messages sent by the external device 2 and received by the MCU 11, lower: messages sent by the MCU 11 and sent to the external device 2), Processing executed by the core 21, processing executed by the core 22, writing data to the CAM 32, writing data to the ROM 42 (however, the BT starts the reception processing program and the writing processing program stored in the boot area) ) And the transition of processing executed by the core 23. Data indicated by broken lines in FIGS. 4A, 4D, and 4E indicate data for rewriting the control program.

制御プログラムの書き換え要求を含むメッセージM1がバス3に送出されると、コア21が読み込んで書き換え要求対応処理(RES)を起動し、確認応答メッセージM11を送出する。次いで、制御プログラムを書き換える対象がROM42であることを指定するメッセージM2が送出されると、コア21は確認応答メッセージM12を送出し、コア22に対してROM42のブート領域に格納されている受信処理プログラム及び書き込み処理プログラムを起動する指令を出力する。コア22が書き込み処理プログラムの起動直後に、コア21及び23を休止させる指令を出力し、コア21及び23は作動を休止する。   When the message M1 including the rewrite request for the control program is sent to the bus 3, the core 21 reads it, starts the rewrite request handling process (RES), and sends the confirmation response message M11. Next, when the message M2 designating that the target of rewriting the control program is the ROM 42 is sent, the core 21 sends the confirmation response message M12, and the reception process stored in the boot area of the ROM 42 is sent to the core 22. Outputs a command to start the program and the write processing program. Immediately after the start of the write processing program, the core 22 outputs a command to suspend the cores 21 and 23, and the cores 21 and 23 cease operation.

その後書き換え用データを含むメッセージMRWが、ROM42への書き込み処理に適した所定データ量DW毎に外部装置2から送出される。コア22は、受信処理プログラム及び書き込み処理プログラム(RW)を実行し、メッセージMRWを受信して確認応答メッセージMACを送出するとともに、受信した書き換え用データをCAM32に格納し、さらにCAM32に格納された書き換え用データが所定データ量DWに達すると、ROM42に書き込む処理を実行する。   Thereafter, a message MRW including rewrite data is sent from the external device 2 for each predetermined data amount DW suitable for the writing process to the ROM 42. The core 22 executes the reception processing program and the write processing program (RW), receives the message MRW and sends the confirmation response message MAC, stores the received rewrite data in the CAM 32, and further stores it in the CAM 32. When the rewriting data reaches a predetermined data amount DW, a process of writing to the ROM 42 is executed.

書き込み処理が完了すると、コア22は書き込んだデータ(プログラム)のチェック処理CHKを実行し、CVN(Calibration Verification Number)の算出を行う。外部装置2はCVNを要求するメッセージM3を送出し、コア22はこのメッセージM3に対応してCVNを含むメッセージM13を送出する。これに対応して外部装置2は、書き換え処理完了メッセージM4を送出する。コア22は、書き換え処理完了メッセージM4を受けて、コア22自身を書き換え処理モードから通常制御モードに移行させるとともに、コア21及び23を起動する(時刻tE)。コア21〜23は、初期化処理を経て通常制御へ移行する。   When the writing process is completed, the core 22 executes a check process CHK of the written data (program) and calculates a CVN (Calibration Verification Number). The external device 2 sends a message M3 requesting CVN, and the core 22 sends a message M13 including CVN in response to this message M3. In response to this, the external device 2 sends a rewrite processing completion message M4. Upon receiving the rewrite processing completion message M4, the core 22 shifts the core 22 itself from the rewrite processing mode to the normal control mode and activates the cores 21 and 23 (time tE). The cores 21 to 23 shift to normal control through an initialization process.

図5(a),(b),及び(c)は、MCU11のコア21〜23で実行される通常制御処理の一部を示すフローチャートであり、図5(d)は上述したように外部装置2からMCU11宛のメッセージ(書き換え要求メッセージ)を受信したときに実行されるイベント処理のフローチャートである。   5A, 5B, and 5C are flowcharts showing a part of normal control processing executed by the cores 21 to 23 of the MCU 11, and FIG. 5D is an external device as described above. 2 is a flowchart of event processing executed when a message (rewrite request message) addressed to the MCU 11 is received from 2.

コア21は、通常制御では故障検知確定処理及びデータ送受信処理を実行する(ステップS11,S12)。故障検知確定処理は、コア21〜23で実行される故障検出処理の結果に基づいて、外部装置2へ送信する故障コードを確定する処理である。データ送受信処理は、他のMCU12〜14や外部装置2との間のデータ送受信を行う処理である。また、MCU11宛のメッセージの受信は、本実施形態ではコア21が実行するように予め決められており、図5(d)に示すイベント処理は、コア21により実行され、書き換え要求メッセージの受信及び確認応答メッセージなどの送信が、メッセージの受信イベントに対応して実行される(ステップS21)。   The core 21 executes failure detection confirmation processing and data transmission / reception processing in normal control (steps S11 and S12). The failure detection confirmation process is a process for confirming a failure code to be transmitted to the external device 2 based on the result of the failure detection process executed by the cores 21 to 23. The data transmission / reception processing is processing for performing data transmission / reception with other MCUs 12 to 14 and the external device 2. In addition, in this embodiment, the reception of the message addressed to the MCU 11 is determined in advance so that the core 21 executes, and the event processing shown in FIG. 5D is executed by the core 21 to receive the rewrite request message and Transmission of an acknowledgment message or the like is executed in response to the message reception event (step S21).

コア22は、故障検出処理、TRQT算出処理、及び協調制御処理(ステップS31〜S33)を実行する。故障検出処理は、車両1に搭載された内燃機関あるいは内燃機関に装着されたセンサやアクチュエータなどの故障を検出する処理であり、TRQT算出処理は、車両1のアクセルペダルの踏み込み量などに応じて内燃機関の目標トルクTRQTを算出する処理であり、協調制御処理は、他のMCU12〜14が実行する制御との協調制御を行う処理である。   The core 22 executes a failure detection process, a TRQT calculation process, and a cooperative control process (steps S31 to S33). The failure detection process is a process for detecting a failure of the internal combustion engine mounted on the vehicle 1 or a sensor or actuator mounted on the internal combustion engine, and the TRQT calculation process is performed according to the depression amount of the accelerator pedal of the vehicle 1 or the like. This is a process for calculating the target torque TRQT of the internal combustion engine, and the cooperative control process is a process for performing cooperative control with the control executed by the other MCUs 12-14.

コア23は、入出力処理、アイドル停止処理、及びTRQA算出処理(ステップS41〜S43)を実行する。入出力処理は、センサにより検出されるデータの入力処理及びアクチュエータへ駆動信号を出力する処理であり、アイドル停止処理は、所定のアイドル停止条件が成立したときに内燃機関を一時的に停止させる処理であり、TRQA算出処理は内燃機関の実出力トルクTRQAを算出する処理である。   The core 23 executes input / output processing, idle stop processing, and TRQA calculation processing (steps S41 to S43). The input / output process is a process for inputting data detected by the sensor and a process for outputting a drive signal to the actuator. The idle stop process is a process for temporarily stopping the internal combustion engine when a predetermined idle stop condition is satisfied. The TRQA calculation process is a process for calculating the actual output torque TRQA of the internal combustion engine.

図6は、図5(d)のイベント処理で実行される書き換え要求対応処理のフローチャートである。ステップS51では受信したメッセージのチェックを行い、異常がないときはメッセージ正常フラグFMSGOKを「1」に設定する。   FIG. 6 is a flowchart of the rewrite request response process executed in the event process of FIG. In step S51, the received message is checked, and if there is no abnormality, the message normal flag FMMSGOK is set to “1”.

ステップS52では、メッセージ正常フラグFMSGOKが「1」であるか否かを判別し、その答が否定(NO)であって異常が検出されたときは、その異常を送信元に通知するネガティブメッセージを作成し(ステップS53)、ステップS57に進む。   In step S52, it is determined whether or not the message normal flag FMSGOK is “1”. If the answer is negative (NO) and an abnormality is detected, a negative message is sent to notify the sender of the abnormality. Create (step S53) and proceed to step S57.

ステップS52の答が肯定(YES)であるときは、書き換え対象は自ユニット(MCU11)のROMであるか否かを判別する(ステップS54)。ステップS54の答が否定(NO)であるときは、他のMCU12〜14のROMに格納された制御プログラムの書き換え要求であるため、ステップS55に進んで、図8に示す書き換え監視処理を実行する。ステップS54の答が肯定(YES)であるときは、図7に示す書き換えモード遷移処理を実行し(ステップS56)、MCU11内のコア21〜23を制御プログラムの書き換え処理モード(休止待ち状態を含む)へ移行させる。   If the answer to step S52 is affirmative (YES), it is determined whether or not the rewriting target is a ROM of the own unit (MCU11) (step S54). If the answer to step S54 is negative (NO), this is a request to rewrite the control program stored in the ROMs of the other MCUs 12 to 14, and therefore the process proceeds to step S55 to execute the rewrite monitoring process shown in FIG. . If the answer to step S54 is affirmative (YES), the rewrite mode transition process shown in FIG. 7 is executed (step S56), and the cores 21 to 23 in the MCU 11 are changed to the rewrite process mode of the control program (including the suspension wait state). ).

ステップS57では、ネガティブメッセージまたは受信した書き換え要求メッセージの確認応答メッセージ(MAC)を送信する。ステップS58では、処理切換許可フラグFSWOKが「1」であるか否かを判別する。処理切換許可フラグFSWOKは、書き換え対象のROMが確定し、コア21〜23の書き換え処理モードへの移行が完了すると、「1」に設定される。ステップS58の答が否定(NO)である間は、直ちに処理を終了し、肯定(YES)となると、実行プログラムの切り換えを行うか、または休止指令待ち状態へ移行する(ステップS59)。すなわち、ROM41の書き換えを行うときは、実行プログラムをROM41のブート領域に格納されている受信処理プログラム及び書き込み処理プログラムに切り換えて、書き換え用データの受信及びROM41への書き込み処理を行い、ROM42または43の書き換えを行うときは、休止指令待ち状態へ移行する。   In step S57, a negative message or an acknowledgment message (MAC) of the received rewrite request message is transmitted. In step S58, it is determined whether or not a process switching permission flag FSWOK is “1”. The process switching permission flag FSWOK is set to “1” when the ROM to be rewritten is confirmed and the transition of the cores 21 to 23 to the rewrite processing mode is completed. While the answer to step S58 is negative (NO), the process is immediately terminated, and when the answer is affirmative (YES), the execution program is switched or a standby command waiting state is entered (step S59). That is, when the ROM 41 is rewritten, the execution program is switched between the reception processing program and the writing processing program stored in the boot area of the ROM 41, the rewriting data is received and the ROM 41 is written, and the ROM 42 or 43 When rewriting is performed, the process shifts to a pause command waiting state.

図7は、図6のステップS56で実行される書き換えモード遷移処理のフローチャートである。本実施形態では、ROM指定パラメータNROMの値「1」〜「3」がROM41〜43に対応する。すなわち、NROM=1であるきは、ROM41が書き換え対象ROMであり、NROM=2であるきは、ROM42が書き換え対象ROMであり、NROM=3であるきは、ROM43が書き換え対象ROMである。   FIG. 7 is a flowchart of the rewrite mode transition process executed in step S56 of FIG. In this embodiment, values “1” to “3” of the ROM designation parameter NROM correspond to the ROMs 41 to 43. That is, when NROM = 1, the ROM 41 is the ROM to be rewritten, when NROM = 2, the ROM 42 is the ROM to be rewritten, and when NROM = 3, the ROM 43 is the ROM to be rewritten.

ステップS61〜S63では、ROM指定パラメータNROMが「1」「2」,[3」の何れであるかを判別する。ROM指定パラメータNROMを受信していないときは、処理を終了する。   In steps S61 to S63, it is determined whether the ROM designation parameter NROM is “1”, “2”, or “3”. If the ROM designation parameter NROM has not been received, the process is terminated.

ROM指定パラメータNROMが「1」であるときは、コア21が書き換え用データの受信処理及び書き込み処理を実行するので、ROM41に格納されている受信処理プログラム及び書き込み処理プログラムを起動するように設定し(ステップS64)、受信データの一時的な保存先をCAM31に設定する(ステップS65)。ステップS66では、制御プログラムの書き換え処理(受信処理及び書き込み処理)を行わないコア22,23の休止を許可する(休止待ち状態とする)。   When the ROM designation parameter NROM is “1”, the core 21 executes the receiving process and the writing process of the rewriting data, so that the receiving process program and the writing process program stored in the ROM 41 are activated. (Step S64), the temporary storage destination of the received data is set in the CAM 31 (Step S65). In step S66, the cores 22 and 23 that are not subjected to the control program rewrite process (reception process and write process) are permitted to be suspended (set to a sleep waiting state).

ROM指定パラメータNROMが「2」であるときは、コア22が受信処理及び書き換え処理を実行するので、ROM42に格納されている受信処理プログラム及び書き込み処理プログラムを起動可能とし(ステップS67)、受信データの一時的な保存先をCAM32に設定する(ステップS68)。ステップS69では、制御プログラムの書き換え処理(受信処理及び書き込み処理)を行わないコア21,23を休止を許可する(休止待ち状態とする)。   When the ROM designation parameter NROM is “2”, the core 22 executes the reception process and the rewrite process, so that the reception process program and the write process program stored in the ROM 42 can be started (step S67). Is temporarily stored in the CAM 32 (step S68). In step S69, the cores 21 and 23 that do not perform the control program rewrite process (reception process and write process) are permitted to be suspended (in a standby state).

ROM指定パラメータNROMが「3」であるときは、コア23が受信及び書き換え処理を実行するので、ROM43に格納されている受信処理プログラム及び書き込み処理プログラムを起動可能とし(ステップS70)、受信データの一時的な保存先をCAM33に設定する(ステップS71)。ステップS72では、制御プログラムの書き換え処理(受信処理及び書き込み処理)を行わないコア21,22の休止を許可する(休止待ち状態とする)。   When the ROM designation parameter NROM is “3”, the core 23 performs reception and rewrite processing, so that the reception processing program and write processing program stored in the ROM 43 can be activated (step S70), and the received data A temporary storage destination is set in the CAM 33 (step S71). In step S72, the cores 21 and 22 that are not subjected to the control program rewrite process (reception process and write process) are permitted to be suspended (set to a sleep waiting state).

図8は、図6のステップS55で実行される書き換え監視処理のフローチャートである。他のMCU12,13,または14による制御プログラムの書き換え処理の監視処理は、MCU11ではコア21が実行する。ステップS81では、他のMCUにおける書き換え実行中であるか否かを判別し、その答が肯定(YES)であるときは、監視処理を実行しないコア22,23を休止させる(ステップS82)。他のMCUにおける書き換え処理が終了すると、コア22,23を起動し(ステップS83)、通常制御に復帰させるとともに、コア21自身も通常制御に復帰する(ステップS84)。   FIG. 8 is a flowchart of the rewrite monitoring process executed in step S55 of FIG. The monitoring process of the control program rewriting process by the other MCU 12, 13, or 14 is executed by the core 21 in the MCU 11. In step S81, it is determined whether or not rewriting is being performed in another MCU. If the answer is affirmative (YES), the cores 22 and 23 that do not execute the monitoring process are suspended (step S82). When the rewriting process in the other MCU is completed, the cores 22 and 23 are activated (step S83), the normal control is restored, and the core 21 itself is also restored to the normal control (step S84).

なお、例えばMCU11において制御プログラムの書き換え処理を行うときは、他のMCU12〜14のそれぞれに含まれる一つのコアのみが、書き換え監視処理を実行し、監視処理を実行する一つのコア以外のコアの作動を休止させ、書き換え処理終了後に起動する制御を行う。これによって、書き換え処理の実行中において制御装置全体として消費電力を低減できる。   For example, when the control program is rewritten in the MCU 11, only one core included in each of the other MCUs 12 to 14 executes the rewrite monitoring process, and the cores other than the one core that executes the monitoring process. The operation is stopped and the control is started after the rewriting process is completed. As a result, the power consumption of the entire control device can be reduced during the rewriting process.

図9は、書き換え用データの受信処理のフローチャートである。この処理は、書き換え処理を実行するコア(図4に示す動作例ではコア22)によって、メッセージの受信イベントに対応して実行される。
ステップS91では書き換え用データを含む受信メッセージのチェックを行い、異常が検出されないときは、メッセージ正常フラグFMSGOKを「1」に設定する。ステップS92は、メッセージ正常フラグFMSGOKが「1」であるか否かを判別し、その答が否定(NO)であるときはネガティブメッセージを作成して(ステップS94)、ステップS95に進む。メッセージ正常フラグFMSGOKが「1」であるときは、受信データを対応するキャッシュメモリ(CAMx)に格納する(ステップS93)。
FIG. 9 is a flowchart of the rewrite data reception process. This processing is executed in response to the message reception event by the core that executes the rewriting processing (core 22 in the operation example shown in FIG. 4).
In step S91, the received message including the rewriting data is checked, and if no abnormality is detected, the message normal flag FMSGOK is set to “1”. In step S92, it is determined whether the message normal flag FMSGOK is “1”. If the answer is negative (NO), a negative message is created (step S94), and the process proceeds to step S95. When the message normal flag FMSGOK is “1”, the received data is stored in the corresponding cache memory (CAMx) (step S93).

ステップS95では、ネガティブメッセージまたは書き換え用データの受信確認メッセージ(MAC)を送信する。ステップS96では送信が完了するまで待機し、完了すると送信完了処理を実行する(ステップS97)。送信完了処理では、書き換え用データの受信から受信確認メッセージの送信までに要した応答時間TRESを計測し、規定されている応答時間TRESLMT以内に応答が完了したことを確認する。   In step S95, a negative message or rewrite data reception confirmation message (MAC) is transmitted. In step S96, the process waits until the transmission is completed. When the transmission is completed, a transmission completion process is executed (step S97). In the transmission completion process, the response time TRES required from the reception of the rewriting data to the transmission of the reception confirmation message is measured, and it is confirmed that the response is completed within the specified response time TRESLMT.

なお、図9に示す受信処理は、コア21に対応するROM41に格納された制御プログラムを書き換える場合には、コア21により実行され(受信データはCAM31に一時的に保存される)、コア22に対応するROM42に格納された制御プログラムを書き換える場合には、コア22により実行され(受信データはCAM32に一時的に保存される)、コア23に対応するROM43に格納された制御プログラムを書き換える場合には、コア23により実行される(受信データはCAM33に一時的に保存される)。   9 is executed by the core 21 (reception data is temporarily stored in the CAM 31) when the control program stored in the ROM 41 corresponding to the core 21 is rewritten. When the control program stored in the corresponding ROM 42 is rewritten, the control program is executed by the core 22 (received data is temporarily stored in the CAM 32), and the control program stored in the ROM 43 corresponding to the core 23 is rewritten. Is executed by the core 23 (received data is temporarily stored in the CAM 33).

図10は、書き換え用データの書き込み処理のフローチャートである。この処理は、書き換え処理を実行するコア(図4に示す動作例ではコア22)によって、起動後は所定時間毎に実行される。
ステップS101では、プログラムの起動直後であるか否かを判別し、その答が肯定(YES)であるときは、コア21で起動されたか否かを判別する(ステップS102)。その答が肯定(YES)であるときは、コア22,23を休止させる(ステップS103)。ステップS102の答が否定(NO)であるときは、コア22で起動されたか否かを判別する(ステップS104)。その答が肯定(YES)であるときは、コア21,23を休止させ(ステップS105)、否定(NO)であるとき、すなわちコア23で起動さえたときは、コア21,22を休止させる(ステップS106)。
FIG. 10 is a flowchart of rewrite data write processing. This process is executed every predetermined time after activation by the core (core 22 in the operation example shown in FIG. 4) that executes the rewrite process.
In step S101, it is determined whether or not the program has just been started. If the answer is affirmative (YES), it is determined whether or not the core 21 has been started (step S102). If the answer is affirmative (YES), the cores 22 and 23 are suspended (step S103). If the answer to step S102 is negative (NO), it is determined whether or not the core 22 is activated (step S104). When the answer is affirmative (YES), the cores 21 and 23 are paused (step S105). When the answer is negative (NO), that is, when the core 23 is activated, the cores 21 and 22 are paused ( Step S106).

ステップS101の答が否定(NO)であるときは、受信した書き換え用データを対応するキャッシュメモリ(CAMx)に格納する処理が完了したか否かを判別する。その答が否定(NO)、すなわちデータ受信中であるときは、直ちにステップS109に進み、ステップS107の答が肯定(YES)となると、対応するキャッシュメモリ(CAMx)に格納された書き換え用データを対応するROMに書き込む(ステップS108)。   If the answer to step S101 is negative (NO), it is determined whether or not the process of storing the received rewrite data in the corresponding cache memory (CAMx) is completed. If the answer is negative (NO), that is, if data is being received, the process immediately proceeds to step S109. If the answer to step S107 is affirmative (YES), the rewrite data stored in the corresponding cache memory (CAMx) is stored. Writing to the corresponding ROM (step S108).

ステップS109では、書き換え用データのROMへの書き込みが完了したか否かを判別する。ステップS109の答が否定(NO)である間は、直ちに処理を終了し、肯定(YES)となると、ROMに書き込んだデータのチェック(CVNの算出)を行う(ステップS110)。   In step S109, it is determined whether or not the rewriting data has been written to the ROM. While the answer to step S109 is negative (NO), the processing is immediately terminated. When the answer is affirmative (YES), the data written in the ROM is checked (calculation of CVN) (step S110).

以上のように本実施形態では、非対称型の構成を有するMCU11(コア21)が、外部装置2から外部通信部54を介して制御プログラムの書き換え要求を受信したときは、書き換え要求の対象となる制御プログラムを実行する対象プロセッサコア(コア21〜23の何れか一つ)によって、対応するROMに格納されている制御プログラムの書き換え処理が実行され、その書き換え処理では、制御プログラムの書き換え用データが通信部54を介して受信され、受信されたデータが対応するキャッシュメモリ(CAMx)に格納され、該格納された書き換え用データが所定データ量DWに達する毎に対応するROMへの書き込み処理が実行される。キャッシュメモリを書き換え用データを一時的に格納するバッファメモリとして使用することによって、共有メモリ52に書き換え用データを一時的に格納する場合に比べて、より高速で読み出し及び書き込みを実行できるため、書き換え処理を比較的高速で行うことができ、書き換え処理時間を短縮することによって消費電力を抑制することができる。   As described above, in this embodiment, when the MCU 11 (core 21) having an asymmetric configuration receives a control program rewrite request from the external device 2 via the external communication unit 54, the MCU 11 (core 21) becomes a target of the rewrite request. The target processor core (any one of the cores 21 to 23) that executes the control program executes a rewrite process of the control program stored in the corresponding ROM. In the rewrite process, data for rewriting the control program is stored. The received data is received via the communication unit 54, and the received data is stored in the corresponding cache memory (CAMx). Each time the stored rewrite data reaches a predetermined data amount DW, the corresponding ROM is written. Is done. By using the cache memory as a buffer memory for temporarily storing rewrite data, the rewrite can be executed at a higher speed than when the rewrite data is temporarily stored in the shared memory 52. The processing can be performed at a relatively high speed, and the power consumption can be suppressed by shortening the rewriting processing time.

また書き換え処理実行中において、書き換え処理を実行しないプロセッサコアの作動を休止させる制御が行われるので、書き換え処理実行中のMCU11全体としての消費電力を低減することができる。   Further, during execution of the rewriting process, control is performed to stop the operation of the processor core that does not execute the rewriting process, so that the power consumption of the entire MCU 11 that is executing the rewriting process can be reduced.

また書き換え処理を実行するコアに対応するROMに格納されている書き換え処理プログラム(受信処理プログラム及び書き込み処理プログラム)を起動することにより、書き換え処理が実行され、対応するROMの、書き換え処理プログラムが格納されている記憶領域以外の記憶領域に格納されている制御プログラムの書き換えが行われる。対応するROMに格納されている書き換え処理プログラムを起動して書き換え処理を実行するため、例えば書き換え処理プログラムをキャッシュメモリにコピーして起動する処理が不要となり、書き換えのために必要とされる付加的な処理を簡易化できる。   In addition, the rewrite processing program (reception processing program and write processing program) stored in the ROM corresponding to the core that executes the rewrite processing is started to execute the rewrite processing, and the rewrite processing program of the corresponding ROM is stored. The control program stored in the storage area other than the stored storage area is rewritten. Since the rewriting process program stored in the corresponding ROM is activated to execute the rewriting process, for example, the process of copying and reactivating the rewriting process program to the cache memory becomes unnecessary, and additional processing required for rewriting Simple processing can be simplified.

なお本発明は上述した実施形態に限るものではなく、種々の変形が可能である。例えば、図11に示すように、バス3が、ゲートウエイ5によってバス3aと3bとに分割されているような構成を有する制御装置、あるいは例えばMCU14が無線通信装置14aを備え、無線通信装置2aを備える外部装置2が、無線通信装置2a,14aを介して、制御プログラムの書き換え処理を実行可能な制御装置などにも本発明は適用可能である。   The present invention is not limited to the embodiment described above, and various modifications can be made. For example, as shown in FIG. 11, the control device having a configuration in which the bus 3 is divided into buses 3a and 3b by the gateway 5, or for example, the MCU 14 includes the wireless communication device 14a, and the wireless communication device 2a is provided. The present invention can also be applied to a control device or the like in which the external device 2 provided can execute a control program rewriting process via the wireless communication devices 2a and 14a.

1 車両
2 外部装置
3 バス
11,12 マルチコア型演算処理ユニット(非対称型)
21〜23 プロセッサコア
31〜33 キャッシュメモリ
41〜43 読み出し専用メモリ
54 外部通信部
DESCRIPTION OF SYMBOLS 1 Vehicle 2 External device 3 Bus 11, 12 Multi-core type arithmetic processing unit (asymmetric type)
21-23 Processor core 31-33 Cache memory 41-43 Read-only memory 54 External communication part

Claims (2)

複数のプロセッサコアを含んで構成されるマルチコア型演算処理ユニットを用いて車両に搭載された制御対象の制御を行う車両用制御装置において、
前記マルチコア型演算処理ユニットは、前記複数のプロセッサコアのそれぞれに対応して設けられたキャッシュメモリと、前記複数のプロセッサコアのそれぞれに対応して設けられ、前記複数のプロセッサコアが実行する制御プログラムを格納する書き換え可能な読み出し専用メモリと、外部装置との間でデータの送受信を行う通信部とを備え、
前記マルチコア型演算処理ユニットが、前記外部装置から前記通信部を介して前記制御プログラムの書き換え要求を受信したときは、該書き換え要求の対象となる制御プログラムを実行する対象プロセッサコアが、対応する前記読み出し専用メモリに格納されている制御プログラムの書き換え処理を実行し、
該書き換え処理では、前記制御プログラムの書き換え用データを前記通信部を介して受信し、受信したデータを対応する前記キャッシュメモリに格納し、該格納した書き換え用データが所定データ量に達する毎に対応する前記読み出し専用メモリへの書き込み処理を実行し、
前記対象プロセッサコアは、前記書き換え処理を実行するときは、前記対象プロセッサコア以外のプロセッサコアの作動を休止させることを特徴とする車両用制御装置。
In a vehicle control device that controls a control object mounted on a vehicle using a multi-core arithmetic processing unit configured to include a plurality of processor cores,
The multi-core arithmetic processing unit includes a cache memory provided corresponding to each of the plurality of processor cores, and a control program provided corresponding to each of the plurality of processor cores and executed by the plurality of processor cores. A rewritable read-only memory that stores data and a communication unit that transmits and receives data to and from an external device,
When the multi-core arithmetic processing unit receives a rewrite request for the control program from the external device via the communication unit, the target processor core that executes the control program that is the target of the rewrite request corresponds to the corresponding processor core. Execute the rewrite process of the control program stored in the read-only memory,
In the rewriting process, rewrite data of the control program is received via the communication unit, the received data is stored in the corresponding cache memory, and each time the stored rewrite data reaches a predetermined data amount Performing a write process to the read-only memory ,
The target processor core, the rewrite processing when the execution is the vehicle control device according to claim Rukoto rested the operation of the processor core other than the target processor core.
前記対象プロセッサコアは、対応する前記読み出し専用メモリに格納されている書き換え処理プログラムを起動することにより、前記書き換え処理を実行し、対応する前記読み出し専用メモリの、前記書き換え処理プログラムが格納されている記憶領域以外の記憶領域に格納されている制御プログラムの書き換えを行うことを特徴とする請求項1に記載の車両用制御装置。 The target processor core executes the rewrite process by activating the rewrite process program stored in the corresponding read-only memory, and the rewrite process program of the corresponding read-only memory is stored. The vehicle control device according to claim 1, wherein the control program stored in a storage area other than the storage area is rewritten.
JP2014161086A 2014-08-07 2014-08-07 Vehicle control device Expired - Fee Related JP6293612B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2014161086A JP6293612B2 (en) 2014-08-07 2014-08-07 Vehicle control device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2014161086A JP6293612B2 (en) 2014-08-07 2014-08-07 Vehicle control device

Publications (2)

Publication Number Publication Date
JP2016037157A JP2016037157A (en) 2016-03-22
JP6293612B2 true JP6293612B2 (en) 2018-03-14

Family

ID=55528647

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2014161086A Expired - Fee Related JP6293612B2 (en) 2014-08-07 2014-08-07 Vehicle control device

Country Status (1)

Country Link
JP (1) JP6293612B2 (en)

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4437468B2 (en) * 2004-12-06 2010-03-24 富士通テン株式会社 Electronic control device for vehicle
JP4501159B2 (en) * 2005-03-30 2010-07-14 株式会社デンソー Automotive control unit
JP4941103B2 (en) * 2007-05-25 2012-05-30 トヨタ自動車株式会社 Multiprocessor system, exclusive control method, vehicle electronic control unit
JP2010198307A (en) * 2009-02-25 2010-09-09 Hitachi Automotive Systems Ltd Controller for automobile
JP6129499B2 (en) * 2012-09-03 2017-05-17 日立オートモティブシステムズ株式会社 Electronic control system for automobile

Also Published As

Publication number Publication date
JP2016037157A (en) 2016-03-22

Similar Documents

Publication Publication Date Title
JP6044316B2 (en) In-vehicle electronic control unit
CN109804355B (en) Software updating device, software updating method, and software updating system
WO2018120213A1 (en) Firmware updating method and controller
JP4650566B2 (en) Control system and electronic control device
US11392368B2 (en) Electronic control system for updating circuit
US11433718B2 (en) Upgrading method and apparatus for tire pressure monitoring module and tire pressure sensor
CN105703991B (en) Local interconnect network system and method
JP2014029619A (en) Control system and program update method
JP5762016B2 (en) Information processing apparatus, control method, and program
JP2005071303A (en) Program starting device
JP6201298B2 (en) Controller and program
JP6293612B2 (en) Vehicle control device
JP6184917B2 (en) Vehicle control device
JP2007001420A (en) Control unit for vehicle
JP7184855B2 (en) SOFTWARE UPDATE DEVICE, SOFTWARE UPDATE METHOD
JP2014215871A (en) Electronic control device
JP5867350B2 (en) Electronic control device for vehicle
JP2015098311A (en) Electronic control apparatus and software rewrite system
JP6624005B2 (en) Mutual monitoring system
JP5575086B2 (en) Electronic control unit
JP2015205555A (en) embedded control system
WO2024062897A1 (en) Control system and software update method
JP6887277B2 (en) Electronic control device for automobiles
JP7291541B2 (en) Control device and monitoring method
JP2007137654A (en) Control system for elevator

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20161129

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20170712

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20170822

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20171006

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: 20180213

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20180214

R150 Certificate of patent or registration of utility model

Ref document number: 6293612

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

LAPS Cancellation because of no payment of annual fees