JP2008146521A - Automobile electronic controller - Google Patents

Automobile electronic controller Download PDF

Info

Publication number
JP2008146521A
JP2008146521A JP2006335300A JP2006335300A JP2008146521A JP 2008146521 A JP2008146521 A JP 2008146521A JP 2006335300 A JP2006335300 A JP 2006335300A JP 2006335300 A JP2006335300 A JP 2006335300A JP 2008146521 A JP2008146521 A JP 2008146521A
Authority
JP
Japan
Prior art keywords
data
written
writing
area
write
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
JP2006335300A
Other languages
Japanese (ja)
Inventor
Toshinaka Arai
敏央 新井
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 Ltd
Original Assignee
Hitachi 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 Ltd filed Critical Hitachi Ltd
Priority to JP2006335300A priority Critical patent/JP2008146521A/en
Publication of JP2008146521A publication Critical patent/JP2008146521A/en
Pending legal-status Critical Current

Links

Images

Abstract

<P>PROBLEM TO BE SOLVED: To provide an automobile electronic controller capable of utilizing effectively a memory capacity of a flash memory, and capable of storing efficiently data. <P>SOLUTION: The data in an area with the data already written are brought into the same value, or into a condition rewritten as FFh, when the data are written into the flash memory, and the writing of the data by the same writing start address is performed more than once. The data (for example, 1 byte data) having a size smaller than the minimum writing size (for example, 128 bytes) is thereby stored densely in the writing area. <P>COPYRIGHT: (C)2008,JPO&INPIT

Description

本発明は、自動車用電子制御装置に関し、詳しくは、電気的にデータの消去及び書き込みが可能な不揮発性メモリのデータ書き込み技術に関する。   The present invention relates to an automotive electronic control device, and more particularly to a data writing technique for a nonvolatile memory capable of electrically erasing and writing data.

特許文献1には、ブロック単位で書き換え可能なフラッシュメモリを備え、該フラッシュメモリに記憶された制御プログラムに従って自動車に搭載された所定の制御対象を制御する自動車用電子制御装置が開示されている。
特開2000−257502号公報
Japanese Patent Application Laid-Open No. 2004-228561 discloses an automotive electronic control device that includes a rewritable flash memory in block units and controls a predetermined control target mounted on the vehicle according to a control program stored in the flash memory.
JP 2000-257502 A

上記のように、前記フラッシュメモリは、ブロック単位で書き換え可能であるため、書き換え単位のブロックよりもサイズの小さいデータを書き込むときにも、ブロック単位での書き込みが行われることになり、1ブロック単位で書き込み開始アドレスをずらしてデータの書き込みを行わせると、メモリ容量の使用効率が悪いという問題があった。
本発明は上記問題点に鑑みなされたものであり、フラッシュメモリのメモリ容量を有効に活用でき、データの保存を効率良く行える自動車用電子制御装置を提供することを目的とする。
As described above, since the flash memory can be rewritten in units of blocks, writing in units of blocks is performed even when data having a size smaller than the blocks in units of rewriting is written. If the write start address is shifted and data is written, there is a problem in that the use efficiency of the memory capacity is poor.
The present invention has been made in view of the above problems, and an object of the present invention is to provide an automotive electronic control device that can effectively use the memory capacity of a flash memory and can efficiently save data.

そのため請求項1記載の発明は、電気的にデータの消去及び書き込みが可能な不揮発性メモリにデータを書き込むときに、既にデータが書き込まれているエリアのデータ更新を禁止して、同一の書き込み開始アドレスで複数回にわたってデータの書き込みを行うことを特徴とする。
上記発明によると、所定の書き込み開始アドレスに基づき、不揮発性メモリ(例えばフラッシュメモリ)に対して最初のデータ書き込みを行った後、2回目のデータ書き込みにおいては、同一の書き込み開始アドレスに基づいて同一ブロックの書き込みを行うが、最初にデータを書き込んだエリアのデータ更新(書き換え)を禁止して、同一ブロックの残存エリアにデータを書き足す。このような書き込み処理を繰り返すことで、同一ブロックに複数のデータを詰めて記憶させる。
Therefore, according to the first aspect of the present invention, when data is written to a nonvolatile memory capable of electrically erasing and writing data, updating of data in an area where data has already been written is prohibited and the same writing is started. Data writing is performed a plurality of times with an address.
According to the above-described invention, after the first data write to the nonvolatile memory (for example, the flash memory) based on the predetermined write start address, the second data write is the same based on the same write start address. Block writing is performed, but data updating (rewriting) of the area where data is first written is prohibited, and data is written to the remaining area of the same block. By repeating such a writing process, a plurality of data is packed and stored in the same block.

