JP2015115049A - Microcomputer - Google Patents

Microcomputer Download PDF

Info

Publication number
JP2015115049A
JP2015115049A JP2013259151A JP2013259151A JP2015115049A JP 2015115049 A JP2015115049 A JP 2015115049A JP 2013259151 A JP2013259151 A JP 2013259151A JP 2013259151 A JP2013259151 A JP 2013259151A JP 2015115049 A JP2015115049 A JP 2015115049A
Authority
JP
Japan
Prior art keywords
group
data
ram
abnormal
written
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.)
Granted
Application number
JP2013259151A
Other languages
Japanese (ja)
Other versions
JP6156117B2 (en
Inventor
基彰 桑原
Motoaki Kuwabara
基彰 桑原
敏和 日置
Toshikazu Hioki
敏和 日置
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Denso Corp
Original Assignee
Denso Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Denso Corp filed Critical Denso Corp
Priority to JP2013259151A priority Critical patent/JP6156117B2/en
Publication of JP2015115049A publication Critical patent/JP2015115049A/en
Application granted granted Critical
Publication of JP6156117B2 publication Critical patent/JP6156117B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • For Increasing The Reliability Of Semiconductor Memories (AREA)
  • Techniques For Improving Reliability Of Storages (AREA)

Abstract

PROBLEM TO BE SOLVED: To provide a microcomputer that normally writes an abnormal group having abnormal data stored in a read-only memory unit into another free area while securing capacity.SOLUTION: A microcomputer executes error correction of abnormal data when there are abnormal data, for each group stored in a ROM (S400), and executes write object determination processing for determining whether or not each group is an object to be written into a RAM on the basis of the priority level and data amount of the group, regardless of an abnormal group or a normal group(S402). When the group is not an object to be written (S404: No), the group is determined to be unnecessary and not written into the RAM (S406). When the group is an object to be written (S404: Yes) and there is a write area in the RAM (S408: Yes), data in the pertinent group of the ROM are written into the RAM (S410).

Description

本発明は、読出し専用の記憶部に記憶されている異常データを読み書き可能な記憶部に書き込む車載電子制御装置に搭載されるマイクロコンピュータに関する。   The present invention relates to a microcomputer mounted on an on-vehicle electronic control device that writes abnormal data stored in a read-only storage unit to a readable / writable storage unit.

電子制御装置の記憶部に異常が発生し、プログラムまたは定数等のデータを正常に読み出せない場合、正常な処理を実行できなくなる。この場合、電子制御装置をリセットして読出しをリトライすることが考えられる。しかし、リトライしても記憶部の異常が回復しない場合には、処理を実行できないという問題がある。   If an abnormality occurs in the storage unit of the electronic control unit and data such as a program or a constant cannot be read normally, normal processing cannot be executed. In this case, it is conceivable to retry reading by resetting the electronic control unit. However, there is a problem that the processing cannot be executed if the abnormality of the storage unit is not recovered even after retrying.

特に、車両に搭載される電子制御装置の場合、電子制御装置をリセットしてリトライしても記憶部の異常が回復しないと車両制御を実行できないので、車両を正常に走行させることができない。したがって、記憶部の異常が発生したときに適切な処理を施して車両制御を実行することが望まれる。   In particular, in the case of an electronic control device mounted on a vehicle, even if the electronic control device is reset and retried, vehicle control cannot be executed unless the abnormality of the storage unit is recovered, and thus the vehicle cannot be run normally. Therefore, it is desirable to execute vehicle control by performing appropriate processing when an abnormality occurs in the storage unit.

そこで、特許文献1に開示されている技術では、書き込み可能な記憶装置に記憶されたデータが異常の場合、同じ書き込み可能な記憶装置の空き領域に異常データを訂正して書き込んでいる。そして、訂正されたデータに基づいて処理が実行される。   Therefore, in the technique disclosed in Patent Document 1, when the data stored in the writable storage device is abnormal, the abnormal data is corrected and written in the empty area of the same writable storage device. Then, processing is executed based on the corrected data.

特表2009−506445号公報Special table 2009-506445

異常データが記憶されている同じ書き込み可能な記憶装置の空き領域に異常データを訂正して書き込む構成では、書き込み可能な記憶装置の空き領域の容量を予め確保しておかないと、容量が不足して異常データを訂正して書き込むことが困難になるおそれがある。また、空き領域が正常であるとは限らないので、異常な空き領域に訂正したデータを書き込むおそれがある。   In a configuration in which abnormal data is corrected and written in the free space of the same writable storage device that stores abnormal data, the capacity is insufficient unless the free space of the writable storage device is secured in advance. It may be difficult to correct and write abnormal data. In addition, since the free area is not always normal, there is a possibility that the corrected data is written in the abnormal free area.

本発明は、上記課題を解決するためになされたものであり、読出し専用の記憶部に記憶された異常データを有する異常グループを他の空き領域に容量を確保して正常に書き込む車載電子制御装置に搭載されるマイクロコンピュータを提供することを目的とする。   The present invention has been made in order to solve the above-described problem, and an in-vehicle electronic control apparatus that normally writes an abnormal group having abnormal data stored in a read-only storage unit while ensuring a capacity in another free space It aims at providing the microcomputer mounted in.

本発明のマイクロコンピュータは、読出し専用の第1記憶部と、読み書き可能な第2記憶部と、第1記憶部の異常を検出する第1異常検出手段と、第2記憶部の異常を検出する第2異常検出手段と、第1記憶部に記憶されているグループのうち、少なくとも第1異常検出手段が異常を検出した異常データを有する異常グループを、第2異常検出手段が異常を検出した第2記憶部の異常領域以外の正常領域に書き込む書込手段と、を備える。   The microcomputer of the present invention detects a read-only first storage unit, a readable / writable second storage unit, first abnormality detection means for detecting an abnormality in the first storage unit, and an abnormality in the second storage unit. Among the groups stored in the second abnormality detection means and the first storage unit, at least an abnormality group having abnormality data in which the first abnormality detection means has detected an abnormality is detected. And a writing means for writing in a normal area other than the abnormal area of the storage unit.

この構成によれば、読出し専用の第1記憶部とは異なる読み書き可能な第2記憶部に異常データを有する異常グループを書き込むので、異常グループを書き込むための空き領域の容量を十分に確保できる。また、第2記憶部の異常を検出した上で第2記憶部の異常領域以外の正常領域に異常グループを書き込むので、異常データを正常に第2記憶部に書き込むことができる。   According to this configuration, since an abnormal group having abnormal data is written to a second readable / writable second storage unit that is different from the read-only first storage unit, it is possible to sufficiently secure a free space capacity for writing the abnormal group. In addition, since the abnormality group is written to the normal area other than the abnormal area of the second storage unit after detecting the abnormality of the second storage unit, the abnormal data can be normally written to the second storage unit.

そして、読み書き可能な第2記憶部に異常グループを書き込むので、異常データを訂正せずに第2記憶部に書き込む場合にも、第2記憶部上で必要なときに異常データを訂正して使用することができる。尚、異常データを訂正してから第2記憶部に書き込んでもよい。   And since the abnormal group is written to the readable / writable second storage unit, the abnormal data is corrected and used when necessary on the second storage unit even when the abnormal data is written to the second storage unit without correction. can do. The abnormal data may be corrected and written to the second storage unit.

第1実施形態によるマイクロコンピュータを示すブロック図。The block diagram which shows the microcomputer by 1st Embodiment. 第1実施形態によるROMからRAMへのデータ書き込みを示す模式図。The schematic diagram which shows the data writing from ROM to RAM by 1st Embodiment. ROM異常時処理を示すフローチャート。The flowchart which shows a process at the time of ROM abnormality. 書込対象判定処理を示すフローチャート。6 is a flowchart showing a write target determination process. RAM空き領域チェック処理を示すフローチャート。The flowchart which shows RAM empty area check processing. 第2実施形態によるマイクロコンピュータを示すブロック図。The block diagram which shows the microcomputer by 2nd Embodiment. 第2実施形態によるROMからRAMへのデータ書き込みを示す模式図。The schematic diagram which shows the data writing from ROM to RAM by 2nd Embodiment.

以下、本発明の実施形態を図に基づいて説明する。
[第1実施形態]
図1に示すように、マイクロコンピュータ2は、CPU10とROM20とRAM30と共通バス100とを備えており、車載電子制御装置に搭載される。CPU10は、マイクロコンピュータ2の起動時と、起動後において一定時間間隔または処理負荷の低いときなどに、ROM20およびRAM30のメモリチェックを行う。
Hereinafter, embodiments of the present invention will be described with reference to the drawings.
[First Embodiment]
As shown in FIG. 1, the microcomputer 2 includes a CPU 10, a ROM 20, a RAM 30, and a common bus 100, and is mounted on an in-vehicle electronic control device. The CPU 10 performs memory checks on the ROM 20 and the RAM 30 when the microcomputer 2 is activated and at a certain time interval after the activation or when the processing load is low.

図2に示すように、ROM20には、重要度に基づく優先度および大きさに応じて分割されたグループ毎にデータが記憶されている。各グループのデータは、先頭アドレスからの相対アドレスでアクセスされる。各グループの先頭アドレスは、例えば各グループと対応付けてアドレステーブルとしてROM20に記憶されている。また、各グループのデータ属性である優先度および大きさは、例えばデータ属性テーブルとして全グループをまとめてROM20に記憶されている。   As shown in FIG. 2, the ROM 20 stores data for each group divided according to priority and size based on importance. Data of each group is accessed with a relative address from the head address. The head address of each group is stored in the ROM 20 as an address table in association with each group, for example. Further, the priority and size, which are the data attributes of each group, are stored in the ROM 20 as a data attribute table, for example, for all groups.

図2において、PgGrはプログラムデータを表わし、CstGrは定数データを表わし、VarGrは変数データを表わし、Parityは誤り訂正符号としてのパリティデータを表わしている。PgGr_*、CstGr_*、VarGr_*の「*」は優先度を表わしている。優先度の高さはA>B>Cである。例えば、優先度の高い「A」のプログラムはブレーキ制御、燃料噴射制御に関するプログラムであり、優先度の低い「C」のプログラムは補正処理に関するプログラムである。   In FIG. 2, PgGr represents program data, CstGr represents constant data, VarGr represents variable data, and Parity represents parity data as an error correction code. “*” In PgGr_ *, CstGr_ *, and VarGr_ * represents a priority. The height of the priority is A> B> C. For example, a high priority program “A” is a program related to brake control and fuel injection control, and a low priority program “C” is a program related to correction processing.

本実施形態では、CPU10は、ROM20の異常を検出しない場合、ROM20に記憶されたプログラムおよび定数等のデータに基づいて車両制御を実行する。尚、変数データの領域はRAM30上に確保される。   In this embodiment, CPU10 performs vehicle control based on data, such as a program memorize | stored in ROM20 and a constant, when abnormality of ROM20 is not detected. The variable data area is secured on the RAM 30.

CPU10は、ROM20の異常を検出すると、ROM20に記憶されているデータをRAM30の異常領域以外の正常領域に書き込み、RAM30に書き込まれたプログラムおよび定数等のデータに基づいて車両制御を実行する。本実施形態では、ROM20の異常時に、異常データを有する異常グループだけでなく正常データを有する正常グループもRAM30に書き込む。   When detecting an abnormality in the ROM 20, the CPU 10 writes data stored in the ROM 20 into a normal area other than the abnormal area of the RAM 30, and executes vehicle control based on data such as programs and constants written in the RAM 30. In this embodiment, when the ROM 20 is abnormal, not only an abnormal group having abnormal data but also a normal group having normal data is written in the RAM 30.

異常グループをRAM30に書き込むときには、誤り訂正符号としてパリティ(Parity)データを使用し、異常を訂正できるデータであれば訂正してからRAM30に書き込む。例えば図2では、ROM20のPgGr_Bに異常データが存在しており、その異常を訂正してからRAM30に書き込んでいる。   When an abnormal group is written in the RAM 30, parity data is used as an error correction code. If the data can correct the abnormality, the data is corrected and written to the RAM 30. For example, in FIG. 2, abnormal data exists in PgGr_B of the ROM 20, and the abnormal data is corrected and written to the RAM 30.

ROM20のデータは、異常であるか正常であるかにかかわらずRAM30に無条件に書き込まれる訳ではなく、ROM20に記憶されている各グループの優先度および大きさを考慮して書込対象であるか否かを判定される。例えば図2では、PgGr_Cの優先度は低いので、RAM30の空き領域に余裕があってもPgGr_CはRAM30に書き込まれない。優先度だけでなく、大きさが大きすぎるグループもRAM30に書き込まれない。   The data in the ROM 20 is not written unconditionally in the RAM 30 regardless of whether it is abnormal or normal, and is a target to be written in consideration of the priority and size of each group stored in the ROM 20. It is determined whether or not. For example, in FIG. 2, since the priority of PgGr_C is low, PgGr_C is not written to the RAM 30 even if there is a free space in the RAM 30. Not only the priority but also a group that is too large is not written to the RAM 30.

本実施形態では、ROM20の異常時に、優先度の高い重要なデータであり、かつ大きすぎないデータをROM20からRAM30に書き込むことにより、車両を走行する上で最低限必要なデータに基づいて退避走行を実現する。   In the present embodiment, when the ROM 20 is abnormal, important data having a high priority and not too large are written from the ROM 20 to the RAM 30, so that the retreat travel is performed based on the minimum data necessary for traveling the vehicle. Is realized.

前述した各グループと各グループの先頭アドレスとを対応付けたアドレステーブルは、RAM30上に領域が確保される変数データのグループの先頭アドレスを管理する上からも、マイクロコンピュータ2の起動時にROM20からRAM30にコピーし、RAM30で適宜修正しながら使用することが望ましい。   The address table associating each group with the start address of each group described above manages the start address of the group of variable data for which an area is secured on the RAM 30, and from the ROM 20 to the RAM 30 when the microcomputer 2 is started. It is desirable to copy the data to the RAM 30 and use it while correcting it appropriately in the RAM 30.

(ROM異常時処理)
図3の異常時処理はROM20の異常を検出したときに実行される。図3および、後述する図4、5において「S」はステップを表わしている。
(ROM abnormal processing)
3 is executed when an abnormality in the ROM 20 is detected. In FIG. 3 and FIGS. 4 and 5 described later, “S” represents a step.

CPU10は、ROM20に記憶されている各グループについて、異常データを有する場合には異常データの誤り訂正を実行し(S400)、異常グループまたは正常グループにかかわらず、RAM30に書き込む対象であるか否かを判定するための処理を実行する(S402)。S402の書込対象判定処理の詳細については図4で説明する。   If each group stored in the ROM 20 has abnormal data, the CPU 10 performs error correction of the abnormal data (S400), and whether or not it is a target to be written to the RAM 30 regardless of the abnormal group or the normal group. Is executed (S402). Details of the write target determination processing in S402 will be described with reference to FIG.

該当グループが書込対象ではない場合(S404:No)、CPU10は、該当グループは不要と判断してRAM30に書き込まず(S406)、S412に処理を移行する。RAM30に書き込まれないグループの先頭アドレスは、アドレステーブルから削除されるか、不要グループであることを示すデータが書き込まれる。   When the corresponding group is not a write target (S404: No), the CPU 10 determines that the corresponding group is unnecessary, does not write it in the RAM 30 (S406), and shifts the processing to S412. The start address of the group that is not written in the RAM 30 is deleted from the address table, or data indicating that it is an unnecessary group is written.

該当グループが書込対象である場合(S404:Yes)、CPU10は、RAM30に書き込み領域があるか否かを判定する(S408)。CPU10は、起動時と起動後において一定時間間隔または処理負荷が低いときにRAM30の空き領域チェックを含むメモリチェックを行っており、異常領域と正常領域とを検出して情報として記憶しているので、RAM30の正常領域に該当グループを書き込む容量があるか否かを判定できる。   When the corresponding group is a write target (S404: Yes), the CPU 10 determines whether or not there is a write area in the RAM 30 (S408). The CPU 10 performs a memory check including a free space check of the RAM 30 at a certain time interval or when the processing load is low at the time of starting and after starting, and detects an abnormal region and a normal region and stores them as information. It can be determined whether or not there is a capacity for writing the group in the normal area of the RAM 30.

書き込み領域がない場合(S408:No)、CPU10は、該当グループは不要と判断してRAM30に書き込まず(S406)、S412に処理を移行する。前述したように、RAM30に書き込まれないグループの先頭アドレスは、アドレステーブルから削除されるか、不要グループであることを示すデータが書き込まれる。   If there is no writing area (S408: No), the CPU 10 determines that the corresponding group is unnecessary, does not write it to the RAM 30 (S406), and shifts the processing to S412. As described above, the start address of the group that is not written in the RAM 30 is deleted from the address table, or data indicating that it is an unnecessary group is written.

書き込み領域がある場合(S408:Yes)、CPU10は、ROM20の該当グループのデータをRAM30に書き込み(S410)、S412に処理を移行する。ROM20の該当グループのデータをRAM30に書き込む場合、該当グループのROM20における先頭アドレスに代えてRAM30に書き込んだ領域の先頭アドレスがアドレステーブルに書き込まれる。   When there is a writing area (S408: Yes), the CPU 10 writes the data of the corresponding group in the ROM 20 to the RAM 30 (S410), and shifts the processing to S412. When the data of the corresponding group in the ROM 20 is written in the RAM 30, the head address of the area written in the RAM 30 is written in the address table instead of the head address in the ROM 20 of the corresponding group.

S412においてCPU10は、ROM20の全グループについて書込対象の判定が終了したか否かを判定する。CPU10は、全グループについて書込対象の判定が終了していない場合(S412:No)、S400に処理を戻し、全グループについて書込対象の判定が終了している場合(S412:Yes)、本処理を終了する。   In S <b> 412, the CPU 10 determines whether or not the writing target determination has been completed for all groups in the ROM 20. When the determination of the write target is not completed for all groups (S412: No), the CPU 10 returns the process to S400, and when the determination of the write target is complete for all groups (S412: Yes), this The process ends.

(書込対象判定処理)
図4の書込対象判定処理は、図3のS402において実行される処理である。S420においてCPU10は、ROM20に記憶されている該当グループの優先度が所定の優先度以上であるか否かを判定する。所定の優先度よりも低い場合(S420:No)、CPU10は、処理結果として「No」を返し(S422)、本処理を終了する。
(Write target judgment process)
The writing target determination process in FIG. 4 is a process executed in S402 in FIG. In S420, the CPU 10 determines whether the priority of the corresponding group stored in the ROM 20 is equal to or higher than a predetermined priority. When the priority is lower than the predetermined priority (S420: No), the CPU 10 returns “No” as the processing result (S422), and ends this processing.

所定の優先度以上の場合(S420:Yes)、CPU10は、該当グループのデータ量の大きさが所定値以下であるか否かを判定する(S424)。
CPU10は、大きさが所定値以下の場合(S424:Yes)、処理結果として「Yes」を返し(S426)、大きさが所定値よりも大きい場合(S424:No)、処理結果として「No」を返し(S422)、本処理を終了する。
When the priority is equal to or higher than the predetermined priority (S420: Yes), the CPU 10 determines whether or not the data amount of the corresponding group is equal to or smaller than a predetermined value (S424).
When the size is equal to or smaller than the predetermined value (S424: Yes), the CPU 10 returns “Yes” as the processing result (S426). When the size is larger than the predetermined value (S424: No), the CPU 10 returns “No” as the processing result. Is returned (S422), and this process is terminated.

(RAM空き領域チェック処理)
図5のRAM30の空き領域チェック処理は、起動時と起動後において一定時間間隔または処理負荷が低いときに実行される。RAM30の空き領域チェックは、一定の大きさのブロック毎に行ってもよいし、連続した空き領域毎に行ってもよい。
(RAM free space check process)
The free space check process of the RAM 30 in FIG. 5 is executed at a constant time interval or when the processing load is low during and after activation. The empty area check in the RAM 30 may be performed for each block having a certain size or may be performed for each continuous empty area.

S430においてCPU10は、RAM30に空き領域があるか否かを判定する。RAM30に空き領域がない場合(S430:No)、CPU10は本処理を終了する。
RAM30に空き領域がある場合(S430:Yes)、CPU10は空き領域が正常であるか否かを判定する(S432)。空き領域が異常な場合(S432:No)、CPU10はS436に処理を移行する。空き領域が正常な場合(S432:Yes)、CPU10は空き領域の先頭アドレスをROM20のデータを書き込む再配置アドレスとして設定する(S434)。
In S430, the CPU 10 determines whether or not there is a free area in the RAM 30. When there is no free space in the RAM 30 (S430: No), the CPU 10 ends this process.
When there is an empty area in the RAM 30 (S430: Yes), the CPU 10 determines whether or not the empty area is normal (S432). When the free area is abnormal (S432: No), the CPU 10 shifts the process to S436. If the free area is normal (S432: Yes), the CPU 10 sets the head address of the free area as a relocation address for writing data in the ROM 20 (S434).

CPU10は、RAM30の全領域について空き領域のチェックが終了していない場合(S436:No)、S430に処理を戻し、全領域について空き領域のチェックが終了すると(S436:Yes)、本処理を終了する。   When the check of the empty area is not completed for all the areas of the RAM 30 (S436: No), the CPU 10 returns the process to S430, and when the check of the empty area is completed for all the areas (S436: Yes), the process is finished. To do.

[第2実施形態]
本発明の第2実施形態を図6および図7に示す。図6に示すように、第2実施形態のマイクロコンピュータ4は、ROM20と、CPUとしてコア40、50と、グローバルRAM60と、共通バス100とを備えるマルチコアマイクロコンピュータである。コア40、50にはそれぞれローカルRAM42、52が共通バス100を介さずに直接接続されている。また、コア40、50は、共通バス100を介してROM20とグローバルRAM60とに接続している。
[Second Embodiment]
A second embodiment of the present invention is shown in FIGS. As shown in FIG. 6, the microcomputer 4 of the second embodiment is a multi-core microcomputer including a ROM 20, cores 40 and 50 as CPUs, a global RAM 60, and a common bus 100. The local RAMs 42 and 52 are directly connected to the cores 40 and 50 without going through the common bus 100, respectively. The cores 40 and 50 are connected to the ROM 20 and the global RAM 60 via the common bus 100.

ローカルRAM42、52は、それぞれデータ領域とプログラム領域とに分割されている。ローカルRAM42、52のは、グローバルRAM60よりも高速にアクセスできる。ROM20には、第1実施形態と同様に、プログラムおよび定数がグループ毎に記憶されている。グローバルRAM60は、コア40、50のどちらからもアクセスできる。   The local RAMs 42 and 52 are each divided into a data area and a program area. The local RAMs 42 and 52 can be accessed at a higher speed than the global RAM 60. Similar to the first embodiment, the ROM 20 stores programs and constants for each group. The global RAM 60 can be accessed from either of the cores 40 and 50.

ローカルRAM42、52のメモリチェックはコア40、50毎に行う。ROM20とグローバルRAM60のメモリチェックは、コア40、50の一方が専門に行ってもよいし、コア40、50で分担して行ってもよい。   The memory check of the local RAMs 42 and 52 is performed for each of the cores 40 and 50. The memory check of the ROM 20 and the global RAM 60 may be performed exclusively by one of the cores 40 and 50 or may be shared by the cores 40 and 50.

ROM20の異常時、所定の優先度異常のプログラムは優先的にローカルRAM42、52に書き込まれる。また、優先度の高い変数のグループは、予めローカルRAM42、52に領域が確保されている。図7のPgGr_B、PgGr_Eのような異常グループは、誤り訂正符号であるパリティデータにより誤りを訂正されてからローカルRAM42、52に書き込まれる。   When the ROM 20 is abnormal, a predetermined priority abnormality program is preferentially written in the local RAMs 42 and 52. In addition, a group of variables having a high priority is secured in advance in the local RAMs 42 and 52. The abnormal groups such as PgGr_B and PgGr_E in FIG. 7 are written in the local RAMs 42 and 52 after the error is corrected by parity data which is an error correction code.

優先度の低い定数のグループはグローバルRAM60に書き込まれる。また、優先度の低い変数のグループは、予めグローバルRAM60に領域が確保されている。
第2実施形態においても、グループの優先度および大きさに基づいて書込対象ではないと判定される場合、該当するグループはローカルRAM42、52およびグローバルRAM60に書き込まれない。
A group of constants with low priority is written into the global RAM 60. In addition, a group of variables having low priority has an area reserved in the global RAM 60 in advance.
Also in the second embodiment, when it is determined that it is not a write target based on the priority and size of the group, the corresponding group is not written to the local RAMs 42 and 52 and the global RAM 60.

以上説明した上記第1、2実施形態では、ROM20の異常時に、ROM20に記憶された全てのデータではなく、優先度が所定の優先度以上であり、かつデータ量の大きさが所定値以下のグループがROM20からRAMに書き込まれるので、データを書き込むための容量をRAMに十分に確保できる。   In the first and second embodiments described above, when the ROM 20 is abnormal, not all data stored in the ROM 20 but the priority is equal to or higher than a predetermined priority and the amount of data is equal to or smaller than a predetermined value. Since the group is written from the ROM 20 to the RAM, a sufficient capacity for writing data can be secured in the RAM.

これに対し、ROM20の異常時に、ROM20に記憶された全てのデータをRAMに記憶する構成であっても、ROMから別の記憶部であるRAMにデータを書き込むので、データを書き込むための容量をRAMに確保することは容易である。   On the other hand, even when the ROM 20 is abnormal, all data stored in the ROM 20 is stored in the RAM, so the data is written from the ROM to the RAM, which is another storage unit. It is easy to secure in RAM.

さらに、RAMの異常を検出し、異常領域以外の正常領域に異常グループを書き込むので、RAMにデータを正常に書き込むことができる。
また、ROMの異常時に異常グループの異常データを訂正してRAMに書き込むので、何度もマイクロコンピュータをリセットすることなく、車両制御を継続できる。
Furthermore, since an abnormality in the RAM is detected and an abnormal group is written in a normal area other than the abnormal area, data can be normally written in the RAM.
Further, since the abnormal data of the abnormal group is corrected and written to the RAM when the ROM is abnormal, the vehicle control can be continued without resetting the microcomputer many times.

ROMの異常時にROMのデータをRAMに書き込むときには、優先度の低いグループおよびデータ量の大きいグループはRAMに書き込まれないので、車両制御に不可欠で容量の小さいデータにより、車両走行に不可欠な処理を実行できる。   When ROM data is written to the RAM when the ROM is abnormal, the low priority group and the large data amount group are not written to the RAM. Can be executed.

[他の実施形態]
上記実施形態では、ROMの異常時に異常グループだけでなく正常グループも書込対象であればRAMに書き込んだ。これに対し、異常グループだけをRAMに書き込んでもよい。この場合、各グループの先頭アドレスが記憶されたアドレステーブルに基づいて、ROMとRAMの両方において処理が実行される。
[Other Embodiments]
In the above-described embodiment, not only an abnormal group but also a normal group is written in the RAM when the ROM is abnormal. On the other hand, only the abnormal group may be written in the RAM. In this case, processing is executed in both the ROM and the RAM based on the address table in which the head address of each group is stored.

また、異常グループの異常データを訂正せずにRAMに書き込んでもよい。この場合、異常グループを使用するときに異常データをRAM上で訂正してから使用すればよい。
上記実施形態では、ROMの異常時にだけROMのデータをRAMに書き込んだ。これに対し、マイクロコンピュータの起動時に、ROMが異常であるか正常であるかにかかわらず、常にROMのデータを全てRAMに書き込んでもよい。その際に、図3〜図5で説明した処理を実行すればよい。
Further, the abnormal data of the abnormal group may be written in the RAM without being corrected. In this case, the abnormal data may be used after correcting the abnormal data on the RAM when the abnormal group is used.
In the above embodiment, the ROM data is written into the RAM only when the ROM is abnormal. On the other hand, when the microcomputer is activated, all ROM data may always be written into the RAM regardless of whether the ROM is abnormal or normal. At that time, the processing described with reference to FIGS.

このように、本発明は、上記実施形態に限定されるものではなく、その要旨を逸脱しない範囲で種々の実施形態に適用可能である。   As described above, the present invention is not limited to the above-described embodiment, and can be applied to various embodiments without departing from the gist thereof.

2、4:マイクロコンピュータ、10:CPU(第1異常検出手段、第2異常検出手段、書込手段、訂正手段、判定手段)、20:ROM(第1記憶部)、30:RAM(第2記憶部)、40、50:コア(第1異常検出手段、第2異常検出手段、書込手段、訂正手段、判定手段)、42、52:ローカルRAM(第2記憶部)、60:グローバルRAM(第2記憶部) 2, 4: Microcomputer, 10: CPU (first abnormality detection means, second abnormality detection means, writing means, correction means, determination means), 20: ROM (first storage unit), 30: RAM (second Storage unit), 40, 50: core (first abnormality detection unit, second abnormality detection unit, writing unit, correction unit, determination unit), 42, 52: local RAM (second storage unit), 60: global RAM (Second storage unit)

Claims (7)

所定のグループ毎にデータを記憶している読出し専用の第1記憶部(20)と、
読み書き可能な第2記憶部(30、42、52、60)と、
前記第1記憶部の異常を検出する第1異常検出手段(10、40、50)と、
前記第2記憶部の異常を検出する第2異常検出手段(10、40、50、S432)と、
前記第1記憶部に記憶されているグループのうち、少なくとも前記第1異常検出手段が異常を検出した異常データを有する異常グループを、前記第2異常検出手段が異常を検出した前記第2記憶部の異常領域以外の正常領域に書き込む書込手段(10、40、50、S410)と、
を備えることを特徴とするマイクロコンピュータ(2、4)。
A read-only first storage unit (20) storing data for each predetermined group;
A second readable / writable storage unit (30, 42, 52, 60);
First abnormality detection means (10, 40, 50) for detecting an abnormality in the first storage unit;
Second abnormality detection means (10, 40, 50, S432) for detecting an abnormality in the second storage unit;
Among the groups stored in the first storage unit, the second storage unit in which the second abnormality detection unit has detected an abnormality in at least an abnormality group having abnormality data in which the first abnormality detection unit has detected an abnormality. Writing means (10, 40, 50, S410) for writing in a normal area other than the abnormal area;
A microcomputer (2, 4) characterized by comprising:
前記書込手段が前記異常グループを前記正常領域に書き込むときに、前記異常データの誤りを訂正する訂正手段(10、40、50、S400)を備えることを特徴とする請求項1に記載のマイクロコンピュータ。   2. The micro of claim 1, further comprising correction means (10, 40, 50, S <b> 400) for correcting an error in the abnormal data when the writing means writes the abnormal group in the normal area. Computer. 前記各グループにデータ属性として優先度が設定されていることを特徴とする請求項1または2に記載のマイクロコンピュータ。   3. The microcomputer according to claim 1, wherein a priority is set as a data attribute for each group. 前記各グループにデータ属性として大きさが設定されていることを特徴とする請求項1から3のいずれか一項に記載のマイクロコンピュータ。   4. The microcomputer according to claim 1, wherein a size is set as a data attribute for each group. 前記正常領域に前記各グループを書き込むか否かを前記データ属性に基づいて判定する判定手段(10、40、50、S420、S424)を備えることを特徴とする請求項3または4に記載のマイクロコンピュータ。   5. The micro of claim 3, further comprising determination means (10, 40, 50, S <b> 420, S <b> 424) for determining whether to write each group in the normal area based on the data attribute. Computer. マルチコア(40、50)を備え、
前記書込手段は、前記各コアが有する前記第2記憶部(42、52)の前記正常領域に少なくとも前記異常グループを書き込む、
ことを特徴とする請求項1から5のいずれか一項に記載のマイクロコンピュータ(4)。
Multi-core (40, 50)
The writing means writes at least the abnormal group in the normal area of the second storage unit (42, 52) of each core;
The microcomputer (4) according to any one of claims 1 to 5, characterized in that:
前記書込手段は、前記第1記憶部に記憶されている前記グループのうち、前記異常データのない正常グループも前記正常領域に書き込むことを特徴とする請求項1から6のいずれか一項に記載のマイクロコンピュータ。   7. The writing unit according to claim 1, wherein among the groups stored in the first storage unit, the normal group without the abnormal data is also written to the normal area. The microcomputer as described.
JP2013259151A 2013-12-16 2013-12-16 Microcomputer Active JP6156117B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2013259151A JP6156117B2 (en) 2013-12-16 2013-12-16 Microcomputer

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2013259151A JP6156117B2 (en) 2013-12-16 2013-12-16 Microcomputer

Publications (2)

Publication Number Publication Date
JP2015115049A true JP2015115049A (en) 2015-06-22
JP6156117B2 JP6156117B2 (en) 2017-07-05

Family

ID=53528729

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2013259151A Active JP6156117B2 (en) 2013-12-16 2013-12-16 Microcomputer

Country Status (1)

Country Link
JP (1) JP6156117B2 (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2003015964A (en) * 2001-06-27 2003-01-17 Denso Corp Microcomputer
JP2005004504A (en) * 2003-06-12 2005-01-06 Oki Electric Ind Co Ltd Semiconductor storage device
JP2005208958A (en) * 2004-01-23 2005-08-04 Hanshin Electric Co Ltd Method for maintaining data in program area of microcomputer
JP2013050779A (en) * 2011-08-30 2013-03-14 Sony Corp Information processing device and method, and recording medium
JP2013196652A (en) * 2012-03-22 2013-09-30 Ricoh Co Ltd Control device and image forming apparatus

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2003015964A (en) * 2001-06-27 2003-01-17 Denso Corp Microcomputer
JP2005004504A (en) * 2003-06-12 2005-01-06 Oki Electric Ind Co Ltd Semiconductor storage device
JP2005208958A (en) * 2004-01-23 2005-08-04 Hanshin Electric Co Ltd Method for maintaining data in program area of microcomputer
JP2013050779A (en) * 2011-08-30 2013-03-14 Sony Corp Information processing device and method, and recording medium
JP2013196652A (en) * 2012-03-22 2013-09-30 Ricoh Co Ltd Control device and image forming apparatus

Also Published As

Publication number Publication date
JP6156117B2 (en) 2017-07-05

Similar Documents

Publication Publication Date Title
KR101110490B1 (en) Information processing device, processor and memory management method
CN104699417B (en) Data storage device and data access method thereof
CN103839591A (en) Automatic fault detection and fault-tolerant circuit of memory as well as control method
US10248497B2 (en) Error detection and correction utilizing locally stored parity information
CN110727597B (en) Method for checking invalid code completion case based on log
CN103164342A (en) Mount-time reconciliation of data availability
US11113321B2 (en) Method and device for managing map data of a digital map for a navigation apparatus
US20120096335A1 (en) Data processing method and semiconductor integrated circuit
US8910004B2 (en) Information processing apparatus, and method of controlling information processing apparatus
JP2015035121A (en) Semiconductor integrated circuit device
US10042712B2 (en) Numerical controller
JP6156117B2 (en) Microcomputer
JP2013171467A (en) Information processing device, electronic control device for vehicle, and data read-write method
CN107908500B (en) Bad block identification method and device
JP2008117299A (en) Storage medium control apparatus
CN113050888B (en) Method, system, device and storage medium for quickly removing unstable Flash blocks
JP5213061B2 (en) Mirroring control device, mirroring control circuit, mirroring control method and program thereof
JP4710918B2 (en) MEMORY CONTROLLER, FLASH MEMORY SYSTEM HAVING MEMORY CONTROLLER, AND FLASH MEMORY CONTROL METHOD
CN102866963A (en) Data storage and reading method for controller
CN107977282B (en) Method and device for reading data page by SPI-Nand
JP6469599B2 (en) Memory management system
US8503241B2 (en) Electronic apparatus and data reading method
CN109189328B (en) Index table protection method suitable for NAND Flash controller
CN106155581B (en) Data storage device and data maintenance method thereof
CN113703671B (en) Data block erasing method and related device

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20160229

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20161116

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20161122

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20161216

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20170522

R151 Written notification of patent or utility model registration

Ref document number: 6156117

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R151

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250