[go: up one dir, main page]

JP2018063527A - Electronic control apparatus - Google Patents

Electronic control apparatus Download PDF

Info

Publication number
JP2018063527A
JP2018063527A JP2016200830A JP2016200830A JP2018063527A JP 2018063527 A JP2018063527 A JP 2018063527A JP 2016200830 A JP2016200830 A JP 2016200830A JP 2016200830 A JP2016200830 A JP 2016200830A JP 2018063527 A JP2018063527 A JP 2018063527A
Authority
JP
Japan
Prior art keywords
sda
area
abnormality
unit
electronic control
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP2016200830A
Other languages
Japanese (ja)
Inventor
雄正 日下
Katsumasa Kusaka
雄正 日下
純一 永井
Junichi Nagai
純一 永井
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.)
Denso Corp
Original Assignee
Denso Corp
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 Denso Corp filed Critical Denso Corp
Priority to JP2016200830A priority Critical patent/JP2018063527A/en
Publication of JP2018063527A publication Critical patent/JP2018063527A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Hardware Redundancy (AREA)

Abstract

PROBLEM TO BE SOLVED: To provide an electronic control apparatus capable of continuing ordinary control without shifting to fail-safe processing even if an abnormality occurs in a memory.SOLUTION: An SDA 17 holds data with a higher access speed and higher importance than other areas, while an SDA specifying register 16 stores a specific address for accessing the SDA 17 by relative address designation. A CPU 7 determines whether or not an abnormality has occurred in the SDA 17. When the CPU determines that an abnormality has occurred, it rewrites the SDA specific address of the SDA specifying register 16 (S1-S3, S10).SELECTED DRAWING: Figure 2

Description

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

一般に、システムは異常検出したとしても制御を継続して行うためこの異常状態から復旧する手段を備える。この種のシステムとして例えばRAMにミラーチェック技術を採用しているものがある(例えば、特許文献1参照)。この特許文献1記載の技術によれば、データをRAMに格納する際に同じデータを複数のアドレスに格納し、その格納された複数のデータを再度読出して比較し同一内容か否かを調査している。RAMのデータが一部壊れたとしても、このような処理を行うことに応じて突然制御不能に陥らないようにすることができる。   Generally, the system includes means for recovering from this abnormal state in order to continue control even if an abnormality is detected. As this type of system, for example, there is a system that employs a mirror check technique in a RAM (for example, see Patent Document 1). According to the technique described in Patent Document 1, when storing data in a RAM, the same data is stored at a plurality of addresses, and the stored plurality of data is read again and compared to check whether they have the same contents. ing. Even if the data in the RAM is partially broken, it can be prevented from suddenly becoming uncontrollable by performing such processing.

しかし、この種の従来技術では、RAMがハードウェア的な異常を生じたときには、データを復旧させることができず、システムは通常制御を停止してしまい、必要に応じてフェールセーフ処理に移行してしまうという問題を生じる。   However, with this type of prior art, when the hardware malfunction occurs in the RAM, the data cannot be recovered, the system stops normal control, and shifts to fail-safe processing as necessary. The problem of end up.

特開2006−293649号公報JP 2006-293649 A

本発明の目的は、メモリに異常を生じたとしてもフェールセーフ処理に移行することなく通常制御を続行できるようにした電子制御装置を提供することにある。   An object of the present invention is to provide an electronic control device that can continue normal control without shifting to fail-safe processing even if an abnormality occurs in a memory.

請求項1記載の発明によれば、スモールデータ領域(以下、SDAと称す)は、他の領域よりもアクセス速度が速く重要度の高いデータを保持するが、特定アドレス記憶部は、このSDAに相対アドレス指定によりアクセスするための特定アドレスを記憶する。判定部は、SDAに異常を生じたか否かを判定し、異常を生じたと判定されたときには、書換部が特定アドレス記憶部のSDA特定アドレスを書き換える。これにより、たとえSDAに異常を生じたとしても、書換部がSDA特定アドレスを書き換えることでSDAを動的に移動させることができる。これにより、他のメモリ空間のSDAに重要度の高いデータを移動させることができ、メモリに異常を生じたとしても、システムがフェールセーフ処理に移行することなく通常制御を続行できる。   According to the first aspect of the present invention, the small data area (hereinafter referred to as SDA) holds data having a higher access speed and higher importance than other areas, but the specific address storage unit stores the data in this SDA. A specific address for access by relative addressing is stored. The determination unit determines whether or not an abnormality has occurred in the SDA. When it is determined that an abnormality has occurred, the rewriting unit rewrites the SDA specific address in the specific address storage unit. Thereby, even if an abnormality occurs in the SDA, the SDA can be dynamically moved by the rewriting unit rewriting the SDA specific address. As a result, highly important data can be moved to the SDA in another memory space, and normal control can be continued without the system shifting to fail-safe processing even if an abnormality occurs in the memory.

一実施形態における電子制御装置の電気的構成図Electrical configuration diagram of electronic control unit in one embodiment 処理を概略的に示すフローチャートFlow chart schematically showing the process メモリ空間と特定アドレスとの関係を概略的に示す説明図(その1)Explanatory diagram schematically showing the relationship between the memory space and the specific address (part 1) メモリ空間と特定アドレスとの関係を概略的に示す説明図(その2)Explanatory drawing which shows roughly the relationship between memory space and a specific address (the 2) メモリ空間と特定アドレスとの関係を概略的に示す説明図(その3)Explanatory diagram schematically showing the relationship between the memory space and the specific address (Part 3) メモリ空間と特定アドレスとの関係を概略的に示す説明図(その4)Explanatory diagram schematically showing the relationship between the memory space and the specific address (Part 4) メモリ空間と特定アドレスとの関係を概略的に示す説明図(その5)Explanatory diagram schematically showing the relationship between the memory space and the specific address (Part 5) メモリ空間と特定アドレスとの関係を概略的に示す説明図(その6)Explanatory diagram schematically showing the relationship between the memory space and the specific address (No. 6) メモリ空間と特定アドレスとの関係を概略的に示す説明図(その7)Explanatory diagram schematically showing the relationship between the memory space and the specific address (Part 7) メモリ空間と特定アドレスとの関係を概略的に示す説明図(その8)Explanatory diagram schematically showing the relationship between the memory space and the specific address (No. 8)

以下、電子制御装置の一実施形態について図面を参照しながら説明する。図1は電子制御装置(ECU:Electronic Control Unit)1の電気的構成をブロック図により概略的に示している。図1に示すように、電子制御装置1は、マイクロコンピュータ(以下、マイコンと略す)2を主として構成され、センサ信号入力部3、及び、アクチュエータ駆動部4を備える。センサ信号入力部3には、電子制御装置1の外部に各種のセンサ5が接続されており、センサ信号入力部3はこのセンサ5により出力されるセンサ信号を入力する。センサ5は、例えばアクセルセンサ、ノックセンサ、酸素(O)センサなど各種車両関連情報を検出するためのセンサである。また、アクチュエータ駆動部4は、電子制御装置1の外部に接続されるアクチュエータ6を駆動する。アクチュエータ6は、例えば電子スロットルなどの車両負荷であり、例えばスロットルバルブを開閉するためのモータなど各種車両関連アクチュエータを挙げることができる。 Hereinafter, an embodiment of an electronic control device will be described with reference to the drawings. FIG. 1 schematically shows an electrical configuration of an electronic control unit (ECU) 1 by a block diagram. As shown in FIG. 1, the electronic control device 1 is mainly composed of a microcomputer (hereinafter abbreviated as “microcomputer”) 2, and includes a sensor signal input unit 3 and an actuator driving unit 4. Various sensors 5 are connected to the sensor signal input unit 3 outside the electronic control unit 1, and the sensor signal input unit 3 inputs sensor signals output from the sensor 5. The sensor 5 is a sensor for detecting various vehicle-related information such as an accelerator sensor, a knock sensor, and an oxygen (O 2 ) sensor. The actuator driving unit 4 drives an actuator 6 connected to the outside of the electronic control device 1. The actuator 6 is a vehicle load such as an electronic throttle, for example, and examples thereof include various vehicle-related actuators such as a motor for opening and closing a throttle valve.

