JPH10187548A - Storage device - Google Patents

Storage device

Info

Publication number
JPH10187548A
JPH10187548A JP34365996A JP34365996A JPH10187548A JP H10187548 A JPH10187548 A JP H10187548A JP 34365996 A JP34365996 A JP 34365996A JP 34365996 A JP34365996 A JP 34365996A JP H10187548 A JPH10187548 A JP H10187548A
Authority
JP
Japan
Prior art keywords
storage
storage device
information
rewrite
rewritten
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
JP34365996A
Other languages
Japanese (ja)
Inventor
Hiroki Oota
廣城 太田
Kenji Suga
健治 須賀
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.)
Toyota Industries Corp
Original Assignee
Toyoda Automatic Loom Works 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 Toyoda Automatic Loom Works Ltd filed Critical Toyoda Automatic Loom Works Ltd
Priority to JP34365996A priority Critical patent/JPH10187548A/en
Publication of JPH10187548A publication Critical patent/JPH10187548A/en
Pending legal-status Critical Current

Links

Abstract

PROBLEM TO BE SOLVED: To previously confirm that a storage means can not be rewritten by displaying a warning on a display means when a rewrite frequency count value approximates the rewrite frequency limit value of the storage means up to a specific number. SOLUTION: It is judged whether 1st information stored in a 1st information storage area 2 matches 2nd information stored in a 2nd information storage area 4. When both the pieces of information match each other, it is decided that the storage contents of a main storage device 1 are not rewritten and the rewriting decision process is finished. When both the pieces of information do not match each other, it is decided that the storage contents of a main storage area 2 are rewritten and the 1st information stored in the 1st information storage area 2 is copied and stored in the 2nd information storage area 4. Then a count part 5 increases its rewrite frequency count value by one. When it is judged that the rewrite frequency count value of the count part 5 approximates the write frequency limit value of the main storage device 1 up to the specific value, a warning is displayed on a display device 7.

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】本発明は、フラッシュメモリ
などのように書換回数に制限のあるメモリを用いた記憶
装置に関する。
The present invention relates to a storage device using a memory having a limited number of rewrites, such as a flash memory.

【0002】[0002]

【従来の技術】従来、フラッシュメモリなどのような書
換え可能なメモリを用いてコンピュ−タを構成し、この
コンピュ−タにより電動車両等を制御するような場合、
例えば試作段階でフラッシュメモリの記憶内容を繰り返
し書換えることが多い。フラッシュメモリなどは、その
性質上、記憶内容の書き換え可能な回数が制限されてお
り、メ−カの保証する書き換え回数以上に書き換えを繰
り返すと書き換えできなくなる可能性があり、書き換え
できなくなったメモリは使用できない。
2. Description of the Related Art Conventionally, when a computer is configured using a rewritable memory such as a flash memory and the like, and an electric vehicle or the like is controlled by the computer,
For example, the storage contents of the flash memory are often rewritten repeatedly at the prototype stage. Due to the nature of flash memory and the like, the number of times the stored contents can be rewritten is limited. If rewriting is repeated more than the number of times guaranteed by the manufacturer, rewriting may not be possible. I can not use it.

【0003】[0003]

【発明が解決しようとする課題】上記のように、従来
は、フラッシュメモリなどの記憶内容の書換えが繰り返
し行われて制限値になった場合、以後、突然に記憶内容
の書換えができなくなるため試作段階等の電動車両の制
御の改善に支障が出るという問題がある。
As described above, conventionally, when rewriting of storage contents of a flash memory or the like is repeatedly performed to reach a limit value, the storage contents cannot be rewritten suddenly thereafter, so that a trial production is performed. There is a problem that improvement in control of the electric vehicle such as stages is hindered.

【0004】そこで本発明では、記憶手段の記憶内容の
書換回数が制限値近くになったときにこれを警報するこ
とにより、記憶内容の書換えができなくなる可能性があ
ることを事前に知ることができる記憶装置を提供するこ
とを課題とする。
Therefore, according to the present invention, when the number of times of rewriting of the storage contents of the storage means becomes close to the limit value, an alarm is issued to inform the user in advance that there is a possibility that the storage contents cannot be rewritten. An object of the present invention is to provide a storage device which can be used.

