Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JP6875950B2 - Vehicle control device - Google Patents
[go: Go Back, main page]

JP6875950B2 - Vehicle control device - Google Patents

Vehicle control device Download PDF

Info

Publication number
JP6875950B2
JP6875950B2 JP2017147350A JP2017147350A JP6875950B2 JP 6875950 B2 JP6875950 B2 JP 6875950B2 JP 2017147350 A JP2017147350 A JP 2017147350A JP 2017147350 A JP2017147350 A JP 2017147350A JP 6875950 B2 JP6875950 B2 JP 6875950B2
Authority
JP
Japan
Prior art keywords
error detection
reset
data
error
rom
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
JP2017147350A
Other languages
Japanese (ja)
Other versions
JP2019028714A (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.)
Astemo Ltd
Original Assignee
Hitachi Astemo Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hitachi Astemo Ltd filed Critical Hitachi Astemo Ltd
Priority to JP2017147350A priority Critical patent/JP6875950B2/en
Publication of JP2019028714A publication Critical patent/JP2019028714A/en
Application granted granted Critical
Publication of JP6875950B2 publication Critical patent/JP6875950B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Detection And Correction Of Errors (AREA)

Description

本発明は、車両用制御装置に関する。 The present invention relates to a vehicle control device.

マイコンには、メモリ内の処理データに誤りを検出した場合に、マイコン内をリセットし再起動させる機能を有するものがある。 Some microcomputers have a function of resetting and restarting the inside of the microcomputer when an error is detected in the processed data in the memory.

このような機能を使用する場合、メモリ内の処理データに誤りがある状況下においては、誤り検出とリセットが繰り返されることによってシステムの通常動作を継続できなくなるおそれがある。 When such a function is used, in a situation where there is an error in the processed data in the memory, there is a possibility that the normal operation of the system cannot be continued due to repeated error detection and reset.

また、メモリ内の処理データには、誤りを検出してもリセットさせずにシステムの通常動作を継続させたい種類のものが存在する場合がある。 In addition, there may be some types of processed data in the memory that you want to continue the normal operation of the system without resetting even if an error is detected.

特開2016−99797号公報Japanese Unexamined Patent Publication No. 2016-99797

特許文献1に記載の技術は、RAM内の処理データの誤りを検出後に一度マイコン内をリセットし、再起動直後にリセット直前の誤り検出情報を元にRAM内のデータを書き換えることによって誤りを解消し、それ以降はリセットを発行させないようにしている。
このことによって、RAM内の処理データの誤り検出とリセットとの繰り返しの抑制を行う技術である。
The technique described in Patent Document 1 eliminates an error by resetting the inside of the microcomputer once after detecting an error in the processing data in the RAM, and rewriting the data in the RAM based on the error detection information immediately before the reset immediately after restarting. However, after that, the reset is not issued.
This is a technique for suppressing the repetition of error detection and reset of the processed data in the RAM.

しかしながら、メモリ内の処理データには誤りを検出しても一度もリセットさせずにシステムの通常動作を継続させたい種類のものも存在し、また、その処理データはRAMではなくROMに格納されており書き換えが不可能な場合も想定される。 そこで、本発明では、RAM及びROM内の処理データの誤りを検出しても一度もリセットさせないことによって、誤り検出とリセットとの繰り返しを抑制し、システムの通常動作を継続させる技術を提供することを目的とする。 However, there are some types of processed data in memory that want to continue normal operation of the system without resetting even if an error is detected, and the processed data is stored in ROM instead of RAM. It is assumed that the cage cannot be rewritten. Therefore, the present invention provides a technique for suppressing the repetition of error detection and reset by not resetting even if an error in the processed data in the RAM and ROM is detected, and continuing the normal operation of the system. With the goal.

上記課題を解決するために、RAM及びROM内の処理データに誤りを検出してもリセットを発行させないアドレス領域を、システム起動前にROM内のリセット対象外アドレス格納部に保存し、システム起動以降、リセット発行部はそれらのアドレス領域については、誤り検出部から誤り検出に伴うリセット要求がある場合にもリセットを発行しない仕組みとする。 In order to solve the above problem, the address area that does not issue a reset even if an error is detected in the processed data in the RAM and ROM is saved in the non-reset target address storage unit in the ROM before the system is started, and after the system is started. , The reset issuing unit does not issue a reset for those address areas even when there is a reset request from the error detection unit due to error detection.

本発明によれば、RAM及びROM内の処理データについて、誤り検出後のリセットを一度も行わないことによって、誤り検出とリセットとの繰り返しを抑制し、システムの通常動作を継続させ車両用制御装置が動作不良となることを回避することができる。
上記した以外の課題、構成及び効果は、以下の実施形態の説明により明らかにされる。
According to the present invention, by never resetting the processed data in the RAM and ROM after error detection, the repetition of error detection and reset is suppressed, the normal operation of the system is continued, and the vehicle control device. Can be prevented from malfunctioning.
Issues, configurations and effects other than those described above will be clarified by the description of the following embodiments.

本発明の第1から第3の実施形態における車両用制御装置のシステム構成を示すブロック図A block diagram showing a system configuration of a vehicle control device according to the first to third embodiments of the present invention. 本発明の第1から第3の実施形態におけるマイコンの構成を示すブロック図A block diagram showing a configuration of a microcomputer according to the first to third embodiments of the present invention. 本発明の第1から第3の実施形態におけるRAMまたはROMに格納されている処理データを示す図表A chart showing processing data stored in RAM or ROM according to the first to third embodiments of the present invention. 本発明の第1の実施形態におけるROMに格納されているリセット対象外アドレスを示す図表A chart showing a non-reset target address stored in the ROM according to the first embodiment of the present invention. 本発明の第1から第3の実施形態におけるシステム起動前のROMへの書き込みのフローチャートFlow chart of writing to ROM before system booting in the first to third embodiments of the present invention 本発明の第1から第3の実施形態におけるRAMまたはROMからの処理データ読出し時のフローチャートFlow chart at the time of reading processing data from RAM or ROM in the first to third embodiments of the present invention 本発明の第1から第3の実施形態におけるリセット要求がある場合のフローチャートFlow chart when there is a reset request in the first to third embodiments of the present invention 本発明の第2の実施形態におけるROMに格納されているリセット対象外アドレスを示す図表A chart showing a non-reset target address stored in the ROM according to the second embodiment of the present invention. 本発明の第3の実施形態におけるROMに格納されているリセット対象外アドレスを示す図表A chart showing non-reset target addresses stored in the ROM according to the third embodiment of the present invention.