従って、不揮発性メモリに対して、ブロック単位で書き込みが行われ、かつ、書き込むデータのサイズがブロックサイズよりも小さい場合であっても、メモリ容量を有効に利用してデータを書き込むことができる。
請求項2記載の発明は、既にデータが書き込まれているエリアに対して同じデータを再度書き込むことで、データ更新を禁止することを特徴とする。
Therefore, even when data is written to the nonvolatile memory in units of blocks and the size of data to be written is smaller than the block size, the data can be written using the memory capacity effectively.
The invention described in claim 2 is characterized in that data updating is prohibited by rewriting the same data in an area where data has already been written.

上記発明によると、同一の書き込み開始アドレスに基づいて同一ブロックに複数回にわたって書き込みを行うときに、それまでにデータが書き込まれているエリアに対しては、最初の書き込み時と同じデータを書き込ませる。
従って、同一ブロックの書き込みを繰り返し行わせても、既にデータが書き込まれているエリアのデータはそのまま保存されることになり、残存のエリアに順次新たなデータが書き込まれる。
According to the above invention, when writing to the same block a plurality of times based on the same write start address, the same data as that at the time of the first write is written in the area where data has been written so far. .
Therefore, even if the same block is repeatedly written, the data in the area where the data has already been written is stored as it is, and new data is sequentially written in the remaining area.

請求項3記載の発明は、書き込まれたデータの最終アドレスを記憶し、該書き込み最終アドレスに基づいて既にデータが書き込まれているエリアを特定することを特徴とする。
上記発明によると、データの書き込みを行う毎に、その書き込みでのデータの最終アドレスを記憶し、書き込み開始アドレスから前記最終アドレスまでを、既にデータが書き込まれているエリアとして特定する。
According to a third aspect of the present invention, the last address of the written data is stored, and an area where data has already been written is specified based on the last written address.
According to the above invention, every time data is written, the final address of the data in the write is stored, and the area from the write start address to the final address is specified as an area where data has already been written.

従って、データサイズに変動があっても、前回までにデータが書き込まれたエリアを確実に特定できる。
請求項4記載の発明は、1回に書き込むデータのサイズを固定し、書き込み回数から既にデータが書き込まれているエリアを特定することを特徴とする。
上記発明によると、書き込むデータのサイズが固定されるから、データサイズに書き込み回数を乗算した結果が、前回までに書き込まれたデータの総サイズであり、書き込み開始アドレスから前記書き込み済みデータの総サイズ分だけのエリアが、前回までにデータ書き込みが行われたエリアとなる。
Therefore, even if the data size varies, the area where data has been written so far can be reliably identified.
The invention described in claim 4 is characterized in that the size of data to be written at one time is fixed, and an area where data has already been written is specified from the number of times of writing.
According to the above invention, since the size of the data to be written is fixed, the result of multiplying the data size by the number of times of writing is the total size of the data written so far, and the total size of the written data from the write start address The area of only minutes is the area where data has been written so far.

従って、データサイズが固定であれば、前回までにデータが書き込まれたエリアを容易に特定することができる。
請求項5記載の発明では、書き込みデータにインデックスデータを付し、前記インデックスデータに基づいて既にデータが書き込まれているエリアを特定することを特徴とする。
Therefore, if the data size is fixed, it is possible to easily specify the area where data has been written so far.
The invention according to claim 5 is characterized in that index data is attached to write data, and an area in which data has already been written is specified based on the index data.