【0005】[0005]

【課題を解決するための手段】請求項1の発明は、記憶
装置を、記憶手段の記憶内容が書換えられたことを判別
する書換判別手段と、前記書換判別手段により前記記憶
手段の記憶内容が書換えられたことが判別される毎に書
換回数を計数する計数手段と、前記書換回数計数値が前
記記憶手段の書換回数制限値に所定数まで近づいたとき
警報表示をする表示手段とを備えた構成にすることであ
る。
According to a first aspect of the present invention, there is provided a storage device, comprising: rewriting determination means for determining that the storage content of the storage means has been rewritten; and storing the storage content of the storage means by the rewriting determination means. A counting means for counting the number of rewriting each time it is determined that rewriting has been performed, and a display means for displaying an alarm when the rewriting number count approaches a predetermined number of rewriting times limit value of the storage means. Configuration.

【0006】請求項2の発明は、請求項1の記憶装置に
おいて、前記書換判別手段は、書換判別プログラムを有
し、書換判別プログラムの今回の実行における前記記憶
手段の記憶内容と前回の実行における記憶内容とを比較
して両記憶内容が異なる場合に前記記憶手段の記憶内容
が書換えられたことを判別する。
According to a second aspect of the present invention, in the storage device according to the first aspect, the rewrite determination means has a rewrite determination program, and the storage content of the storage means in the current execution of the rewrite determination program and the storage content in the previous execution. If the two stored contents are different from each other by comparing the stored contents, it is determined that the stored contents of the storage means have been rewritten.

【0007】請求項1及び2の発明によれば、書換判別
手段により記憶手段の記憶内容が書換えられたことが判
別される毎に計数手段がその書換回数を計数し、書換回
数計数値が記憶手段の書換回数制限値に所定数まで近づ
いたときに表示手段は残りの書換可能回数が少ないこと
を警報表示する。
According to the first and second aspects of the present invention, the counting means counts the number of rewriting each time the rewriting judging means judges that the content stored in the storage means has been rewritten, and the rewriting count value is stored. When the rewrite frequency limit value of the means is approached to a predetermined number, the display means displays an alarm indicating that the remaining rewrite count is small.

【0008】請求項3の発明は、請求項1又は2の記憶
装置において、前記表示手段は前記計数手段により計数
された書換回数値を表示することである。
According to a third aspect of the present invention, in the storage device according to the first or second aspect, the display means displays a rewrite count value counted by the counting means.

【0009】請求項3の発明によれば、計数手段により
計数された書換回数を表示手段で表示することができる
ため、記憶手段の書換回数制限値までの残りの書換可能
回数を認識することができる。
According to the third aspect of the present invention, the number of rewriting times counted by the counting means can be displayed on the display means, so that it is possible to recognize the remaining number of rewriting times up to the rewriting number limit value of the storage means. it can.

【0010】[0010]

【発明の実施の形態】次に、本発明の実施の形態につい
て図面を参照しながら説明する。図1は、第1の実施の
形態の構成を示したブロック図である。図1に示した主
記憶装置1は、電動車両に搭載され、電動車両の運転制
御に必要な記憶容量のフラッシュメモリが用いられてい
る。フラッシュメモリは記憶内容の書換回数に制限があ
るため書換回数制限値を超える書換はできない。主記憶
装置1には、後述の書換え判別プログラムの実行時に主
記憶装置1の記憶内容が書換えられたか否かを判別する
ための第1の情報を格納する第1情報格納領域2が設け
られている。この第1情報格納領域2に格納される第1
の情報は主記憶装置1の記憶内容が書き換えられる毎に
更新される。この第1の情報としては主記憶装置1の記
憶内容のプログラム名や、作成年月日などでよい。
Next, embodiments of the present invention will be described with reference to the drawings. FIG. 1 is a block diagram showing the configuration of the first embodiment. The main storage device 1 shown in FIG. 1 is mounted on an electric vehicle and uses a flash memory having a storage capacity necessary for operation control of the electric vehicle. Since the flash memory has a limit on the number of times of rewriting of stored contents, rewriting exceeding the number of times of rewriting cannot be performed. The main storage device 1 is provided with a first information storage area 2 for storing first information for determining whether or not the storage content of the main storage device 1 has been rewritten when executing a rewrite determination program described later. I have. The first information stored in the first information storage area 2
Is updated each time the content stored in the main storage device 1 is rewritten. The first information may be a program name of the contents stored in the main storage device 1, a creation date, and the like.