以下、本発明の実施の形態を図に基づき説明する。 Hereinafter, embodiments of the present invention will be described with reference to the drawings.

以下に、本発明の第1の実施形態について説明する。 The first embodiment of the present invention will be described below.

図1は、本発明の第1から第3の実施形態における車両用制御装置2のシステム構成例を示すブロック図である。 FIG. 1 is a block diagram showing a system configuration example of the vehicle control device 2 according to the first to third embodiments of the present invention.

車載センサ1から各種のセンサ情報としてスイッチ入力、エンジン回転数、吸入空気量などを示す情報が、車両用制御装置2に入力される。 Information indicating switch input, engine speed, intake air amount, and the like is input to the vehicle control device 2 as various sensor information from the vehicle-mounted sensor 1.

車両用制御装置2は、エンジン、トランスミッション、インバータなどを制御するために使用される装置であり、入力回路4、マイコン6、出力ドライバ5から構成されている。 The vehicle control device 2 is a device used to control an engine, a transmission, an inverter, and the like, and is composed of an input circuit 4, a microcomputer 6, and an output driver 5.

入力回路4は、入力フィルタやADコンバータなどから構成されており、デジタル入力信号やアナログ入力信号をマイコン6に入力できる信号レベルやデジタル値に変換することを行っている。 The input circuit 4 is composed of an input filter, an AD converter, and the like, and converts a digital input signal or an analog input signal into a signal level or a digital value that can be input to the microcomputer 6.

マイコン6は、入力回路4からの各種の入力信号を元に制御量を演算し、出力ドライバ5への出力信号を生成している。 The microcomputer 6 calculates a control amount based on various input signals from the input circuit 4 and generates an output signal to the output driver 5.

出力ドライバ5は、マイコン6の出力信号に従いアクチュエータ3が駆動できる信号の形態への変換や電圧増幅をし、オンオフ出力、パルス出力、PWM出力などを行っている。 The output driver 5 converts the signal into a form that can be driven by the actuator 3 according to the output signal of the microcomputer 6, amplifies the voltage, and performs on / off output, pulse output, PWM output, and the like.

アクチュエータ3は、ソレノイドバルブ、モータ、リレーなどの部品であり、燃料噴射装置や点火装置などを駆動させることを行っている。 The actuator 3 is a component such as a solenoid valve, a motor, and a relay, and drives a fuel injection device, an ignition device, and the like.

図2は、本発明の第1から第3の実施形態におけるマイコン6の構成を示すブロック図である。 FIG. 2 is a block diagram showing a configuration of a microcomputer 6 according to the first to third embodiments of the present invention.

マイコン6は、リセット発行部7、論理部8、ROM9、RAM10を有している。 The microcomputer 6 has a reset issuing unit 7, a logic unit 8, a ROM 9, and a RAM 10.

リセット発行部7は、論理部8内の誤り検出部8dから誤り検出に伴うリセット要求がある場合に、ROM9内のリセット対象外アドレス格納部9aから取得したリセット対象外アドレスに起因するリセット要求でないと判断した場合には、マイコン内にリセットを発行する。ROM9内のリセット対象外アドレス格納部9aから取得したリセット対象外アドレスに起因するリセット要求であると判断した場合には、マイコン内にリセットを発行しない。 The reset issuing unit 7 is not a reset request due to the non-reset target address acquired from the non-reset target address storage unit 9a in the ROM 9 when there is a reset request due to the error detection from the error detection unit 8d in the logical unit 8. If it is determined, a reset is issued in the microcomputer. If it is determined that the reset request is caused by the non-reset target address acquired from the non-reset target address storage unit 9a in the ROM 9, the reset is not issued in the microcomputer.

論理部8は、CPU8a、データ処理部8b、割り込みコントローラ8c、誤り検出部8dを有している。 The logic unit 8 includes a CPU 8a, a data processing unit 8b, an interrupt controller 8c, and an error detection unit 8d.

CPU8aは、ROM9から動作プログラム9bを取得し実行する。 The CPU 8a acquires the operation program 9b from the ROM 9 and executes it.

データ処理部8bは、入力回路4からの各種の入力信号や、RAM10内の処理データ10a及びROM9内の処理データ9cを元に制御量を演算し出力ドライバ5への出力信号を生成している。データ処理部8bは、RAM10内の処理データ10a及びROM9内の処理データ9cを読みだした際に、誤り検出部8dから1ビット誤り検出信号が出力された場合には、誤りを検出したデータに対して1ビット誤り訂正を行った後のデータを使用し処理を行う。また、誤り検出部8dから2ビット以上誤り検出信号が出力された場合には、そのアドレスからのデータを使用せずに、代わりにROM9内のバックアップデータ9dからデータを読出し、処理を行う。 The data processing unit 8b calculates a control amount based on various input signals from the input circuit 4 and the processing data 10a in the RAM 10 and the processing data 9c in the ROM 9, and generates an output signal to the output driver 5. .. When the data processing unit 8b reads out the processing data 10a in the RAM 10 and the processing data 9c in the ROM 9, and a 1-bit error detection signal is output from the error detection unit 8d, the data processing unit 8b converts the error detection data into the data. On the other hand, processing is performed using the data after 1-bit error correction. When an error detection signal of 2 bits or more is output from the error detection unit 8d, the data from the address is not used, but instead the data is read from the backup data 9d in the ROM 9 and processed.