マイコン2は、CPU7、メモリ8、入力インタフェース9、及び、出力インタフェース10を備える。メモリ8は、ROM11、RAM12、フラッシュメモリ等の不揮発性メモリ13を備える。ROM11には動作用プログラムが格納されており、CPU7はROM11に格納された動作用プログラムを実行することで、判定部、書換部、通常制御継続部、異常領域記憶制御部、カウント部、フェールセーフ指令部としての機能を実現する。これらの動作用プログラムを非遷移的実体的記録媒体に記憶するようにしても良い。また、CPU7は、データの読み書きを高速に行うことが可能なレジスタ14を備えている。   The microcomputer 2 includes a CPU 7, a memory 8, an input interface 9, and an output interface 10. The memory 8 includes a nonvolatile memory 13 such as a ROM 11, a RAM 12, and a flash memory. The ROM 11 stores an operation program, and the CPU 7 executes the operation program stored in the ROM 11 to determine a determination unit, a rewrite unit, a normal control continuation unit, an abnormal area storage control unit, a count unit, a fail safe. A function as a command unit is realized. These operation programs may be stored in a non-transitional tangible recording medium. The CPU 7 includes a register 14 that can read and write data at high speed.

RAM12は、図示しないイグニッションスイッチがオンされ動作用のバッテリ電圧が通電された後に不揮発性メモリ13からデータ転送されることで種々のデータを格納する。RAM12のメモリ空間は、スモールデータ領域(以下、SDAと称す:Small Data Area)17と、非SDA18と、空き領域19とに分けられている。   The RAM 12 stores various data by transferring data from the nonvolatile memory 13 after an ignition switch (not shown) is turned on and a battery voltage for operation is energized. The memory space of the RAM 12 is divided into a small data area (hereinafter referred to as SDA) 17, a non-SDA 18, and a free area 19.

非SDA18は、CPU7がROM11に格納されたプログラムを実行しデータ処理を行っている最中に各種定数又は変数を格納するワークエリア等の領域とされている。通常、CPU7がプログラムを実行することで非SDA18にアクセスするときには絶対アドレス指定することでアクセスする。また通常、SDA17は、1k、4k、8k、16k、32k、64kなどの所定の単位領域のメモリ領域分だけ確保される。SDA17に格納されるデータは、例えば非SDA18に格納されるデータに比較して重要度が高く設定されるデータであり、例えばアクセルセンサ、ノックセンサや酸素濃度センサなど各種センサの学習値、電子スロットルのモータの制御値などのアクチュエータの学習値などが挙げられる。またSDA17には、この重要度の高いデータのそれぞれについてミラーデータがミラー領域に保存されている。説明の簡略化のため、このミラーデータを保存するミラー領域は図示していない。   The non-SDA 18 is an area such as a work area in which various constants or variables are stored while the CPU 7 executes a program stored in the ROM 11 and performs data processing. Normally, when the CPU 7 accesses the non-SDA 18 by executing a program, it is accessed by specifying an absolute address. In general, the SDA 17 is reserved for the memory area of a predetermined unit area such as 1k, 4k, 8k, 16k, 32k, and 64k. The data stored in the SDA 17 is, for example, data set with higher importance compared to the data stored in the non-SDA 18, for example, learning values of various sensors such as an accelerator sensor, a knock sensor and an oxygen concentration sensor, an electronic throttle Actuator learning values such as motor control values. The SDA 17 stores mirror data for each of the highly important data in the mirror area. For simplification of explanation, the mirror area for storing the mirror data is not shown.

CPU7は、各種データを保持するためにレジスタ14を備える。このレジスタ14は、汎用レジスタ15の他、特定アドレス記憶部としてのSDA特定レジスタ16を備える。このSDA特定レジスタ16は、RAM12のSDA17の内部のある特定アドレス(例えば、SDAの領域の中心を示す中央アドレス)を指定するために設けられている。   The CPU 7 includes a register 14 for holding various data. The register 14 includes an SDA specific register 16 as a specific address storage unit in addition to the general-purpose register 15. The SDA specification register 16 is provided for designating a specific address (for example, a central address indicating the center of the SDA area) inside the SDA 17 of the RAM 12.

CPU7が、SDA17の内部のメモリ領域にアクセスするときには、SDA特定レジスタ16に格納された特定アドレスを読出し、この特定アドレスから相対的にSDA17の内部のアドレスを指定する。CPU7が、この処理に応じてSDA17の内部のあるアドレスにアクセスするときには、相対アドレス指定によりアクセスすることになるため前述の絶対アドレス指定処理よりステップ数を削減でき、これにより、SDA17は非SDA18よりもアクセス速度を高速にできるメモリ領域とされている。   When the CPU 7 accesses the internal memory area of the SDA 17, the specific address stored in the SDA specific register 16 is read, and the internal address of the SDA 17 is designated relative to this specific address. When the CPU 7 accesses an address in the SDA 17 in accordance with this process, the access is performed by relative address designation, and therefore the number of steps can be reduced compared to the above-described absolute address designation process. Also, it is a memory area that can increase the access speed.

またCPU7は、入力インタフェース9を通じてセンサ信号入力部3からセンサ信号を入力し、汎用レジスタ15等に格納し、CPU7は汎用レジスタ15等に格納されたデータをプログラムに応じて演算部7aにより演算し、出力インタフェース10を通じてアクチュエータ駆動部4に出力し、アクチュエータ駆動部4はアクチュエータ6を駆動する。   Further, the CPU 7 inputs the sensor signal from the sensor signal input unit 3 through the input interface 9 and stores the sensor signal in the general-purpose register 15 or the like. The CPU 7 calculates the data stored in the general-purpose register 15 or the like by the arithmetic unit 7a according to the program. , Output to the actuator drive unit 4 through the output interface 10, and the actuator drive unit 4 drives the actuator 6.

前述した構成の意義と作用効果について説明する。
ECU1が、例えば車両用のセンサ5からセンサ信号を取得しアクチュエータ6を通常駆動制御しているときには、様々な緊急事態を生じることが想定される。ECU1は、緊急事態を生じたときには例えば安全に車両の運転を停止できるようにフェールセーフ処理する。ECU1は、フェールセーフ処理に移行すると例えばセンサ5のセンサ信号に基づくアクチュエータ6の駆動処理を停止する。
The significance and operational effects of the configuration described above will be described.
For example, when the ECU 1 acquires a sensor signal from the vehicle sensor 5 and normally controls the actuator 6, it is assumed that various emergency situations occur. When an emergency occurs, the ECU 1 performs fail-safe processing so that the operation of the vehicle can be stopped safely, for example. When the ECU 1 shifts to the fail-safe process, the ECU 1 stops the driving process of the actuator 6 based on the sensor signal of the sensor 5, for example.

このとき、例えばドライバがアクセルを踏み込んだときに、センサ5となるアクセルセンサ等がこのセンサ情報の変化を検知したとしても、例えばアクチュエータ6となる電子スロットルのモータの駆動を停止することでスロットルバルブの開状態を固定的に保持してしまうこともあり、この場合、復旧にはディーラー等による修理、点検を要することにもなる。   At this time, for example, when the driver depresses the accelerator, even if the accelerator sensor or the like serving as the sensor 5 detects a change in the sensor information, the throttle valve is stopped by stopping the driving of the motor of the electronic throttle serving as the actuator 6, for example. In this case, the repair may require repair or inspection by a dealer or the like.