上記発明によると、各データにインデックスデータ(索引情報)を付して書き込みを行わせ、前記インデックスデータから個々の書き込みデータを弁別することで、前回までにデータが書き込まれたエリアを特定する。
従って、前記インデックスデータの読み取りによって、既にデータが書き込まれているエリアを確実に特定することができる。
According to the above invention, index data (index information) is attached to each data to perform writing, and individual write data is discriminated from the index data, thereby specifying an area where data has been written so far.
Therefore, by reading the index data, it is possible to reliably specify an area where data has already been written.

以下に本発明の実施の形態を説明する。
図1は、実施の形態における自動車用電子制御装置としてのエンジンコントロールユニット(ECU)1の構成を示す。
エンジンコントロールユニット1は、車両用エンジンにおける燃料噴射や点火を制御するためのものであり、電気的にデータの消去及び書き込みが可能な不揮発性メモリであるフラッシュメモリ2、RAM3、及び、マイクロコンピュータ4を含んで構成される。
Embodiments of the present invention will be described below.
FIG. 1 shows a configuration of an engine control unit (ECU) 1 as an automobile electronic control device according to an embodiment.
The engine control unit 1 is for controlling fuel injection and ignition in the vehicle engine, and is a flash memory 2, a RAM 3, and a microcomputer 4 that are nonvolatile memories capable of electrically erasing and writing data. It is comprised including.

前記マイクロコンピュータ4は、CPU,内蔵RAM,タイマ,A/Dコンバータ,SCI等を備えて構成され、RAM3やフラッシュメモリ2に格納された各種のプログラムを実行する。
前記フラッシュメモリ2の記憶領域は、ブロックAとブロックBとに区分される。
前記ブロックAは、データの書き込みが行われる書き込みデータ格納領域である。
The microcomputer 4 includes a CPU, a built-in RAM, a timer, an A / D converter, an SCI, and the like, and executes various programs stored in the RAM 3 and the flash memory 2.
The storage area of the flash memory 2 is divided into a block A and a block B.
The block A is a write data storage area where data is written.

一方、ブロックBは、データの更新を行わない領域であって、フラッシュ書き込みプログラムが格納される領域、アプリケーションプログラムが格納される領域、更に、定数データが格納される領域からなる。
前記フラッシュ書き込みプログラムは、前記書き込みデータ格納領域におけるデータの消去・書き込みを制御するためのプログラムである。
On the other hand, the block B is an area where data is not updated, and is composed of an area for storing a flash writing program, an area for storing an application program, and an area for storing constant data.
The flash write program is a program for controlling erasing / writing of data in the write data storage area.

前記アプリケーションプログラムは、車両に搭載されるエンジンを制御するためのプログラムであり、イグニッションスイッチ8のオン・オフ信号や車両用エンジンの運転状態を検出する各種センサ7からの検出信号を入力して演算処理し、燃料噴射制御信号や点火制御信号などを出力する機能を備える。
前記定数データ格納領域には、エンジン制御等に必要な各種の定数データ(閾値、係数など)が格納される。
The application program is a program for controlling the engine mounted on the vehicle, and inputs and calculates detection signals from various sensors 7 for detecting the on / off signal of the ignition switch 8 and the operating state of the vehicle engine. It has a function of processing and outputting a fuel injection control signal, an ignition control signal, and the like.
In the constant data storage area, various constant data (threshold value, coefficient, etc.) necessary for engine control and the like are stored.

一方、外部ツールであるフラッシュ書き込みツール5は、前記エンジンコントロールユニット1に対して通信回線6を介して着脱可能に接続される。
前記フラッシュ書き込みツール5には、フラッシュメモリ5aが備えられ、該フラッシュメモリ5aに保存されているデータを、前記エンジンコントロールユニット1に対して送信することで、フラッシュメモリ2に対するデータの書き込みが行なわれるようになっている。
On the other hand, the flash writing tool 5 as an external tool is detachably connected to the engine control unit 1 via the communication line 6.
The flash writing tool 5 is provided with a flash memory 5a, and data stored in the flash memory 5a is transmitted to the engine control unit 1 to write data to the flash memory 2. It is like that.

