JP2006286111A - Management apparatus of semiconductor memory - Google Patents
Management apparatus of semiconductor memory Download PDFInfo
- Publication number
- JP2006286111A JP2006286111A JP2005105965A JP2005105965A JP2006286111A JP 2006286111 A JP2006286111 A JP 2006286111A JP 2005105965 A JP2005105965 A JP 2005105965A JP 2005105965 A JP2005105965 A JP 2005105965A JP 2006286111 A JP2006286111 A JP 2006286111A
- Authority
- JP
- Japan
- Prior art keywords
- semiconductor memory
- data
- eeprom
- abnormality
- writing
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Images
Abstract
Description
本発明は、半導体メモリの管理装置に関するものである。 The present invention relates to a semiconductor memory management device.
近年、種々の製品に電子制御ユニットが搭載されており、この電子制御ユニットは必要に応じてデータを一時的に記憶する半導体メモリ(例えばRAMやEEPROM、フラッシュメモリ等)を備えている。 In recent years, an electronic control unit is mounted on various products, and the electronic control unit includes a semiconductor memory (for example, a RAM, an EEPROM, a flash memory, or the like) that temporarily stores data as necessary.
こうした半導体メモリの異常を判定する方法として、例えば特許文献1に記載されるパリティチェックといった方法を挙げることができる。その他の異常判定方法として、半導体メモリの記憶領域を二つの領域に区分してそれら各領域に同一のデータをそれぞれ書き込むとともに、それらを読み込み、そのデータの示す記憶内容が異なっている場合には半導体メモリが異常であると判定する等の異常判定手法も従来から採用されている。
ここで、半導体メモリの異常としては、同メモリに物理的な異常が生じているため、正常な記憶機能が失われている場合(物理的異常)と、書き込みエラーや読み込みエラー、或いは正常に書き込まれたデータがノイズ等の影響により破損する、いわゆるデータ化け等によって記憶されているデータの信頼性が一時的に低下しているものの、その記憶機能は正常である場合(記憶内容異常)とがある。当然ながら、後者の場合にあっては再び半導体メモリにデータを書き込むことにより、その後は同半導体メモリを支障なく使用することができ、これを交換する必要もない。 Here, as an abnormality of the semiconductor memory, a physical abnormality has occurred in the memory, so that a normal storage function is lost (physical abnormality), a writing error, a reading error, or a normal writing The stored data is damaged due to noise, etc., or the reliability of the stored data is temporarily lowered due to so-called garbled data, etc., but the storage function is normal (memory content abnormality). is there. Of course, in the latter case, by writing data into the semiconductor memory again, the semiconductor memory can be used without any trouble thereafter, and it is not necessary to replace it.
しかしながら、半導体メモリの二つの記憶領域に書き込まれているデータの示す記憶内容が異なっていることをもって、半導体メモリが異常であると判定する従来の異常判定手法にあっては、上述したような二つの半導体メモリの異常について峻別することができない。すなわち、従来の異常判定手法では、単に読み込んだ二つのデータの示す記憶内容が異なっていることをもって異常であると判定するものであるため、半導体メモリの記憶機能が正常に機能していないために二つのデータの示す記憶内容がいずれも真値と異なっている物理異常と、二つのデータのうちの一方がデータ化け等によって真値と異なっている記憶内容異常とを区別することができず、したがってそれら各異常に応じてこれを適切に対応することもできない。 However, in the conventional abnormality determination method for determining that the semiconductor memory is abnormal because the storage contents indicated by the data written in the two storage areas of the semiconductor memory are different, the above-described two abnormality determination methods are used. The abnormality of two semiconductor memories cannot be distinguished. That is, in the conventional abnormality determination method, it is determined that there is an abnormality when the stored contents indicated by the two read data are different, so the storage function of the semiconductor memory does not function normally. It is not possible to distinguish between a physical abnormality in which the storage contents indicated by the two data are both different from the true value and a storage abnormality in which one of the two data is different from the true value due to data corruption, Therefore, this cannot be appropriately dealt with according to each abnormality.
本発明は、そうした実情に鑑みてなされたものであり、その目的は、半導体メモリに物理的な異常が発生した場合にその異常を精度よく判定することができる半導体メモリの管理装置を提供することにある。 The present invention has been made in view of such circumstances, and an object of the present invention is to provide a semiconductor memory management device capable of accurately determining an abnormality when a physical abnormality occurs in the semiconductor memory. It is in.
以下、上記目的を達成するための手段及びその作用効果について説明する。
先ず、請求項1に記載の発明は、電子制御ユニットに設けられて所定のデータを書き込み可能な半導体メモリの管理装置において、前記半導体メモリの記憶領域を三つ以上の領域に分割しそれら分割された記憶領域に同一のデータを書き込む書き込み手段と、それら書き込まれたデータを各記憶領域から読み込み、同一の記憶内容を示すデータの数が前記記憶領域の分割数よりも小さい所定の判定値未満であることに基づいて半導体メモリが異常である旨判定する異常判定手段とを備えることをその要旨とする。
Hereinafter, means for achieving the above-described object and its operation and effects will be described.
First, in the semiconductor memory management device provided in the electronic control unit and capable of writing predetermined data, the storage area of the semiconductor memory is divided into three or more areas and divided. Writing means for writing the same data in the storage area, and reading the written data from each storage area, and the number of data indicating the same storage content is less than a predetermined determination value smaller than the number of divisions of the storage area The gist of the invention is to include an abnormality determination unit that determines that the semiconductor memory is abnormal based on a certain fact.
上記構成によれば、仮に書き込みエラーや読み込みエラー、或いは正常に書き込まれたデータがノイズ等の影響により破損する、いわゆるデータ化け等が発生したとしても、これが限られた記憶領域にのみ発生しており、残りの記憶領域に書き込まれたデータの記憶内容が一致している場合には、半導体メモリには物理的な異常が生じておらず、その記憶機能は維持されていると判断することができる。したがって、半導体メモリに記憶されているデータの信頼性が一時的に低下したことをもって、それが異常であると誤判定されるのを好適に回避することができ、同半導体メモリの記憶機能が失われるような物理的な異常が発生した場合にこれを精度よく判定することができるようになる。 According to the above configuration, even if a so-called garbled data, such as a write error or a read error, or data that is normally written is damaged due to the influence of noise or the like, this occurs only in a limited storage area. If the storage contents of the data written in the remaining storage areas match, it can be determined that there is no physical abnormality in the semiconductor memory and that the storage function is maintained. it can. Therefore, it is possible to preferably avoid erroneous determination that the data stored in the semiconductor memory is abnormal due to a temporary decrease in the reliability of the data stored in the semiconductor memory, and the storage function of the semiconductor memory is lost. If a physical abnormality such as this occurs, this can be accurately determined.
なお、異常を判定する時期としては、例えば、半導体メモリにデータの書き込み処理を行う必要が生じた場合においてその書き込み直後、或いは半導体メモリに記憶されているデータを読み込む処理を行う必要が生じた際にそれに併せて行うようにするのが望ましい。また、こうしたデータの書き込み処理や読み込み処理とは別に所定期間が経過する毎に異常判定を行うようにすることもできる。 The timing for determining the abnormality is, for example, when it is necessary to perform a data writing process on the semiconductor memory, or immediately after the writing or when it is necessary to perform a process of reading data stored in the semiconductor memory. In addition, it is desirable to carry out it together. In addition to the data writing process and the data reading process, the abnormality determination can be performed every time a predetermined period elapses.
また、請求項2に記載の発明は、請求項1に記載の半導体メモリの管理装置において、前記異常判定手段は前記判定値を前記記憶領域の分割数の半数よりも大きい値に設定することをその要旨とする。 According to a second aspect of the present invention, in the semiconductor memory management device according to the first aspect, the abnormality determining means sets the determination value to a value larger than half of the number of divisions of the storage area. The gist.
ここで、上記判定値を大きな値に設定し、同一の記憶内容を示すデータの数が相対的に多い場合であっても半導体メモリが異常である旨判定するようにした場合には、実際に半導体メモリに物理的な異常が発生している場合にはこれを早期に判定することができるものの、上述したようなデータ化け等による誤判定の可能性は高くなる。一方、上記判定値を小さな値に設定し、同一の記憶内容を示すデータの数が相対的に少ない場合にのみ半導体メモリが異常である旨判定するようにした場合には、上述したようなデータ化け等による誤判定を回避することができるようになるものの、実際に半導体メモリに物理的な異常が発生している場合にはその判定が遅れるようになる。 Here, when the determination value is set to a large value and it is determined that the semiconductor memory is abnormal even when the number of data indicating the same stored content is relatively large, If a physical abnormality has occurred in the semiconductor memory, this can be determined at an early stage, but the possibility of erroneous determination due to data corruption as described above increases. On the other hand, when the determination value is set to a small value and it is determined that the semiconductor memory is abnormal only when the number of data indicating the same storage content is relatively small, the data as described above Although it becomes possible to avoid erroneous determination due to garbled or the like, the determination is delayed when a physical abnormality actually occurs in the semiconductor memory.
この点に鑑み、請求項2に記載の構成では、上記判定値が記憶領域の分割数の半数よりも大きい値に設定されているため、データ化け等による誤判定を極力抑制しつつ、半導体メモリに物理的な異常が生じた場合にその異常を極力早期に判定することができるようになる。 In view of this point, in the configuration according to claim 2, since the determination value is set to a value larger than half of the number of divisions of the storage area, the semiconductor memory is suppressed while minimizing erroneous determination due to data corruption or the like. When a physical abnormality occurs, the abnormality can be determined as early as possible.
また、請求項3に記載の発明は、請求項1又は2に記載の半導体メモリの管理装置において、前記半導体メモリは不揮発性の半導体メモリであり、前記電子制御ユニットは揮発性半導体メモリを備え、前記書き込み手段は前記揮発性半導体メモリに記憶されているデータを前記半導体メモリに書き込むとともに、前記異常判定手段により異常がない旨の判定がなされていることを条件に前記半導体メモリに記憶されている前記同一の記憶内容を示すデータを前記揮発性半導体メモリに書き込むことをその要旨とする。 According to a third aspect of the present invention, in the semiconductor memory management device according to the first or second aspect, the semiconductor memory is a non-volatile semiconductor memory, and the electronic control unit includes a volatile semiconductor memory, The writing means writes the data stored in the volatile semiconductor memory to the semiconductor memory and is stored in the semiconductor memory on the condition that the abnormality determining means determines that there is no abnormality. The gist is to write the data indicating the same storage contents into the volatile semiconductor memory.
同構成によれば、揮発性半導体メモリに記憶されているデータが消失する、或いはそのデータの信頼性が低下することがあっても、そのデータは不揮発性の半導体メモリに記憶されているため、そのデータを再度、揮発性半導体メモリに書き込むことによりデータの回復を図ることができる。またこの際、仮に半導体メモリの限られた記憶領域にデータ化け等が生じていたとしても、異常判定手段により異常がない旨判定されている場合には、半導体メモリの各記憶領域に書き込まれているデータのうち同一の記憶内容を示すデータを揮発性半導体メモリに記憶するようにしている。このため、例えば、半導体メモリを二つの記憶領域に区分し両記憶領域に記憶されているデータの示す記憶内容が異なることをもって半導体メモリが異常である旨判定するようにした構成とは異なり、高い信頼性をもってデータの回復を行うことができるようになる。 According to this configuration, even if the data stored in the volatile semiconductor memory is lost or the reliability of the data is reduced, the data is stored in the nonvolatile semiconductor memory. The data can be recovered by writing the data to the volatile semiconductor memory again. At this time, even if data is garbled in a limited storage area of the semiconductor memory, if it is determined by the abnormality determination means that there is no abnormality, the data is written in each storage area of the semiconductor memory. Among the existing data, data indicating the same storage content is stored in the volatile semiconductor memory. Therefore, for example, unlike a configuration in which the semiconductor memory is divided into two storage areas and the storage contents indicated by the data stored in both storage areas are different, the semiconductor memory is determined to be abnormal. Data recovery can be performed with reliability.
また、請求項4に記載の発明は、請求項3に記載の半導体メモリの管理装置において、
前記電子制御ユニットは車両に搭載されて同車両のバッテリから前記揮発性半導体メモリに常時給電してその記憶内容を保持し、前記書き込み手段は前記車両の走行履歴に関する情報を前記データとして前記各メモリに書き込むものであり、前記異常判定手段によって前記半導体メモリに異常がある旨の判定がなされたときにその異常を報知する報知手段を更に備えることをその要旨とする。
According to a fourth aspect of the present invention, in the semiconductor memory management device according to the third aspect,
The electronic control unit is mounted on a vehicle and constantly supplies power from the battery of the vehicle to the volatile semiconductor memory and retains the stored contents thereof. The writing means stores information on the traveling history of the vehicle as the data. The gist of the present invention is that it further comprises notification means for notifying the abnormality when the abnormality determination means determines that the semiconductor memory is abnormal.
同構成によれば、半導体メモリに異常が生じた場合、これが報知手段を通じて報知されるため、それに基づいて適切な対処が可能になる。例えば、異常が報知されたとき、揮発性半導体メモリに保持されているデータを別の記憶媒体に複写するとともに、半導体メモリを正常なものに交換し、その後、その正常な半導体メモリに上記記憶媒体からデータを複写するなど、車両走行履歴情報を適切に保持することが可能になる。なお、こうした車両走行履歴情報としては、例えば、車両の総走行距離、排気浄化触媒の劣化履歴、総燃料噴射量、総機関回転数、車両状態に関する各種学習結果等々を挙げることができる。また、異常を報知する際の具体的態様としては、警告灯の点灯、警告ブザーの吹聴、或いは車両に関する情報を表示する画面を有したシステムを備える車両にあっては、その表示画面に異常がある旨の表示させる、といった方法を挙げることができる。 According to this configuration, when an abnormality occurs in the semiconductor memory, this is notified through the notification means, so that appropriate measures can be taken based on the notification. For example, when an abnormality is notified, the data held in the volatile semiconductor memory is copied to another storage medium, the semiconductor memory is replaced with a normal one, and then the storage medium is stored in the normal semiconductor memory. It is possible to appropriately retain the vehicle travel history information such as copying data from the vehicle. Examples of such vehicle travel history information include the total travel distance of the vehicle, the deterioration history of the exhaust purification catalyst, the total fuel injection amount, the total engine speed, and various learning results relating to the vehicle state. Further, as a specific mode for notifying an abnormality, in a vehicle having a system having a screen for displaying information on the lighting of a warning light, a warning buzzer, or information on the vehicle, the display screen has an abnormality. A method of displaying a certain effect can be given.
以下、本発明にかかる半導体メモリの管理装置を具体化した一実施の形態について説明する。
先ず、本実施の形態にかかる管理装置の適用される電子制御ユニットの概略構成について説明する。
DESCRIPTION OF THE PREFERRED EMBODIMENTS An embodiment of a semiconductor memory management device according to the present invention will be described below.
First, a schematic configuration of an electronic control unit to which the management device according to the present embodiment is applied will be described.
図1に示すように、電子制御ユニット20は車載の内燃機関10に設けられて、例えば燃料噴射制御などの各種の機関制御を実行する。なお、内燃機関10の排気通路11には、排気を浄化するための排気浄化触媒12、及び同排気浄化触媒12の温度を検出するための温度センサ13が設けられている。温度センサ13の検出信号は電子制御ユニット20に取り込まれている。車室内には、後述するEEPROM25の異常時に点灯する報知手段としての警告灯18が設けられている。
As shown in FIG. 1, the
電子制御ユニット20は、ROM21、CPU22、RAM23、スタンバイRAM(以下、SRAM)24、EEPROM25等を備えている。それらROM21、CPU22、RAM23、SRAM24及びEEPROM25は、バス26を介して互いに接続されている。この電子制御ユニット20にはメインリレー15を介してバッテリ16が接続されている。メインスイッチ17のオン操作によって上記メインリレー15がオン操作されることにより、バッテリ16から電子制御ユニット20に電力が供給される。
The
ROM21は各種制御プログラムや、それら各種制御プログラムを実行する際に参照されるマップ等が記憶された読み出し専用の半導体メモリである。CPU22はROM21に記憶された各種制御プログラムやマップに基づいて演算処理を実行する。RAM23、SRAM24及びEEPROM25は書き込み可能な半導体メモリである。これらRAM23、SRAM24及びEEPROM25には、CPU22での演算結果や各種のセンサから入力されたデータ等が一時的に記憶される。
The
なお、RAM23及びSRAM24は揮発性の半導体メモリであり、EEPROM25は不揮発性の半導体メモリである。ただし、SRAM24には上記バッテリ16が常時接続されて、同バッテリ16から電力が常時供給されている。これにより、SRAM24に記憶されたデータはメインスイッチ17がオフ操作されて機関運転が停止されたときにも保持されるようになっている。
Note that the
このSRAM24には、車両の走行履歴に関する情報など、長期にわたって更新され続けるデータ(以下、特定データ)が記憶される。車両の走行履歴に関する情報としては、例えば総走行距離や、排気浄化触媒12の劣化履歴、総燃料噴射量、総機関回転速度、車両状態に関する各種学習値等が挙げられる。ちなみに、上記排気浄化触媒12の劣化履歴としては、同排気浄化触媒12の熱劣化にかかる学習値(劣化学習値ΣR)が算出されている。具体的には、排気浄化触媒12の温度に基づいて劣化値Rが算出され、同劣化値Rを積算した値が劣化学習値ΣRとして算出される。
The
また、上記特定データはEEPROM25にも記憶される。これは、上記バッテリ16が取り外されてSRAM24に電力が供給されなくなったり、SRAM24の異常時にこれが初期化されたりして、SRAM24内の特定データが消失した場合に、EEPROM25に記憶させておいた特定データをSRAM24に書き込むことによって、同SRAM24の特定データを回復させるためである。
The specific data is also stored in the
ところで、このように特定データをEEPROM25に記憶しておいても、同EEPROM25が故障していたのでは意味がない。そのため本実施の形態では、EEPROM25の異常を判定する異常判定が実行される。そして、この異常判定においてEEPROM25が異常でない旨判定されていることを条件に、SRAM24に記憶されている特定データの上記EEPROM25への書き込みや、EEPROM25に記憶しておいた特定データの上記SRAM24への書き込みが実行される。
By the way, even if the specific data is stored in the
以下、本実施の形態の異常判定にかかる処理の具体的な処理手順について説明する。
なお、本実施の形態では、異常判定にかかる処理として、特定データのEEPROM25への書き込み処理の一環として実行される異常判定処理と、特定データのEEPROM25からの読み込み処理の一環として実行される異常判定処理との二つの処理が実行される。
Hereinafter, a specific processing procedure of processing relating to abnormality determination according to the present embodiment will be described.
In the present embodiment, as abnormality determination processing, abnormality determination processing executed as part of processing for writing specific data into the
ここでは先ず、EEPROM25への書き込み処理の一環として実行される異常判定処理について、図2に示すフローチャートを参照して説明する。
なお、このフローチャートに示される一連の処理は、上記書き込み処理の具体的な処理手順を示しており、所定周期毎の処理として電子制御ユニット20により実行される。
First, the abnormality determination process executed as part of the writing process to the
A series of processing shown in this flowchart shows a specific processing procedure of the writing processing, and is executed by the
図2に示すように、この処理では先ず、特定データの上記EEPROM25への書き込みを行うタイミングであるか否かが判断される(ステップS100)。ここでは、例えば前回EEPROM25への書き込みが行われた後に所定時間が経過したこと等、所定期間が経過したことをもって、書き込みを行うタイミングであると判断される。そして、同タイミングである場合には(ステップS100:YES)、同一の特定データ(例えばSRAM24に記憶されている劣化学習値ΣR)がEEPROM25の三つの記憶領域イ,ロ,ハ(図1参照)にそれぞれ書き込まれる(ステップS102)。本実施の形態では、このステップS102の処理が、半導体メモリの記憶領域を三つ以上の領域に分割しそれら分割された記憶領域に同一のデータを書き込む書き込み手段として機能する。
As shown in FIG. 2, in this process, it is first determined whether or not it is time to write specific data to the EEPROM 25 (step S100). Here, for example, when a predetermined period has elapsed such as the elapse of a predetermined time after the previous writing to the
その後、各記憶領域イ,ロ,ハに書き込まれたデータをもとに異常判定処理(ステップS104〜S108)が実行される。本実施の形態では、この異常判定処理が、半導体メモリが異常である旨判定する異常判定手段として機能する。 Thereafter, an abnormality determination process (steps S104 to S108) is executed based on the data written in the storage areas A, B, and C. In the present embodiment, this abnormality determination process functions as an abnormality determination unit that determines that the semiconductor memory is abnormal.
具体的には先ず、各記憶領域イ,ロ,ハに書き込まれたデータがそれぞれ読み込まれて比較され、それらデータうちの二つ以上のデータが同一の記憶内容を示している、すなわち一致しているか否かが判断される(ステップS104)。 Specifically, first, the data written in each storage area (a), (b), (c) is read and compared, and two or more of the data indicate the same stored contents, that is, match. It is determined whether or not there is (step S104).
そして、図3の「パターンa」に例示するように、全てのデータが一致している場合には(図2のステップS104:YES)、書き込みが正常に行われており、EEPROM25が正常であると判定される(ステップS106)。
Then, as illustrated in “pattern a” in FIG. 3, when all the data match (step S <b> 104 in FIG. 2: YES), writing is performed normally and the
また、図3の「パターンb」に例示するように、二つのデータのみが一致する場合にも(図2のステップS104:YES)、EEPROM25が正常であると判定される(ステップS106)。
Further, as illustrated in “pattern b” in FIG. 3, even when only two pieces of data match (step S104 in FIG. 2: YES), it is determined that the
一方、図3の「パターンc」に例示するように、全てのデータが不一致である場合には(図2のステップS104:YES)、データを正常に書き込めない状態になっていると判断され、EEPROM25が異常であると判定される(ステップS108)。
On the other hand, as illustrated in “pattern c” in FIG. 3, when all the data do not match (step S104 in FIG. 2: YES), it is determined that the data cannot be normally written, It is determined that the
このようにEEPROM25が正常であると判定される、或いは異常であると判定された後、本処理は一旦終了される。
なお本処理においてEEPROM25が異常であると判定された場合には、別途の処理を通じて、前記警告灯18が点灯される。また以後において、SRAM24に記憶されている特定データの上記EEPROM25への書き込み、及びEEPROM25に記憶しておいた特定データの上記SRAM24への書き込みが禁止される。
As described above, after it is determined that the
If it is determined in this process that the
ちなみに、EEPROM25が異常であると判定されると、同EEPROM25は次のような手順で交換される。すなわち先ず、電子制御ユニット20に記憶媒体としての外部装置が接続され、SRAM24に保持されている特定データが同外部装置に複写される。次に、EEPROM25が正常なものに交換され、その後、その正常なEEPROM25に上記外部装置から特定データが複写される。こうした交換作業を通じて特定データが適切に保持される。
Incidentally, if it is determined that the
次に、EEPROM25からの読み込み処理の一環として実行される異常判定処理について、図4に示すフローチャートを参照して説明する。
なお、このフローチャートに示される一連の処理は、上記読み込み処理の具体的な処理手順を示しており、所定周期毎の処理として電子制御ユニット20により実行される。
Next, the abnormality determination process executed as part of the reading process from the
Note that a series of processing shown in this flowchart shows a specific processing procedure of the reading processing, and is executed by the
図4に示すように、この処理では先ず、特定データの上記EEPROM25からの読み込みを行うタイミングであるか否かが判断される(ステップS200)。ここでは、以下の条件が共に満たされたことをもって、読み込みを行うタイミングであると判断される。
・SRAM24が初期化された履歴があること。なお、SRAM24の初期化は、バッテリ16の交換等によってSRAM24への電力供給が一時的に停止されたり、別途の処理においてSRAM24の異常が判定されたりしたときに実行される。
・SRAM24が初期化された後に、EEPROM25に記憶されている特定データを読み込んだ履歴がないこと。
As shown in FIG. 4, in this process, it is first determined whether or not it is time to read specific data from the EEPROM 25 (step S200). Here, when both of the following conditions are satisfied, it is determined that the read timing is reached.
-There is a history that the
-There is no history of reading the specific data stored in the
そして、読み込みを行うタイミングである場合には(ステップS200:YES)、EEPROM25の三つの記憶領域イ,ロ,ハ(図1参照)に記憶されているデータがそれぞれ読み込まれる(ステップS202)。
If it is time to read data (step S200: YES), the data stored in the three storage areas A, B, and C (see FIG. 1) of the
その後、記憶領域イ,ロ,ハから読み込まれたデータをもとに、異常判定処理(ステップ204,S206,S210)が実行される。具体的には先ず、各記憶領域イ,ロ,ハから読み込まれたデータの二つ以上が一致しているか否かが判断される(ステップS204)。
Thereafter, an abnormality determination process (
そして、図5の「パターンd」に例示するように、全てのデータが一致する場合には(図4のステップS204:YES)、読み込みが正常に行われており、EEPROM25が正常であると判定される(ステップS206)。この場合、読み込まれたデータのいずれかがSRAM24の記憶領域に書き込まれる(ステップS208)。
Then, as illustrated in “pattern d” in FIG. 5, when all the data match (step S <b> 204 in FIG. 4: YES), it is determined that the reading is performed normally and the
また、図5の「パターンe」に例示するように、二つのデータのみが一致する場合にも(図4のステップS204:YES)、EEPROM25が正常であると判定される(ステップS206)。そして、この場合には一致するデータが正常なデータであるとしてSRAM24の記憶領域に書き込まれる(ステップS208)。
Further, as exemplified in the “pattern e” of FIG. 5, even when only two data match (step S204: YES in FIG. 4), it is determined that the
一方、図5の「パターンf」に例示するように、全てのデータが不一致である場合には(図4のステップS204:YES)、データの読み込みを正常に行えない状態になっていると判断され、EEPROM25が異常であると判定される(ステップS210)。そして、この場合には、予め定められた初期値がSRAM24の記憶領域に書き込まれる(ステップS212)。
On the other hand, as illustrated in “pattern f” in FIG. 5, when all the data do not match (step S <b> 204 in FIG. 4: YES), it is determined that the data cannot be read normally. Then, it is determined that the
このように、一致するデータまたは初期値がSRAM24に書き込まれた後、本処理は一旦終了される。
なお本処理においてEEPROM25が異常であると判定された場合にも、別途の処理を通じて、前記警告灯18が点灯される。また以後において、SRAM24に記憶されている特定データの上記EEPROM25への書き込みや、EEPROM25に記憶しておいた特定データの上記SRAM24への書き込みが禁止される。
As described above, after the matching data or the initial value is written in the
Even when it is determined in this process that the
以下、本実施の形態の異常判定処理を実行することによる作用について説明する。
上記異常判定処理によれば、仮に書き込みエラーや読み込みエラー、或いは正常に書き込まれたデータがノイズ等の影響により破損する、いわゆるデータ化け等が発生したとしても、これが一つの記憶領域のデータについてのみ発生する場合には、残り二つの記憶領域から読み込まれたデータの一致をもって、EEPROM25に物理的な異常が生じていないと判断することができる。そして、この場合、EEPROM25に記憶されているデータの信頼性が一時的に低下しているものの、その記憶機能は維持されているとして、同EEPROM25に正常であると判定することができる。
Hereinafter, an effect of executing the abnormality determination process of the present embodiment will be described.
According to the above abnormality determination process, even if a so-called garbled data or the like occurs if a write error or read error or data written normally is damaged due to the influence of noise or the like, this is only for data in one storage area. If it occurs, it can be determined that there is no physical abnormality in the
したがって、EEPROM25に記憶されているデータの信頼性が一時的に低下したことをもってそれが異常であると誤判定されるのを好適に回避することができるようになり、同EEPROM25の記憶機能が失われるような物理的な異常が発生した場合にこれを精度よく判定することができるようになる。
Therefore, it is possible to preferably avoid erroneous determination that the data stored in the
また、上記異常判定処理によって正常であると判定されていることを条件に、EEPROM25の各記憶領域イ,ロ,ハから読み込まれたデータのうちの一致するデータがSRAM24に書き込まれる。これにより、上記データ化け等が一つの記憶領域のデータについてのみ発生する場合には、残り二つの記憶領域から読み込まれた一致するデータが正常なデータとしてSRAM24に書き込まれるようになる。したがって、例えばEEPROMの二つの記憶領域に同一のデータを書き込んだ後に両領域から読み込んだデータの示す記憶内容が異なることをもってEEPROMが異常である旨判定するようにした構成とは異なり、SRAM24への特定データの書き込み、ひいては特定データの回復を高い信頼性をもって行うことができるようになる。
On the condition that it is determined to be normal by the abnormality determination process, the matching data among the data read from the storage areas A, B, C of the
以上説明したように、本実施の形態によれば、以下に記載する効果が得られるようになる。
(1)EEPROM25の記憶機能が失われるような物理的な異常が発生した場合にこれを精度よく判定することができるようになる。
As described above, according to the present embodiment, the effects described below can be obtained.
(1) When a physical abnormality occurs that causes the storage function of the
(2)高い信頼性をもって、SRAM24の特定データの回復を行うことができるようになる。
(3)EEPROM25が異常であると判定されたときに警告灯18を点灯させるようにしたために、その点灯によって異常である旨を運転者に認知させることができ、例えばディーラへの車両の持ち込みを促す等、適切な対処が可能になる。
(2) The specific data in the
(3) Since the warning
なお、上記実施の形態は、以下のように変更して実施してもよい。
・警告灯18を点灯させることに代えて、警告ブザーを吹聴させるようにしてもよい。その他、例えばナビゲーションシステム等といった車両に関する情報を表示する画面を有したシステムを備える車両にあって、その表示画面に異常がある旨の表示させることも可能である。要は、EEPROM25が異常である旨が判定されたときにその異常を報知することができればよい。また、EEPROM25が異常である旨を報知する構成を省略することも可能である。
The embodiment described above may be modified as follows.
-Instead of turning on the warning
・書き込み処理の一環として実行される異常判定処理(図2)、及び読み込み処理の一環として実行される異常判定処理(図4)のうちの何れか一方のみを実行するようにしてもよい。 Only one of the abnormality determination process (FIG. 2) executed as part of the writing process and the abnormality determination process (FIG. 4) executed as part of the read process may be executed.
・異常判定処理を、所定期間が経過する毎に実行される処理として、書き込み処理や読み込み処理とは別に実行するようにしてもよい。
・同一の特定データをEEPROM25の三つの記憶領域イ,ロ,ハに書き込むようにしたが、これを四つ以上の記憶領域に書き込むようにしてもよい。同構成にあっては、同一の特定データが書き込まれる記憶領域数よりも小さい所定の判定値を設定し、各記憶領域から読み込まれるデータのうちの一致するデータの数が同判定値未満であることに基づいてEEPROM25が異常である旨判定するようにすればよい。
The abnormality determination process may be executed separately from the writing process and the reading process as a process executed every time a predetermined period elapses.
Although the same specific data is written in the three storage areas A, B and C of the
この場合、上記判定値を、同一の特定データが書き込まれる記憶領域数の半数よりも大きい値に設定することが望ましい。ここで、上記判定値を大きな値に設定し、一致するデータの数が相対的に多い場合であってもEEPROM25が異常である旨判定するようにした場合には、実際にEEPROM25に物理的な異常が発生している場合にはこれを早期に判定することができるものの、前述したようなデータ化け等による誤判定の可能性は高くなる。一方、上記判定値を小さな値に設定し、一致するデータの数が相対的に少ない場合にのみEEPROM25が異常である旨判定するようにした場合には、データ化け等による誤判定を回避することができるようになるものの、実際にEEPROM25に物理的な異常が発生している場合にはその判定が遅れるようになる。この点、上記構成のように、同一の特定データが書き込まれる記憶領域数の半数よりも大きい値を判定値として設定することにより、データ化け等による誤判定を極力抑制しつつ、EEPROM25に物理的な異常が生じた場合にその異常を極力早期に判定することができるようになる。
In this case, it is desirable to set the determination value to a value larger than half the number of storage areas in which the same specific data is written. Here, when the determination value is set to a large value and it is determined that the
・本発明にかかる管理装置は、EEPROMの他、フラッシュメモリなど、他の不揮発性半導体メモリに適用することができる。また不揮発性半導体メモリにも限らず、各種のRAMなどの揮発性の半導体メモリにも、本発明にかかる管理装置は適用可能である。 -The management apparatus concerning this invention is applicable to other non-volatile semiconductor memories, such as flash memory, besides EEPROM. Moreover, the management apparatus according to the present invention can be applied not only to a nonvolatile semiconductor memory but also to a volatile semiconductor memory such as various RAMs.
10…内燃機関、11…排気通路、12…排気浄化触媒、13…温度センサ、15…メインリレー、16…バッテリ、17…メインスイッチ、18…警告灯、20…電子制御ユニット、21…ROM、22…CPU、23…RAM、24…スタンバイRAM(SRAM)、25…EEPROM、26…バス。
DESCRIPTION OF
Claims (4)
前記半導体メモリの記憶領域を三つ以上の領域に分割しそれら分割された記憶領域に同一のデータを書き込む書き込み手段と、
それら書き込まれたデータを各記憶領域から読み込み、同一の記憶内容を示すデータの数が前記記憶領域の分割数よりも小さい所定の判定値未満であることに基づいて半導体メモリが異常である旨判定する異常判定手段と
を備えることを特徴とする半導体メモリの管理装置。 In a semiconductor memory management device provided in an electronic control unit and capable of writing predetermined data,
Writing means for dividing the storage area of the semiconductor memory into three or more areas and writing the same data in the divided storage areas;
Read the written data from each storage area, and determine that the semiconductor memory is abnormal based on the fact that the number of data indicating the same storage contents is less than a predetermined determination value smaller than the number of divisions of the storage area And a semiconductor memory management device.
前記異常判定手段は前記判定値を前記記憶領域の分割数の半数よりも大きい値に設定する
ことを特徴とする半導体メモリの管理装置。 The semiconductor memory management device according to claim 1,
The abnormality determination means sets the determination value to a value larger than half of the number of divisions of the storage area.
前記半導体メモリは不揮発性の半導体メモリであり、前記電子制御ユニットは揮発性半導体メモリを備え、
前記書き込み手段は前記揮発性半導体メモリに記憶されているデータを前記半導体メモリに書き込むとともに、前記異常判定手段により異常がない旨の判定がなされていることを条件に前記半導体メモリに記憶されている前記同一の記憶内容を示すデータを前記揮発性半導体メモリに書き込む
ことを特徴とする半導体メモリの管理装置。 The semiconductor memory management device according to claim 1 or 2,
The semiconductor memory is a non-volatile semiconductor memory, and the electronic control unit includes a volatile semiconductor memory,
The writing means writes the data stored in the volatile semiconductor memory to the semiconductor memory, and is stored in the semiconductor memory on the condition that the abnormality determining means determines that there is no abnormality. A semiconductor memory management device, wherein the data indicating the same storage content is written into the volatile semiconductor memory.
前記電子制御ユニットは車両に搭載されて同車両のバッテリから前記揮発性半導体メモリに常時給電してその記憶内容を保持し、
前記書き込み手段は前記車両の走行履歴に関する情報を前記データとして前記各メモリに書き込むものであり、
前記異常判定手段によって前記半導体メモリに異常がある旨の判定がなされたときにその異常を報知する報知手段を更に備える
ことを特徴とする半導体メモリの管理装置。 The semiconductor memory management device according to claim 3,
The electronic control unit is mounted on a vehicle and constantly supplies power from the battery of the vehicle to the volatile semiconductor memory to hold the stored contents.
The writing means writes information relating to the traveling history of the vehicle as the data in the memories.
A semiconductor memory management device, further comprising: a notifying means for notifying the abnormality when the abnormality determining means determines that the semiconductor memory is abnormal.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2005105965A JP2006286111A (en) | 2005-04-01 | 2005-04-01 | Management apparatus of semiconductor memory |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2005105965A JP2006286111A (en) | 2005-04-01 | 2005-04-01 | Management apparatus of semiconductor memory |
Publications (1)
Publication Number | Publication Date |
---|---|
JP2006286111A true JP2006286111A (en) | 2006-10-19 |
Family
ID=37407862
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2005105965A Pending JP2006286111A (en) | 2005-04-01 | 2005-04-01 | Management apparatus of semiconductor memory |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP2006286111A (en) |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP2042992A2 (en) | 2007-08-03 | 2009-04-01 | Denso Corporation | Memory management apparatus |
EP2063360A1 (en) | 2007-11-15 | 2009-05-27 | Denso Corporation | Vehicular memory management apparatus |
JP2010076622A (en) * | 2008-09-26 | 2010-04-08 | Daihatsu Motor Co Ltd | On-vehicle memory control device |
JP2011095875A (en) * | 2009-10-28 | 2011-05-12 | Toyota Motor Corp | Control device for vehicle, and control method therefor |
JP2011100511A (en) * | 2009-11-06 | 2011-05-19 | Fujitsu Ten Ltd | Data writing device and data writing method |
US8341343B2 (en) | 2009-12-10 | 2012-12-25 | Fujitsu Ten Limited | Controller |
-
2005
- 2005-04-01 JP JP2005105965A patent/JP2006286111A/en active Pending
Cited By (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP2042992A2 (en) | 2007-08-03 | 2009-04-01 | Denso Corporation | Memory management apparatus |
EP2042992A3 (en) * | 2007-08-03 | 2010-04-28 | Denso Corporation | Memory management apparatus |
US8166353B2 (en) | 2007-08-03 | 2012-04-24 | Denso Corporation | Memory management apparatus |
EP2063360A1 (en) | 2007-11-15 | 2009-05-27 | Denso Corporation | Vehicular memory management apparatus |
EP2221724A1 (en) | 2007-11-15 | 2010-08-25 | Denso Corporation | Vehicular Memory Management Apparatus |
US8103403B2 (en) | 2007-11-15 | 2012-01-24 | Denso Corporation | Vehicular memory management apparatus |
JP2010076622A (en) * | 2008-09-26 | 2010-04-08 | Daihatsu Motor Co Ltd | On-vehicle memory control device |
JP2011095875A (en) * | 2009-10-28 | 2011-05-12 | Toyota Motor Corp | Control device for vehicle, and control method therefor |
JP2011100511A (en) * | 2009-11-06 | 2011-05-19 | Fujitsu Ten Ltd | Data writing device and data writing method |
US8341343B2 (en) | 2009-12-10 | 2012-12-25 | Fujitsu Ten Limited | Controller |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP4274186B2 (en) | Failure diagnosis apparatus and failure information recording method | |
US7584333B2 (en) | Data processing device in vehicle control system | |
JP4475320B2 (en) | Vehicle memory management device | |
JP2006286111A (en) | Management apparatus of semiconductor memory | |
JP4552982B2 (en) | Electronic control unit | |
JP2009096337A (en) | Failure recording device | |
JP5835160B2 (en) | Electronic control unit | |
US9778981B2 (en) | Microcontroller | |
JP2008195130A (en) | Control device for vehicle and method of controlling same | |
JP6851110B2 (en) | Electronic control device | |
JP4353126B2 (en) | Vehicle state determination device | |
JP2002334024A (en) | Electronic controller | |
JP2006293650A (en) | Backup device for vehicle information | |
JP6159668B2 (en) | Vehicle control device | |
JP2004151021A (en) | Fault diagnostic device for vehicle | |
JPH09161493A (en) | Management method for rewritable nonvolatile memory | |
JP2502968B2 (en) | Vehicle control device | |
EP2045779B1 (en) | Vehicular control apparatus and program storage medium | |
JP2019094889A (en) | On-vehicle control device | |
JP2009063455A (en) | Vehicle failure detector | |
JP2000257502A (en) | Electronic controller for automobile | |
JP2011100416A (en) | In-vehicle electronic controller and memory control method | |
JP5116510B2 (en) | Electronic control unit for vehicle | |
JP2002334023A (en) | Electronic controller | |
JP5855453B2 (en) | In-vehicle memory processor |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20070615 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20070731 |
|
A02 | Decision of refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A02 Effective date: 20071127 |