割り込みコントローラ8cは、誤り検出部8dからの割り込み要求がある場合には、他の割り込み要求との優先順位設定などに従いCPU8aに対する割り込み信号を発行する。
割り込みコントローラ8cから割り込みが発行された場合には、CPU8aは実行している処理を一時中断してその割り込み要因に応じた処理を実行する。割り込み処理内では後述の誤り検出部8d内に有する4つレジスタの値を参照し所望の処理を行う。その処理を終了後は、一時中断していた処理を再開し通常のプログロム実行に移行する。
When there is an interrupt request from the error detection unit 8d, the interrupt controller 8c issues an interrupt signal to the CPU 8a according to the priority setting with other interrupt requests.
When an interrupt is issued from the interrupt controller 8c, the CPU 8a suspends the processing being executed and executes the processing according to the interrupt factor. In the interrupt process, the desired process is performed by referring to the values of the four registers contained in the error detection unit 8d described later. After the processing is completed, the temporarily suspended processing is resumed and the normal program execution is started.

誤り検出部8dは、データ処理部8bが読みだしたRAM10内の処理データ10a及びROM9内の処理データ9cの誤り検出を行う。
誤りの検出には、ECC(Error Check and Correct)機能を用いており、1ビット誤りと2ビット以上誤りを検出できる。
The error detection unit 8d detects errors in the processing data 10a in the RAM 10 and the processing data 9c in the ROM 9 read by the data processing unit 8b.
An ECC (Error Check and Correct) function is used to detect an error, and a 1-bit error and an error of 2 bits or more can be detected.

また、誤り検出部8dは、誤り検出フラグ1レジスタ8d1、誤り検出フラグ2レジスタ8d2、誤り検出アドレス1レジスタ8d3、誤り検出アドレス2レジスタ8d4を有する。
誤り検出フラグ1レジスタ8d1は、1ビット誤りを検出した時にセットされる。
誤り検出フラグ2レジスタ8d2は、2ビット以上誤りを検出した時にセットされる。
誤り検出アドレス1レジスタ8d3は、1ビット誤りを検出したアドレス値に更新される。
誤り検出アドレス2レジスタ8d4は、2ビット以上誤りを検出したアドレス値に更新される。
Further, the error detection unit 8d has an error detection flag 1 register 8d1, an error detection flag 2 register 8d2, an error detection address 1 register 8d3, and an error detection address 2 register 8d4.
The error detection flag 1 register 8d1 is set when a 1-bit error is detected.
The error detection flag 2 register 8d2 is set when an error of 2 bits or more is detected.
The error detection address 1 register 8d3 is updated to the address value at which a 1-bit error is detected.
The error detection address 2 register 8d4 is updated to the address value at which an error is detected by 2 bits or more.

誤り検出部8dは、リセット発行部7に対してリセット要求を出力するか、割り込みコントローラ8cに対して割り込み要求を出力するか、マイコン6の出力信号である誤り検出出力信号11を出力するかによって、誤りの検出を報告できる。 ROM9は、リセット対象外アドレス格納部9a、動作プログラム9b、処理データ9c、バックアップデータ9dを有する。 The error detection unit 8d outputs a reset request to the reset issuing unit 7, an interrupt request to the interrupt controller 8c, or an error detection output signal 11 which is an output signal of the microcomputer 6. , Can report detection of errors. The ROM 9 has a reset target non-reset address storage unit 9a, an operation program 9b, processing data 9c, and backup data 9d.

リセット対象外アドレス格納部9aは、誤り検出部8dによってRAM10内の処理データ10a及びROM9内の処理データ9cに誤りが検出された場合に、リセットを発行させないアドレス領域を保存するためのエリアである。
リセット対象外アドレス格納部9aへのリセット対象外アドレスの保存は、システム起動前に実施され、システム起動後はリセット発行部7によって参照される。
指定できるリセット対象外アドレス領域は、RAM10内の処理データ10a及びROM9内の処理データ9cの任意のアドレスである。
例えば、システム起動直後に実施される誤り検出機能の診断において、誤り注入を行うアドレスや、データ処理に用いられるハードウェア固有情報のアドレスを指定することによって、リセットを発行しないようにすることができる。
The non-reset target address storage unit 9a is an area for storing an address area that does not issue a reset when an error is detected in the processing data 10a in the RAM 10 and the processing data 9c in the ROM 9 by the error detection unit 8d. ..
The non-reset target address storage unit 9a stores the non-reset target address before the system is started, and is referred to by the reset issuing unit 7 after the system is started.
The non-reset target address area that can be specified is an arbitrary address of the processing data 10a in the RAM 10 and the processing data 9c in the ROM 9.
For example, in the diagnosis of the error detection function performed immediately after the system is started, it is possible to prevent the reset from being issued by specifying the address for performing error injection and the address of the hardware-specific information used for data processing. ..

動作プログラム9bは、CPU8aによって取得し実行されるプログラムを保存する領域である。 The operation program 9b is an area for storing a program acquired and executed by the CPU 8a.

処理データ9cは、システム起動前に各種のパラメータ値が保存される領域であり、システム起動後はデータ処理部8bによって読み出され誤り検出部8dによって誤り検出される。 The processing data 9c is an area in which various parameter values are stored before the system is started, and is read by the data processing unit 8b and detected by the error detection unit 8d after the system is started.