他方、RAM12がハードウェア的な異常を生じるときには、RAM12のメモリ空間全体が損傷することは稀であり、一部の記憶領域が損傷することで正常なデータの読み書きが不能となることがほとんどである。したがって、RAM12の異常が一部の記憶領域に発生し、データの読み書きを正常にできない場合においても、このデータを復旧できるようであれば、このデータを空き領域19等の他の記憶領域に書換えることでフェールセーフ処理に移行することなく通常動作を継続することができる。   On the other hand, when the RAM 12 causes a hardware abnormality, it is rare that the entire memory space of the RAM 12 is damaged, and it is almost impossible to read / write normal data by damaging a part of the storage area. is there. Therefore, even if an abnormality in the RAM 12 occurs in a part of the storage area and data cannot be read / written normally, if this data can be recovered, the data is rewritten to another storage area such as the free area 19. Thus, normal operation can be continued without shifting to fail-safe processing.

特に、SDA17に保持されるデータは、例えば非SDA18に保持されるデータに比較して重要度が高く設定されるデータであるため、このデータの正確性を保ちながら通常制御を継続できるようにすることが望ましい。このようなことを想定すると、CPU7は、図2に示すように処理を行うことが望ましい。   In particular, since the data held in the SDA 17 is data set with higher importance compared to the data held in the non-SDA 18, for example, the normal control can be continued while maintaining the accuracy of the data. It is desirable. Assuming such a situation, it is desirable for the CPU 7 to perform processing as shown in FIG.

図2は異常時に行われる処理を概略的に示している。まず図2に示すように、CPU7は、S1〜S3においてSDA特定レジスタを参照し、SDA特定アドレスを含むSDA17の領域の異常の有無を判定する。   FIG. 2 schematically shows processing performed at the time of abnormality. First, as shown in FIG. 2, the CPU 7 refers to the SDA specific register in S <b> 1 to S <b> 3 and determines whether there is an abnormality in the area of the SDA 17 including the SDA specific address.

このステップS1〜S3の異常検出方法は、リードライト(R/W)チェックなどの方法を用いることができる。例えばCPU7が、リードライトチェックにより異常の有無を判定するときには、S1においてSDA17として割当てられている領域RAM_Aの値を汎用レジスタ15に転送し、S2において領域RAM_Aに所定値を書込んでその書き込み値を読み出した結果が所定値に一致するか否かを判定する。CPU7は、リードライトチェックを実施した結果、S3において領域RAM_Aが正常であるか否かを判定できる。また、この図2のS1〜S3には図示していないが、RAM12のミラー領域に予め設けられたミラーデータを用いてミラーチェックを行い異常の有無を判定しても良い。   As the abnormality detection method in steps S1 to S3, a method such as a read / write (R / W) check can be used. For example, when the CPU 7 determines whether or not there is an abnormality by the read / write check, the value of the area RAM_A assigned as SDA 17 in S1 is transferred to the general-purpose register 15, and a predetermined value is written in the area RAM_A in S2 and the written value It is determined whether or not the result of reading out matches a predetermined value. As a result of performing the read / write check, the CPU 7 can determine whether or not the area RAM_A is normal in S3. Further, although not shown in S1 to S3 in FIG. 2, a mirror check may be performed using mirror data provided in advance in the mirror area of the RAM 12 to determine whether there is an abnormality.

CPU7は、これらのS1〜S3の処理を行った結果、異常なしと判断したときに、S4において通常制御を継続する。また、CPU7は、S1〜S3の処理を行った結果、異常ありと判断したときにはS3でNOと判定し、S5においてRAM12のリードライトチェックで異常を生じたSDA17の内部のアドレスを例えば非SDA18のワークエリア内に記憶する。CPU7は、この異常を生じたSDA17の内部のアドレスを不揮発性メモリ13に記憶させるようにしても良い。またCPU7は、S6においてSDA17の異常回数をインクリメントすることでカウントする。カウントする値はインクリメント値1に限られない。そしてCPU7は、S7において異常を生じた回数が所定回数以下であるか否かを判定する。この所定回数は、RAM12の空き領域19の記憶容量に応じて定められる回数である。   When the CPU 7 determines that there is no abnormality as a result of performing the processes of S1 to S3, the CPU 7 continues the normal control in S4. Further, when the CPU 7 determines that there is an abnormality as a result of performing the processing of S1 to S3, it determines NO in S3, and in S5, the internal address of the SDA 17 that has caused an abnormality in the read / write check of the RAM 12 is, for example, a non-SDA 18 Store in the work area. The CPU 7 may store the internal address of the SDA 17 in which this abnormality has occurred in the nonvolatile memory 13. Further, the CPU 7 counts by incrementing the number of abnormalities of the SDA 17 in S6. The value to be counted is not limited to the increment value 1. Then, the CPU 7 determines whether or not the number of times that the abnormality has occurred in S7 is a predetermined number or less. The predetermined number is a number determined according to the storage capacity of the empty area 19 of the RAM 12.

CPU7は、S7において異常回数が所定回数を超えたと判定すると、S7でNOと判定し、S8においてフェールセーフ処理を実行指令する。CPU7がフェールセーフ処理を実行指令すると、ECU1はアクチュエータ駆動部4により例えばアクチュエータ6を駆動停止する。この場合、ECU1はセンサ5を通じて取得されるドライバの要求(例えばアクセルの踏み込み度)に応じたアクチュエータ6の駆動制御が不能となる。例えば、アクチュエータ6が、電子スロットルのモータであるときには、アクチュエータ駆動部4はバルブの開度を所定の開度とするようにモータを駆動する。また、フェールセーフ処理に移行すると、CPU7は、例えばこのことを外部ユーザに警告報知することで早期交換、修理を促す。   If the CPU 7 determines that the number of abnormalities exceeds the predetermined number in S7, the CPU 7 determines NO in S7 and issues an instruction to execute fail-safe processing in S8. When the CPU 7 issues an instruction to execute fail-safe processing, the ECU 1 stops driving, for example, the actuator 6 by the actuator driving unit 4. In this case, the ECU 1 cannot control the drive of the actuator 6 according to the driver's request (for example, the degree of depression of the accelerator) acquired through the sensor 5. For example, when the actuator 6 is an electronic throttle motor, the actuator driving unit 4 drives the motor so that the opening degree of the valve is a predetermined opening degree. When the process shifts to fail-safe processing, the CPU 7 prompts early replacement and repair by, for example, notifying an external user of this fact.

他方、CPU7は、S7において異常回数が所定回数以下であると判定した場合には、他の現在のSDA17、又は/及び、空き領域19を含んだ領域にSDA17を確保できる可能性があることから、下記のステップS9〜S15の処理を実行する。CPU7は、S9にて新たにSDA17を確保可能か否かを判定する。このとき新たなSDA17の探索領域は、非使用のRAM12の空き領域19と、使用中のSDA17の正常判断領域と、を含んだ領域を示している。   On the other hand, if the CPU 7 determines that the number of abnormalities is less than or equal to the predetermined number in S7, there is a possibility that the SDA 17 can be secured in another current SDA 17 and / or an area including the empty area 19. Then, the following steps S9 to S15 are executed. The CPU 7 determines whether or not a new SDA 17 can be secured in S9. At this time, the new search area of the SDA 17 indicates an area including the empty area 19 of the unused RAM 12 and the normal determination area of the SDA 17 in use.

