JP6306530B2 - Electronic control unit for automobile - Google Patents

Electronic control unit for automobile Download PDF

Info

Publication number
JP6306530B2
JP6306530B2 JP2015049126A JP2015049126A JP6306530B2 JP 6306530 B2 JP6306530 B2 JP 6306530B2 JP 2015049126 A JP2015049126 A JP 2015049126A JP 2015049126 A JP2015049126 A JP 2015049126A JP 6306530 B2 JP6306530 B2 JP 6306530B2
Authority
JP
Japan
Prior art keywords
electronic control
ram
area
control unit
cpu
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
JP2015049126A
Other languages
Japanese (ja)
Other versions
JP2016170567A (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 Automotive Systems 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 Automotive Systems Ltd filed Critical Hitachi Automotive Systems Ltd
Priority to JP2015049126A priority Critical patent/JP6306530B2/en
Publication of JP2016170567A publication Critical patent/JP2016170567A/en
Application granted granted Critical
Publication of JP6306530B2 publication Critical patent/JP6306530B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Techniques For Improving Reliability Of Storages (AREA)
  • For Increasing The Reliability Of Semiconductor Memories (AREA)

Description

本発明は、自動車用電子制御装置に関する。   The present invention relates to an automotive electronic control device.

自動車に搭載される電子制御装置では、安全性を確保するため、機能安全規格ISO26262を準拠する要求が高まっている。機能安全規格において、RAM(Random Access Memory)などのメモリの異常を診断するため、特開2003−323353号公報(特許文献1)に記載されるように、自動車の安全性に与える影響度に応じて記憶領域を分割し、影響度に応じて各分割領域を診断する間隔を変更する技術が提案されている。   In an electronic control device mounted on an automobile, there is an increasing demand for compliance with the functional safety standard ISO26262 in order to ensure safety. According to the functional safety standard, in order to diagnose an abnormality in a memory such as a RAM (Random Access Memory), as described in Japanese Patent Application Laid-Open No. 2003-323353 (Patent Document 1), depending on the degree of influence on the safety of an automobile A technique has been proposed in which the storage area is divided and the interval for diagnosing each divided area is changed according to the degree of influence.

特開2003−323353号公報JP 2003-323353 A

ところで、機能安全規格においては、フォールト(個々の部品の故障)の発生を起点として、車両の危険事象が発生すると考えられるまでのフォールトトレラント時間間隔(FTTI)を考慮しなければならない。FTTIは、例えば、電子制御スロットルシステムにおいて、スロットルバルブを制御するシステムの部品に何らかの異常が発生したとき、それがスロットルバルブの開度異常となって、車両が制御不能となるまでの時間間隔である。   By the way, in the functional safety standard, it is necessary to consider a fault tolerant time interval (FTTI) from when a fault (individual component failure) occurs as a starting point until a dangerous event of the vehicle is considered to occur. For example, in an electronically controlled throttle system, FTTI is a time interval from when an abnormality occurs in a part of the system that controls the throttle valve until the opening of the throttle valve becomes abnormal and the vehicle becomes uncontrollable. is there.

一方、電子制御装置のメモリ領域は、制御プログラムの複雑化などによって容量が大きくなっており、これに伴って分割領域の容量も大きくなっている。このため、分割領域を診断するのにある程度の時間を要し、電子制御装置が所定時間ごとに実行する定時ジョブに影響が及んでしまうおそれがあった。従って、自動車の安全性に与える影響が高い記憶領域をFTTI内に診断することが困難であり、メモリ診断について機能安全規格を準拠することはできなかった。   On the other hand, the capacity of the memory area of the electronic control device is increased due to the complexity of the control program, and the capacity of the divided area is increased accordingly. For this reason, a certain amount of time is required to diagnose the divided area, and there is a possibility that the scheduled job executed by the electronic control device every predetermined time may be affected. Therefore, it is difficult to diagnose in the FTTI a storage area that has a high influence on the safety of the automobile, and the functional safety standard cannot be complied with for the memory diagnosis.

そこで、本発明は、メモリ診断について機能安全規格を準拠可能な、自動車用電子制御装置を提供することを目的とする。   SUMMARY OF THE INVENTION An object of the present invention is to provide an automotive electronic control device that can comply with functional safety standards for memory diagnosis.

このため、自動車用電子制御装置のプロセッサは、メモリの一部の領域を論理的に分割した各分割領域について、フォールトトレラント時間間隔より短い所定時間ごとに、そこに格納されたデータが書き換えられているか否かを順番に診断する。 For this reason, the processor of the electronic control unit for automobiles rewrites the data stored in each divided area obtained by logically dividing a partial area of the memory at a predetermined time shorter than the fault tolerant time interval. Diagnose in order.

本発明によれば、メモリ診断について機能安全規格を準拠することができる。   According to the present invention, it is possible to comply with functional safety standards for memory diagnosis.

車両用内燃機関の一例を示すシステム図である。1 is a system diagram illustrating an example of an internal combustion engine for a vehicle. 電子制御装置の概要を例示するブロック図である。It is a block diagram which illustrates the outline of an electronic control unit. 電子制御スロットルチャンバの論理的制御構造を例示する説明図である。It is explanatory drawing which illustrates the logical control structure of an electronically controlled throttle chamber. RAMの論理的分割構造を例示する説明図である。It is explanatory drawing which illustrates the logical division | segmentation structure of RAM. 機能安全規格を準拠する第1の手法の説明図である。It is explanatory drawing of the 1st method based on a functional safety standard. 機能安全規格を準拠する第2の手法の説明図である。It is explanatory drawing of the 2nd method based on a functional safety standard. 定時ジョブの一例を示すフローチャートである。It is a flowchart which shows an example of a scheduled job.

以下、添付された図面を参照し、本発明を実施するための実施形態について詳述する。
図1は、車両用内燃機関の一例を示す。
Hereinafter, embodiments for carrying out the present invention will be described in detail with reference to the accompanying drawings.
FIG. 1 shows an example of an internal combustion engine for a vehicle.

内燃機関100の吸気通路110には、吸気流通方向に沿って、空気中の埃などを濾過するエアクリーナ120、電子制御スロットルチャンバ130、図示しない動弁機構により開閉する吸気バルブ140がこの順番で配設されている。電子制御スロットルチャンバ130と吸気バルブ140との間に位置する吸気通路110には、吸気バルブ140の傘部に向けて燃料を噴射する、電子制御式の燃料噴射弁150が取り付けられている。   In the intake passage 110 of the internal combustion engine 100, an air cleaner 120 that filters dust in the air, an electronic control throttle chamber 130, and an intake valve 140 that is opened and closed by a valve mechanism (not shown) are arranged in this order along the intake flow direction. It is installed. An electronically controlled fuel injection valve 150 that injects fuel toward the umbrella portion of the intake valve 140 is attached to the intake passage 110 located between the electronically controlled throttle chamber 130 and the intake valve 140.

電子制御スロットルチャンバ130は、吸気流量を調整するスロットルバルブ132と、スロットルバルブ132を回動させるステッピングモータなどのアクチュエータ134と、スロットルバルブ132の開度(スロットル開度)を検出するポテンショメータなどのスロットルポジションセンサ136と、を有する。そして、電子制御スロットルチャンバ130は、外部からの開度信号に応じて、アクチュエータ134によってスロットルバルブ132を開閉する。   The electronically controlled throttle chamber 130 includes a throttle valve 132 that adjusts the intake flow rate, an actuator 134 such as a stepping motor that rotates the throttle valve 132, and a throttle such as a potentiometer that detects the opening (throttle opening) of the throttle valve 132. Position sensor 136. The electronic control throttle chamber 130 opens and closes the throttle valve 132 by the actuator 134 in accordance with an opening signal from the outside.

一方、内燃機関100の排気通路160には、排気流通方向に沿って、排気バルブ170、排気中のCO(一酸化炭素),HC(炭化水素),NOx(窒素酸化物)を同時に還元浄化する三元触媒コンバータ180、排気音を低減するマフラー190がこの順番で配設されている。   On the other hand, in the exhaust passage 160 of the internal combustion engine 100, the exhaust valve 170 and CO (carbon monoxide), HC (hydrocarbon), NOx (nitrogen oxide) in the exhaust gas are simultaneously reduced and purified along the exhaust flow direction. A three-way catalytic converter 180 and a muffler 190 for reducing exhaust noise are arranged in this order.

また、内燃機関100のシリンダヘッド102には、燃焼室104を臨むように、ディストリビュータ200からの点火電流に応答して、燃料と空気との混合気を火花点火する点火プラグ210が取り付けられている。なお、ディストリビュータ200は、内燃機関100の各気筒に配設された点火プラグ210に対して、運転状態に応じたタイミングで点火電流を分配する。   An ignition plug 210 that sparks and ignites a mixture of fuel and air in response to the ignition current from the distributor 200 is attached to the cylinder head 102 of the internal combustion engine 100 so as to face the combustion chamber 104. . The distributor 200 distributes the ignition current to the ignition plugs 210 disposed in the respective cylinders of the internal combustion engine 100 at a timing according to the operation state.

内燃機関100の所定箇所には、内燃機関100の回転速度を検出する回転速度センサ220と、内燃機関100の負荷を検出する負荷センサ230と、が取り付けられている。ここで、内燃機関100の負荷としては、例えば、吸気流量、吸気圧力、過給圧力など、内燃機関100の出力トルクと密接に関連する状態量を使用することができる。   A rotational speed sensor 220 that detects the rotational speed of the internal combustion engine 100 and a load sensor 230 that detects the load of the internal combustion engine 100 are attached to predetermined locations of the internal combustion engine 100. Here, as the load of the internal combustion engine 100, for example, a state quantity closely related to the output torque of the internal combustion engine 100, such as an intake flow rate, an intake pressure, and a supercharging pressure, can be used.

車両の運転者が操作するアクセルペダル240には、アクセルペダル240の踏み込み量(アクセル操作量)を検出するアクセルセンサ250が併設されている。ここで、アクセルセンサ250としては、例えば、ポテンショメータを使用することができる。   An accelerator sensor 250 that detects the amount of depression of the accelerator pedal 240 (accelerator operation amount) is provided together with the accelerator pedal 240 operated by the driver of the vehicle. Here, as the accelerator sensor 250, for example, a potentiometer can be used.

スロットルポジションセンサ136、回転速度センサ220、負荷センサ230及びアクセルセンサ250の各出力信号は、マイクロコンピュータを内蔵した電子制御装置260に入力される。電子制御装置260は、図2に示すように、プロセッサの一例として挙げられるCPU(Central Processing Unit)262と、揮発性メモリの一例として挙げられるRAM264と、不揮発性メモリの一例として挙げられるROM(Read Only Memory)266と、CPU262,RAM264及びROM266を相互に接続するバス268と、を有する。ここで、ROM266としては、例えば、電気的にデータを書き換え可能なフラッシュROMを使用することができる。なお、RAM264が、メモリの一例として挙げられる。   The output signals of the throttle position sensor 136, the rotation speed sensor 220, the load sensor 230, and the accelerator sensor 250 are input to an electronic control device 260 that incorporates a microcomputer. As shown in FIG. 2, the electronic control unit 260 includes a CPU (Central Processing Unit) 262 that is an example of a processor, a RAM 264 that is an example of a volatile memory, and a ROM (Read that is an example of a nonvolatile memory. Only Memory) 266 and a bus 268 for connecting the CPU 262, RAM 264 and ROM 266 to each other. Here, as the ROM 266, for example, a flash ROM capable of electrically rewriting data can be used. Note that the RAM 264 is an example of a memory.

そして、電子制御装置260は、ROM266に格納された制御プログラムを実行することで、スロットル開度,回転速度,負荷,アクセル操作量などに応じて、電子制御スロットルチャンバ130,燃料噴射弁150及びディストリビュータ200を夫々電子制御する。   The electronic control unit 260 executes a control program stored in the ROM 266, so that the electronic control throttle chamber 130, the fuel injection valve 150, and the distributor according to the throttle opening, rotational speed, load, accelerator operation amount, and the like. 200 is electronically controlled.

即ち、電子制御装置260は、内燃機関100の回転速度及び負荷に応じた燃料噴射量及び燃料噴射時期を求め、クランク角度が燃料噴射時期になったときに、燃料噴射弁150に燃料噴射量に応じた作動信号を出力する。また、電子制御装置260は、内燃機関100の回転速度及び負荷に応じた点火時期を求め、クランク角度が点火時期になったときに、ディストリビュータ200に作動信号を出力する。さらに、電子制御装置260は、アクセル操作量及びその変化量に応じた目標スロットル開度を求め、目標スロットル開度とスロットル開度との偏差に応じて、電子制御スロットルチャンバ130のアクチュエータ134をフィードバック制御する。   That is, the electronic control unit 260 obtains the fuel injection amount and fuel injection timing according to the rotational speed and load of the internal combustion engine 100, and when the crank angle reaches the fuel injection timing, the fuel injection valve 150 sets the fuel injection amount. The corresponding operation signal is output. Further, the electronic control unit 260 obtains an ignition timing corresponding to the rotational speed and load of the internal combustion engine 100, and outputs an operation signal to the distributor 200 when the crank angle reaches the ignition timing. Further, the electronic control unit 260 obtains a target throttle opening degree according to the accelerator operation amount and the change amount thereof, and feeds back the actuator 134 of the electronic control throttle chamber 130 according to a deviation between the target throttle opening degree and the throttle opening degree. Control.

電子制御装置260の制御部分においては、図3に示すように、機能安全を適用しなければならない安全関連部分(ASIL;Automotive Safety Integrity Level)と機能安全を適用する必要がない非安全関連部分(QM;Quality Management)とが混在している。ここで、安全関連部分としては、車両の安全性に直接影響を及ぼす、例えば、電子制御スロットルチャンバ130の制御が一例として挙げられる。   In the control part of the electronic control unit 260, as shown in FIG. 3, a safety-related part (ASIL: Automotive Safety Integrity Level) to which the functional safety must be applied and a non-safety-related part to which the functional safety does not need to be applied ( QM (Quality Management) is mixed. Here, as the safety-related part, for example, control of the electronically controlled throttle chamber 130 that directly affects the safety of the vehicle is exemplified.

このため、電子制御装置260のRAM264は、図4に示すように、ASILに相当するSM(Safety Mechanism)RAM領域264Aと、QMに相当する通常RAM領域264Bと、に論理的に分けることができる。なお、電子制御装置260のRAM264に、DMAC(Direct Memory Access Controller)がメモリと直接データを転送する、DMACRAM領域を含めることができる。   Therefore, the RAM 264 of the electronic control unit 260 can be logically divided into an SM (Safety Mechanism) RAM area 264A corresponding to ASIL and a normal RAM area 264B corresponding to QM, as shown in FIG. . The RAM 264 of the electronic control device 260 can include a DMACRAM area where a direct memory access controller (DMAC) transfers data directly to the memory.

SMRAM領域264Aは、機能安全規格を準拠するため、FTTI内に、他のエレメント(燃料噴射システムなどの他のシステム)によって内容が書き換えられているか否か、要するに、他のエレメントから侵害(RAM侵害)があるか否かを診断する必要がある。RAM侵害が発生する一例としては、例えば、プログラムのバグによって他のエレメントのメモリ領域をアクセスすることが挙げられる。   In order to comply with the functional safety standard, the SMRAM area 264A is FTTI, whether or not the contents are rewritten by another element (another system such as a fuel injection system). ) Needs to be diagnosed. An example of the occurrence of RAM violation is, for example, accessing a memory area of another element due to a bug in a program.

SMRAM領域264Aのサイズが大きい場合、そこに格納されているデータのすべてをチェックするのにある程度の時間を要し、電子制御装置260が所定時間ごとに実行する定時ジョブ、例えば、電子制御スロットルチャンバ130の開度制御に影響が及んでしまうおそれがある。なお、SMRAM領域264Aが、自動車の安全性に係るデータが格納されている領域の一例として挙げられる。   When the size of the SMRAM area 264A is large, it takes a certain amount of time to check all the data stored in the SMRAM area 264A, and a scheduled job that the electronic control unit 260 executes every predetermined time, for example, an electronic control throttle chamber There is a possibility that the opening degree control of 130 may be affected. The SMRAM area 264A is an example of an area in which data related to automobile safety is stored.

そこで、次のような手法を適用することで、定時ジョブへの影響を軽減しつつ、FTTI内にSMRAM領域264AにおいてRAM侵害が発生しているか否かの診断を可能とする。なお、通常RAM領域264Bについては、例えば、1バイトずつ所定のデータを書き込んで読み込む、いわゆる「Read/Writeチェック」など、公知の手法でRAM診断を行うことができる。   Therefore, by applying the following method, it is possible to diagnose whether or not a RAM violation has occurred in the SMRAM area 264A in the FTTI while reducing the influence on the scheduled job. For the normal RAM area 264B, for example, RAM diagnosis can be performed by a known method such as so-called “Read / Write check” in which predetermined data is written and read byte by byte.

[第1の手法]
RAM264の一部の領域であるSMRAM領域264Aを、図5に示すように、所定数n(n:1以上の整数)で論理的に分割した、分割領域1〜nに分ける。そして、電子制御装置260のCPU262は、FTTIよりも短い所定時間(例えば、10ms)ごとに、例えば、SUM値,その反転値,ハッシュ値などの異常検出値を用いてRAM侵害の有無を診断する。ここで、SMRAM領域264Aを分割する所定数nは、すべての分割領域1〜nのRAM侵害の診断を終了するまでに要する時間がFTTI以下となる制約下で、例えば、データの重要度、CPU262の処理能力などを考慮して適宜決定することができる。なお、各分割領域1〜nは、同一サイズに限らず、異なるサイズを有していてもよい(以下同様)。
[First method]
As shown in FIG. 5, the SMRAM area 264A, which is a partial area of the RAM 264, is divided into divided areas 1 to n that are logically divided by a predetermined number n (n is an integer of 1 or more). Then, the CPU 262 of the electronic control device 260 diagnoses the presence / absence of the RAM infringement using, for example, an abnormality detection value such as a SUM value, an inverted value thereof, and a hash value every predetermined time (for example, 10 ms) shorter than FTTI. . Here, the predetermined number n for dividing the SMRAM area 264A is, for example, the importance of data, the CPU 262 under the constraint that the time required to complete the diagnosis of RAM infringement of all the divided areas 1 to n is less than FTTI. It can be determined appropriately in consideration of the processing capacity of the system. Note that each of the divided regions 1 to n is not limited to the same size, and may have different sizes (the same applies hereinafter).

電子制御装置260が、1つのCPU262を有する場合、SMRAM領域264Aの分割領域1〜nは、例えば、10ms間隔で実行される定時ジョブでRAM侵害を診断することができる。この場合、電子制御装置260のCPU262は、処理負荷を軽減すべく、処理負荷が小さいバックグラウンドで異常検出値を求めることができる。   When the electronic control unit 260 includes one CPU 262, the divided areas 1 to n of the SMRAM area 264A can diagnose RAM infringement by a scheduled job executed at intervals of 10 ms, for example. In this case, the CPU 262 of the electronic control device 260 can obtain the abnormality detection value in the background with a small processing load in order to reduce the processing load.

電子制御装置260が、2つのCPU262を有する場合、SMRAM領域264Aの分割領域1〜nは、一方のCPU262が実行する定時ジョブでRAM侵害を診断し、他方のCPU262が異常検出値を求めることができる。また、RAM侵害の診断精度を向上させるために、2つのCPU262が同期ととりながら、RAM侵害の診断を多重化することもできる。なお、電子制御装置260は、2つのCPU262の代わりに、1つのチップに複数のコアが内蔵されたマルチコアCPUを使用することもできる。   When the electronic control unit 260 has two CPUs 262, the divided areas 1 to n of the SMRAM area 264A diagnose RAM infringement by a scheduled job executed by one CPU 262, and the other CPU 262 obtains an abnormality detection value. it can. In addition, in order to improve the diagnosis accuracy of RAM infringement, the diagnosis of RAM infringement can be multiplexed while the two CPUs 262 are synchronized. Note that the electronic control device 260 can use a multi-core CPU in which a plurality of cores are built in one chip instead of the two CPUs 262.

このようにすれば、電子制御装置260のCPU262は、定時ジョブを実行するとき、SMRAM領域264Aの分割領域1〜nの1つについて、RAM侵害を順番に診断することができる。この場合、SMRAM領域264Aを分割する所定数nは、CPU262の処理能力などを考慮して適宜決定されているため、所定時間ごとに実行される定時ジョブには影響が及び難い。また、SMRAM領域264Aは、RAM264の一部の領域であるため、その全領域についてRAM侵害を診断するよりも短い時間で、RAM侵害の診断を終了することができる。従って、SMRAM領域264Aのすべての分割領域1〜nは、FTTI内にRAM侵害の診断が終了し、機能安全規格を準拠することができる。   In this way, when executing the scheduled job, the CPU 262 of the electronic control device 260 can diagnose RAM infringement in order for one of the divided areas 1 to n of the SMRAM area 264A. In this case, the predetermined number n that divides the SMRAM area 264A is determined as appropriate in consideration of the processing capability of the CPU 262 and the like, so it is difficult to affect the scheduled job that is executed every predetermined time. Further, since the SMRAM area 264A is a partial area of the RAM 264, the diagnosis of the RAM infringement can be completed in a shorter time than the diagnosis of the RAM infringement for the entire area. Therefore, all the divided areas 1 to n of the SMRAM area 264A can be subjected to the diagnosis of RAM infringement within the FTTI and comply with the functional safety standard.

[第2の手法]
RAM264の一部の領域であるSMRAM領域264Aを、図6に示すように、所定数n(ここではn=3とする)で論理的に分割した、分割領域1〜3に分ける。各分割領域1,2及び3には、他の分割領域の異常判定値、即ち、分割領域3,1及び2の異常判定値を格納する領域が夫々確保されている。そして、電子制御装置260のCPU262は、電子制御装置260の起動時に、すべての分割領域1〜3の異常判定値を求め、これを各分割領域1〜3に格納しておく。なお、SMRAM領域264Aを分割する所定数nは、3に限らず、データの重要度やCPU262の処理能力などに応じて、2又は4以上とすることもできる。
[Second method]
As shown in FIG. 6, the SMRAM area 264A, which is a partial area of the RAM 264, is divided into divided areas 1 to 3, which are logically divided by a predetermined number n (here, n = 3). In each of the divided areas 1, 2 and 3, areas for storing the abnormality determination values of the other divided areas, that is, the abnormality determination values of the divided areas 3, 1 and 2 are secured. Then, the CPU 262 of the electronic control device 260 obtains the abnormality determination values for all the divided regions 1 to 3 when the electronic control device 260 is activated, and stores them in the divided regions 1 to 3. Note that the predetermined number n dividing the SMRAM area 264A is not limited to 3, but may be 2 or 4 or more depending on the importance of data, the processing capability of the CPU 262, and the like.

電子制御装置260のCPU262は、最初に定時ジョブを実行するとき、分割領域1について異常判定値を用いてRAM侵害を診断し、所定の処理を実行した後、異常判定値を分割領域2に格納する。次に、電子制御装置260のCPU262は、定時ジョブを実行するとき、分割領域2について異常判定値を用いてRAM侵害を診断し、所定の処理を実行した後、異常判定値を分割領域3に格納する。その次に、電子制御装置260のCPU262は、定時ジョブを実行するとき、分割領域3について異常判定値を用いてRAM侵害を診断し、所定の処理を実行した後、異常判定値を分割領域1に格納する。このようにして、電子制御装置260のCPU262は、所定時間ごとに分割領域1〜3について順番にRAM侵害を診断し、RAM侵害の診断に用いた異常判定値を他の分割領域に格納する。   When the CPU 262 of the electronic control device 260 executes a scheduled job for the first time, it diagnoses a RAM infringement using the abnormality determination value for the divided area 1 and executes a predetermined process, and then stores the abnormality determination value in the divided area 2. To do. Next, when executing the scheduled job, the CPU 262 of the electronic control unit 260 diagnoses the RAM infringement using the abnormality determination value for the divided area 2 and executes a predetermined process, and then sets the abnormality determination value to the divided area 3. Store. Next, when executing the scheduled job, the CPU 262 of the electronic control device 260 diagnoses the RAM infringement using the abnormality determination value for the divided area 3 and executes a predetermined process. To store. In this way, the CPU 262 of the electronic control unit 260 diagnoses the RAM infringement in order for the divided areas 1 to 3 every predetermined time, and stores the abnormality determination value used for the diagnosis of the RAM infringement in the other divided areas.

このようにすれば、先の第1の手法の作用及び効果に加えて、異常判定値もRAM侵害の診断対象となり、診断精度を向上させることができる。なお、第2の手法の作用及び効果については、先の第1の手法の説明を参照されたい。   In this way, in addition to the operation and effect of the first method, the abnormality determination value can also be a diagnosis target of RAM infringement, and the diagnostic accuracy can be improved. For the operation and effect of the second method, refer to the description of the first method.

第1の手法及び第2の手法は、以下に説明するように、例えば、定時ジョブに組み込むことで実現できる。   As described below, the first method and the second method can be realized, for example, by being incorporated into a scheduled job.

図7は、電子制御装置260が起動されたことを契機として、そのCPU262が起動時及び所定時間ごとに実行する、定時ジョブの一例を示す。ここでは、電子制御装置260のCPU262は、定時ジョブを実行するたびに、SMRAM領域264Aを所定数nで分割した各分割領域1〜nについて順番にRAM侵害を診断する。要するに、定時ジョブを実行するときに、RAM侵害の診断対象となる分割領域が順次変更される。なお、以下の例では、定時ジョブにRAM侵害の診断を組み込んでいるが、他の定時ジョブとしてRAM侵害を診断することもできる。   FIG. 7 shows an example of a scheduled job that is executed by the CPU 262 at the time of activation and every predetermined time when the electronic control device 260 is activated. Here, every time the scheduled job is executed, the CPU 262 of the electronic control unit 260 diagnoses RAM infringement in order for each of the divided areas 1 to n obtained by dividing the SMRAM area 264A by a predetermined number n. In short, when a scheduled job is executed, the divided areas to be diagnosed for RAM violation are sequentially changed. In the following example, a diagnosis of RAM infringement is incorporated in a scheduled job, but a RAM infringement can also be diagnosed as another scheduled job.

ステップ1(図では「S1」と略記する。以下同様。)では、電子制御装置260のCPU262が、SUM値,その反転値,ハッシュ値などの異常判定値を用いて、診断対象となる分割領域についてRAM侵害を診断する。具体的には、電子制御装置260のCPU262は、診断対象となる分割領域に格納されている異常判定値を読み込むと共に、診断対象となる分割領域に格納されているデータについて所定演算を施して異常判定値を求める。そして、電子制御装置260のCPU262は、分割領域から読み込んだ異常判定値と分割領域のデータから求めた異常判定値とを比較することで、分割領域のデータが書き換えられているか否か、要するに、RAM侵害が発生しているか否かを診断する。   In step 1 (abbreviated as “S1” in the figure, the same applies hereinafter), the CPU 262 of the electronic control unit 260 uses the abnormality determination value such as the SUM value, its inverted value, and hash value to determine the divided region to be diagnosed. Diagnose RAM violation. Specifically, the CPU 262 of the electronic control unit 260 reads the abnormality determination value stored in the divided area to be diagnosed, and performs a predetermined calculation on the data stored in the divided area to be diagnosed to perform an abnormality. Obtain the judgment value. Then, the CPU 262 of the electronic control device 260 compares the abnormality determination value read from the divided area with the abnormality determination value obtained from the data of the divided area to determine whether or not the data of the divided area is rewritten. Diagnose whether a RAM violation has occurred.

ステップ2では、電子制御装置260のCPU262が、ステップ1の診断結果に応じて、診断対象となる分割領域にRAM侵害が発生しているか否かを判定する。そして、電子制御装置260のCPU262は、RAM侵害が発生していないと判定すれば(Yes)、処理をステップ3へと進める。一方、電子制御装置260のCPU262は、RAM侵害が発生していると判定すれば(No)、処理をステップ5へと進める。   In step 2, the CPU 262 of the electronic control unit 260 determines whether or not a RAM infringement has occurred in the divided area to be diagnosed, according to the diagnosis result in step 1. If the CPU 262 of the electronic control unit 260 determines that no RAM infringement has occurred (Yes), the process proceeds to step 3. On the other hand, if the CPU 262 of the electronic control unit 260 determines that the RAM infringement has occurred (No), the process proceeds to step 5.

ステップ3では、電子制御装置260のCPU262が、RAM侵害が発生していない通常時の処理、例えば、アクセル操作量及びその変化量に基づくスロットル開度制御を実行する。   In step 3, the CPU 262 of the electronic control unit 260 executes normal processing in which no RAM infringement has occurred, for example, throttle opening control based on the accelerator operation amount and its change amount.

ステップ4では、通常時の処理により診断対象となる分割領域のデータが書き換えられた可能性を勘案し、電子制御装置260のCPU262が、分割領域に格納されているデータについて所定演算を施して異常判定値を求める。なお、ここで求められた異常判定値は、分割領域に格納され、後のRAM侵害の診断に利用される。   In step 4, the CPU 262 of the electronic control unit 260 performs a predetermined calculation on the data stored in the divided area in consideration of the possibility that the data of the divided area to be diagnosed has been rewritten by normal processing. Obtain the judgment value. Note that the abnormality determination value obtained here is stored in the divided area and used for later diagnosis of RAM infringement.

ステップ5では、診断対象となる分割領域にRAM侵害が発生しているため、電子制御装置260のCPU262が、通常の定時ジョブを異常時の処理へと移行する。異常時の処理としては、例えば、内燃機関100の出力を制限する、フェールセーフ処理などが挙げられる。   In step 5, since the RAM infringement has occurred in the divided area to be diagnosed, the CPU 262 of the electronic control unit 260 shifts the normal scheduled job to the process at the time of abnormality. Examples of the processing at the time of abnormality include fail-safe processing that limits the output of the internal combustion engine 100.

このようにすれば、SMRAM領域264AにRAM侵害が発生した場合、通常の定時ジョブの代わりに異常時の処理が実行されるため、例えば、電子制御スロットルチャンバ130の異常によって車両が制御不能となることがなく、車両の安全性を確保することができる。また、SMRAM領域264AのRAM侵害の診断機能は、ソフトウエアで実現されるため、例えば、OS(Operating System)などが相違する、様々な電子制御装置であっても容易に実装することができる。   In this way, when the RAM infringement occurs in the SMRAM area 264A, the process at the time of abnormality is executed instead of the regular scheduled job, and therefore, for example, the vehicle becomes uncontrollable due to an abnormality in the electronic control throttle chamber 130. It is possible to ensure the safety of the vehicle. In addition, since the RAM infringement diagnosis function in the SMRAM area 264A is realized by software, for example, various electronic control devices with different OS (Operating System) can be easily implemented.

なお、上記実施形態においては、機能安全規格の適用対象として、電子制御スロットルチャンバ130を例示したが、例えば、ブレーキ制御システム、操舵システム、自動運転システムなど、自動車の安全性を確保すべきシステムとすることができる。   In the above embodiment, the electronically controlled throttle chamber 130 is exemplified as an application target of the functional safety standard. However, for example, a system that should ensure the safety of the automobile, such as a brake control system, a steering system, and an automatic driving system. can do.

260 電子制御装置
262 CPU(プロセッサ)
264 RAM(メモリ)
264A SMRAM領域
260 Electronic control unit 262 CPU (processor)
H.264 RAM (memory)
H.264A SMRAM area

Claims (3)

メモリ及びプロセッサを備えた自動車用電子制御装置において、
前記プロセッサが、前記メモリの一部の領域を論理的に分割した各分割領域について、フォールトトレラント時間間隔より短い所定時間ごとに、そこに格納されたデータが書き換えられているか否かを順番に診断する、
ことを特徴とする自動車用電子制御装置。
In an automotive electronic control device comprising a memory and a processor,
For each divided area obtained by logically dividing a partial area of the memory, the processor sequentially diagnoses whether or not the data stored therein is rewritten at a predetermined time shorter than the fault tolerant time interval. To
An electronic control device for an automobile.
前記メモリの一部の領域の分割数は、前記プロセッサの処理能力に応じて設定される、
ことを特徴とする請求項1に記載の自動車用電子制御装置。
The number of divisions of the partial area of the memory is set according to the processing capability of the processor.
The automotive electronic control device according to claim 1.
前記メモリの一部の領域は、自動車の安全性に係るデータが格納されている領域である、
ことを特徴とする請求項1又は請求項2に記載の自動車用電子制御装置。
The partial area of the memory is an area in which data related to automobile safety is stored.
The automobile electronic control device according to claim 1 or 2, wherein
JP2015049126A 2015-03-12 2015-03-12 Electronic control unit for automobile Active JP6306530B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2015049126A JP6306530B2 (en) 2015-03-12 2015-03-12 Electronic control unit for automobile

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2015049126A JP6306530B2 (en) 2015-03-12 2015-03-12 Electronic control unit for automobile

Publications (2)

Publication Number Publication Date
JP2016170567A JP2016170567A (en) 2016-09-23
JP6306530B2 true JP6306530B2 (en) 2018-04-04

Family

ID=56983736

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2015049126A Active JP6306530B2 (en) 2015-03-12 2015-03-12 Electronic control unit for automobile

Country Status (1)

Country Link
JP (1) JP6306530B2 (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP7236811B2 (en) * 2018-03-30 2023-03-10 株式会社デンソー Information processing equipment
JP6943218B2 (en) 2018-04-20 2021-09-29 横河電機株式会社 Failure detection device, failure detection method and failure detection program
KR102115436B1 (en) * 2018-11-02 2020-05-27 주식회사 넥스트칩 Method for managing data and memory wrapper performing the method
JP7177272B2 (en) * 2019-07-12 2022-11-22 日立Astemo株式会社 Security processor

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS62249237A (en) * 1986-04-23 1987-10-30 Mitsubishi Electric Corp Program executing system for sampling controller
JP3112034B2 (en) * 1991-09-26 2000-11-27 株式会社日立製作所 Preventive maintenance system for substation equipment
JP2009126451A (en) * 2007-11-27 2009-06-11 Denso Corp Controller for vehicle
EP2546752B1 (en) * 2010-03-11 2018-09-19 Mitsubishi Electric Corporation Memory diagnostic method, memory diagnostic device, and memory diagnostic program
JP2013152563A (en) * 2012-01-24 2013-08-08 Toyota Motor Corp Electronic control device and memory check method
JP6145345B2 (en) * 2013-07-22 2017-06-07 日立オートモティブシステムズ株式会社 Electronic control unit for automobile

Also Published As

Publication number Publication date
JP2016170567A (en) 2016-09-23

Similar Documents

Publication Publication Date Title
JP5867495B2 (en) Electronic control unit
JP6306530B2 (en) Electronic control unit for automobile
JP4491967B2 (en) VEHICLE CONTROL DEVICE AND RECORDING MEDIUM HAVING SELF-DIAGNOSTIC FUNCTION
DE112018003865B4 (en) Control system of an internal combustion engine
JP6129499B2 (en) Electronic control system for automobile
US7086056B2 (en) Processor unit for executing event processes in real time without causing process interference
WO2017078093A1 (en) Electronic control device and electronic control method
JP4483907B2 (en) Vehicle control method and vehicle control apparatus
US7200508B2 (en) Method and device for monitoring a control unit of an internal combustion engine
JP5842783B2 (en) Vehicle control device
US6941219B2 (en) Method for recreating valid calibration data for an engine control module
JP4210940B2 (en) Abnormality diagnosis device for intake system sensor
US10233855B2 (en) Failure diagnosis apparatus for diagnosing an insufficient output of an internal combustion engine
Nanjundaswamy et al. OBD diagnostic strategies for LEVIII exhaust gas aftertreatment concepts
JP6275790B2 (en) Electronic control unit for automobile
JP6466269B2 (en) Electronic control device and stack area usage monitoring method
JP6771272B2 (en) In-vehicle electronic control device and stack usage
JP2009215944A (en) Electronic control system and method for operating same
CN113302592A (en) Method for controlling an engine control unit having a multi-core processor
JP2009080566A (en) Vehicle control program and program generation method, program generator, and automobile controller
JP6877475B2 (en) Electronic control device and stack usage
JP3346163B2 (en) Vehicle electronic control unit
JP3688224B2 (en) Automotive control unit
JP2021076021A (en) Electronic control unit
JP2016159753A (en) Vehicular control unit

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20170317

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20171206

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20171212

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20180110

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20180308

R150 Certificate of patent or registration of utility model

Ref document number: 6306530

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

S533 Written request for registration of change of name

Free format text: JAPANESE INTERMEDIATE CODE: R313533

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250