バックアップデータ9dは、システム起動前にROM9内のリセット対象外アドレス格納部9aに保存されたアドレス領域のデータの代替データが保存されるバックアップ領域である。システム起動後はRAM10内の処理データ10a及びROM9内の処理データ9cに誤りが検出された際に、データ処理部8bによって代わりのデータとして読み出され使用される。 The backup data 9d is a backup area in which alternative data of the data in the address area stored in the non-reset target address storage unit 9a in the ROM 9 is stored before the system is started. After the system is started, when an error is detected in the processed data 10a in the RAM 10 and the processed data 9c in the ROM 9, the data processing unit 8b reads and uses it as substitute data.

RAM10は、処理データ10aを有している。 The RAM 10 has the processing data 10a.

処理データ10aは、データ処理中のデータが保存される領域でありデータ処理部8bによって読み出され、その際に誤り検出部8dによって誤り検出される。 The processed data 10a is an area in which the data being processed is stored and is read by the data processing unit 8b, and at that time, the error detection unit 8d detects the error.

図3は、本発明の第1から第3の実施形態におけるRAM10内の処理データ10a及びROM9内の処理データ9cを示す図表である。
図3に示すように、処理データが書き込まれる際に1つあるいは複数の処理データ毎に誤り訂正コードが付加され、データ処理部8bによる読み出し時に誤り検出部8dによる誤り検出とデータ処理部8bによる1ビット誤り訂正に使用される。
FIG. 3 is a chart showing processing data 10a in the RAM 10 and processing data 9c in the ROM 9 according to the first to third embodiments of the present invention.
As shown in FIG. 3, an error correction code is added to each one or a plurality of processed data when the processed data is written, and the error detection unit 8d detects the error and the data processing unit 8b reads the data when the data processing unit 8b reads the data. Used for 1-bit error correction.

図4は、本発明の第1の実施形態におけるROM9内のリセット対象外アドレス格納部9aに格納されているリセット対象外アドレスを示す図表である。
誤り検出部8dによって、RAM10内の処理データ10a及びROM9内の処理データ9cに誤りが検出された場合に、リセットを発行させないアドレス領域のSTARTアドレスとENDアドレスをシステム起動前に保存する。
FIG. 4 is a chart showing the non-reset target address stored in the non-reset target address storage unit 9a in the ROM 9 according to the first embodiment of the present invention.
When an error is detected in the processing data 10a in the RAM 10 and the processing data 9c in the ROM 9 by the error detection unit 8d, the START address and the END address in the address area where the reset is not issued are saved before the system is started.

図5は、本発明の第1から第3の実施形態におけるシステム起動前のROM9への書き込みのフローチャートである。 FIG. 5 is a flowchart of writing to ROM 9 before starting the system according to the first to third embodiments of the present invention.

ステップS501:処理データ9cに書き込みを行う。 Step S501: Write to the processed data 9c.

ステップS502:リセット対象外アドレスをリセット対象外アドレス格納部9aに書き込む。 Step S502: The non-reset target address is written to the non-reset target address storage unit 9a.

ステップS503:バックアップデータ9dに書き込みを行う。 Step S503: Write to the backup data 9d.

ステップS504:動作プログラム9bに書き込みを行う。なお、本フローチャートで示した各データの書き込み順序は一例であり、ここに示す限りではない。 Step S504: Write to the operation program 9b. The writing order of each data shown in this flowchart is an example, and is not limited to that shown here.

図6は、本発明の第1から第3の実施形態におけるRAM10内の処理データ10a及びROM9内の処理データ9cの読出し時のフローチャートである。 FIG. 6 is a flowchart at the time of reading the processed data 10a in the RAM 10 and the processed data 9c in the ROM 9 according to the first to third embodiments of the present invention.

ステップS601:データ処理部8bは、RAM10内の処理データ10aの読出し、またはROM9内の処理データ9cの読出しを行う。 Step S601: The data processing unit 8b reads the processing data 10a in the RAM 10 or the processing data 9c in the ROM 9.

ステップS602:誤り検出部8dはステップS601において読みだしたデータの誤り検出を行う。
誤りが検出された場合にはステップS603の処理に移行し、誤りが検出されなかった場合にはステップS606の処理に移行する。
Step S602: The error detection unit 8d detects an error in the data read in step S601.
If an error is detected, the process proceeds to step S603, and if no error is detected, the process proceeds to step S606.

ステップS603:誤り検出部8dは、1ビット誤りを検出した場合、誤り検出フラグ1レジスタ8d1をセットするとともに、誤り検出アドレス1レジスタ8d3のアドレスを更新する。2ビット以上誤りを検出した場合、誤り検出フラグ2レジスタ8d2をセットするとともに、誤り検出アドレス2レジスタ8d4のアドレスを更新する。 Step S603: When the error detection unit 8d detects a 1-bit error, the error detection flag 1 register 8d1 is set and the address of the error detection address 1 register 8d3 is updated. When an error of 2 bits or more is detected, the error detection flag 2 register 8d2 is set and the address of the error detection address 2 register 8d4 is updated.

ステップS604:誤り検出部8dによって検出された誤りが1ビット誤りの場合にはステップS605の処理に移行し、2ビット以上誤りの場合にはステップS607の処理に移行する。 Step S604: If the error detected by the error detection unit 8d is a 1-bit error, the process proceeds to the process of step S605, and if the error is 2 bits or more, the process proceeds to the process of step S607.

ステップS605:データ処理部8bは1ビット誤りが検出されたデータに対して誤りの訂正を行う。 Step S605: The data processing unit 8b corrects the error in the data in which the 1-bit error is detected.

ステップS606:データ処理部8bはステップS601で読出したデータまたはステップS605において誤り訂正されたデータを用いてデータ処理を行うか、ステップS607の処理後のデータ処理を行う。 Step S606: The data processing unit 8b performs data processing using the data read in step S601 or the data error-corrected in step S605, or performs data processing after the processing in step S607.