【0011】副記憶装置3は、プログラムにより書換え
可能な記憶装置であって、フラッシュメモリのように書
換回数に制限のあるものよりも、書換回数に制限の無い
メモリを使用することが望ましい。もし書換回数に制限
のあるメモリを使用する場合は、主記憶装置1よりも書
換制限回数の多いものを使用する。副記憶装置3には、
主記憶装置1の記憶内容が書換えられたか否かを判別す
るための第2の情報を格納する第2情報格納領域4が設
けられている。尚、この第2情報格納領域4に格納され
る第2の情報は、主記憶装置1の記憶内容が書き換えら
れる毎に第1情報格納領域2に格納されている第1の情
報をコピ−したものである。
The secondary storage device 3 is a storage device which can be rewritten by a program, and it is preferable to use a memory having no limit on the number of rewrites, rather than a device having a limit on the number of rewrites such as a flash memory. If a memory having a limited number of rewrites is used, a memory having a larger number of rewrites than the main storage device 1 is used. In the secondary storage device 3,
A second information storage area 4 for storing second information for determining whether or not the storage content of the main storage device 1 has been rewritten is provided. The second information stored in the second information storage area 4 is a copy of the first information stored in the first information storage area 2 every time the storage content of the main storage device 1 is rewritten. Things.

【0012】また、副記憶装置3には、後述の書換判別
プログラムが実行されて主記憶装置1の記憶内容の書換
えがあったことが判別される毎に、主記憶装置1の書換
回数を+1する計数部5が設けられている。
Each time a rewriting determination program described later is executed to determine that the storage content of the main storage device 1 has been rewritten, the number of times of rewriting of the main storage device 1 is incremented by one. A counting unit 5 is provided.

【0013】プログラム部6には、主記憶装置1の記憶
内容の書換えがあったか否かを判別するための書換判別
プログラムが格納されている。尚、この書換判別プログ
ラムの処理については後述する。
The program section 6 stores a rewrite determination program for determining whether or not the content stored in the main storage device 1 has been rewritten. The processing of the rewrite determination program will be described later.

【0014】プログラム部6に格納された書換判別プロ
グラムの実行により主記憶装置1の記憶内容の書換えが
あったと判別される毎に計数部5により書換回数がカウ
ントされると、表示装置7は書換回数を表示するととも
に、主記憶装置1の書換回数制限値に所定値まで近づい
た場合は警報表示をする。
When the counting unit 5 counts the number of rewrites each time it is determined that the storage content of the main storage device 1 has been rewritten by executing the rewrite determination program stored in the program unit 6, the display unit 7 rewrites. The number of times is displayed, and an alarm is displayed when the number of times of rewriting of the main storage device 1 approaches a predetermined value.

【0015】次に、プログラム部6に格納された書換判
別プログラムによる書換判別処理について説明する。図
2は、書換判別処理のフロ−チャ−トである。図2に示
すように、ステップS1において、第1情報格納領域2
に格納されている第1の情報と第2情報格納領域4に格
納されている第2の情報とが一致しているか否かを判断
する。
Next, a description will be given of the rewrite determination processing by the rewrite determination program stored in the program section 6. FIG. 2 is a flowchart of the rewrite determination process. As shown in FIG. 2, in step S1, the first information storage area 2
It is determined whether the first information stored in the second information and the second information stored in the second information storage area 4 match.

