JP5042766B2 - Control device and memory initialization method for control device - Google Patents

Control device and memory initialization method for control device Download PDF

Info

Publication number
JP5042766B2
JP5042766B2 JP2007259786A JP2007259786A JP5042766B2 JP 5042766 B2 JP5042766 B2 JP 5042766B2 JP 2007259786 A JP2007259786 A JP 2007259786A JP 2007259786 A JP2007259786 A JP 2007259786A JP 5042766 B2 JP5042766 B2 JP 5042766B2
Authority
JP
Japan
Prior art keywords
memory
ecc
initialization
control device
error
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
JP2007259786A
Other languages
Japanese (ja)
Other versions
JP2009087507A (en
Inventor
永浦  渉
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hitachi Astemo Ltd
Original Assignee
Hitachi Automotive Systems Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hitachi Automotive Systems Ltd filed Critical Hitachi Automotive Systems Ltd
Priority to JP2007259786A priority Critical patent/JP5042766B2/en
Publication of JP2009087507A publication Critical patent/JP2009087507A/en
Application granted granted Critical
Publication of JP5042766B2 publication Critical patent/JP5042766B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Description

本発明は、センサや、ネットワークを介した外界の状態からアクチュエータを制御する制御装置に係わり、特に、制御装置に内蔵されたマイコンのエラー訂正機能付きRAMを有した制御装置に関する。   The present invention relates to a control device that controls an actuator from a sensor or an external state via a network, and more particularly to a control device having a RAM with an error correction function of a microcomputer built in the control device.

自動車エンジン制御装置においては、クランク角センサ信号などの入力をもとに、燃料量や噴射タイミングを制御する。エンジン制御は、高機能化にともない、多くの情報を元に高度な制御が要求され、入出力数は増加している。   In the automobile engine control device, the fuel amount and the injection timing are controlled based on an input such as a crank angle sensor signal. As engine control becomes more sophisticated, advanced control is required based on much information, and the number of inputs and outputs is increasing.

近年、エンジンを制御する制御装置は、マイコンが内蔵されているが、マイコンに内蔵されたRAMにエラー訂正機能がついたものが搭載され、メモリに対する信頼性向上を実現している。   In recent years, a control device for controlling an engine has a built-in microcomputer, but a built-in RAM with an error correction function is mounted to improve the reliability of the memory.

エラー訂正機能(ECC: Error Correction Code)のRAMは、エラー訂正用の情報が必要であり、電源投入後は、ECCのための初期化が必要となる。   The error correction function (ECC) error correction code (RAM) requires information for error correction, and requires initialization for ECC after power-on.

したがって、電源投入直後などの、メモリがECC初期化されていない状態でメモリを使用すると、ECCエラーと判定してしまうために、この誤判定を避ける手段として、ハードウェアの面からエラー判定しない機構を設けているものがある(特許文献1、2参照)。これらの手段は、ECC初期化の実施の有無を示すフラグの機構を備えている。   Therefore, if the memory is used in a state where the memory is not ECC initialized, such as immediately after the power is turned on, it is determined as an ECC error. As a means for avoiding this erroneous determination, a mechanism that does not determine an error from the hardware aspect. (See Patent Documents 1 and 2). These means include a flag mechanism that indicates whether or not ECC initialization is performed.

特開2005−63547号公報JP 2005-63547 A 特開平11−328045号公報Japanese Patent Laid-Open No. 11-328045

特許文献1、2ではECC初期化機構が備わっているが、ECC初期化機構を備えないメモリの場合、ソフトウェアにて、ECC初期化を実施する必要がある。   In Patent Documents 1 and 2, an ECC initialization mechanism is provided. However, in the case of a memory without an ECC initialization mechanism, it is necessary to perform ECC initialization by software.

また、ECCのエラーチェックは、書込みで初期化、読み出しでチェックを実施する。自動車制御装置におけるエンジン制御装置の場合、イグニッションスイッチのONでマイコン動作開始し、そのときにメモリを初期化するが、前回のイグニッションスイッチがONのときの状態をメモリに保存しているため、毎回のイグニッションスイッチON時で、ECC初期化のために、適当なデータを書き込んでの初期化を実施すると、保存されていた値が上書きされてしまう。   The ECC error check is initialized by writing and checked by reading. In the case of an engine control device in an automobile control device, the microcomputer operation starts when the ignition switch is turned on, and the memory is initialized at that time, but since the state when the previous ignition switch was turned on is stored in the memory, every time When the ignition switch is turned on and initialization is performed by writing appropriate data for ECC initialization, the stored value is overwritten.

また、バッテリ接続後の初回のイグニッションスイッチON時では、メモリは初期化されていないため、読み出してしまうと、ECCエラーが発生する。ECC初期化の実施済み情報を利用して、ECC初期化済みの判定を入れた場合、ECC未初期化時に本判定を実施するとECCエラーが発生してしまう。   In addition, when the ignition switch is turned on for the first time after the battery is connected, the memory is not initialized. Therefore, if the data is read out, an ECC error occurs. If the ECC initialization completed determination is entered using the ECC initialization completed information, an ECC error will occur if this determination is performed when ECC is not initialized.

本発明では、上記のような課題を解決するために、次のように構成される。   The present invention is configured as follows to solve the above-described problems.

ECCエラー発生時にECCエラー情報などを格納したりするECCエラー時割り込み処理と、ECCエラー発生しても、ECCエラーを無視するECCエラー無効時割り込み処理と、メモリを読み出して書き戻す、読み出し書き戻しメモリ初期化処理とを備え、ECC初期化時は、ECCエラー無効時割り込み処理が起動されるようにし、メモリ保存領域のECC初期化には、読み出し書き戻しメモリ初期化処理を実施し、ECC初期化処理後は、ECCエラー時割り込み処理が起動されるようにする。   ECC error interrupt processing for storing ECC error information or the like when an ECC error occurs, ECC error invalid interrupt processing for ignoring the ECC error even if an ECC error occurs, memory read and write back, read / write back A memory initialization process, an ECC error invalid interrupt process is activated at the time of ECC initialization, and a read / write back memory initialization process is performed for ECC initialization of the memory storage area. After the conversion process, an ECC error interrupt process is started.

本発明によれば、ECC初期化実施の有無の判定をすることなく、ECC初期化できる。   According to the present invention, ECC initialization can be performed without determining whether or not ECC initialization has been performed.

本発明の実施例について、図を引用して以下に説明する。   Embodiments of the present invention will be described below with reference to the drawings.

図10は、ECC機能を具備したメモリ搭載のマイクロコントローラ9の構成を示す。   FIG. 10 shows a configuration of a microcontroller 9 equipped with a memory having an ECC function.

マイクロコントローラ9は、CPU91と、プログラムやデータを格納したフラッシュROM92と、ランダムアクセスメモリ(RAM)93と、ダイレクトメモリアクセス機能(DMA)94やアナログデジタル変換器(AD変換器)95などの周辺機器を搭載する。ここではRAM93にECC機能が搭載されたものとする。   The microcontroller 9 includes peripheral devices such as a CPU 91, a flash ROM 92 storing programs and data, a random access memory (RAM) 93, a direct memory access function (DMA) 94, and an analog / digital converter (AD converter) 95. Is installed. Here, it is assumed that the ECC function is mounted on the RAM 93.

図11は、RAM93の構成図を示す。   FIG. 11 shows a configuration diagram of the RAM 93.

RAM93は値を記憶する値記憶部931とエラー訂正のための情報を格納するエラー情報格納部932と値記憶部の値とエラー情報格納部からの情報とからエラー有無をチェックするエラー検出部933とからなる。   The RAM 93 stores a value storage unit 931 that stores values, an error information storage unit 932 that stores information for error correction, and an error detection unit 933 that checks whether there is an error from the value stored in the value storage unit and information from the error information storage unit. It consists of.

エラー情報は、値を書き込むと同時に更新され、値を読み出すときにチェックする。エラー訂正できる場合は、自動で訂正された値を出力し、エラー訂正できない場合はCPUに対して割り込みを発生する。初回電源投入時は値記憶部およびエラー方法格納部は未初期化のため、初期化する前に値を読み出すとエラー訂正できずに割り込みが発生する可能性がある。   Error information is updated as soon as a value is written, and is checked when the value is read. If the error can be corrected, the automatically corrected value is output. If the error cannot be corrected, an interrupt is generated for the CPU. When the power is turned on for the first time, the value storage unit and the error method storage unit are not initialized. If the value is read before initialization, an error may not be corrected and an interrupt may occur.

図1は、ECC初期化のフロー図である。   FIG. 1 is a flowchart of ECC initialization.

ECC初期化処理スタート111に続く、処理111で、ECCエラーを無効化する。処理112でECC初期化を実施する。処理113で、ECCエラーを有効化し、END114になる。   In step 111 following the ECC initialization processing start 111, the ECC error is invalidated. In process 112, ECC initialization is performed. In the process 113, the ECC error is validated and becomes END114.

この処理フローにより、ECC初期化時のECCエラーは無視し、ECCエラー発生の履歴を残さない。   With this processing flow, the ECC error at the time of ECC initialization is ignored, and no history of ECC error occurrence is left.

図2は、ECC初期化処理のフロー図である。   FIG. 2 is a flowchart of ECC initialization processing.

スタート1121に続く、処理1122では、メモリ保存領域外で、メモリ書込みによるECC初期化を実施する。処理1123では、メモリ保存領域に対して、読み出し書き戻し処理を実施し、END1124になる。   In processing 1122 following start 1121, ECC initialization is performed by memory writing outside the memory storage area. In process 1123, read / write-back processing is performed on the memory storage area, and the result becomes END 1124.

この処理フローにより、保存された値がそのまま保持されるとともに、書込み処理を実施しているのでECC初期化される。   According to this processing flow, the stored value is held as it is, and the ECC is initialized because the writing process is performed.

なお、ECC未初期化時に本処理を実施すると、ECCエラー発生するが、処理11によりECCエラー無効にしているため、この時点でのECCエラーは無視される。さらに、読み出された値は、不定値となっているが、初期化は実施されていないため、その値(不定値)を使って書き戻しても問題ない。 Incidentally, when carrying out the present process when ECC uninitialized, although ECC error occurs, since the disabled ECC error by processing 11 1, ECC error at this time is ignored. Further, the read value is an indefinite value, but since initialization has not been performed, there is no problem even if the value (indefinite value) is used for writing back.

図3は、書込み初期化処理1122のフロー図である。   FIG. 3 is a flowchart of the write initialization process 1122.

START11221に続く、処理11222では、ROMに初期値を持った領域からの初期値コピーによる初期化を実施する。初期値が格納されているROMの先頭番地であるSTART_ROM_ADDRから、コピーする先のメモリの先頭番地である、START_RAM_ADDRへ、RAM_INIT_SIZEのサイズ長分、コピーする。この際には、読み出しはROMの方なので、ECCの初期化の実施/未実施に関係なく、ECCエラーは発生しない。   In a process 11222 following the START 11221, initialization is performed by copying an initial value from an area having an initial value in the ROM. Copying is performed from the START_ROM_ADDR, which is the start address of the ROM in which the initial value is stored, to the START_RAM_ADDR, which is the start address of the destination memory, for the size of RAM_INIT_SIZE. At this time, since reading is performed by the ROM, no ECC error occurs regardless of whether the ECC is initialized or not.

さらに、ECC機能のない、通常のRAMの初期化処理もあわせて実施しており効率的である。処理11223では、ゼロクリアする領域の初期化を実施し、END11224になる。   Furthermore, normal RAM initialization processing without an ECC function is also performed, which is efficient. In the process 11223, the area to be cleared to zero is initialized, and the process becomes END11224.

この場合も、メモリの読み出しは不要であり、ECCの初期化の実施/未実施に関係なく、ECCエラーは発生しない。さらに、ECC機能のない、通常のRAMの初期化処理もあわせて実施しており効率的である。   Also in this case, it is not necessary to read out the memory, and an ECC error does not occur regardless of whether or not ECC initialization is performed. Furthermore, normal RAM initialization processing without an ECC function is also performed, which is efficient.

図4は、読み出し書き戻し処理1123のフロー図である。   FIG. 4 is a flowchart of the read / write back process 1123.

START11231に続く、処理11232では、コピー元のデータのアドレスとコピー先のアドレスを同じにして、メモリ保存領域のサイズ、RAM_NCLR_SIZE分コピーを繰り返し、END11233になる。   In the process 11232 following the START 11231, the copy source data address and the copy destination address are made the same, and the copy is repeated by the size of the memory storage area, RAM_NCLR_SIZE, to become the END 11233.

この処理フローにより、ECC実施後では、メモリ値は保持される。ECC初期化未実施時は読み出し時にエラー発生するが、処理111により無視される。   With this processing flow, the memory value is retained after the ECC is performed. When ECC initialization is not performed, an error occurs during reading, but is ignored by the processing 111.

図5は、ECCエラー割り込み処理とECCエラー無効時の割り込み処理のフロー図である。   FIG. 5 is a flowchart of ECC error interrupt processing and interrupt processing when the ECC error is invalid.

START211に続く、ECCエラー割り込み処理では、処理212にて、割り込みの前処理を実施する。たとえば、レジスタなどのスタック退避である。処理213では、ECCエラー情報を保存し、ECCエラー発生を履歴として残す。また、必要に応じて、メモリのリカバ処理を実施する。   In the ECC error interrupt processing subsequent to START 211, in processing 212, interrupt preprocessing is performed. For example, stack saving of registers and the like. In process 213, ECC error information is saved, and ECC error occurrence is left as a history. In addition, a memory recovery process is performed as necessary.

処理214では、割り込みの後処理を実施する。たとえば、レジスタなどの戻しである。なお、処理214を経てEND215になる。   In process 214, post-processing of the interrupt is performed. For example, a register return. Note that the process becomes END 215 through the process 214.

一方、START221に続く、ECCエラー無効時割り込み処理では、処理222にて、割り込みの前処理を実施する。たとえば、レジスタなどのスタック退避である。処理223では、割り込みの後処理を実施する。たとえば、レジスタなどの戻しである。なお、処理223を経てEND224になる。   On the other hand, in ECC error invalid interrupt processing following START 221, interrupt preprocessing is performed in processing 222. For example, stack saving of registers and the like. In process 223, an interrupt post-process is performed. For example, a register return. Note that END 224 is obtained after processing 223.

図6は、ECCエラー無効化とECCエラー有効化のフロー図である。   FIG. 6 is a flowchart of ECC error invalidation and ECC error validation.

START1111に続く、ECCエラー無効化では、処理1112では、ECCエラー割り込みベクターテーブルをECCエラー無効時割り込み処理の先頭にセットする。これにより、ECCエラー発生時では、ECCの処理は実施されず、無視される。なお、処理1112を経てEND11113になる。   In the ECC error invalidation following START 1111, in the process 1112, the ECC error interrupt vector table is set at the head of the ECC error invalid interrupt process. As a result, when an ECC error occurs, ECC processing is not performed and is ignored. Note that the processing goes to END 11113 after processing 1112.

一方、START1131に続く、ECCエラー有効化では、処理1132では、ECCエラー割り込みベクターテーブルをECCエラー割り込み処理の先頭にセットする。これにより、ECCエラー発生時では、ECCエラー情報が保存され、ECCエラー発生の履歴が残る。なお、処理1132を経てEND1133になる。   On the other hand, in ECC error validation following START 1131, in process 1132, the ECC error interrupt vector table is set at the head of the ECC error interrupt process. As a result, when an ECC error occurs, ECC error information is saved, and an ECC error occurrence history remains. Note that the processing goes to END 1133 after processing 1132.

図7は、ROMとECC機能付きRAMのメモリマップを示す。   FIG. 7 shows a memory map of the ROM and the RAM with the ECC function.

ROM41のメモリマップには、初期値が格納されている先頭番地START_ROM_ADDRとそのデータサイズRAM_INIT_SIZEを示している。   The memory map of the ROM 41 shows a start address START_ROM_ADDR in which initial values are stored and a data size RAM_INIT_SIZE thereof.

RAM42のメモリマップには、メモリ保存領域の先頭番地であるSTART_NCLR_RAM_ADDRとそのサイズRAM_NCLR_SIZEを示している。   The memory map of the RAM 42 shows START_NCLR_RAM_ADDR that is the start address of the memory storage area and its size RAM_NCLR_SIZE.

また、初期値のコピー先の先頭アドレスであるSTART_RAM_ADDRとそのデータサイズRAM_INIT_SIZEを示している。さらに、ゼロクリアする領域の先頭番地であるSTART_CLR_RAMとそのデータサイズRAM_CLR_SIZEを示している。   Further, START_RAM_ADDR, which is the start address of the initial value copy destination, and its data size RAM_INIT_SIZE are shown. Furthermore, START_CLR_RAM which is the start address of the area to be cleared to zero and its data size RAM_CLR_SIZE are shown.

実施例1では、ECC初期化をECC初期化実施有無の判定無しとしたが、バックアップ領域を含む部分は、判定を入れてもよい。その場合は、ECCエラー無効化処理およびECCエラー無効時割り込みは不要とできる。また、実施結果をRAM読み出ししない手段として、ECC機能を有しない別のメモリを使用すればよい。   In the first embodiment, the ECC initialization is not determined as to whether or not the ECC initialization is performed. However, the portion including the backup area may be determined. In this case, the ECC error invalidation process and the ECC error invalid interrupt can be unnecessary. In addition, another means that does not have an ECC function may be used as a means for not reading out the implementation results from the RAM.

図8にECC初期化済み判定処理をつけたECC初期化処理を示す。   FIG. 8 shows the ECC initialization process with the ECC initialized determination process.

ECC初期化処理32では、スタート処理31に続きECC初期化処理32を実施し、END33になる。   In the ECC initialization process 32, the ECC initialization process 32 is performed following the start process 31 to become END 33.

スタート321に続き、書込み初期化322を行い、判定処理323で、ECC初期化済みの判定をし、ECC初期化していなければ、処理324にて書込みによる初期化を実施し、初期化済みであれば処理324をスキップする。処理325では、実施済みフラグ値として、0x55555555を判定用RAMにセットし、END326になる。   Following the start 321, the write initialization 322 is performed. In the determination process 323, it is determined that the ECC has been initialized. If the ECC has not been initialized, the initialization by the write is performed in the process 324. For example, processing 324 is skipped. In the process 325, 0x55555555 is set in the determination RAM as the executed flag value, and becomes END326.

なお、フラグセット用RAMは、バッテリバックアップされているRAMである。   The flag setting RAM is a battery-backed RAM.

実施例2では、ECC初期化の実施の有無をECC機能を有しないメモリに記憶していたが、たとえば、特開2005−114555号公報に記載のイグニッションオフタイマーの機能を備えた制御装置であれば、イグニッションオフタイマーの機能を使っても良い。   In the second embodiment, whether or not ECC initialization is performed is stored in a memory that does not have an ECC function. For example, a controller having an ignition off timer function described in JP-A-2005-114555 may be used. For example, the ignition off timer function may be used.

この場合、イグニッションオフタイマーの値が0であれば、バッテリ接続後の初回のRAM初期化であるため、ECC未初期化と判断できる。   In this case, if the value of the ignition off timer is 0, it is determined that the ECC has not been initialized since the RAM initialization is the first time after the battery is connected.

ECC初期化後は、イグニッションオフタイマーをスタートさせると、それ以降は1以上の値が返るので、イグニッションオン時のECC初期化処理時には、イグニッションオフタイマー値が0でないので、ECC実施済みと判断できる。   After the ECC initialization, when the ignition off timer is started, a value of 1 or more is returned thereafter. Therefore, at the time of the ECC initialization processing when the ignition is on, the ignition off timer value is not 0, so it can be determined that the ECC has been implemented. .

イグニッションオフタイマー値によるECC初期化済判定のECC初期化のフローを図9に示す。   FIG. 9 shows a flow of ECC initialization for ECC initialization completion determination based on the ignition off timer value.

スタート341に続き、書込み初期化342を行い、処理判定343でイグニッションオフタイマー値が0か否かを判定する。0であれば、処理344で書込み初期化処理にてECC初期化する。イグニッションオフタイマーをスタートは、イグニッションスイッチをオフしたタイミングでスタートさせ、これにより、イグニッションオフタイマー値が1以上になるようにする。なお、処理344を経てEND346になる。   Following the start 341, write initialization 342 is performed, and it is determined in a process determination 343 whether the ignition off timer value is 0 or not. If 0, ECC initialization is performed in a write initialization process in a process 344. The ignition-off timer is started at the timing when the ignition switch is turned off, so that the ignition-off timer value becomes 1 or more. Note that the processing goes to END 346 through processing 344.

本発明は、自動車制御をはじめとして、通信機能を内蔵した制御装置に適用可能である。   The present invention can be applied to a control apparatus having a built-in communication function, including automobile control.

本発明の実施例に係わるECC初期化のフロー図。The flowchart of ECC initialization concerning the Example of this invention. 本発明の実施例に係わるECC初期化処理のフロー図。The flowchart of the ECC initialization process concerning the Example of this invention. 本発明の実施例に係わる書込み初期化処理のフロー図。The flowchart of the write initialization process concerning the Example of this invention. 本発明の実施例に係わる読み出し書き戻し処理のフロー図。The flowchart of the read-write-back process concerning the Example of this invention. 本発明の実施例に係わるECCエラー割り込み処理とECCエラー無効時の割り込み処理のフロー図。FIG. 4 is a flowchart of ECC error interrupt processing and interrupt processing when an ECC error is invalid according to an embodiment of the present invention. 本発明の実施例に係わるECCエラー無効化とECCエラー有効化のフロー図。The flowchart of ECC error invalidation and ECC error validation concerning the Example of this invention. 本発明の実施例に係わるメモリマップ。The memory map concerning the Example of this invention. 本発明の実施例に係わるECC初期化済み判定ありECC初期化のフロー図。FIG. 4 is a flowchart of ECC initialization with ECC initialization determination according to the embodiment of the present invention. 本発明の実施例に係わるイグニッションオフタイマー値によるECC初期化済判定のECC初期化のフロー図。The flowchart of ECC initialization of the ECC initialization completion determination by the ignition off timer value concerning the Example of this invention. 本発明の実施例に係わるもので、ECC機能を具備したメモリ搭載のマイクロコントローラの構成を示す図。The figure which concerns on the Example of this invention and shows the structure of the microcontroller with a memory provided with the ECC function. 本発明の実施例に係わるもので、RAMの構成図を示す図。The figure which concerns on the Example of this invention and shows the block diagram of RAM.

符号の説明Explanation of symbols

111…ECCエラー無効化処理、112…ECC初期化処理、113…ECCエラー有効化処理、1122…書込み初期化処理、1123…読み出し書き戻し処理、21…ECCエラー割り込み処理、22…ECCエラー無効時割り込み処理、41…ROMメモリマップ、42…RAMメモリマップ、9…マイクロコントローラ、91…CPU、92…フラッシュROM、93…RAM、94…DMA、95…AD変換器、931…値記憶部、932…エラー情報格納部、933…エラー検出部。   111 ... ECC error invalidation processing, 112 ... ECC initialization processing, 113 ... ECC error validation processing, 1122 ... Write initialization processing, 1123 ... Read / write back processing, 21 ... ECC error interrupt processing, 22 ... When ECC error is invalid Interrupt processing, 41 ... ROM memory map, 42 ... RAM memory map, 9 ... microcontroller, 91 ... CPU, 92 ... flash ROM, 93 ... RAM, 94 ... DMA, 95 ... AD converter, 931 ... value storage unit, 932 ... error information storage unit, 933 ... error detection unit.

Claims (4)

エラー訂正機能付きメモリを有する制御装置のメモリ初期化方法において、
前記エラー訂正機能付きメモリは初期化処理を行う前にECCエラー発生時の処理を無効にするものとし、前記エラー訂正機能付きメモリを初期化処理した後には、前記ECCエラー発生時の処理を有効にし、
前記エラー訂正機能付きメモリにバッテリバックアップによって保持されている値をメモリ保存領域から読み出してそのまま書き戻す読み出し書き戻し処理は前記初期化処理中に行われ、
前記読み出し書き戻し処理により前記メモリ保存領域のECCの初期化処理を終了するまで、前記エラー発生時の処理を無効にすることが行われることを特徴とする制御装置のメモリ初期化方法。
In a memory initialization method for a control device having a memory with an error correction function,
The memory with the error correction function invalidates the process when the ECC error occurs before performing the initialization process . After the memory with the error correction function is initialized, the process when the ECC error occurs is enabled. West,
A read / write-back process in which the value stored by the battery backup in the memory with error correction function is read from the memory storage area and written back as it is is performed during the initialization process,
A memory initialization method for a control device , comprising: invalidating a process at the time of occurrence of an error until an ECC initialization process of the memory storage area is completed by the read / write-back process .
エラー訂正機能付きメモリを有する制御装置において、
前記エラー訂正機能付きメモリは初期化処理を行う前にECCエラー発生時の処理を無効にするものとし、前記エラー訂正機能付きメモリを初期化処理した後には、前記ECCエラー発生時の処理を有効にし、
前記エラー訂正機能付きメモリにバッテリバックアップによって保持されている値をメモリ保存領域から読み出してそのまま書き戻す読み出し書き戻し処理は前記初期化処理中に行われ、
前記読み出し書き戻し処理により前記メモリ保存領域のECCの初期化処理を終了するまで、前記エラー発生時の処理を無効にすることが行われ、
前記読み出し書き戻し処理では、初期化済みか否かを判定する初期化済み判定手段を有し、
前記初期化済み判定手段で初期化済みではない場合にのみ、前記メモリ保存領域を所定の値での書込みにより初期化する機能を有することを特徴とする制御装置。
In a control device having a memory with an error correction function,
The memory with the error correction function invalidates the process when the ECC error occurs before performing the initialization process . After the memory with the error correction function is initialized, the process when the ECC error occurs is enabled. West,
A read / write-back process in which the value stored by the battery backup in the memory with error correction function is read from the memory storage area and written back as it is is performed during the initialization process,
Until the initialization process of the ECC of the memory storage area is terminated by the read / write-back process, the process at the time of the error is invalidated,
In the read / write-back process, there is an initialization determination unit that determines whether or not initialization has been completed,
A control device having a function of initializing the memory storage area by writing with a predetermined value only when the initialization determination means has not initialized.
請求項2記載の制御装置において、
前記初期化済み判定手段は、初期化済み判定用メモリを有し、
前記判定用メモリは、初期化後に所定の値を保持し、前記所定の値が読み出せた場合に初期化済みと判定する機能を有し、
前記判定用メモリは、エラー訂正機能付きメモリではないメモリを使用することを特徴とする制御装置。
The control device according to claim 2, wherein
The initialized determination means has an initialized determination memory,
The determination memory has a function of holding a predetermined value after initialization and determining that initialization has been completed when the predetermined value can be read;
The control device, wherein the determination memory uses a memory that is not a memory with an error correction function.
請求項2記載の制御装置において、
前記初期化済み判定手段は、前記制御装置がエラー訂正機能付きメモリに供給する電源が切れたことを判定できる機能を有し、
前記初期化済み判定手段は、前記判定機能にて、電源が切れたことを示した場合は未初期化と判定し、初期化後には前記判定状態を電源が切れた状態にセットする機能を有することを特徴とする制御装置。
The control device according to claim 2, wherein
The initialized determination means has a function of determining that the power supplied to the memory with an error correction function by the control device has been cut off,
The initialized determination means has a function of determining that the power is turned off when the determination function indicates that the power is turned off, and setting the determined state to a state where the power is turned off after the initialization. A control device characterized by that.
JP2007259786A 2007-10-03 2007-10-03 Control device and memory initialization method for control device Active JP5042766B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2007259786A JP5042766B2 (en) 2007-10-03 2007-10-03 Control device and memory initialization method for control device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2007259786A JP5042766B2 (en) 2007-10-03 2007-10-03 Control device and memory initialization method for control device

Publications (2)

Publication Number Publication Date
JP2009087507A JP2009087507A (en) 2009-04-23
JP5042766B2 true JP5042766B2 (en) 2012-10-03

Family

ID=40660720

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2007259786A Active JP5042766B2 (en) 2007-10-03 2007-10-03 Control device and memory initialization method for control device

Country Status (1)

Country Link
JP (1) JP5042766B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113127085A (en) 2015-08-20 2021-07-16 美光科技公司 Solid state storage device fast booting from NAND medium

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS61134988A (en) * 1984-12-04 1986-06-23 Toshiba Corp Error detecting/correction function controlling system of dynamic type memory
JPS63167500A (en) * 1986-12-27 1988-07-11 Mitsubishi Electric Corp Semiconductor memory device
JP3892832B2 (en) * 2003-08-11 2007-03-14 株式会社東芝 Semiconductor memory device
JP2007066423A (en) * 2005-08-31 2007-03-15 Toshiba Corp Semiconductor integrated circuit apparatus

Also Published As

Publication number Publication date
JP2009087507A (en) 2009-04-23

Similar Documents

Publication Publication Date Title
JP5232018B2 (en) Error processing method and error processing apparatus
US7398425B2 (en) Information processing apparatus including NAND flash memory, and information processing method for the same
EP1538525A1 (en) ECC computation simultaneously performed while reading or programming a flash memory
US6272587B1 (en) Method and apparatus for transfer of data between cache and flash memory in an internal combustion engine control system
JP2010165251A (en) Information processing device, processor, and information processing method
US8555050B2 (en) Apparatus and method thereof for reliable booting from NAND flash memory
CN101777024A (en) Data moving method and system utilizing the same
JP4491034B1 (en) Storage device having nonvolatile storage device
JP5042766B2 (en) Control device and memory initialization method for control device
JP4482514B2 (en) Image forming apparatus
US9778981B2 (en) Microcontroller
JP2013182577A (en) Information processing apparatus, image forming apparatus, and program
US20090210758A1 (en) Method for reducing data error when flash memory storage device using copy back command
US7475212B2 (en) Method for reallocation of a memory of a subsystem, and subsystem
JP4479775B2 (en) Vehicle control apparatus and program
KR101658828B1 (en) Apparatus and method for function recovery of CPU core
JP7091853B2 (en) Electronic control device
JP5061149B2 (en) Embedded controller using floating point arithmetic
JP6699591B2 (en) Engine controller
JP2009075992A (en) Method of collecting memory dump in information processor
JP2006155391A (en) Image forming apparatus
JP2009301479A (en) Microcomputer
JP2007241757A (en) Information processor
JP2003165248A (en) Print controller and controlling method
JP2008047025A (en) Microcontroller

Legal Events

Date Code Title Description
A711 Notification of change in applicant

Free format text: JAPANESE INTERMEDIATE CODE: A712

Effective date: 20100108

A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20100119

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20120316

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20120327

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20120528

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

A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20120711

R150 Certificate of patent or registration of utility model

Ref document number: 5042766

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

Free format text: JAPANESE INTERMEDIATE CODE: R150

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20150720

Year of fee payment: 3

S533 Written request for registration of change of name

Free format text: JAPANESE INTERMEDIATE CODE: R313533

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350