ステップS607:誤り検出部8dは、2ビット以上誤りを検出した場合に、リセット発行部7に対してリセット要求を出力するか、割り込みコントローラ8cに対して割り込み要求を出力するか、マイコン6の出力信号である誤り検出出力信号11を出力することによって、2ビット以上誤りが検出されたことを報告する。 Step S607: When the error detection unit 8d detects an error of 2 bits or more, it outputs a reset request to the reset issuing unit 7, an interrupt request to the interrupt controller 8c, or an output of the microcomputer 6. By outputting the error detection output signal 11 which is a signal, it is reported that an error of 2 bits or more is detected.

図7は、本発明の第1から第3の実施形態におけるリセット要求がある場合のフローチャートである。図6のステップS607において誤り検出部8dがリセット発行部7に対してリセット要求を出力した場合の、リセット発行部7とデータ処理部8bの動作を示している。 FIG. 7 is a flowchart when there is a reset request according to the first to third embodiments of the present invention. The operation of the reset issuing unit 7 and the data processing unit 8b when the error detecting unit 8d outputs a reset request to the reset issuing unit 7 in step S607 of FIG. 6 is shown.

ステップS701:リセット発行部7は論理部8内の誤り検出部8dがリセット要求を出力した場合にはステップS702の処理に移行し、リセット要求を出力しなかった場合にはステップS701にてリセット要求が出力されるのを待つ。 Step S701: The reset issuing unit 7 shifts to the process of step S702 when the error detection unit 8d in the logic unit 8 outputs a reset request, and when the error detection unit 8d in the logic unit 8 does not output the reset request, the reset request is performed in step S701. Wait for output.

ステップS702:リセット発行部7は、ROM9内のリセット対象外アドレス格納部9aから取得したリセット対象外アドレスに起因するリセット要求であると判断した場合には、ステップS703の処理に移行する。ROM9内のリセット対象外アドレス格納部9aから取得したリセット対象外アドレスに起因するリセット要求でないと判断した場合にはステップS704の処理に移行する。 Step S702: When the reset issuing unit 7 determines that the reset request is caused by the reset target non-reset address acquired from the reset non-reset target address storage unit 9a in the ROM 9, the process proceeds to the process of step S703. If it is determined that the reset request is not caused by the non-reset target address acquired from the non-reset target address storage unit 9a in the ROM 9, the process proceeds to step S704.

ステップS703:データ処理部8bは、誤りを検出したデータの代わりに、バックアップデータ9d領域に保存されたデータを使用してデータ処理を継続する。 Step S703: The data processing unit 8b continues the data processing by using the data stored in the backup data 9d area instead of the data in which the error is detected.

ステップS704:リセット発行部7はマイコン内にリセットを発行する。
以上説明した本実施形態によれば、RAM10内の処理データ10a及びROM9内の処理データ9c内の任意のアドレスについて、誤り検出後のリセットの発行を1度も行わないことによって、誤り検出とリセットとの繰り返しを抑制し、システムの通常動作を継続させ車両用制御装置の動作不良となることを回避することができる。
Step S704: The reset issuing unit 7 issues a reset in the microcomputer.
According to the present embodiment described above, error detection and reset are performed by never issuing a reset after error detection for any address in the processing data 10a in the RAM 10 and the processing data 9c in the ROM 9. It is possible to suppress the repetition of the above and to continue the normal operation of the system and prevent the vehicle control device from malfunctioning.

本実施例をまとめると以下のようになる。 This embodiment is summarized as follows.

RAMと、リセット対象外アドレス格納部を有するROMと、リセット発行部と、前記RAM内及び前記ROMの処理データに誤りを検出する誤り検出部を備えた車両用制御装置において、前記ROMは前記リセット対象外アドレス格納部を有し、前記車両制御装置の起動以降に、前記リセットを発行させないアドレス領域に対して前記誤り検出部からの誤り検出に伴うリセット要求がある場合においても、
前記リセット発行部はリセットを発行しないことを特徴とする。
前記ROM内に前記リセット対象外アドレス格納部に保存された前記アドレス領域のデータの代替データを保存するバックアップデータ領域と、データ処理部を有し、前記車両用制御装置の起動以降に、前記データ処理部は誤りを検出した前記RAM及び前記ROM内の処理データの代わりに、前記バックアップデータ領域に保存されたデータを使用してデータ処理を継続することを特徴とする。
In a vehicle control device including a RAM, a ROM having a non-reset target address storage unit, a reset issuing unit, and an error detecting unit that detects an error in the RAM and the processing data of the ROM, the ROM is reset. Even when there is a reset request accompanying error detection from the error detection unit for an address area that has a non-target address storage unit and does not issue the reset after the vehicle control device is activated.
The reset issuing unit is characterized in that it does not issue a reset.
The ROM has a backup data area for storing alternative data of the data in the address area stored in the non-reset target address storage unit and a data processing unit, and the data is described after the vehicle control device is started. The processing unit is characterized in that the data processing is continued by using the data stored in the backup data area instead of the processing data in the RAM and the ROM in which the error is detected.

前記誤り検出部が誤りを検出した場合には、前記誤り検出部は誤り検出フラグ1レジスタまたは誤り検出フラグ2レジスタをセットし、誤りを検出したアドレスを前記誤り検出アドレス1レジスタもしくは前記誤り検出アドレス2レジスタに保存することで、誤り検出情報を参照することを特徴とする。 When the error detection unit detects an error, the error detection unit sets an error detection flag 1 register or an error detection flag 2 register, and sets the error-detected address as the error detection address 1 register or the error detection address. 2 It is characterized in that error detection information is referred to by storing it in a register.

前記誤り検出部は前記リセット発行部に対してリセット要求を出力するか、割り込みコントローラに対して割り込み要求を出力するか、マイコン出力である誤り検出出力信号を出力することによって誤りの検出を報告できることを特徴とする。 The error detection unit can report error detection by outputting a reset request to the reset issuing unit, an interrupt request to the interrupt controller, or an error detection output signal which is a microcomputer output. It is characterized by.