【0016】ステップS1において、上記両情報が一致
している場合は、主記憶装置1の記憶内容の書換えが無
かったと判別し、書換判別処理を終了する。一方、ステ
ップS1において、上記両情報が一致していない場合
は、主記憶装置1の記憶内容の書換えがあったと判別
し、ステップS2において、第1情報格納領域2に格納
されている第1の情報をコピ−して第2情報格納領域4
に格納する。
In step S1, if the two pieces of information match, it is determined that the content stored in the main storage device 1 has not been rewritten, and the rewrite determination process ends. On the other hand, if the two pieces of information do not match in step S1, it is determined that the contents stored in the main storage device 1 have been rewritten. In step S2, the first information stored in the first information storage area 2 is determined. The information is copied to the second information storage area 4
To be stored.

【0017】ステップS3において、計数部5による書
換回数計数値を+1する。ステップS4において、計数
部5による書換回数計数値が主記憶装置1の書換回数制
限値に所定値まで近づいたと判断した場合、ステップS
5において、表示装置7に警報表示をする。尚、表示装
置7に常時、書換回数計数値を表示させておき、書換回
数計数値が主記憶装置1の書換回数制限値に近づいた場
合、警報表示をするようにしてもよい。
In step S3, the count value of the number of rewrites by the counting unit 5 is incremented by one. If it is determined in step S4 that the count value of the number of rewrites by the counting unit 5 has approached the limit value of the number of rewrites of the main storage device 1 to a predetermined value, step S4
At 5, an alarm is displayed on the display device 7. The rewriting count value may be always displayed on the display device 7, and an alarm may be displayed when the rewriting count value approaches the rewriting count limit value of the main storage device 1.

【0018】以上のようにプログラム部6に格納された
書換判別プログラムを実行したとき主記憶装置1の記憶
内容の書換えが行われたと判別する毎に書換回数を計数
し、書換回数計数値が主記憶装置1の書換回数制限値に
所定値まで近づくと警報を表示することができるため、
主記憶装置1が書換え不能になる前にフラッシュメモリ
を交換するなどの対策を立てて電動車両の制御の改善等
を継続することができる。
As described above, when the rewriting determination program stored in the program section 6 is executed, the number of rewritings is counted each time it is determined that rewriting of the storage contents of the main storage device 1 has been performed. Since the alarm can be displayed when the number of rewrites of the storage device 1 approaches the predetermined value,
It is possible to take measures such as replacing the flash memory before the main storage device 1 becomes unrewritable, and to continuously improve the control of the electric vehicle.

【0019】次に、他の実施の形態について説明する。
図3は、第2の実施の形態の構成を示したブロック図で
あり、図1の第1の実施の形態と比較することにより明
らかなように、前述の書換判別プログラムを格納するプ
ログラム部6を主記憶装置1の内部に設けたものであ
る。従って、この実施の形態の作用効果は前記第1の実
施の形態の記憶装置と同じである。尚、上記プログラム
部6を副記憶装置3に設けてもよい。
Next, another embodiment will be described.
FIG. 3 is a block diagram showing the configuration of the second embodiment, and as apparent from comparison with the first embodiment of FIG. 1, a program unit 6 for storing the above-described rewrite determination program. Are provided inside the main storage device 1. Therefore, the operation and effect of this embodiment are the same as those of the storage device of the first embodiment. The program section 6 may be provided in the secondary storage device 3.

【0020】図4は、第3の実施の形態の構成を示した
ブロック図である。第3の実施の形態の記憶装置は、主
記憶装置1の記憶内容全体を副記憶装置3に記憶し、書
換判別プログラムを実行することにより主記憶装置1の
記憶内容全体と副記憶装置3の記憶内容全体を比較した
うえ、主記憶装置1の書換えが行われたか否かを判別す
るものである。但し、副記憶装置3の容量を大きくする
ことが必要であるとともに、書換判別プログラムの実行
時間が長くなる。
FIG. 4 is a block diagram showing the configuration of the third embodiment. The storage device according to the third embodiment stores the entire storage contents of the main storage device 1 in the sub storage device 3 and executes the rewrite determination program to thereby execute the rewrite determination program so that the entire storage contents of the main storage device 1 and the After comparing the entire stored contents, it is determined whether or not the main storage device 1 has been rewritten. However, it is necessary to increase the capacity of the secondary storage device 3, and the execution time of the rewrite determination program becomes longer.