ここでCPU7が、S9において新たにSDA17を確保可能と判定した場合、S10においてSDA特定レジスタを書換えることでSDA17の指定アドレス範囲を動的に移動させる。そしてCPU7は、S11において、汎用レジスタ15に一時保管されている領域RAM_Aのデータについてのミラーデータを取得して更新し、このデータを含み使用中のSDA17のデータを新たに確保したSDA17に転送する。CPU7は、S11において使用中のSDA17のデータを新たに確保したSDA17に格納した後、S4に移行し通常制御を継続する。これにより、従来技術では正常復帰することができないようなRAM12の異常を検出した場合であっても、SDA17を動的に再配置できることになり、フェールセーフ処理に移行することなく通常制御を継続できる。   If the CPU 7 determines that the SDA 17 can be newly secured in S9, the designated address range of the SDA 17 is dynamically moved by rewriting the SDA specific register in S10. In S11, the CPU 7 acquires and updates the mirror data of the data in the area RAM_A temporarily stored in the general-purpose register 15, and transfers the data of the SDA 17 in use and including this data to the newly secured SDA 17. . After the CPU 7 stores the data of the SDA 17 being used in the newly secured SDA 17 in S11, the CPU 7 proceeds to S4 and continues the normal control. As a result, even when an abnormality in the RAM 12 that cannot be restored to normal by the conventional technology is detected, the SDA 17 can be dynamically relocated, and normal control can be continued without shifting to fail-safe processing. .

またCPU7は、S9において新たなSDA17を確保不可能と判定した場合には、S12において過去に異常判定されたRAM12の領域の異常状態を再確認する。この処理は、何らかの影響により前回の異常判定処理(S1〜S3)に間違いを生じている可能性を考慮して実施される処理であり、CPU7はRAM12にSDA17を確保可能か再確認する。   If the CPU 7 determines that a new SDA 17 cannot be secured in S9, the CPU 7 reconfirms the abnormal state of the area of the RAM 12 that was previously determined to be abnormal in S12. This process is performed in consideration of the possibility that an error has occurred in the previous abnormality determination process (S1 to S3) due to some influence, and the CPU 7 reconfirms whether the SDA 17 can be secured in the RAM 12.

そしてCPU7は、S13において異常判定されていた領域に正常箇所が存在すると判定したときには、S14においてRAM12の異常領域を更新する。そしてCPU7は、S15においてRAM12の領域にSDA17の必要領域分の存在を確認したときには、S10へ移行しSDA特定アドレスを書換える。そしてCPU7は、S11において汎用レジスタ15に一時保管されたデータについてのミラーデータを取得して更新し、このデータを含み使用中のSDA17のデータを新たに確保したSDA17に転送する。そしてCPU7はS4において通常制御を継続する。CPU7は、S15においてSDA必要領域を確保できないと判定した場合には、S8においてフェールセーフ処理を実行指令する。   When the CPU 7 determines that there is a normal location in the area that has been determined to be abnormal in S13, the CPU 7 updates the abnormal area of the RAM 12 in S14. When the CPU 7 confirms the existence of the necessary area of the SDA 17 in the area of the RAM 12 in S15, the CPU 7 proceeds to S10 and rewrites the SDA specific address. Then, the CPU 7 acquires and updates the mirror data of the data temporarily stored in the general-purpose register 15 in S11, and transfers the data of the SDA 17 in use including this data to the newly secured SDA 17. The CPU 7 continues normal control in S4. If the CPU 7 determines in S15 that the SDA required area cannot be secured, the CPU 7 issues an instruction to execute fail-safe processing in S8.

以下、具体例について図3〜図10を参照しながら説明する。
<具体例1:図3〜図5>
例えば、まずCPU7が、図3に示すように、SDA特定アドレスを0x40008000に設定し、図2のS1〜S3においてリードライト(R/W)チェックをした結果、領域RAM_Aは正常であると判断したものの、領域RAM_Bに異常があると判断する。
Specific examples will be described below with reference to FIGS.
<Specific Example 1: FIGS. 3 to 5>
For example, as shown in FIG. 3, first, the CPU 7 sets the SDA specific address to 0x4008000 and performs a read / write (R / W) check in S1 to S3 in FIG. 2, and as a result, determines that the area RAM_A is normal. However, it is determined that there is an abnormality in the area RAM_B.

このとき図4に示すように、CPU7は、領域RAM_Bに格納された値のミラーデータを汎用レジスタ15に退避して更新する。そして、図5に示すように、CPU7は、例えばSDA特定アドレスを0x40008400に書き換え、汎用レジスタ15内に退避された領域RAM_Bの更新後のデータを含むと共に、領域RAM_A…を含む旧SDA17aの内部の全データを新たなSDA17bに書き込む。これにより、SDA17を動的に移動することで、領域RAM_A、RAM_B…のデータを再配置でき、通常制御を継続できる。   At this time, as shown in FIG. 4, the CPU 7 saves and updates the mirror data of the value stored in the area RAM_B in the general-purpose register 15. Then, as shown in FIG. 5, the CPU 7 rewrites the SDA specific address to 0x40008400, for example, and includes the updated data of the area RAM_B saved in the general-purpose register 15 and the inside of the old SDA 17a including the area RAM_A. Write all data to the new SDA 17b. Thus, by dynamically moving the SDA 17, the data in the areas RAM_A, RAM_B... Can be rearranged, and normal control can be continued.

<具体例2:図6>
例えば、具体例1の後、図6に示すように、さらに新たな2回目のSDAにおいても領域RAM_Cに異常が見つかったときには、CPU7は、この領域RAM_Cのデータのミラーデータを汎用レジスタ15に退避して更新する。そして、CPU7は、例えばSDA特定アドレスを0x40008800に書換え、領域RAM_Cの更新後のデータを含むと共に、領域RAM_A、RAM_B…を含む1回目のSDA17aの内部の全データを新たな3回目のSDA17cに書き込む。これにより、2回目のSDA17bの内部データを動的に移動することで領域RAM_A、RAM_B、RAM_C…を再配置でき、通常制御を継続できる。
<Specific example 2: FIG. 6>
For example, after the first specific example, as shown in FIG. 6, when an abnormality is found in the area RAM_C even in the second new SDA, the CPU 7 saves the mirror data of the data in the area RAM_C in the general-purpose register 15. And update. Then, for example, the CPU 7 rewrites the SDA specific address to 0x40008800, includes the updated data in the area RAM_C, and writes all the data in the first SDA 17a including the areas RAM_A, RAM_B,... Into the new third SDA 17c. . Accordingly, the areas RAM_A, RAM_B, RAM_C,... Can be rearranged by dynamically moving the internal data of the second SDA 17b, and normal control can be continued.

<具体例3:図7〜図8>
例えば、具体例2の後、図7に示すように、さらに新たな3回目のSDA17cにおいても領域RAM_Dに異常が見つかったときには、CPU7は、この領域RAM_Dのデータのミラーデータを汎用レジスタ15に退避して更新する。そしてCPU7は、異常を生じていない領域のアドレスを含まないように新たなSDA17を空き領域に確保できるか確認する。CPU7は、アドレスが連続した空き領域19だけで確保できないとき等には、SDA17(例えば17c)の中でも領域が正常であると判断されている領域を含んだ領域を新たな4回目のSDA17dとして設定する。
<Specific Example 3: FIGS. 7 to 8>
For example, after specific example 2, as shown in FIG. 7, when an abnormality is found in the area RAM_D even in the new third SDA 17c, the CPU 7 saves the mirror data of the data in this area RAM_D in the general-purpose register 15. And update. Then, the CPU 7 confirms whether a new SDA 17 can be secured in the free area so as not to include the address of the area where no abnormality has occurred. The CPU 7 sets, as a new fourth SDA 17d, an area including an area determined to be normal in the SDA 17 (for example, 17c) when the address cannot be secured only by the continuous empty area 19 or the like. To do.