前記誤り検出部はECC機能により、前記RAM内及び前記ROM内の処理データの誤りを検出することを特徴とする。 The error detection unit is characterized in that an error in processing data in the RAM and the ROM is detected by an ECC function.

以下に、本発明の第2の実施形態について説明する。 The second embodiment of the present invention will be described below.

図8は、本発明の第2の実施形態におけるROM9内のリセット対象外アドレス格納部9aに格納されているリセット対象外アドレスを示す図表である。
本発明の第1の実施形態との相違点は、図4に示すリセット対象外アドレス格納部9aのリセット対象外アドレス毎に、ROM9内のバックアップデータ9dを使用するかどうかの選択機能を追加したことである。
FIG. 8 is a chart showing the non-reset target address stored in the non-reset target address storage unit 9a in the ROM 9 according to the second embodiment of the present invention.
The difference from the first embodiment of the present invention is that a function for selecting whether to use the backup data 9d in the ROM 9 is added for each reset target non-reset address of the reset non-reset target address storage unit 9a shown in FIG. That is.

リセット対象外アドレス格納部9aに格納されたリセット対象外アドレス領域が非常に多く、また広い場合には、ROM9の容量によってはすべてのバックアップデータをバックアップデータ9dに用意することが困難となる可能性がある。
そこで、図8に示したバックアップデータ使用設定を未使用:0にした場合には、データ処理部8bは、RAM10内の処理データ10a及びROM9内の処理データ9cの代わりにROM9内のバックアップデータ9dのデータを使用せずに、代わりにオール0やオール1などのデフォルト値のデータを使用し処理を行う。
デフォルト値のデータを使用した処理を行えるかどうかは、データの種類に依存しており、そのため、リセット対象外アドレス毎に、ROM9内のバックアップデータ9dを使用するかどうかの選択機能が必要となる。
例えば、システム起動直後に実施される誤り検出機能の診断において、誤り注入対象となるデータの場合には誤り検出時のリセットの対象外として扱うが、その後のデータ処理に使用されることがないため、バックアップデータとして固定値を用意する必要はなくこの機能を使用できる。
以上説明した本実施形態によれば、ROM9の使用容量を削減することができる。
If the non-reset target address area stored in the non-reset target address storage unit 9a is very large and wide, it may be difficult to prepare all the backup data in the backup data 9d depending on the capacity of the ROM 9. There is.
Therefore, when the backup data use setting shown in FIG. 8 is set to unused: 0, the data processing unit 8b uses the backup data 9d in the ROM 9 instead of the processing data 10a in the RAM 10 and the processing data 9c in the ROM 9. Instead of using the data of, the data of the default value such as all 0 or all 1 is used for processing.
Whether or not processing using default value data can be performed depends on the type of data, and therefore, a function for selecting whether or not to use backup data 9d in ROM 9 is required for each non-reset target address. ..
For example, in the diagnosis of the error detection function performed immediately after system startup, data that is subject to error injection is treated as not subject to reset at the time of error detection, but it is not used for subsequent data processing. , It is not necessary to prepare a fixed value as backup data, and this function can be used.
According to the present embodiment described above, the used capacity of the ROM 9 can be reduced.

以下に、本発明の第3の実施形態について説明する。 The third embodiment of the present invention will be described below.

図9は、本発明の第3の実施形態におけるROM9内のリセット対象外アドレス格納部9aに格納されているリセット対象外アドレスを示す図表である。 FIG. 9 is a chart showing the non-reset target address stored in the non-reset target address storage unit 9a in the ROM 9 according to the third embodiment of the present invention.

本発明の第1の実施形態との相違点は、図4に示すリセット対象外アドレス格納部9aのリセット対象外アドレス毎に誤り検出出力信号11を使用するかどうかの選択機能を追加したことである。 The difference from the first embodiment of the present invention is that an error detection output signal 11 is added for each reset target address storage unit 9a shown in FIG. 4 to select whether to use the error detection output signal 11. is there.

誤り検出出力信号11は、誤り検出部8dがRAM10内の処理データ10a及びROM9内の処理データ9cの誤りを検出した際に誤り検出部8dによってマイコンの外に出力される。この信号を使用することによって、例えばエンジン用の車両用制御装置2であればエンジンへの燃料供給を制御する回路を停止させフューエルカットの処理を行う。
そのため、誤り検出出力信号11をマイコンの外に出力することは、車両用制御装置2の動作に大きな影響を与えることになり、可能であれば出力することを回避しシステム全体の正常動作を継続させることが望ましい。
The error detection output signal 11 is output to the outside of the microcomputer by the error detection unit 8d when the error detection unit 8d detects an error in the processing data 10a in the RAM 10 and the processing data 9c in the ROM 9. By using this signal, for example, in the case of the vehicle control device 2 for an engine, the circuit for controlling the fuel supply to the engine is stopped and the fuel cut process is performed.
Therefore, outputting the error detection output signal 11 to the outside of the microcomputer has a great influence on the operation of the vehicle control device 2, and if possible, avoids outputting the signal 11 and continues the normal operation of the entire system. It is desirable to let it.

そこで、図9に示した誤り検出出力使用設定を未使用:0にした場合には、誤り検出部8dは誤り検出出力信号11を出力しない機能が用いられる。
誤り検出出力信号11を出力する必要があるかどうかは、データの種類に依存しており、そのため、リセット対象外アドレス毎に誤り検出出力信号11を使用するかどうかの選択機能が必要となる。
Therefore, when the error detection output use setting shown in FIG. 9 is set to unused: 0, the error detection unit 8d uses a function of not outputting the error detection output signal 11.
Whether or not it is necessary to output the error detection output signal 11 depends on the type of data, and therefore, a function of selecting whether or not to use the error detection output signal 11 is required for each non-reset target address.