即ち、前記フラッシュ書き込みツール5は、フラッシュメモリ2のブロックAに格納されるデータを書き換えるためのツールである。
図2のフローチャートは、エンジンコントロールユニット1によるフラッシュメモリ2のブロックAの書き換え処理を示す。
まず、ステップS100では、ブロックBに格納されているアプリケーションプログラムを実行して、エンジンを通常に制御する。
That is, the flash writing tool 5 is a tool for rewriting data stored in the block A of the flash memory 2.
The flowchart of FIG. 2 shows the rewriting process of the block A of the flash memory 2 by the engine control unit 1.
First, in step S100, the application program stored in block B is executed to control the engine normally.

次のステップS110では、イグニションスイッチ(IGSW)8がオフされたか否かを判別する。
イグニションスイッチ(IGNSW)8がオン状態であれば、ステップS100へ戻って、アプリケーションプログラムの実行を継続させる。
一方、イグニションスイッチ(IGNSW)8がオフになると、ステップS120へ進み、前記フラッシュ書き込みツール5からフラッシュメモリの書換え要求信号が出力されているか否かを判別する。
In the next step S110, it is determined whether or not the ignition switch (IGSW) 8 has been turned off.
If the ignition switch (IGNSW) 8 is in the ON state, the process returns to step S100 to continue execution of the application program.
On the other hand, when the ignition switch (IGNSW) 8 is turned off, the process proceeds to step S120, where it is determined whether or not a flash memory rewrite request signal is output from the flash writing tool 5.

ここで、前記フラッシュ書き込みツール5から書換え要求信号が出力されている場合には、ステップS130へ進む。
ステップS130では、前記フラッシュ書き込みツール5から送信される書き込みデータをバッファに格納する。
次のステップS140では、前記フラッシュ書き込みツール5から送信されたデータを、フラッシュメモリ2のデータ格納領域(ブロックA)に書き込むべく、書き込み制御プログラムを実行する。
If a rewrite request signal is output from the flash writing tool 5, the process proceeds to step S130.
In step S130, the write data transmitted from the flash writing tool 5 is stored in the buffer.
In the next step S140, a write control program is executed in order to write the data transmitted from the flash writing tool 5 to the data storage area (block A) of the flash memory 2.

前記書き込み制御プログラムの処理内容は、図3のフローチャートに示してある。
まず、ステップS200では、書き込み開始アドレスを設定し、次のステップS210では、書き込みエリアの値が全てFFh(消去状態)であるか否かを判別する。
書き込みエリアの値が全てFFhであれば、データ書き込みの1回目であるので、ステップS230に進み、フラッシュメモリ2に対するデータの書き込み処理を実行する。
The processing contents of the write control program are shown in the flowchart of FIG.
First, in step S200, a write start address is set, and in the next step S210, it is determined whether or not all values in the write area are FFh (erase state).
If all the values in the write area are FFh, it is the first data write, so the process proceeds to step S230, and the data write process to the flash memory 2 is executed.

一方、書き込みエリアの値が全てFFhでない場合であって、2回目以降の書き込みであるときには、ステップS220へ進み、既にデータが書き込まれているエリアを特定し、該書き込み済みエリアをマスクして書き込みを行わせる設定を行った後、ステップS230へ進み、フラッシュメモリ2に対するデータの書き込み処理を実行する。
ステップS240では、データの書き込みが終了したか否かを判別し、書き込みが終了するまで、ステップS200〜ステップS230の処理を繰り返す。
On the other hand, if all the values in the writing area are not FFh, and the writing is performed for the second time or later, the process proceeds to step S220, where an area where data has already been written is specified, and the written area is masked for writing. After performing the setting to perform the process, the process proceeds to step S230, and the data writing process to the flash memory 2 is executed.
In step S240, it is determined whether or not the data writing is completed, and the processes in steps S200 to S230 are repeated until the writing is completed.

ここで、ステップS230におけるデータ書き込み処理の詳細を、図4に従って説明する。
図4に示す書き込み処理は、1バイトデータの書き込みであって、最小書き込みサイズ(1回の書き込み動作で書き込みを行う最小エリア)を128バイトとする例である。
まず、フラッシュメモリ2のデータ格納領域の値を全てFFh(初期値)として初期化しておく(図4(A)参照)。
Here, details of the data writing process in step S230 will be described with reference to FIG.
The write process shown in FIG. 4 is an example in which 1-byte data is written, and the minimum write size (minimum area where writing is performed in one write operation) is 128 bytes.
First, all values in the data storage area of the flash memory 2 are initialized as FFh (initial value) (see FIG. 4A).