この具体例3では、CPU7は、図2のステップS9の具体的処理として空き領域19だけでSDA17dを確保できないと判断し、正常判断されている領域、すなわち現在のSDA17cの一部を含む領域を新たなSDA17dとして設定する例を示しているが、新たなSDA17を確保可能な領域としては、正常判断されている領域であれば良く、例えば図8中ではSDA17a、17b、17cの中の正常判断領域を利用するようにしても良い。すなわち、SDA17の中でも、現在又は過去に正常判断された正常判断領域と空き領域19とを組み合わせて新たなSDA17の領域を確保しても良い。   In this specific example 3, the CPU 7 determines that the SDA 17d cannot be secured only by the free area 19 as the specific process of step S9 in FIG. 2, and determines a normal determination area, that is, an area including a part of the current SDA 17c. Although an example in which the new SDA 17d is set is shown, the area where the new SDA 17 can be secured may be an area that is normally determined. For example, in FIG. 8, the normal determination in the SDAs 17a, 17b, and 17c. An area may be used. That is, among the SDA 17, a new SDA 17 area may be secured by combining the normal determination area that has been normally determined in the past or the past and the empty area 19.

そしてCPU7は、汎用レジスタ15にて更新した領域RAM_Dの更新後のデータを含むと共に領域RAM_A、RAM_B、RAM_C…を含む3回目のSDA17c内の全データを新たな4回目のSDA17dに書込む。このとき、例えば、SDA17dが、SDA17cに比較してよりアドレス値の大きなアドレス空間に確保できるのであれば、CPU7は、3回目のSDA17cの内部の最大アドレスから最小アドレスにかけて、4回目のSDA17dの内部の最大アドレスから最小アドレスに向けて順に転送することで3回目のSDA17cの内部データを全て4回目のSDA17dに転送できる。SDA17dが、SDA17cに比較してよりアドレス値の小さなアドレス空間に確保できるのであれば、CPU7は、3回目のSDA17cの内部の最小アドレスから最大アドレスにかけて、4回目のSDA17dの内部の最小アドレスから最大アドレスに向けて順に転送することで3回目のSDA17cの内部データを全て4回目のSDA17dに転送できる。これにより、SDA17cの内部データを動的に移動することで領域RAM_A、RAM_B、RAM_C、RAM_D…のデータを再配置でき、通常制御を継続できる。この場合、空き領域19だけを使用するのではなく、現在又は過去に使用していたSDA17a、17b、17cの正常判断領域を含めた領域を再利用することができる。   Then, the CPU 7 writes all the data in the third SDA 17c including the areas RAM_A, RAM_B, RAM_C,... Including the updated data of the area RAM_D updated by the general-purpose register 15 to the new fourth SDA 17d. At this time, for example, if the SDA 17d can be secured in an address space having a larger address value than the SDA 17c, the CPU 7 increases the internal address of the fourth SDA 17d from the maximum address to the minimum address in the third SDA 17c. All the internal data in the third SDA 17c can be transferred to the fourth SDA 17d by sequentially transferring from the largest address to the smallest address. If the SDA 17d can be secured in an address space having a smaller address value compared to the SDA 17c, the CPU 7 performs the maximum from the internal address of the fourth SDA 17d to the maximum address from the internal address of the third SDA 17c to the maximum address. By sequentially transferring toward the address, all the internal data of the third SDA 17c can be transferred to the fourth SDA 17d. Thereby, the data in the areas RAM_A, RAM_B, RAM_C, RAM_D... Can be rearranged by dynamically moving the internal data of the SDA 17c, and normal control can be continued. In this case, not only the empty area 19 but also the area including the normal determination areas of the SDAs 17a, 17b, and 17c used in the present or the past can be reused.

<具体例4:図9〜図10>
例えば、具体例3の後、図9に示すように、さらに新たな4回目のSDA17dの内部においても領域RAM_Eに異常が見つかったときには、CPU7は、この領域RAM_Dのデータのミラーデータを汎用レジスタ15に退避して更新する。そして、CPU7は異常を生じていないアドレスを含まないように新たな5回目のSDA17eを確保可能であるか確認するが、全ての空き領域19及びSDA17の中でも正常判断されている領域を含んだ領域に新たなSDA17を確保不能と判断することもある(図2のS9でNO)。
<Specific Example 4: FIGS. 9 to 10>
For example, after the third specific example, as shown in FIG. 9, when an abnormality is found in the area RAM_E even in the new fourth SDA 17d, the CPU 7 uses the general register 15 Save to and update. Then, the CPU 7 confirms whether or not a new fifth SDA 17e can be secured so as not to include an address where no abnormality has occurred, but all the free areas 19 and the areas including the areas determined to be normal among the SDA 17 are included. In some cases, it may be determined that a new SDA 17 cannot be secured (NO in S9 of FIG. 2).

このようなとき、CPU7は、図2のS12において過去に異常判定された領域の異常状態を再確認する。このとき、CPU7はワークエリア又は不揮発性メモリ13に記憶された異常判定された領域のアドレス値を参照し、そのアドレスの示す領域が正常に記憶可能であるか否かを判定する。この正常か否かの判定方法はリードライトチェックにより行われることが望ましい。   In such a case, the CPU 7 reconfirms the abnormal state of the area that has been determined to be abnormal in S12 in FIG. At this time, the CPU 7 refers to the address value of the area determined to be abnormal stored in the work area or the nonvolatile memory 13 and determines whether or not the area indicated by the address can be normally stored. It is desirable that the determination method of normality is performed by a read / write check.

図9に示すように、以前領域RAM_Cが異常であると判定されていたものの、再度チェックした結果、正常と判定したときには、領域RAM_Cを正常箇所と判定し、図2のS14においてRAM12の異常領域を更新し、図2のS15において新たなSDA17eを確保可能か否かを判定する。   As shown in FIG. 9, when it is determined that the area RAM_C is abnormal before, but when it is determined that the area RAM_C is normal as a result of checking again, the area RAM_C is determined to be a normal location, and in S14 of FIG. Is updated, and it is determined whether or not a new SDA 17e can be secured in S15 of FIG.

ここでCPU7は、新たなSDA17eを確保可能なことを確認すると、図2のS10においてSDA特定アドレスを0x40008700のように書換えることで、図10に示すように、領域RAM_Cを含む領域を新たな5回目のSDA17eとして設定できる。   When the CPU 7 confirms that a new SDA 17e can be secured, the SDA specific address is rewritten to 0x40008700 in S10 of FIG. 2, thereby renewing the area including the area RAM_C as shown in FIG. It can be set as the fifth SDA 17e.

<具体例5>
図2のS7において、判定する異常回数の閾値の所定回数が1回に設定されている場合、CPU7は、図3に示すように領域RAM_Bを異常と判断したタイミングでSDA17の異常回数を1回とカウントするが、その後、図6に示すように、2回目に領域RAM_Cの異常を生じると、SDA17の異常回数を2回とカウントする。この場合、たとえRAM12に新たなSDA17cを確保可能な空き領域19が残存していたとしても、CPU7は、図2のS8に移行しフェールセーフ処理を実行指令する。説明の簡単化のため、所定回数を1回として説明したが、例えばメモリ8が経年劣化などを生じ異常頻度が短期間に増加する場合には、この異常回数が短期間の間に大幅に増加することが想定される。このようなときには重大な故障につながる前にフェールセーフ処理に移行するように制御すると良い。またフェールセーフ処理に移行したことを外部ユーザに警告報知することで早期交換、修理を促すことができる。
<Specific Example 5>
In S7 of FIG. 2, when the predetermined number of abnormality thresholds to be determined is set to 1 time, the CPU 7 once sets the number of abnormalities of the SDA 17 at the timing when the area RAM_B is determined to be abnormal as shown in FIG. Then, as shown in FIG. 6, when an abnormality occurs in the area RAM_C for the second time, the number of abnormalities in the SDA 17 is counted as two. In this case, even if the vacant area 19 that can secure the new SDA 17c remains in the RAM 12, the CPU 7 proceeds to S8 in FIG. For simplicity of explanation, the predetermined number of times has been described as one. However, for example, when the memory 8 has deteriorated over time and the abnormality frequency increases in a short time, the number of abnormality increases greatly in the short time. It is assumed that In such a case, it is preferable to control so as to shift to the fail-safe process before leading to a serious failure. In addition, it is possible to prompt early replacement and repair by notifying an external user of the transition to fail-safe processing.