例えば、データ処理に用いられるハードウェア固有情報の場合には誤り検出時のリセットの対象外として扱うが、上述したような車両用制御装置2の動作に大きな影響を与えるほど重要なものではなく、割り込みなどの他の手段でも誤り検出を報告できるためこの機能を使用できる。 For example, in the case of hardware-specific information used for data processing, it is treated as not subject to reset at the time of error detection, but it is not so important as to have a great influence on the operation of the vehicle control device 2 as described above. This feature can be used because error detection can be reported by other means such as interrupts.

以上説明した本実施形態によれば、誤り検出出力信号11の不要な出力を抑制し車両用制御装置2の動作に大きな影響を与えることを回避し、システム全体の正常動作を継続させることができる。 According to the present embodiment described above, it is possible to suppress unnecessary output of the error detection output signal 11 and avoid having a great influence on the operation of the vehicle control device 2, and to continue the normal operation of the entire system. ..

なお、本発明は上記した実施例に限定されるものではなく、様々な変形例が含まれる。例えば、上記した実施例は本発明を分かりやすく説明するために詳細に説明したものであり、必ずしも説明した全ての構成を備えるものに限定されるものではない。また、ある実施例の構成の一部を他の実施例の構成に置き換えることが可能であり、また、ある実施例の構成に他の実施例の構成を加えることも可能である。また、各実施例の構成の一部について、他の構成の追加・削除・置換をすることが可能である。また、上記の各構成、機能、処理部、処理手段などは、それらの一部または全部を、例えば集積回路で設計するなどによりハードウェアで実現してもよい。また、上記の各構成、機能などは、プロセッサがそれぞれの機能を実現するプログラムを解釈し、実行することによりソフトウェアで実現してもよい。 The present invention is not limited to the above-described examples, and includes various modifications. For example, the above-described embodiment has been described in detail in order to explain the present invention in an easy-to-understand manner, and is not necessarily limited to the one including all the described configurations. Further, it is possible to replace a part of the configuration of one embodiment with the configuration of another embodiment, and it is also possible to add the configuration of another embodiment to the configuration of one embodiment. Further, it is possible to add / delete / replace a part of the configuration of each embodiment with another configuration. Further, each of the above configurations, functions, processing units, processing means and the like may be realized by hardware by designing a part or all of them by, for example, an integrated circuit. Further, each of the above configurations, functions, and the like may be realized by software by the processor interpreting and executing a program that realizes each function.

1…車載センサ
2…車両用制御装置
3…アクチュエータ
4…入力回路
5…出力ドライバ
6…マイコン
7…リセット発行部
8…論理部
8a…CPU
8b…データ処理部
8c…割り込みコントローラ
8d…誤り検出部
8d1…誤り検出フラグ1レジスタ
8d2…誤り検出フラグ2レジスタ
8d3…誤り検出アドレス1レジスタ
8d4…誤り検出アドレス2レジスタ
9…ROM
9a…リセット対象外アドレス格納部
9b…動作ブログラム
9c…ROM内の処理データ
9d…バックアップデータ
10…RAM
10a…RAM内の処理データ
11…誤り検出出力信号
1 ... In-vehicle sensor 2 ... Vehicle control device 3 ... Actuator 4 ... Input circuit 5 ... Output driver 6 ... Microcomputer 7 ... Reset issuing unit 8 ... Logic unit 8a ... CPU
8b ... Data processing unit 8c ... Interrupt controller 8d ... Error detection unit 8d1 ... Error detection flag 1 register 8d2 ... Error detection flag 2 register 8d3 ... Error detection address 1 register 8d4 ... Error detection address 2 register 9 ... ROM
9a ... Reset target non-reset address storage unit 9b ... Operation program 9c ... Processing data in ROM 9d ... Backup data 10 ... RAM
10a ... Processing data in RAM 11 ... Error detection output signal

Claims (5)