そして、1回目のデータ書き込みにおいては、先頭の1バイトに指定されたデータ(図4では「01」)を書き込み、残りの127バイトにはFFhを書き込む(図4(B)参照)。
続いて、2回目のデータ書き込みにおいては、書き込み開始アドレスを前回と同じに保持し、先頭の1バイトのデータ更新を禁止して、次のアドレス(2番目の1バイト)に指定データ(図4では「02」)を書き込み、残りの126バイトにはFFhを書き込む(図4(B)参照)。
In the first data write, data designated in the first byte (“01” in FIG. 4) is written, and FFh is written in the remaining 127 bytes (see FIG. 4B).
Subsequently, in the second data write, the write start address is kept the same as the previous time, the data update of the first 1 byte is prohibited, and the designated data (second 1 byte) is designated (see FIG. 4). "02") is written, and FFh is written in the remaining 126 bytes (see FIG. 4B).

前記先頭1バイトのデータ更新の禁止(マスク)は、同じデータを再度書き込むか、又は、書き込みデータを「FFh」としてフラッシュメモリ2を書き換えない状態とすることで行われる。
3回目のデータ書き込みにおいては、やはり書き込み開始アドレスを前回と同じに保持し、先頭の1バイト及び2番目の1バイトにおけるデータ更新を禁止して、3番目の1バイトに指定データを書き込み、残りの125バイトにはFFhを書き込む。
The prohibition (masking) of data update of the first 1 byte is performed by rewriting the same data or by setting the write data to “FFh” and not rewriting the flash memory 2.
In the third data write, the write start address is kept the same as the previous one, the data update in the first 1 byte and the second 1 byte is prohibited, the specified data is written in the third 1 byte, and the rest FFh is written in the 125 bytes.

上記処理を繰り返すことで、最小書き込みサイズの128バイトである1ブロック内に、1バイトのデータを順次詰めて格納させる。
最初の128バイトへのデータ書き込みが全て完了すると、書き込み開始アドレスを、128バイト分だけずらして、次の128バイト領域へのデータ書き込みを同様にして実行させる。
By repeating the above process, 1-byte data is sequentially packed and stored in one block, which is the minimum write size of 128 bytes.
When all data writing to the first 128 bytes is completed, the writing start address is shifted by 128 bytes, and data writing to the next 128-byte area is executed in the same manner.

上記のように、前回までにデータが書き込まれているエリアのデータ更新を禁止し、更新が禁止されるエリアの次のアドレスに新たなデータを書き込む動作を、同一の書き込み開始アドレスで複数回にわたって行わせるようにすれば、最小書き込みサイズ(本実施形態では128バイト)よりもサイズの小さいデータ(本実施形態では1バイト)を詰めて書き込むことができ、フラッシュメモリ2の容量を効率良く使用することができる。   As described above, the update operation of the area where data has been written up to the previous time is prohibited, and the operation of writing new data to the next address of the area where the update is prohibited is performed multiple times at the same write start address. By doing so, data (1 byte in this embodiment) smaller than the minimum write size (128 bytes in this embodiment) can be written and written, and the capacity of the flash memory 2 can be used efficiently. be able to.

ここで、どのアドレスまでデータ更新を禁止し、指定データをどのアドレスに書き込むかは、データ書き込みを行った最終アドレスを記憶しておくことで判断でき、また、最終アドレスから書き込みを行う128バイト単位のブロックとして、次のブロックに移行させるべきであるか否かを判断できる。
尚、データ書き込みを行った最終アドレスを記憶する構成であれば、必ずしも書き込むデータのサイズは一定である必要はない。
Here, to which address data update is prohibited and to which address the specified data is written can be determined by storing the last address where the data has been written, and in units of 128 bytes from which the last address is written As a block, it can be determined whether or not to move to the next block.
Note that the size of data to be written does not necessarily have to be constant as long as the last address where data has been written is stored.