このような具体例1〜5の他にも様々な具体例が考えられるが、その説明は省略する。
本実施形態の特徴を概念的にまとめる。
CPU7は、SDA17の領域に異常を生じたか否かを判定し、異常を生じたと判定されたときには、SDA特定レジスタ16のSDA特定アドレスを書き換える。これにより、たとえSDA17に異常を生じたとしても、CPU7が、SDA特定アドレスを書き換えることでSDA17を動的に移動させることができる。これにより、他のメモリ空間に重要度の高いデータを移動させることができ、RAM12のある領域に異常を生じたとしても、フェールセーフ処理に移行することなく通常制御を続行できる。
Various specific examples other than such specific examples 1 to 5 can be considered, but the description thereof will be omitted.
The features of the present embodiment are conceptually summarized.
The CPU 7 determines whether or not an abnormality has occurred in the area of the SDA 17, and when it is determined that an abnormality has occurred, the CPU 7 rewrites the SDA specific address of the SDA specific register 16. Thereby, even if an abnormality occurs in the SDA 17, the CPU 7 can dynamically move the SDA 17 by rewriting the SDA specific address. As a result, highly important data can be moved to another memory space, and even if an abnormality occurs in a certain area of the RAM 12, normal control can be continued without shifting to fail-safe processing.

CPU7は、SDA特定アドレスが書き換えられることを条件として異常時に処理するフェールセーフ処理を実行することなく通常時に処理する通常制御処理を継続するようにしている。このため、RAM12の領域に一部異常を生じたとしても通常制御を継続できる。   The CPU 7 continues the normal control process that is processed at the normal time without executing the fail-safe process that is processed at the time of abnormality on condition that the SDA specific address is rewritten. For this reason, normal control can be continued even if some abnormality occurs in the area of the RAM 12.

CPU7は、SDA17a〜17dに異常を生じたと判定された場合、異常を生じた領域をRAM12の非SDA18の内部のワークメモリまたは不揮発性メモリ13に記憶制御するようにしている。このため、異常を生じた領域を避けて、新たなSDA17を確保できるようになる。   When the CPU 7 determines that an abnormality has occurred in the SDAs 17 a to 17 d, the CPU 7 stores and controls the area where the abnormality has occurred in the work memory inside the non-SDA 18 of the RAM 12 or the nonvolatile memory 13. For this reason, it becomes possible to secure a new SDA 17 while avoiding a region where an abnormality has occurred.

CPU7は、SDA17、17a〜17dに異常を生じたと判定された場合、異常回数をカウントし、この異常回数が所定回数を超えたことを条件としてフェールセーフ処理に移行するように指令している。経年劣化などによりメモリ8の異常頻度が増加している場合にはフェールセーフ処理に移行することになる。このため、フェールセーフ処理に移行したことを外部ユーザに伝達することができ重大な事故につながる前に早期交換、修理を促すことができる。   When it is determined that an abnormality has occurred in the SDA 17, 17a to 17d, the CPU 7 counts the number of times of abnormality, and instructs to move to fail-safe processing on condition that the number of times of abnormality exceeds a predetermined number. When the abnormality frequency of the memory 8 increases due to aging or the like, the process shifts to fail-safe processing. For this reason, it can be communicated to an external user that it has shifted to the fail-safe process, and early replacement and repair can be promoted before a serious accident occurs.

CPU7は、例えばSDA17aに異常を生じたと判定されたときには、空き領域19に新たなSDA17bの必要領域分の領域を連続的に確保できることを条件として、SDA特定レジスタを書換えることで空き領域19に新たなSDAを確保するようにしている。このため、空き領域19が存在する限り、何度でもSDA17を動的に移動させることができる。   For example, when it is determined that an abnormality has occurred in the SDA 17a, the CPU 7 rewrites the SDA specific register into the free area 19 on the condition that a necessary area for the new SDA 17b can be continuously secured in the free area 19. A new SDA is secured. For this reason, as long as the empty area 19 exists, the SDA 17 can be moved dynamically any number of times.

CPU7は、例えばSDA17cに異常を生じたと判定されたときには、新たなSDA17dの必要領域分の領域を、空き領域19及び現在又は過去のSDA17b、17cの正常判断領域を含めた領域に連続的に確保可能なことを条件として、SDA特定アドレスを書換えることで当該領域に新たなSDA17dを確保するようにしている。これにより、空き領域19だけを使用するのではなく、現在使用しているSDA17cの正常判断領域を含めた領域を再利用することができる。   For example, when it is determined that an abnormality has occurred in the SDA 17c, the CPU 7 continuously secures an area for a necessary area of the new SDA 17d in an area including the empty area 19 and the normal determination area of the current or past SDA 17b, 17c. On condition that it is possible, a new SDA 17d is secured in the area by rewriting the SDA specific address. As a result, the area including the normal determination area of the SDA 17c that is currently used can be reused instead of using only the empty area 19.

CPU7は、新たなSDA17eの必要領域分の領域を、空き領域19、又は/及び、現在又は過去のSDAの正常判断領域を含めた領域に連続的に確保できないことを条件として、過去に異常判定された領域RAM_Cの異常状態を再確認し、再確認された領域が正常となり且つ新たなSDA17eの必要領域分を確保可能となることを条件として、SDA特定アドレスを書換えることで当該領域に新たなSDA17eを確保するようにしている。このため、再確認の結果、正常と判断された領域を含めて新たなSDA17eの必要領域分を連続的に確保可能となればSDA特定アドレスを書換えることで新たなSDA17eを確保できるようになる。このため、通常制御を継続できる可能性を高めることができる。   The CPU 7 makes an abnormality determination in the past on condition that the necessary area of the new SDA 17e cannot be continuously secured in the empty area 19 and / or the area including the normal determination area of the current or past SDA. Re-check the abnormal state of the area RAM_C, and rewrite the SDA specific address to a new area on the condition that the re-confirmed area becomes normal and the necessary area for the new SDA 17e can be secured. A secure SDA 17e is secured. For this reason, as a result of reconfirmation, if the necessary area of the new SDA 17e including the area determined to be normal can be continuously secured, the new SDA 17e can be secured by rewriting the SDA specific address. . For this reason, the possibility that normal control can be continued can be increased.

CPU7は、新たなSDA(例えば17e)の必要領域分の領域を確保できない場合には、フェールセーフ処理を実行指令するようにしている。このため、メモリ8の異常を確実に検出し、フェールセーフ処理を実施できる。   When the CPU 7 cannot secure an area for a new SDA (for example, 17e), an instruction to execute fail-safe processing is issued. For this reason, the abnormality of the memory 8 can be reliably detected and the fail-safe process can be performed.

(他の実施形態)
本発明は、前述した実施形態に限定されるものではなく、種々変形して実施することができ、その要旨を逸脱しない範囲で種々の実施形態に適用可能である。例えば、以下に示す変形又は拡張が可能である。
(Other embodiments)
The present invention is not limited to the above-described embodiments, can be implemented with various modifications, and can be applied to various embodiments without departing from the gist thereof. For example, the following modifications or expansions are possible.