RAMと、
ROMと
記RAM内及び前記ROMの処理データに誤りを検出し、1ビット誤りを検出した場合には、当該データに対して誤りの訂正を行い、2ビット以上の誤りを検出した場合には、マイコン内にリセット要求を出力するか、割り込みコントローラに対し割り込み要求を出力するか、又は誤り検出出力信号を出力する誤り検出部
前記リセット要求に応じて、リセットを発行するリセット発行部と、
データ処理部と
を備え、
前記ROMは、前記リセットを発行させないアドレス領域であるリセット対象外アドレスを格納するリセット対象外アドレス格納部と、前記リセット対象外アドレス格納部に保存された前記アドレス領域のデータのバックアップデータを保存するバックアップデータ領域を有し、
前記データ処理部は、前記リセット対象外アドレス領域に関して前記誤り検出部からリセット要求が発行された場合には、前記バックアップデータを取得して処理を継続し、リセットを発行しない
ことを特徴とする車両用制御装置。
RAM and
And ROM,
Detecting an error in processing data before Symbol RAM in and the ROM, 1 when detecting a bit error, performs correction of errors on the data, when detecting two or more bits of errors, the microcomputer whether to output a reset request within, or with respect to the interrupt controller outputs an interrupt request, or an error detection unit for outputting an error detection output signal
A reset issuing unit that issues a reset in response to the reset request,
With data processing department
With
The ROM stores a non-reset target address storage unit that stores a non-reset target address, which is an address area that does not issue the reset, and a backup data of data in the address area stored in the non-reset target address storage unit. Has a backup data area
When a reset request is issued from the error detection unit for the non-reset target address area, the data processing unit acquires the backup data, continues processing, and does not issue a reset. Control device for.
請求項1に記載の車両用制御装置において、
前記誤り検出部が誤りを検出した場合には、前記誤り検出部は、1ビット誤りを検出した場合に更新される誤り検出フラグ1レジスタまたは2ビット誤りを検出した場合に更新される誤り検出フラグ2レジスタをセットし、
誤りを検出したアドレスを、1ビット誤りを検出したアドレス値に更新される誤り検出アドレス1レジスタもしくは2ビット誤りを検出したアドレス値に更新される誤り検出アドレス2レジスタに保存することで、誤り検出情報を参照することを特徴とする車両用制御装置。
In the vehicle control device according to claim 1,
When the error detection unit detects an error, the error detection unit detects an error detection flag that is updated when a 1-bit error is detected, or an error detection flag that is updated when a 2-bit error is detected. Set 2 registers and
Error detection by storing the address where an error is detected in the error detection address 1 register which is updated to the address value where a 1-bit error is detected or the error detection address 2 register which is updated to the address value where a 2-bit error is detected. A vehicle control device characterized by referencing information.
請求項1又は2に記載の車両用制御装置において、
前記誤り検出部はECC機能により、前記RAM内及び前記ROM内の処理データの誤りを検出することを特徴とする車両用制御装置。
In the vehicle control device according to claim 1 or 2.
The error detection unit is a vehicle control device characterized in that an error in processing data in the RAM and the ROM is detected by an ECC function.
前記リセット対象外アドレス格納部は、前記リセット対象外アドレス毎に、前記バックアップデータを使用するか否かを示すバックアップデータ使用設定データを格納し、The non-reset target address storage unit stores backup data usage setting data indicating whether or not to use the backup data for each non-reset target address.
前記データ処理部は、前記バックアップデータ使用設定データに基づき、バックアップデータを取得して処理を継続するか否かを判断する、請求項1に記載の車両用制御装置。The vehicle control device according to claim 1, wherein the data processing unit acquires backup data and determines whether or not to continue processing based on the backup data usage setting data.
前記リセット対象外アドレス格納部は、前記リセット対象外アドレス毎に、前記誤り検出出力信号を使用するか否かを示す誤り検出出力信号使用設定データを格納し、The non-reset target address storage unit stores error detection output signal usage setting data indicating whether or not to use the error detection output signal for each non-reset target address.
前記データ処理部は、前記誤り検出出力信号使用設定データに基づき、前記誤り検出出力信号を出力するか否かを判断する、請求項1に記載の車両用制御装置。The vehicle control device according to claim 1, wherein the data processing unit determines whether or not to output the error detection output signal based on the error detection output signal usage setting data.
JP2017147350A 2017-07-31 2017-07-31 Vehicle control device Active JP6875950B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2017147350A JP6875950B2 (en) 2017-07-31 2017-07-31 Vehicle control device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2017147350A JP6875950B2 (en) 2017-07-31 2017-07-31 Vehicle control device

Publications (2)

Publication Number Publication Date
JP2019028714A JP2019028714A (en) 2019-02-21
JP6875950B2 true JP6875950B2 (en) 2021-05-26

Family

ID=65476319

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2017147350A Active JP6875950B2 (en) 2017-07-31 2017-07-31 Vehicle control device

Country Status (1)

Country Link
JP (1) JP6875950B2 (en)

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005149183A (en) * 2003-11-17 2005-06-09 Bosch Automotive Systems Corp Error failsafe processing method of semiconductor storage element
JP5645262B2 (en) * 2011-01-12 2014-12-24 日本電気株式会社 Information processing device
JP2016081341A (en) * 2014-10-17 2016-05-16 株式会社デンソー Electronic control device
JP6295928B2 (en) * 2014-11-21 2018-03-20 株式会社デンソー Control device
JP5968501B1 (en) * 2015-06-01 2016-08-10 三菱電機株式会社 In-vehicle electronic control unit

Also Published As

Publication number Publication date
JP2019028714A (en) 2019-02-21

Similar Documents

Publication Publication Date Title
JP2016118815A (en) Nonvolatile memory device
US20160364280A1 (en) Circuitry and method for testing an error-correction capability
US10108469B2 (en) Microcomputer and microcomputer system
JP6658417B2 (en) Electronic control unit
US9778981B2 (en) Microcontroller
JP2008015965A (en) Information processor, operation method of information processor, and program
JP2016081341A (en) Electronic control device
JP5978873B2 (en) Electronic control unit
JP6875950B2 (en) Vehicle control device
JP5835160B2 (en) Electronic control unit
JP5915490B2 (en) Electronic control unit
JP6611877B1 (en) Semiconductor integrated circuit and rotation detection device
JP2017084163A (en) Electronic control unit
JP2008310896A (en) Nonvolatile memory device, nonvolatile memory system, and method for controlling nonvolatile memory device
JP2017021509A (en) Storage device and control method thereof
JP4876093B2 (en) Control device task management device and control device task management method
JP2006344087A (en) Control device task management device and control device task management method
JP6229552B2 (en) Control device and initialization program
JP6183251B2 (en) Electronic control unit
WO2011122677A1 (en) Device and method for restoring information in a main storage device
US8489828B2 (en) Control apparatus having non-volatile RAM, protection apparatus and method applied thereto
JP2008225835A (en) MEMORY ACCESS CONTROL METHOD AND CIRCUIT, AND INFORMATION PROCESSING DEVICE
JP6295928B2 (en) Control device
JP2021172142A (en) Abnormality detection device
JP7826853B2 (en) MEMORY SYSTEM AND DATA CORRECTING METHOD - Patent application

Legal Events

Date Code Title Description
A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20170802

A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20190712

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20190717

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20200630

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20200923

RD02 Notification of acceptance of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7422

Effective date: 20201013

RD04 Notification of resignation of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7424

Effective date: 20201020

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20201110

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20210423

R150 Certificate of patent or registration of utility model

Ref document number: 6875950

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE

Ref document number: 6875950

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

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