また、本実施形態のように、書き込みデータのサイズが固定される場合には、書き込み回数とデータサイズとの乗算結果が、既にデータが書き込まれているエリアの大きさを示すことになる。
そこで、データ書き込みを行った最終アドレスを記憶する代わりに、書き込み回数を計数して記憶し、書き込み回数の計数結果と、予め記憶されているデータサイズとから既にデータが書き込まれているエリアの大きさ(容量)を算出し、次に指定データを書き込むべきアドレスを特定することができる。
Further, when the size of the write data is fixed as in the present embodiment, the multiplication result of the number of times of writing and the data size indicates the size of the area where data has already been written.
Therefore, instead of storing the last address where data was written, the number of times of writing is counted and stored, and the size of the area where data has already been written based on the counting result of the number of times of writing and the data size stored in advance. Then, the address (capacity) is calculated, and the address where the designated data is to be written next can be specified.

更に、書き込むデータにインデックスデータを付すことで、既にデータが書き込まれているエリア(次回に指定データを書き込むアドレス)を特定させることができる。
例えば、データサイズが一定である場合に、データの前又は後に一定サイズのインデックスデータを付し、このインデックスデータを書き込み毎にインクリメントさせるようにする。
Furthermore, by adding index data to the data to be written, it is possible to specify an area where data has already been written (address for writing designated data next time).
For example, when the data size is constant, index data of a certain size is attached before or after the data, and this index data is incremented for each writing.

この場合、インデックスデータの書き込み位置は予め特定されるから、インデックスデータが書き込まれるはずのアドレス位置のデータを検証し、インデックスデータとは認められない値が格納されたアドレスのうちで最も小さいアドレスを、既にデータが書き込まれているエリアの次のアドレスであって次回の指定データを書き込むアドレスとして特定することができる。   In this case, since the writing position of the index data is specified in advance, the data at the address position where the index data should be written is verified, and the smallest address among the addresses storing the values that are not recognized as the index data is selected. It can be specified as the address next to the area where data has already been written and the address for writing the next designated data.

また、インデックスデータとして、書き込み開始位置情報や書き込み終了位置情報などをデータに付すようにすることができる。
また、128バイトの1ブロックの最初からデータを書き始めるのではなく、データをブロックの後ろ側から書き込み、書き込み位置を順次前にずらすようにすることができる。
Further, as index data, write start position information, write end position information, and the like can be attached to the data.
Further, instead of starting to write data from the beginning of one block of 128 bytes, it is possible to write data from the back side of the block and shift the writing position sequentially forward.

尚、本実施形態では、書き込みの最小単位を128バイト、データサイズを1バイトとしたが、これらのサイズに限定されるものでないことは明らかである。
ここで、上記実施形態から把握し得る請求項以外の技術思想について、以下にその効果と共に記載する。
(イ)前記データが一定サイズであって、前記インデックスデータが、データの前又は後に付される一定サイズで、かつ、書き込み毎にインクリメントされることを特徴とする請求項5記載の自動車用電子制御装置。
In this embodiment, the minimum unit for writing is 128 bytes and the data size is 1 byte, but it is obvious that the present invention is not limited to these sizes.
Here, technical ideas other than the claims that can be grasped from the above embodiment will be described together with the effects thereof.
6. The automobile electronic device according to claim 5, wherein the data has a fixed size, and the index data is a fixed size added before or after the data and is incremented for each writing. Control device.

上記発明によると、データ及びインデックスデータのサイズが一定であるので、詰めて書き込みを行わせる場合には、インデックスデータが書き込まれるアドレス位置が予め特定されることになる。
従って、インデックスデータが書き込まれるアドレス位置のデータを読み取り、インデックスデータであると認められるデータが書き込まれているか否かを判断することで、どこまで書き込みが行われているか、即ち、既にデータが書き込まれているエリアを特定することができる。
According to the above invention, since the sizes of the data and the index data are constant, the address position where the index data is written is specified in advance when writing data in a narrow manner.
Therefore, by reading the data at the address position where the index data is written and determining whether or not the data that is recognized as the index data is written, the extent to which the data has been written, that is, the data has already been written. Area can be identified.