例えば、特許文献1に示される技術を組み合わせて実行することもできる。特許文献1記載の技術によれば、例えば、制御用データ保存領域としての領域RAM_W、制御用ミラーデータ保存領域としての領域RAM_X、バックアップ用データ保存領域としての領域RAM_Y、バックアップ用ミラーデータ保存領域としての領域RAM_Z、に互いに一義的に導出可能な関係(例えば、互いに値が一致する関係となるミラーデータ、同一データ、またはビットデータを反転させた反転データ)があったときに、まず、CPUが領域RAM_W、RAM_Xのリードライトチェックをし、異常なしと判定されたことを条件として、領域RAM_W、RAM_Xのミラーチェックを行いミラーチェックを正常と判定したことを条件として通常制御を継続するが、領域RAM_W、RAM_Xに異常があったときにも領域RAM_Y、RAM_Zに異常がなければ、領域RAM_Y、RAM_Zのミラーチェックを行い、ミラー正常であれば領域RAM_Y、RAM_Zで領域RAM_W、RAM_Xを復旧する。   For example, the techniques disclosed in Patent Document 1 can be combined and executed. According to the technique described in Patent Document 1, for example, an area RAM_W as a control data storage area, an area RAM_X as a control mirror data storage area, an area RAM_Y as a backup data storage area, and a backup mirror data storage area When there is a relationship that can be uniquely derived from each other in the area RAM_Z (for example, mirror data having the same value, the same data, or inverted data obtained by inverting bit data), The area RAM_W and RAM_X are read / write-checked, and the normal control is continued on the condition that the mirror check of the area RAM_W and RAM_X is performed and the mirror check is determined to be normal if it is determined that there is no abnormality. Even if there is an error in RAM_W, RAM_X, if there is no error in area RAM_Y, RAM_Z, perform a mirror check of area RAM_Y, RAM_Z, Error normal, if it area RAM_Y, area in RAM_Z RAM_W, to recover the RAM_X.

すなわち、前述実施形態に示したミラーデータ以外にも、同一データ、または、ビットデータを反転させた反転データ、をSDA17又は非SDA18等の他の領域に同様に記憶させていれば、これらのデータを、汎用レジスタ15に退避したデータに代えて用いることで正確なデータを新たなSDA(例えば17b)に更新できる。   That is, in addition to the mirror data shown in the previous embodiment, if the same data or inverted data obtained by inverting bit data is stored in other areas such as SDA 17 or non-SDA 18 as well, these data are stored. Can be used in place of the data saved in the general-purpose register 15, so that accurate data can be updated to a new SDA (for example, 17b).

CPU7が、判定部、書換部、通常制御継続部、異常領域記憶制御部、カウント部、フェールセーフ指令部、再確認部としての機能を実現する形態を示しているが、これらの機能を他の装置と共に分割して協調動作するようにしても良い。   The CPU 7 shows a mode in which functions as a determination unit, a rewrite unit, a normal control continuation unit, an abnormal area storage control unit, a count unit, a fail safe command unit, and a reconfirmation unit are shown. It may be divided and cooperated with the apparatus.

前述実施形態では、SDA17のある領域(例えばRAM_A)に異常が生じたときに、汎用レジスタ15にミラーデータを退避して更新するようにしたが、異常が確認された領域(例えばRAM_B)の値を汎用レジスタ15に退避し、この退避した値をそのまま用いたり、その他例えばECC等のエラー訂正技術を用いてエラー訂正処理により更新しても良い。   In the above-described embodiment, when an abnormality occurs in a certain area (for example, RAM_A) of the SDA 17, mirror data is saved and updated in the general-purpose register 15, but the value of the area (for example, RAM_B) in which the abnormality is confirmed. May be saved in the general-purpose register 15, and the saved value may be used as it is, or may be updated by error correction processing using an error correction technique such as ECC.

図2のフローチャートに示した各処理は、実用的であれば処理順序を入れ替えて行っても良いし、その他、処理を削除したり可能な限り変更しても良い。例えば、CPU7がSDA17cを確保した後、図7に示すように領域RAM_Dに異常が生じたと判定されたときに、空き領域19が残存していないことを条件として新たなSDA17dを確保できないと判断することで、S8においてフェールセーフ処理を実行指令するようにしても良い。   Each processing shown in the flowchart of FIG. 2 may be performed by changing the processing order if practical, or the processing may be deleted or changed as much as possible. For example, after the CPU 7 secures the SDA 17c, when it is determined that an abnormality has occurred in the area RAM_D as shown in FIG. 7, it is determined that a new SDA 17d cannot be secured on condition that the free area 19 does not remain. Thus, the fail safe process may be commanded to be executed in S8.

また、例えば、CPU7がSDA17dを確保した後、図9に示すように領域RAM_Eに異常が生じたと判定されたときに、図2のS12〜S15に示す正常箇所の再確認処理を省いて、S8においてフェールセーフ処理を実行指令するようにしても良い。   Further, for example, when it is determined that an abnormality has occurred in the area RAM_E as shown in FIG. 9 after the CPU 7 secures the SDA 17d, the reconfirmation process of normal parts shown in S12 to S15 in FIG. The fail safe process may be instructed to execute at

前述した実施形態の各要素を組み合わせて構成しても良い。また、特許請求の範囲に記載した括弧内の符号は、本発明の一つの態様として前述する実施形態に記載の具体的手段との対応関係を示すものであって、本発明の技術的範囲を限定するものではない。前述実施形態の一部を、課題を解決できる限りにおいて省略した態様も実施形態と見做すことが可能である。また、特許請求の範囲に記載した文言によって特定される発明の本質を逸脱しない限度において、考え得るあらゆる態様も実施形態と見做すことが可能である。   You may comprise combining each element of embodiment mentioned above. Further, the reference numerals in parentheses described in the claims indicate the correspondence with the specific means described in the embodiment described above as one aspect of the present invention, and the technical scope of the present invention is It is not limited. An aspect in which a part of the above-described embodiment is omitted as long as the problem can be solved can be regarded as the embodiment. In addition, any conceivable aspect can be regarded as an embodiment as long as it does not depart from the essence of the invention specified by the words described in the claims.

本開示は、前述した実施形態に準拠して記述したが、本開示は当該実施形態や構造に限定されるものではないと理解される。本開示は、様々な変形例や均等範囲内の変形をも包含する。加えて、様々な組み合わせや形態、さらには、それらに一要素、それ以上、あるいはそれ以下、を含む他の組み合わせや形態をも、本開示の範畴や思想範囲に入るものである。   Although the present disclosure has been described based on the above-described embodiments, it is understood that the present disclosure is not limited to the embodiments and structures. The present disclosure includes various modifications and modifications within the equivalent range. In addition, various combinations and forms, as well as other combinations and forms including one element, more or less, are within the scope and spirit of the present disclosure.

図面中、1は電子制御装置、7はCPU(判定部、書換部、通常制御継続部、異常領域記憶制御部、カウント部、フェールセーフ指令部、再確認部)、16はSDA特定レジスタ(特定アドレス記憶部)、12はRAM、17、17a〜17eはSDA、19は空き領域、を示す。   In the drawing, 1 is an electronic control unit, 7 is a CPU (determination unit, rewrite unit, normal control continuation unit, abnormal area storage control unit, count unit, failsafe command unit, reconfirmation unit), and 16 is an SDA specific register (specification). Address storage unit), 12 indicates a RAM, 17, 17a to 17e indicate SDA, and 19 indicates an empty area.

Claims (8)