【0021】尚、以上の実施の形態において、記憶内容
の書換回数計数値が書換回数制限値に達したときに異常
表示するようにしてもよい。このようにすれば、記憶内
容の書換えが不能になったとき即座に記憶内容の書換回
数が制限値に達したことを認識することができる。
In the above embodiment, an abnormal display may be made when the count value of the number of times of rewriting of the stored contents reaches the number of times of rewriting. This makes it possible to immediately recognize that the number of times of rewriting of the stored content has reached the limit value when the rewriting of the stored content becomes impossible.

【0022】[0022]

【発明の効果】請求項1及び2の発明によれば、書換判
別手段により記憶手段の記憶内容が書換えられたことが
判別される毎に計数手段がその書換回数を計数し、書換
回数計数値が記憶手段の書換回数制限値に所定数まで近
づいたときに表示手段は残りの書換可能回数が少ないこ
とを警報表示することができるため、記憶手段が書換え
不能になることを事前に知ることができる。
According to the first and second aspects of the present invention, the counting means counts the number of rewriting each time the rewriting judging means judges that the contents stored in the storage means have been rewritten, and counts the number of rewriting times. The display means can display an alarm indicating that the remaining number of rewrites is small when the number of rewrites approaches the limit value of the number of rewrites of the storage means to a predetermined number, so that it is possible to know in advance that the storage means cannot be rewritten. it can.

【0023】請求項3の発明によれば、計数手段により
計数された書換回数を表示手段で表示することができる
ため、記憶手段の書換回数制限値までの残りの書換可能
回数を認識することができる。
According to the third aspect of the present invention, the number of rewrites counted by the counting means can be displayed on the display means, so that it is possible to recognize the remaining number of rewrites up to the rewrite number limit value in the storage means. it can.

【図面の簡単な説明】[Brief description of the drawings]

【図1】本発明の第1の実施の形態の構成を示したブロ
ック図である。
FIG. 1 is a block diagram showing a configuration of a first exemplary embodiment of the present invention.

【図2】第1の実施の形態の作用を示したフロ−チャ−
トである。
FIG. 2 is a flowchart showing the operation of the first embodiment.
It is.

【図3】本発明の第2の実施の形態の構成を示したブロ
ック図である。
FIG. 3 is a block diagram showing a configuration of a second exemplary embodiment of the present invention.

【図4】本発明の第3の実施の形態の構成を示したブロ
ック図である。
FIG. 4 is a block diagram showing a configuration of a third exemplary embodiment of the present invention.

【符号の説明】[Explanation of symbols]

1 主記憶装置 2 第1情報格納領域 3 副記憶装置 4 第2情報格納領域 5 計数部 6 プログラム部 7 表示装置 REFERENCE SIGNS LIST 1 main storage device 2 first information storage area 3 secondary storage device 4 second information storage area 5 counting unit 6 program unit 7 display device

Claims (3)