実施形態における自動車用電子制御装置の構成図。The block diagram of the electronic controller for motor vehicles in embodiment. 実施形態におけるフラッシュメモリへの書き込み処理のメインルーチンを示すフローチャート。6 is a flowchart showing a main routine of a write process to the flash memory in the embodiment. 実施形態におけるフラッシュメモリへの書き込み処理のサブルーチンを示すフローチャート。6 is a flowchart showing a subroutine of a writing process to the flash memory in the embodiment. 実施形態における書き込み回数毎の書き込みの様子を示す図。The figure which shows the mode of the write-in for every write frequency in embodiment.

符号の説明Explanation of symbols

1…エンジンコントロールユニット、2…フラッシュメモリ、3…RAM、4…マイクロコンピュータ、5…フラッシュ書き込みツール、6…通信回線   DESCRIPTION OF SYMBOLS 1 ... Engine control unit, 2 ... Flash memory, 3 ... RAM, 4 ... Microcomputer, 5 ... Flash writing tool, 6 ... Communication line

Claims (5)

電気的にデータの消去及び書き込みが可能な不揮発性メモリを備えた自動車用電子制御装置であって、
前記不揮発性メモリにデータを書き込むときに、既にデータが書き込まれているエリアのデータ更新を禁止して、同一の書き込み開始アドレスで複数回にわたってデータの書き込みを行うことを特徴とする自動車用電子制御装置。
An electronic control device for an automobile equipped with a nonvolatile memory capable of electrically erasing and writing data,
Electronic data control for automobiles, wherein when data is written to the non-volatile memory, data update is prohibited in an area where data has already been written, and data is written multiple times at the same write start address apparatus.
既にデータが書き込まれているエリアに対して同じデータを再度書き込むことで、データ更新を禁止することを特徴とする請求項1記載の自動車用電子制御装置。 2. The electronic control apparatus for an automobile according to claim 1, wherein the data update is prohibited by rewriting the same data in an area where data has already been written. 書き込まれたデータの最終アドレスを記憶し、該最終アドレスに基づいて既にデータが書き込まれているエリアを特定することを特徴とする請求項1又は2記載の自動車用電子制御装置。 3. The automobile electronic control device according to claim 1, wherein a final address of the written data is stored, and an area in which the data is already written is specified based on the final address. 1回に書き込むデータのサイズを固定し、書き込み回数から既にデータが書き込まれているエリアを特定することを特徴とする請求項1又は2記載の自動車用電子制御装置。 3. The electronic control unit for an automobile according to claim 1, wherein the size of data to be written at one time is fixed, and an area in which data is already written is specified from the number of times of writing. 書き込みデータにインデックスデータを付し、前記インデックスデータに基づいて既にデータが書き込まれているエリアを特定することを特徴とする請求項1又は2記載の自動車用電子制御装置。 3. The vehicle electronic control device according to claim 1, wherein index data is attached to the write data, and an area in which the data is already written is specified based on the index data.
JP2006335300A 2006-12-13 2006-12-13 Automobile electronic controller Pending JP2008146521A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2006335300A JP2008146521A (en) 2006-12-13 2006-12-13 Automobile electronic controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2006335300A JP2008146521A (en) 2006-12-13 2006-12-13 Automobile electronic controller

Publications (1)

Publication Number Publication Date
JP2008146521A true JP2008146521A (en) 2008-06-26

Family

ID=39606605

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2006335300A Pending JP2008146521A (en) 2006-12-13 2006-12-13 Automobile electronic controller

Country Status (1)

Country Link
JP (1) JP2008146521A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2012118892A (en) * 2010-12-03 2012-06-21 Yazaki Corp Data storage device and data storage method
WO2013042513A1 (en) 2011-09-21 2013-03-28 日立オートモティブシステムズ株式会社 Electronic control device for automobile and data communication method
JP2013069005A (en) * 2011-09-21 2013-04-18 Hitachi Automotive Systems Ltd Electronic control device for automobile
CN103176906A (en) * 2011-09-21 2013-06-26 日立汽车系统株式会社 Electronic control unit for vehicle and method of writing data
US9612773B2 (en) 2013-11-21 2017-04-04 Samsung Electronics Co., Ltd. User device having a host flash translation layer (FTL), a method for transferring an erase count thereof, a method for transferring reprogram information thereof, and a method for transferring a page offset of an open block thereof