他の領域よりもアクセス速度が速く重要度の高いデータを保持するスモールデータ領域(以下、SDAと略す)に相対アドレス指定によりアクセスするための特定アドレスを記憶する特定アドレス記憶部(16)と、
前記SDAに異常を生じたか否かを判定する判定部(S1〜S3)と、
前記判定部により前記SDAに異常を生じたと判定されたときに前記特定アドレス記憶部のSDA特定アドレスを書き換えることで新たな前記SDAを確保する書換部(S10)と、
を備える電子制御装置。
A specific address storage unit (16) for storing a specific address for accessing a small data area (hereinafter abbreviated as SDA) having a higher access speed and higher importance than other areas by relative address designation;
A determination unit (S1 to S3) for determining whether or not an abnormality has occurred in the SDA;
A rewriting unit (S10) that secures a new SDA by rewriting the SDA specific address of the specific address storage unit when it is determined by the determination unit that an abnormality has occurred in the SDA;
An electronic control device comprising:
請求項1記載の電子制御装置において、
前記書換部によりSDA特定アドレスが書換えられ新たなSDAを確保可能なことを条件として異常時に処理するフェールセーフ処理を実行指令することなく通常時に処理する通常制御を継続する通常制御継続部(S4)をさらに備える電子制御装置。
The electronic control device according to claim 1,
Normal control continuation unit (S4) that continues normal control processing at normal time without commanding execution of fail-safe processing that is processed at the time of abnormality on condition that the SDA specific address is rewritten by the rewriting unit and a new SDA can be secured An electronic control device further comprising:
請求項1または2記載の電子制御装置において、
前記判定部により前記SDA(17、17a〜17d)に異常を生じたと判定された場合、
前記異常を生じた領域を記憶制御する異常領域記憶制御部(S5)をさらに備えることを特徴とする電子制御装置。
The electronic control device according to claim 1 or 2,
When it is determined by the determination unit that an abnormality has occurred in the SDA (17, 17a to 17d),
An electronic control apparatus further comprising an abnormal area storage control unit (S5) for storing and controlling the area where the abnormality has occurred.
請求項1から3の何れか一項に記載の電子制御装置において、
前記判定部により前記SDA(17、17a〜17d)に異常を生じたと判定された場合、異常回数をカウントするカウント部(S6)と、
前記異常回数が所定回数を超えたことを条件として異常時に処理するフェールセーフ処理を実行指令するフェールセーフ指令部(S8)と、
を備える電子制御装置。
The electronic control device according to any one of claims 1 to 3,
A count unit (S6) that counts the number of abnormalities when the determination unit determines that an abnormality has occurred in the SDA (17, 17a to 17d);
A fail-safe command section (S8) for commanding execution of fail-safe processing for processing at the time of abnormality on condition that the number of times of abnormality exceeds a predetermined number of times
An electronic control device comprising:
請求項1から4の何れか一項に記載の電子制御装置において、
前記判定部により前記SDA(17a)に異常を生じたと判定された場合、
前記書換部は、新たなSDA(17b)の必要領域分の領域を空き領域(19)に連続的に確保可能なことを条件として、前記SDA特定アドレスを書換える(S10)ことで前記空き領域に新たなSDAを確保する電子制御装置。
The electronic control device according to any one of claims 1 to 4,
When it is determined by the determination unit that an abnormality has occurred in the SDA (17a),
The rewriting unit rewrites the SDA specific address (S10) by rewriting the SDA specific address on condition that the space for the necessary area of the new SDA (17b) can be continuously secured in the free area (19). Electronic control device that secures new SDA.
請求項1から4の何れか一項に記載の電子制御装置において、
前記判定部により前記SDA(17c)に異常を生じたと判定された場合、
前記書換部は、新たなSDA(17d)の必要領域分の領域を、空き領域(19)、又は/及び、現在又は過去のSDA(17b、17c)の正常判断領域を含めた領域に連続的に確保可能なことを条件として、前記SDA特定アドレスを書換えることで当該領域に新たなSDA(17d)を確保する電子制御装置。
The electronic control device according to any one of claims 1 to 4,
When it is determined by the determination unit that an abnormality has occurred in the SDA (17c),
The rewriting unit continuously allocates a necessary area of a new SDA (17d) to an area including a free area (19) and / or a normal determination area of a current or past SDA (17b, 17c). An electronic control unit that secures a new SDA (17d) in the area by rewriting the SDA specific address on the condition that it can be secured.
請求項1から4の何れか一項に記載の電子制御装置において、
前記判定部により前記SDA(17d)に異常を生じたと判定された場合、
新たなSDA(17e)の必要領域分の領域を、空き領域、又は/及び、現在又は過去のSDAの正常判断領域を含めた領域に連続的に確保できないことを条件として、過去に異常判定された領域(RAM_C)の異常状態を再確認する再確認部(S12)をさらに備え、
前記書換部は、前記再確認部により再確認された領域が正常となり且つ前記新たなSDAの必要領域分の領域を連続的に確保可能となることを条件として、前記SDA特定アドレスを書換えることで当該領域に前記新たなSDAを確保する電子制御装置。
The electronic control device according to any one of claims 1 to 4,
When it is determined by the determination unit that an abnormality has occurred in the SDA (17d),
In the past, an abnormal determination is made on the condition that the necessary area of the new SDA (17e) cannot be continuously secured in the empty area and / or the area including the normal determination area of the current or past SDA. A reconfirmation unit (S12) for reconfirming the abnormal state of the area (RAM_C),
The rewriting unit rewrites the SDA specific address on condition that the area reconfirmed by the reconfirming part becomes normal and it is possible to continuously secure an area for the necessary area of the new SDA. An electronic control unit that secures the new SDA in the area.
請求項5から7の何れか一項に記載の電子制御装置において、
異常時に処理するフェールセーフ処理を実行指令するフェールセーフ指令部(S8)をさらに備え、
前記フェールセーフ指令部は、前記新たなSDAの必要領域分の領域を確保できない場合には異常時に処理するフェールセーフ処理を実行指令する電子制御装置。
In the electronic control unit according to any one of claims 5 to 7,
A fail-safe command unit (S8) for commanding execution of fail-safe processing to be performed when an abnormality occurs;
The fail-safe command unit is an electronic control device that commands execution of fail-safe processing that is performed when an abnormality occurs when an area corresponding to the necessary area of the new SDA cannot be secured.
JP2016200830A 2016-10-12 2016-10-12 Electronic control apparatus Pending JP2018063527A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2016200830A JP2018063527A (en) 2016-10-12 2016-10-12 Electronic control apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2016200830A JP2018063527A (en) 2016-10-12 2016-10-12 Electronic control apparatus

Publications (1)

Publication Number Publication Date
JP2018063527A true JP2018063527A (en) 2018-04-19

Family

ID=61967856

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2016200830A Pending JP2018063527A (en) 2016-10-12 2016-10-12 Electronic control apparatus

Country Status (1)

Country Link
JP (1) JP2018063527A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113491115A (en) * 2019-03-06 2021-10-08 Lg 电子株式会社 Image decoding method and device based on CCLM prediction

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113491115A (en) * 2019-03-06 2021-10-08 Lg 电子株式会社 Image decoding method and device based on CCLM prediction

Similar Documents

Publication Publication Date Title
KR102278398B1 (en) Refresh of a storage area of a non-volatile random access memory
KR20130031888A (en) How to Monitor Data Memory
JP4789420B2 (en) Data processing apparatus for vehicle control system
US20090327838A1 (en) Memory system and operating method for it
JP2018063527A (en) Electronic control apparatus
JP6663371B2 (en) Electronic control unit
JP5915490B2 (en) Electronic control unit
WO2018079537A1 (en) Electronic control unit and data protection method therefor
JP6611877B1 (en) Semiconductor integrated circuit and rotation detection device
US8190971B2 (en) Data processing system and method for operating a data processing system
JP2004151944A (en) Method for writing data in non-volatile storage device, its program and device, and onboard electronic controller
JP2018134964A (en) Electronic control unit for automobile
JP2013171467A (en) Information processing device, electronic control device for vehicle, and data read-write method
JP3296043B2 (en) Vehicle electronic control unit
JP6159668B2 (en) Vehicle control device
JP7029366B2 (en) Electronic control device for automobiles
US12272187B2 (en) Information processing apparatus and information processing method
US9773562B2 (en) Storage apparatus, flash memory control apparatus, and program
JP7007223B2 (en) Control device and abnormality detection method
US8095262B2 (en) Vehicular control apparatus and program storage medium
JP6317653B2 (en) Electronic control device for automobile and data storage method
JP2006163811A (en) Data control method of nonvolatile memory
JP6363044B2 (en) Control device
US20240419335A1 (en) Nand storage device
JP4353126B2 (en) Vehicle state determination device