【特許請求の範囲】[Claims] 【請求項1】 記憶手段の記憶内容が書換えられたこと
を判別する書換判別手段と、前記書換判別手段により前
記記憶手段の記憶内容が書換えられたことが判別される
毎に書換回数を計数する計数手段と、前記書換回数計数
値が前記記憶手段の書換回数制限値に所定数まで近づい
たとき警報表示をする表示手段とを備えた記憶装置。
1. A rewrite discriminating means for discriminating that the content stored in a storage means has been rewritten, and counting the number of rewrites each time the rewrite discrimination means determines that the content stored in the storage means has been rewritten. A storage device comprising: counting means; and display means for displaying an alarm when the rewrite count value approaches a rewrite limit value of the storage means to a predetermined number.
【請求項2】 前記書換判別手段は、書換判別プログラ
ムを有し、書換判別プログラムの今回の実行における前
記記憶手段の記憶内容と前回の実行における記憶内容と
を比較して両記憶内容が異なる場合に前記記憶手段の記
憶内容が書換えられたことを判別する請求項1に記載の
記憶装置。
2. The rewrite determination means has a rewrite determination program, and compares the storage content of the storage means in the current execution of the rewrite determination program with the storage content in the previous execution, and the two storage contents are different. 2. The storage device according to claim 1, wherein it is determined that the content stored in said storage means has been rewritten.
【請求項3】 前記表示手段は前記計数手段により計数
された書換回数計数値を表示する請求項1又は2に記載
の記憶装置。
3. The storage device according to claim 1, wherein said display means displays a rewrite count value counted by said counting means.
JP34365996A 1996-12-24 1996-12-24 Storage device Pending JPH10187548A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP34365996A JPH10187548A (en) 1996-12-24 1996-12-24 Storage device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP34365996A JPH10187548A (en) 1996-12-24 1996-12-24 Storage device

Publications (1)

Publication Number Publication Date
JPH10187548A true JPH10187548A (en) 1998-07-21

Family

ID=18363250

Family Applications (1)

Application Number Title Priority Date Filing Date
JP34365996A Pending JPH10187548A (en) 1996-12-24 1996-12-24 Storage device

Country Status (1)

Country Link
JP (1) JPH10187548A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6993690B1 (en) 1998-12-16 2006-01-31 Hagiwara Sys-Com Co., Ltd. Memory unit having memory status indicator
JP2011186553A (en) * 2010-03-04 2011-09-22 Toshiba Corp Memory management device
JP2014089734A (en) * 2006-11-24 2014-05-15 Lsi Inc Reducing write, and estimating and displaying residual life of nonvolatile memory
US9280466B2 (en) 2008-09-09 2016-03-08 Kabushiki Kaisha Toshiba Information processing device including memory management device managing access from processor to memory and memory management method

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6993690B1 (en) 1998-12-16 2006-01-31 Hagiwara Sys-Com Co., Ltd. Memory unit having memory status indicator
JP2014089734A (en) * 2006-11-24 2014-05-15 Lsi Inc Reducing write, and estimating and displaying residual life of nonvolatile memory
US9280466B2 (en) 2008-09-09 2016-03-08 Kabushiki Kaisha Toshiba Information processing device including memory management device managing access from processor to memory and memory management method
JP2011186553A (en) * 2010-03-04 2011-09-22 Toshiba Corp Memory management device

Similar Documents

Publication Publication Date Title
JPWO2014125587A1 (en) Programmable display, its program
JPH06309177A (en) Microcomputer
JPH10187548A (en) Storage device
JP4279593B2 (en) Elevator control device
JPH0736749A (en) Storage condition display device in information processing system
US20030043208A1 (en) Dynamic menu system
EP1640829A2 (en) Programmable controller
CN109828808B (en) Anti-interception method and related equipment
CN113849229A (en) Server starting method and device, electronic equipment and readable storage medium
US20070186161A1 (en) Machine signal processing device
WO2014083646A1 (en) Programmable indicator and program
JP2000057000A (en) Micro computer with built-in flash memory
JPH09160743A (en) Automatic generating method for hierarchical menu
CN108241578A (en) Automobile electronic control unit software compatibility inspection method and device
JPH0764838A (en) Information processor and control method
JPH09190329A (en) Multi-window system
JP2004021575A (en) Programmable controller
JPS6286406A (en) Programmable controller
JP3541094B2 (en) Multitask control system and control method
JP2701089B2 (en) Information transfer method
CN117170664A (en) Method, device, computer equipment and storage medium for controlling interface rotation
JPH04211892A (en) Electronic computer
JPH113202A (en) Program type display device
JPH08227400A (en) Electronic computer
JPH0373001B2 (en)