Cited By (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2012118892A (en) * 2010-12-03 2012-06-21 Yazaki Corp Data storage device and data storage method
CN103890731B (en) * 2011-09-21 2016-10-12 日立汽车系统株式会社 Electronic vehicle controls device and data communications method
JP2013069005A (en) * 2011-09-21 2013-04-18 Hitachi Automotive Systems Ltd Electronic control device for automobile
CN103176906A (en) * 2011-09-21 2013-06-26 日立汽车系统株式会社 Electronic control unit for vehicle and method of writing data
CN103890731A (en) * 2011-09-21 2014-06-25 日立汽车系统株式会社 Electronic control device for automobile and data communication method
US9164696B2 (en) 2011-09-21 2015-10-20 Hitachi Automotive Systems, Ltd. Electronic control unit for vehicle and data communication method
WO2013042513A1 (en) 2011-09-21 2013-03-28 日立オートモティブシステムズ株式会社 Electronic control device for automobile and data communication method
US9836225B2 (en) 2011-09-21 2017-12-05 Hitachi Automotive Systems, Ltd. Electronic control unit for vehicle and data communication method
CN103176906B (en) * 2011-09-21 2018-10-02 日立汽车系统株式会社 The wiring method of electronic vehicle control device and data
US10353594B2 (en) 2011-09-21 2019-07-16 Hitachi Automotive Systems, Ltd. Electronic control unit for vehicle and method of writing data
US10606229B2 (en) 2011-09-21 2020-03-31 Hitachi Automotive Systems, Ltd. Electronic control unit for vehicle and method of executing program
US11360698B2 (en) 2011-09-21 2022-06-14 Hitachi Astemo, Ltd. Electronic control unit for vehicle and method of writing data
US11556104B2 (en) 2011-09-21 2023-01-17 Hitachi Astemo, Ltd. Electronic control unit for vehicle and method of executing program
US9612773B2 (en) 2013-11-21 2017-04-04 Samsung Electronics Co., Ltd. User device having a host flash translation layer (FTL), a method for transferring an erase count thereof, a method for transferring reprogram information thereof, and a method for transferring a page offset of an open block thereof

Similar Documents

Publication Publication Date Title
US7487286B2 (en) Flash memory and method for controlling the memory
JP2003122622A (en) Vehicle controller for controlling reception and writing of data
JP5176728B2 (en) Electronic control device for vehicle
JP4135220B2 (en) Electronic control device for vehicle
JP2008146521A (en) Automobile electronic controller
JP2010247590A (en) Rewriting system for vehicle
JP2006312356A (en) Vehicle control system
JP3893755B2 (en) Electronic control unit
US6044014A (en) Electronic control unit and method for storing rewrite count of nonvolatile memory
JP4706778B2 (en) Electronic control device and vehicle control system
JP2000045858A (en) Rewriting number storing method for electronic control unit and non-volatile memory
JP2004139521A (en) Electronic control device
JP2004164601A (en) Electronic controller
JP5360216B2 (en) Information management apparatus and information management method
JP2002323902A (en) Electronic controller
TW200404304A (en) Electronic control apparatus
JP6415990B2 (en) Electronic control unit for automobile
JP4556653B2 (en) Program rewriting system for in-vehicle electronic control device, boot loader for computer in in-vehicle electronic control device, recording medium, and in-vehicle electronic control device
JP5635941B2 (en) Electronic control unit for automobile
JP2005346635A (en) Electronic controller for automobile
JP2006063939A (en) Program rewritable electronic control device
JP2003104138A (en) System for monitoring vehicle control device for rewriting of data
JP5079027B2 (en) Electronic control unit
JP2008225922A (en) Nonvolatile storage device
JP3623481B2 (en) Vehicle control apparatus for controlling rewriting of nonvolatile memory