JP2016126692A - Electronic control device - Google Patents
Electronic control device Download PDFInfo
- Publication number
- JP2016126692A JP2016126692A JP2015002137A JP2015002137A JP2016126692A JP 2016126692 A JP2016126692 A JP 2016126692A JP 2015002137 A JP2015002137 A JP 2015002137A JP 2015002137 A JP2015002137 A JP 2015002137A JP 2016126692 A JP2016126692 A JP 2016126692A
- Authority
- JP
- Japan
- Prior art keywords
- bist
- reset
- execution
- electronic control
- microcomputer
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/22—Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
- G06F11/2284—Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing by power-on test, e.g. power-on self test [POST]
Abstract
Description
本発明は、故障検出機能を有するマイコンを搭載した電子制御装置に関する。 The present invention relates to an electronic control device equipped with a microcomputer having a failure detection function.
自動車の機能安全に関する規格であるISO26262に対応するため、マイコンにはロックステップ方式等の故障検出機能が設けられ、その故障検出機能を用いて故障検出が行われる。故障が発見されると、安全性が確保される時間内に車両を安全な状態(例えば、出力制限)にする必要がある。また、マイコンを搭載したECU(Electronic Control Unit)といった電子制御装置は、起動中に1度は故障検出機能自体を診断し、その診断結果が異常の場合は警告灯を点灯させる等してドライバに警告する必要がある。 In order to comply with ISO 26262, which is a standard related to the functional safety of automobiles, the microcomputer is provided with a failure detection function such as a lockstep method, and failure detection is performed using the failure detection function. When a failure is discovered, it is necessary to put the vehicle in a safe state (for example, output limitation) within a time when safety is ensured. In addition, an electronic control unit such as an ECU (Electronic Control Unit) equipped with a microcomputer diagnoses the failure detection function itself once during startup, and if the diagnosis result is abnormal, turns on a warning light to the driver. You need to be warned.
このような故障検出機能自体の診断方法として、BIST(Built In Self Test)回路によるBISTが行われている(下記特許文献1及び特許文献2参照)。このようなBIST回路によるBISTでは、一時的にマイコンの動作ができなくなるため、BISTの実行後にリセットをかける必要がある。このようなBISTの性質から、ソフトウェア動作前にBISTを実行するのが一般的である。 As a diagnostic method of such a failure detection function itself, BIST is performed by a BIST (Build In Self Test) circuit (see Patent Document 1 and Patent Document 2 below). In such a BIST by the BIST circuit, the microcomputer cannot be operated temporarily, so that it is necessary to reset after executing the BIST. Due to the nature of BIST, BIST is generally executed before software operation.
車両では、マイコンを搭載した電子制御装置(ECU)が数多く搭載されているので、ソフトウェア動作前であっても、他の電子制御装置が動作していることに起因するノイズが発生している場合がある。そのため、車両のようなノイズの多い環境では、ノイズにより誤って異常を検出する可能性がある。 Since many electronic control units (ECUs) equipped with microcomputers are installed in the vehicle, noise is generated due to the operation of other electronic control units even before software operation. There is. Therefore, in a noisy environment such as a vehicle, there is a possibility that an abnormality is erroneously detected due to the noise.
本発明はこのような課題に鑑みてなされたものであり、その目的は、ノイズによる誤検出を極力排除し、的確にBISTを実行して故障検出機能の診断を行うことができる電子制御装置を提供することにある。 The present invention has been made in view of such a problem, and an object of the present invention is to provide an electronic control device that can eliminate erroneous detection due to noise as much as possible and perform BIST accurately to diagnose a failure detection function. It is to provide.
上記課題を解決するために、本発明に係る故障検出機能を有するマイコン(20,20A)を搭載した電子制御装置(10,10A)であって、BIST回路を有する機能ブロック(202,203,204,211)と、前記BIST回路によるBISTを実行させるBIST実行リセット手段(209)と、を備え、前記マイコンの起動時に、前記BIST回路による前記機能ブロックのBISTが実行され、前記BISTによる診断結果が異常である場合には、前記BIST実行リセット手段によってBISTを実行するリセットを実行することで、BISTによる診断を複数回行うことを特徴とする。 In order to solve the above-described problem, an electronic control device (10, 10A) equipped with a microcomputer (20, 20A) having a failure detection function according to the present invention, which has a BIST circuit (202, 203, 204). , 211) and BIST execution reset means (209) for executing BIST by the BIST circuit, and when the microcomputer is activated, the BIST of the functional block is executed by the BIST circuit, and the diagnosis result by the BIST is obtained. If abnormal, the BIST execution resetting means executes a BIST reset to perform a BIST diagnosis a plurality of times.
本発明によれば、マイコンの起動時においてBISTによる診断結果が異常である場合に、BIST実行リセット手段によってBISTを実行するリセットを実行するので、異常が発生している可能性のある場合に複数回のBIST診断を行うことができる。従って、ノイズによる誤検出の影響を、複数回のBIST診断を行うことで極力排除することができ、ロバスト性を向上させることができる。 According to the present invention, when the diagnosis result by the BIST is abnormal at the time of starting the microcomputer, the BIST execution reset unit executes the reset for executing the BIST, so that there are a plurality of cases where an abnormality may occur. Multiple BIST diagnoses can be made. Therefore, the influence of erroneous detection due to noise can be eliminated as much as possible by performing BIST diagnosis a plurality of times, and robustness can be improved.
更に本発明者は、上記したノイズによる誤検出の課題に加えて、リセット時間の長時間化の課題も見出した。具体的には、BISTによる診断には数十msオーダーの時間が必要となるため、マイコン起動後のリセットにおいて必ずBISTによる診断を行っていると、必要以上にBISTに時間を要することになり安全性や商品性に影響を与えるおそれがあるというものである。マイコン起動後のリセットとしては、車両走行中に故障検出機能(ロックステップ、ECC(Error Check Correct)、MPU(Memory Protection Unit)等)がマイコンの故障を検出したときに復旧を試みるリセットや、ECUのシャットダウン処理中にドライバのイグニッションオン操作が入ってしまいエンジン始動要求がかかった場合のリセット等が挙げられる。 Furthermore, the present inventor has found a problem of prolonging the reset time in addition to the problem of erroneous detection due to noise. Specifically, since the diagnosis by BIST requires time on the order of several tens of ms, if the diagnosis by BIST is always performed after resetting the microcomputer, the BIST will take more time than necessary and safe. There is a risk of affecting the product and merchantability. The reset after the microcomputer is started is a reset that attempts to recover when a failure of the microcomputer is detected by the failure detection function (lock step, ECC (Error Check Correct), MPU (Memory Protection Unit), etc.) while the vehicle is running, For example, resetting when an engine start request is made due to the driver's ignition on operation being entered during the shutdown process.
このリセット時間の長時間化の課題も解決するため、本発明においては、前記BIST回路によるBISTを実行させないBIST不実行リセット手段(209)を備え、前記マイコン起動後においてBISTを必要としないリセットを実行する際に、前記BIST不実行リセット手段によってBISTを実行しないリセットを実行することも好ましい態様である。 In order to solve the problem of lengthening the reset time, the present invention includes BIST non-execution reset means (209) that does not execute BIST by the BIST circuit, and performs reset that does not require BIST after the microcomputer is activated. When executing, it is also a preferable aspect to execute a reset that does not execute BIST by the BIST non-execution reset means.
更に本発明者は、上記したリセット時間の長時間化の課題に加えて、BIST実行頻度の低下の課題も見出した。具体的には、起動後のリセットにおいて全くBISTによる診断を行わないものとすると、BISTの実行頻度が下がってしまい、信頼性を悪化させるおそれがあるというものである。 Furthermore, the present inventor has found a problem of lowering the BIST execution frequency in addition to the problem of increasing the reset time. Specifically, if no diagnosis by BIST is performed at the time of reset after start-up, the BIST execution frequency is lowered, and the reliability may be deteriorated.
このBIST実行頻度低下の課題も解決するため、本発明においては、BISTを必要とする起動後のリセットか、BISTを必要としない起動後のリセットかを判断するBIST判定手段(209)を備え、前記BIST判定手段の判断結果に基づいて、前記BIST実行リセット手段によるリセットか、前記BIST不実行リセット手段によるリセットかが選択されることも好ましい態様である。 In order to solve the problem of lowering the BIST execution frequency, the present invention includes a BIST determination means (209) for determining whether the reset is performed after startup that requires BIST or reset after startup that does not require BIST. It is also a preferred aspect that a reset by the BIST execution reset unit or a reset by the BIST non-execution reset unit is selected based on the determination result of the BIST determination unit.
本発明によれば、ノイズによる誤検出を極力排除し、的確にBISTを実行して故障検出機能の診断を行うことができる電子制御装置を提供することができる。 According to the present invention, it is possible to provide an electronic control device that can eliminate erroneous detection due to noise as much as possible and perform a BIST accurately and diagnose a failure detection function.
以下、添付図面を参照しながら本発明の実施形態について説明する。説明の理解を容易にするため、各図面において同一の構成要素に対しては可能な限り同一の符号を付して、重複する説明は省略する。 Hereinafter, embodiments of the present invention will be described with reference to the accompanying drawings. In order to facilitate the understanding of the description, the same constituent elements in the drawings will be denoted by the same reference numerals as much as possible, and redundant description will be omitted.
図1に示されるように、本発明の実施形態であるECU10(電子制御装置)は、マイコン20と、監視IC30と、出力回路40と、を備えている。
As shown in FIG. 1, an ECU 10 (electronic control device) that is an embodiment of the present invention includes a
マイコン20は、機能ブロックとして、ロックステップ付CPU202と、メモリプロテクション203と、ECCコントローラ204と、BISTコントローラ205と、ROM206と、RAM207と、リセット要因フラグ208と、リセット回路209(BIST実行リセット手段、BIST不実行リセット手段、BIST判定手段)と、I/O210と、を備えている。各機能ブロックは、バス201を介して相互に通信可能なように構成されている。
The
マイコン20は機能安全対応であるので、ロックステップ付CPU202、メモリプロテクション203、及びECCコントローラ204は、故障検出機能を有している。故障検出のため、ロックステップ付CPU202、メモリプロテクション203、及びECCコントローラ204にはそれぞれBIST回路が設けられている。ロックステップ付CPU202、メモリプロテクション203、及びECCコントローラ204のBIST回路は、BISTコントローラ205によって、BISTの内容及びタイミングが制御されている。本実施形態では、マイコン20の初期化段階でBISTが実行されるように構成されている。
Since the
ROM206は、制御プログラムを記憶するための領域である。RAM207は、BIST診断結果とBIST異常回数を記憶するための領域である。後述するように、BIST診断結果及びBIST異常回数は、BISTを実行するマイコンリセットの前後においても保持されている必要がある。RAM207がBISTの診断対象外であれば問題ないが、RAM207がBISTの診断対象であれば、保持されている情報がクリアされてしまう。そこで、BIST診断結果及びBIST異常回数は、BISTの対象外とすることが求められる。
The
リセット要因フラグ208は、リセット原因を特定するフラグを記憶するレジスタである。リセット要因フラグ208は、PowerOnリセット履歴フラグ208aと、ソフトDest.リセット履歴フラグ208bと、WDCリセット履歴フラグ208cと、有している。
The
PowerOnリセット履歴フラグ208aは、電源投入の際のリセットの履歴があるか否かを示している。ソフトDestリセット履歴フラグ208bは、BISTを実行するソフトウェアリセットの履歴があるか否かを示している。WDCリセット履歴フラグ208cは、BISTを実行しないWDCリセットの履歴があるか否かを示している。尚、このようなレジスタが無くても、BISTを実行するリセットの前後で保持されるRAM領域にフラグを確保し、各リセット要求前に各リセットの履歴をオンするようにしてもよい。
The PowerOn reset history flag 208a indicates whether there is a reset history when the power is turned on. The soft Dest
リセット回路209は、BISTを実行するリセットと、BISTを実行しないリセットとを生成することができる。リセット回路209は、監視IC30から入力される信号に応じたリセット、若しくはマイコン20内の特殊レジスタによるリセットにより、リセットを実行する。
The
本実施形態の場合、BISTを実行するリセットは、特殊レジスタによるマイコン20内部でかけるリセットである。特殊レジスタによるリセットとは、データに冗長性を持たせて、BISTを実行するリセットを特定するものである。尚、I/O210からリセット信号を出力させ、そのリセット信号に応じてBISTを実行するリセットを実行してもよい。
In the present embodiment, the reset for executing BIST is a reset applied inside the
本実施形態の場合、BISTを実行しないリセットは、監視IC30から入力されるリセット信号に基づくWDCリセットである。マイコン20が正常な状態であれば、I/O210は、監視IC30に対してWDC信号を出力する。I/O210は、異常を検出するとWDC信号を停止するので、監視IC30は異常を検知し、リセット回路209にリセット信号を出力する。尚、監視IC30を設けてWDC信号を監視しなくとも、マイコン20内部で監視できるように構成することも可能である。
In the case of this embodiment, the reset that does not execute BIST is a WDC reset based on a reset signal input from the
出力回路40には、I/O210から電子スロットル信号が出力される。出力回路40は、電子スロットル信号に応じて電子スロットル50を駆動制御する。出力回路40及び電子スロットル50は、ECU10の機能安全対象となる制御対象である。尚、制御対象は電子スロットに限られるものではなく、スタータ等でもよい。
An electronic throttle signal is output from the I /
図1ではシングルコア構成のマイコン20を例示したが、図5に示すようなマルチコア構成のマイコン20A(ECU10A)でもよい。マイコン20Aは、ロックステップ付CPU202に加えて、CPU211を有している。
In FIG. 1, the single-
続いて、図2を参照しながら、ECU10,10Aの動作について説明する。マイコン20,20Aに電源が入ると、PowerOnリセットが実行され、PowerOnリセット履歴フラグ208aがオンになり、マイコン初期化1を実行する(ステップS101)。マイコン初期化1としては例えば、I/Oレジスタを予め与えられた値に初期化する。
Next, the operation of the
ステップS101に続くステップS102では、BIST設定を行う。例えば、BISTによる診断領域の設定を行う。ステップS102に続くステップS103では、BISTを実行する。 In step S102 following step S101, BIST setting is performed. For example, the diagnosis area is set by BIST. In step S103 following step S102, BIST is executed.
ステップS103に続くステップS104では、マイコン初期化2を実行する。マイコン初期化1によって一旦初期化されているものの、BIST実行によってその初期化した値が変わってしまっている。そのため、ソフトウェア初期化前に再度マイコン初期化を実行する必要がある。マイコン初期化2では、PowerOnリセット履歴フラグ208aの初期化は行わない。また、ソフトウェア初期化で結果を参照するため、BIST結果の初期化も行わない。 In step S104 following step S103, microcomputer initialization 2 is executed. Although it has been initialized once by the microcomputer initialization 1, the initialized value has been changed by the BIST execution. Therefore, it is necessary to execute microcomputer initialization again before software initialization. In the microcomputer initialization 2, the PowerOn reset history flag 208a is not initialized. In addition, since the result is referred to in the software initialization, the BIST result is not initialized.
ステップS104に続くステップS105では、ソフトウェア初期化処理を行う。ソフトウェア初期化処理については、図3を参照しながら説明する。 In step S105 following step S104, software initialization processing is performed. The software initialization process will be described with reference to FIG.
ステップS201では、PowerOnリセット履歴フラグ208aによってPowerOnリセット履歴を取得する。PowerOnリセット履歴フラグ208aは、PowerOnリセット時のマイコン初期化1(図2のステップS101)によってのみオンするフラグである。 In step S201, a PowerOn reset history is acquired by the PowerOn reset history flag 208a. The PowerOn reset history flag 208a is a flag that is turned on only by the microcomputer initialization 1 at the time of PowerOn reset (step S101 in FIG. 2).
ステップS201に続くステップS202では、PowerOnリセット履歴があるか否かを判断する。PowerOnリセット履歴がオンになっていれば、ステップS203の処理に進み、PowerOnリセット履歴がオンになっていなければ、ステップS210の処理に進む。 In step S202 following step S201, it is determined whether there is a PowerOn reset history. If the PowerOn reset history is on, the process proceeds to step S203. If the PowerOn reset history is not on, the process proceeds to step S210.
ステップS203では、ソフトDestリセット履歴フラグ208bからソフトDestリセット履歴を取得するとともに、ソフトDestリセット履歴フラグ208bをクリアする。ステップS203に続くステップS204では、ソフトDestリセット履歴フラグ208bから取得したソフトDestリセット履歴があるか否かを判断する。ソフトDestリセット履歴がオンになっていれば、ステップS205の処理に進み、ソフトDestリセット履歴がオンになっていれなければ、ステップS206の処理に進む。
In step S203, the soft Dest reset
ステップS206では、BIST異常回数を0に初期化し、ステップS205の処理に進む。ステップS205では、起動時のBIST診断結果を取得する。ステップS205に続くステップS207では、起動時のBIST診断結果が正常であるか否かを判断する。起動時のBIST診断結果が正常であれば、ステップS211の処理に進み、起動時のBIST診断結果が正常でなければ、ステップS208の処理に進む。 In step S206, the BIST abnormality count is initialized to 0, and the process proceeds to step S205. In step S205, the BIST diagnosis result at startup is acquired. In step S207 following step S205, it is determined whether or not the BIST diagnosis result at startup is normal. If the BIST diagnosis result at startup is normal, the process proceeds to step S211. If the BIST diagnosis result at startup is not normal, the process proceeds to step S208.
ステップS208では、BIST異常回数を1つインクリメントする。ステップS208に続くステップS209では、BIST異常回数が異常判定値以上になっているか否かを判断する。BIST異常回数が異常判定値以上になっていれば、ステップS212の処理に進み、BIST異常回数が異常判定値以上になっていなければステップS213の処理に進む。 In step S208, the BIST abnormality frequency is incremented by one. In step S209 following step S208, it is determined whether or not the BIST abnormality count is equal to or greater than the abnormality determination value. If the BIST abnormality count is equal to or greater than the abnormality determination value, the process proceeds to step S212. If the BIST abnormality number is not equal to or greater than the abnormality determination value, the process proceeds to step S213.
ステップS210では、BIST診断結果を「UNFIX(未確定)」としてステップS214の処理に進む。ステップS211では、BIST診断結果を「NORMAL(正常)」としてステップS214の処理に進む。ステップS212では、BIST診断結果を「FAULT(異常)」としてステップS214の処理に進む。ステップS213では、ソフトDestリセット要求を行い、ソフトDestリセット履歴フラグ208bをオンにし、ソフトウェア初期化処理を終了する。
In step S210, the BIST diagnosis result is “UNFIX (unconfirmed)” and the process proceeds to step S214. In step S211, the BIST diagnosis result is “NORMAL (normal)” and the process proceeds to step S214. In step S212, the BIST diagnosis result is “FAULT (abnormal)” and the process proceeds to step S214. In step S213, a soft Dest reset request is made, the soft Dest reset
ステップS214では、PowerOnリセット履歴フラグ208aをクリアし、ソフトウェア初期化処理を終了する。このように、PowerOnリセット履歴フラグ208aがソフトウェア初期化処理中にクリアされるので、電源オンの後は電源を再投入しない限り、PowerOnリセット履歴フラグ208aがオンになることはない。 In step S214, the PowerOn reset history flag 208a is cleared, and the software initialization process is terminated. Thus, since the PowerOn reset history flag 208a is cleared during the software initialization process, the PowerOn reset history flag 208a is not turned on unless the power is turned on again after the power is turned on.
図3を参照しながら説明したフローを実行すると、電源投入時(ステップS202においてPowerOnリセット履歴オン(Yes)、ステップS204におけるソフトDestリセット履歴オフ(No))には、BIST異常回数を初期化し、BIST判定を行うことになる。ステップS207のBIST判定結果が正常(Yes)の場合は、正常判定して処理を終了することになる。 When the flow described with reference to FIG. 3 is executed, when the power is turned on (PowerOn reset history on (Yes) in step S202, soft Dest reset history off (No) in step S204), the BIST abnormality frequency is initialized, BIST determination will be performed. If the BIST determination result in step S207 is normal (Yes), the determination is normal and the process is terminated.
ステップS207のBIST判定結果が異常(No)の場合は、ステップS208においてBIST異常回数をインクリメントし、ステップS209においてBIST異常回数が異常判定閾値未満(No)の場合、BIST実行するリセットであるソフトDestリセットを要求する。ステップS209においてBIST異常回数が異常判定閾値以上(Yes)の場合、異常判定して処理を終了することになる。 If the BIST determination result in step S207 is abnormal (No), the BIST abnormality count is incremented in step S208, and if the BIST abnormality count is less than the abnormality determination threshold value (No) in step S209, the software Dest that is a reset that performs BIST. Request a reset. If the number of BIST abnormalities is equal to or greater than the abnormality determination threshold value (Yes) in step S209, the abnormality is determined and the process is terminated.
BIST実行する自己リセット解除時(ステップS202においてPowerOnリセット履歴オン(Yes)、ステップS204におけるソフトDestリセット履歴オン(Yes))には、BIST異常回数の初期化は行われず、電源投入時と同じBIST判定処理を行う。 At the time of self-reset cancellation to execute BIST (PowerOn reset history on (Yes) in step S202, soft Dest reset history on (Yes) in step S204), the BIST abnormality count is not initialized, and the same BIST as when the power is turned on Judgment processing is performed.
一方、BIST実行しない自己リセット解除時(ステップS202においてPowerOnリセット履歴オフ(No))には、BIST異常回数を保持し、BIST判定処理を行わない。 On the other hand, at the time of self-reset cancellation without BIST execution (PowerOn reset history off (No) in step S202), the BIST abnormality count is held and the BIST determination process is not performed.
図2に戻って、説明を続ける。図3を参照しながら説明したソフトウェア初期化処理において、BIST診断結果が「異常」または「未確定」の場合、又はソフトDestリセット要求がなされた場合は、ステップS101の処理に戻る。その他の場合は、ステップS106の処理に進む。 Returning to FIG. 2, the description will be continued. In the software initialization process described with reference to FIG. 3, if the BIST diagnosis result is “abnormal” or “indeterminate”, or if a soft Dest reset request is made, the process returns to step S101. In other cases, the process proceeds to step S106.
ステップS106では、繰り返し実行されるようになっているソフトウェア時間同期処理を実行する。ソフトウェア時間同期処理では、電子スロットル制御等を行う。ソフトウェア時間同期処理においてマイコン20,20Aの故障が検出されると、上述したWDCリセットがかかり、ステップS104の処理に戻る。ソフトウェア時間同期処理においてマイコン20,20Aの故障が検出されず、イグニッションスイッチがオフになると、ステップS107の処理に進む。
In step S106, a software time synchronization process that is repeatedly executed is executed. In the software time synchronization process, electronic throttle control and the like are performed. When a failure of the
ステップS107では、ソフトウェアシャットダウン処理が実行される。このソフトウェアシャットダウン処理の最中に、イグニッションスイッチがオンになると、ユーザの始動意思が働いているものと判断し、WDCリセットがかかり、ステップS104の処理に戻る。 In step S107, a software shutdown process is executed. If the ignition switch is turned on during the software shutdown process, it is determined that the user's intention to start is working, a WDC reset is applied, and the process returns to step S104.
このように、ソフトウェア時間同期処理においてマイコン故障検出機能(ロックステップ、ECC、MPU等)がマイコン故障検出したときに復旧を試みるリセットや、ソフトウェアシャットダウン処理中にユーザのイグニッションスイッチオン操作に基づくエンジン始動要求によるリセットは、BIST実行しないWDCリセットによりリセットされるようになっており、BIST実行をなくしてリセット時間を短縮できるようになっている。 In this way, the engine failure detection function (lockstep, ECC, MPU, etc.) in the software time synchronization process attempts to recover when a microcomputer failure is detected, or the engine is started based on the user's ignition switch-on operation during the software shutdown process. The reset due to the request is reset by a WDC reset that does not execute BIST, and the reset time can be shortened by eliminating BIST execution.
シャットダウン処理が完了すると、ECU10,10Aの電源がオフされ終了する。尚、WDCリセットは、特殊なレジスタ操作によるソフトリセットとしてもよい。
When the shutdown process is completed, the
ところで、ソフトウェア時間同期処理やソフトウェアシャットダウン処理において、BISTの要否を判断するようにしてもよい。このようなフローの一例を図4に示す。図4において、ステップS301,S302,S303,S304,S305の処理は、図2を参照しながら説明したステップS101,S102,S103,S104,S105の処理と同様であるので説明を省略する。 Incidentally, in the software time synchronization process and the software shutdown process, it may be determined whether BIST is necessary. An example of such a flow is shown in FIG. In FIG. 4, the processing of steps S301, S302, S303, S304, and S305 is the same as the processing of steps S101, S102, S103, S104, and S105 described with reference to FIG.
ステップS306では、ソフトウェア時間同期処理の最中にマイコン故障を検出した場合、BISTを必要とする起動後のリセットか、BISTを必要としない起動後のリセットかを判断している。BISTを必要としない場合の処理は、図2のステップS106の処理と同様である。 In step S306, when a microcomputer failure is detected during the software time synchronization process, it is determined whether the reset is performed after startup that requires BIST or reset after startup that does not require BIST. The process when BIST is not required is the same as the process of step S106 in FIG.
BISTを必要としている場合には、ソフトDestリセット要求をするとともに、ソフトDestリセット履歴フラグ208bをオンにし、ステップS301の処理に戻る。
If BIST is required, a soft Dest reset request is made, the soft Dest reset
ステップS307では、ソフトウェアシャットダウン処理の最中にイグニッションスイッチがオンされた場合、BISTを必要とする起動後のリセットか、BISTを必要としない起動後のリセットかを判断している。BISTを必要としない場合の処理は、図2のステップS107の処理と同様である。 In step S307, when the ignition switch is turned on during the software shutdown process, it is determined whether the reset is performed after starting that requires BIST or reset after starting that does not require BIST. The processing when BIST is not required is the same as the processing in step S107 in FIG.
BISTを必要としている場合には、ソフトDestリセット要求をするとともに、ソフトDestリセット履歴フラグ208bをオンにし、ステップS301の処理に戻る。
If BIST is required, a soft Dest reset request is made, the soft Dest reset
上述したように、リセット回路209は、特殊なレジスタ操作によるソフトリセットを実行する。BIST実行中は、監視IC30へWDC信号を出力することができない。そのため、WDCリセットがBIST実行するものであるとすると、BIST時間が監視IC30のWDC停止判定時間より長くなった場合、WDCリセットが連続して発生しマイコン20,20Aを起動することができない。そこで、特殊なレジスタ操作によるソフトリセットとすることで、BIST時間に依らず、WDC停止判定時間を短く設定することができる。
As described above, the
BIST不実行リセット手段として、監視IC30によるものの他、特殊なレジスタ操作によるソフトリセットを用いることも好ましい態様である。マイコン20,20Aが意図的にWDC信号を停止して監視IC30からリセットをかけられるのを待つのではなく、レジスタ操作のみでリセットがかけられるため、リセットから通常制御までに要する時間を、監視IC30のWDC停止判定時間分短縮することができる。
As a BIST non-execution reset means, it is also preferable to use a soft reset by a special register operation in addition to that by the monitoring
10,10A:ECU(電子制御装置)
20,20A:マイコン
30:監視IC
202:ロックステップ付CPU(機能ブロック)
203:メモリプロテクション(機能ブロック)
204:ECCコントローラ(機能ブロック)
211:CPU(機能ブロック)
209:リセット回路(BIST実行リセット手段、BIST不実行リセット手段、BIST判定手段)
10, 10A: ECU (electronic control unit)
20, 20A: microcomputer 30: monitoring IC
202: CPU with lockstep (functional block)
203: Memory protection (function block)
204: ECC controller (functional block)
211: CPU (functional block)
209: Reset circuit (BIST execution reset means, BIST non-execution reset means, BIST determination means)
Claims (6)
BIST回路を有する機能ブロック(202,203,204,211)と、
前記BIST回路によるBISTを実行させるBIST実行リセット手段(209)と、を備え、
前記マイコンの起動時に、前記BIST回路による前記機能ブロックのBISTが実行され、前記BISTによる診断結果が異常である場合には、前記BIST実行リセット手段によってBISTを実行するリセットを実行することで、BISTによる診断を複数回行うことを特徴とする電子制御装置。 An electronic control device (10, 10A) equipped with a microcomputer (20, 20A) having a failure detection function,
A functional block (202, 203, 204, 211) having a BIST circuit;
BIST execution reset means (209) for executing BIST by the BIST circuit,
When the microcomputer starts up, the BIST of the functional block is executed by the BIST circuit, and if the diagnosis result by the BIST is abnormal, the BIST execution reset means executes a BIST reset to execute the BIST. An electronic control device characterized in that diagnosis is performed a plurality of times.
前記マイコン起動後においてBISTを必要としないリセットを実行する際に、前記BIST不実行リセット手段によってBISTを実行しないリセットを実行することを特徴とする請求項1又は2に記載の電子制御装置。 BIST non-execution reset means (209) that does not execute BIST by the BIST circuit,
3. The electronic control device according to claim 1, wherein when the reset that does not require the BIST is executed after the microcomputer is activated, the BIST non-execution reset unit executes the reset that does not execute the BIST. 4.
前記BIST不実行リセット手段は、前記監視ICによるWDCリセットであることを特徴とする請求項3に記載の電子制御装置。 A monitoring IC (30) for outputting a reset signal in response to the WDC signal;
4. The electronic control device according to claim 3, wherein the BIST non-execution reset means is a WDC reset by the monitoring IC.
前記BIST判定手段の判断結果に基づいて、前記BIST実行リセット手段によるリセットか、前記BIST不実行リセット手段によるリセットかが選択されることを特徴とする請求項3から5のいずれか1項に記載の電子制御装置。 BIST determination means (209) for determining whether a reset after activation requiring BIST or a reset after activation not requiring BIST is provided,
6. The method according to claim 3, wherein a reset by the BIST execution reset unit or a reset by the BIST non-execution reset unit is selected based on a determination result of the BIST determination unit. Electronic control unit.
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2015002137A JP2016126692A (en) | 2015-01-08 | 2015-01-08 | Electronic control device |
DE102016200130.2A DE102016200130B4 (en) | 2015-01-08 | 2016-01-08 | Electronic control device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2015002137A JP2016126692A (en) | 2015-01-08 | 2015-01-08 | Electronic control device |
Publications (1)
Publication Number | Publication Date |
---|---|
JP2016126692A true JP2016126692A (en) | 2016-07-11 |
Family
ID=56233454
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2015002137A Pending JP2016126692A (en) | 2015-01-08 | 2015-01-08 | Electronic control device |
Country Status (2)
Country | Link |
---|---|
JP (1) | JP2016126692A (en) |
DE (1) | DE102016200130B4 (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
DE102018222199A1 (en) | 2017-12-21 | 2019-06-27 | Denso Corporation | ELECTRONIC CONTROL DEVICE |
JP2020016511A (en) * | 2018-07-25 | 2020-01-30 | 三菱電機株式会社 | Semiconductor integrated circuit and rotation detector |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP6524989B2 (en) | 2016-11-15 | 2019-06-05 | トヨタ自動車株式会社 | Operation guarantee method of arithmetic unit |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPS61190637A (en) * | 1985-02-20 | 1986-08-25 | Toshiba Corp | Automatic reset device at computer trouble |
JPH01136251A (en) * | 1987-11-21 | 1989-05-29 | Nec Corp | Self-diagnosing system |
JPH052251U (en) * | 1991-06-17 | 1993-01-14 | キヤノン株式会社 | Information processing equipment |
JPH09179751A (en) * | 1995-12-26 | 1997-07-11 | Meidensha Corp | Self-diagnostic system for controller |
JP2001351309A (en) * | 2000-06-09 | 2001-12-21 | Nec Niigata Ltd | Portable recording medium reproducer |
JP2005519366A (en) * | 2002-02-27 | 2005-06-30 | アドバンスト・マイクロ・ディバイシズ・インコーポレイテッド | Embedded processor with direct connection of security device for superior security |
JP2005321949A (en) * | 2004-05-07 | 2005-11-17 | Seiko Epson Corp | Starting method and starting device of computer, and computer system |
Family Cites Families (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2003068865A (en) | 2001-08-30 | 2003-03-07 | Sony Corp | Self-diagnosis method and apparatus of semiconductor device |
JP2012181564A (en) | 2011-02-28 | 2012-09-20 | Renesas Electronics Corp | Self-diagnosis circuit and self-diagnosis method |
US9024650B2 (en) * | 2012-11-13 | 2015-05-05 | Advanced Micro Devices, Inc. | Scalable built-in self test (BIST) architecture |
-
2015
- 2015-01-08 JP JP2015002137A patent/JP2016126692A/en active Pending
-
2016
- 2016-01-08 DE DE102016200130.2A patent/DE102016200130B4/en active Active
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPS61190637A (en) * | 1985-02-20 | 1986-08-25 | Toshiba Corp | Automatic reset device at computer trouble |
JPH01136251A (en) * | 1987-11-21 | 1989-05-29 | Nec Corp | Self-diagnosing system |
JPH052251U (en) * | 1991-06-17 | 1993-01-14 | キヤノン株式会社 | Information processing equipment |
JPH09179751A (en) * | 1995-12-26 | 1997-07-11 | Meidensha Corp | Self-diagnostic system for controller |
JP2001351309A (en) * | 2000-06-09 | 2001-12-21 | Nec Niigata Ltd | Portable recording medium reproducer |
JP2005519366A (en) * | 2002-02-27 | 2005-06-30 | アドバンスト・マイクロ・ディバイシズ・インコーポレイテッド | Embedded processor with direct connection of security device for superior security |
JP2005321949A (en) * | 2004-05-07 | 2005-11-17 | Seiko Epson Corp | Starting method and starting device of computer, and computer system |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
DE102018222199A1 (en) | 2017-12-21 | 2019-06-27 | Denso Corporation | ELECTRONIC CONTROL DEVICE |
JP2020016511A (en) * | 2018-07-25 | 2020-01-30 | 三菱電機株式会社 | Semiconductor integrated circuit and rotation detector |
US10969425B2 (en) | 2018-07-25 | 2021-04-06 | Mitsubishi Electric Corporation | Semiconductor integrated circuit and rotation detection device |
Also Published As
Publication number | Publication date |
---|---|
DE102016200130B4 (en) | 2020-01-16 |
DE102016200130A1 (en) | 2016-07-14 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP6599054B2 (en) | Abnormality determination device, abnormality determination method, and abnormality determination program | |
CN107003915B (en) | Drive control device | |
US7408475B2 (en) | Power supply monitoring device | |
CN107077407B (en) | Vehicle control device | |
WO2011114493A1 (en) | Microcomputer cross-monitoring system and microcomputer cross-monitoring method | |
US10281525B2 (en) | Semiconductor device and diagnostic test method for both single-point and latent faults using first and second scan tests | |
US20100174448A1 (en) | Method and device for operating a control unit | |
CN107463516B (en) | Control device | |
JP5094777B2 (en) | In-vehicle electronic control unit | |
CN105868060B (en) | Method for operating a data processing unit of a driver assistance system and data processing unit | |
JP2016126692A (en) | Electronic control device | |
JP5041290B2 (en) | PROGRAMMABLE CONTROLLER AND ITS ERROR RECOVERY METHOD | |
JP2006259935A (en) | Computation device with computation abnormality determination function | |
JP2006040122A (en) | Programmable controller | |
JP4812699B2 (en) | Power control device | |
JP7332529B2 (en) | Anomaly detector | |
JP5226653B2 (en) | In-vehicle control device | |
JP4820679B2 (en) | Electronic control device for vehicle | |
JP6668226B2 (en) | Electronic control unit | |
US10514970B2 (en) | Method of ensuring operation of calculator | |
JP2010049367A (en) | Control device and control method therefor | |
JP6275098B2 (en) | Control device and register failure recovery method | |
JP2005250524A (en) | Computer system | |
JP2018063599A (en) | Mutual monitoring system | |
JP6702175B2 (en) | Load drive |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20170525 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20180109 |
|
A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20180308 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20180320 |
|
A02 | Decision of refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A02 Effective date: 20181204 |