JP2016143103A - Control device - Google Patents

Control device Download PDF

Info

Publication number
JP2016143103A
JP2016143103A JP2015016294A JP2015016294A JP2016143103A JP 2016143103 A JP2016143103 A JP 2016143103A JP 2015016294 A JP2015016294 A JP 2015016294A JP 2015016294 A JP2015016294 A JP 2015016294A JP 2016143103 A JP2016143103 A JP 2016143103A
Authority
JP
Japan
Prior art keywords
program
main
control device
processing device
control
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
JP2015016294A
Other languages
Japanese (ja)
Inventor
啓太 井田
Keita Ida
啓太 井田
崇 椎谷
Takashi Shiitani
崇 椎谷
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 JP2015016294A priority Critical patent/JP2016143103A/en
Publication of JP2016143103A publication Critical patent/JP2016143103A/en
Pending legal-status Critical Current

Links

Abstract

PROBLEM TO BE SOLVED: To provide a control device and a method thereof capable of being automatically recovered up to a reprogramming possible state using a system inside the control device even when the reprogramming of the whole region of the processing device is executed and failed halfway.SOLUTION: A double system control device using a main system processing device and a sub-system processing device duplicates and stores ROM information of a normally operable main system flash bootloader in the region manageable by the sub-system processing device before executing the reprogramming of the main system processing device. After that, the reprogramming is performed for the main system processing device, and a program update is executed for all regions including the flash bootloader of the main system FLASHROM. When the main system processing device is in a state that the reprogramming is not executable, the reprogramming is performed for the main system processing device using the ROM information of the flash bootloader stored by the above control.SELECTED DRAWING: Figure 1

Description

本発明は、制御装置のプログラム更新に関し、2重系制御装置に於けるメイン系処理装置のプログラム更新が失敗した場合においても再度プログラム更新が実施可能なソフトウェアおよび制御装置の技術分野に関する。   The present invention relates to a program update of a control device, and relates to a technical field of software and a control device that can perform program update again even when a program update of a main processing device in a dual control device fails.

制御装置の分野では、フラッシュブートローダとよばれるプログラムを更新するための専用制御プログラムが必要である。車載用制御装置はCAN 通信を用いたフラッシュブートローダが現在一般的であり、リプログラミング(以下リプロ)と呼ばれる診断プロトコルを使って通信・ダウンロード・内部FLASHROMの消去(イレース)・書込みを行う。しかしながら、CAN通信を用いたリプロでは通信状態や制御装置の電源状態によって、リプロが失敗するという課題がある。リプロが失敗すると該当するプログラムは未完成状態となるため、正常動作することができない。特にリプロ失敗によりフラッシュブートローダが未完成状態となった場合、制御装置内部での自力復旧は困難であり、制御装置外部からブートモードと呼ばれるモードに移行させるために特殊接続が必要なため制御装置の配線を変更し、専用のツールを用いて復旧しなければならない。   In the field of control devices, a dedicated control program for updating a program called a flash boot loader is required. A flash boot loader using CAN communication is currently generally used as an in-vehicle control device, and communication, download, erase (erase), and write of an internal flash memory are performed using a diagnostic protocol called reprogramming (hereinafter referred to as repro). However, the repro using CAN communication has a problem that the repro fails depending on the communication state and the power state of the control device. If repro fails, the corresponding program will be in an incomplete state and cannot operate normally. In particular, when the flash boot loader is in an incomplete state due to repro failure, it is difficult to restore the power inside the control device, and a special connection is required to shift to the boot mode from outside the control device. The wiring must be changed and restored using a dedicated tool.

そのため、上記のフラッシュブートローダは、リプロでは書き換え不可な領域として保護することで再リプロ不可状態となることを防止している。   For this reason, the above flash boot loader prevents the re-repro disabled state by protecting it as an area that cannot be rewritten by repro.

特開2005−115614JP-A-2005-115614

しかしながら、最新の技術やISO等の最新の世界標準に対応するためには、フラッシュブートローダの変更は不可欠である。従来の技術では、既存の制御装置に対してのフラッシュブートローダを確実かつ容易に変更することは困難である。   However, changes to the flash boot loader are indispensable in order to support the latest technology and the latest global standards such as ISO. In the prior art, it is difficult to reliably and easily change the flash boot loader for an existing control device.

本発明の目的は、フラッシュブートローダのプログラム更新中にリプロ失敗した場合に、次回リプロを開始する前にフラッシュブートローダの内容をリプロ可能な状態まで、制御装置内で自動的に復旧することができる制御装置およびその方法を提供することにある。   It is an object of the present invention to provide a control capable of automatically restoring the contents of a flash boot loader within a control device to a repro-problemable state before starting the next repro when a repro failure occurs during a flash boot loader program update. It is to provide an apparatus and a method thereof.

メイン系処理装置とサブ系処理装置を用いた2重系の制御装置においてメイン系処理装置のリプロを実施する前に、正常動作可能であるメイン系のフラッシュブートローダのROM情報をサブ系処理装置が管理可能な領域にあらかじめ複写して記憶しておく。その後メイン系処理装置に対してリプロを行い、メイン系FLASHROMのフラッシュブートローダ含めた全領域に対してプログラム更新を実施する。メイン系処理装置のリプロが失敗し、メイン系処理装置が再リプロ不可状態となった場合、あらかじめ上記の制御によって格納していたフラッシュブートローダのROM情報を用いて、上述したブートモードをサブ系処理装置の制御によって実現した上で、メイン系処理装置に対してリプロを行う。   Before the main processor is re-proposed in the dual controller using the main processor and the sub processor, the sub processor accepts the ROM information of the main flash bootloader that can operate normally. Copy and store in advance in a manageable area. Thereafter, the main processor is re-proposed, and the program is updated in all areas including the flash boot loader of the main FLASHROM. If reprocessing of the main processing unit fails and the main processing unit becomes unable to be re-reproduced, the above boot mode is stored in the sub system processing using the ROM information of the flash boot loader stored in advance by the above control. After realizing the control of the apparatus, the main processing apparatus is reproposed.

メイン系FLASHROM全領域のプログラム書き換え時に失敗した場合において、制御装置外部からブートモードと呼ばれる特殊接続を必要とせず、制御装置内部のシステムを用いてメイン系処理装置を再リプロ可能状態に復旧することができる。   If a failure occurs during rewriting of the program in the entire main FLASHROM area, a special connection called a boot mode is not required from the outside of the control device, and the main processing device is restored to a re-reproposable state using the system inside the control device. Can do.

本実施形態に係る処理装置を搭載した、2重系制御装置のブロック図である。It is a block diagram of the dual system control device carrying the processing device concerning this embodiment. 本実施形態に係るメイン系FLASHROMの構成を示す図である。It is a figure which shows the structure of the main type | system | group FLASHROM which concerns on this embodiment. 本実施形態に係るサブ系FLASHROMの構成を示す図である。It is a figure which shows the structure of the sub-system FLASHROM which concerns on this embodiment. 本実施形態に係るサブ系処理装置の動作を示すフローチャートである。It is a flowchart which shows operation | movement of the sub-system processing apparatus which concerns on this embodiment.

以下、本発明の実施例について図面を用いて説明する。
本実施例の詳細は以下の実施例で説明するが、メイン系処理装置とサブ系処理装置を用いた2重系の制御装置においてメイン系処理装置のリプロを実施する前に、正常動作可能であるメイン系のフラッシュブートローダのROM情報をサブ系処理装置が管理可能な領域にあらかじめ複写して記憶しておくものである。その後メイン系処理装置に対してリプロを行い、メイン系FLASHROMのフラッシュブートローダ含めた全領域に対してプログラム更新を実施する。メイン系処理装置のリプロが失敗し、メイン系処理装置が再リプロ不可状態となった場合、あらかじめ上記の制御によって格納していたフラッシュブートローダのROM情報を用いて、上述したブートモードをサブ系処理装置の制御によって実現した上で、メイン系処理装置に対してリプロを行う。
Embodiments of the present invention will be described below with reference to the drawings.
The details of this embodiment will be described in the following embodiments, but normal operation is possible before the main processor is re-proposed in a dual controller using a main processor and a sub processor. ROM information of a certain main system flash boot loader is copied and stored in advance in an area manageable by the sub system processing device. Thereafter, the main processor is re-proposed, and the program is updated in all areas including the flash boot loader of the main FLASHROM. If reprocessing of the main processing unit fails and the main processing unit becomes unable to be re-reproduced, the above boot mode is stored in the sub system processing using the ROM information of the flash boot loader stored in advance by the above control. After realizing the control of the apparatus, the main processing apparatus is reproposed.

これによりメイン系FLASHROM全領域のプログラム書き換え時に失敗した場合において、制御装置外部からブートモードと呼ばれる特殊接続を必要とせず、制御装置内部のシステムを用いてメイン系処理装置を再リプロ可能状態に復旧することができる。   As a result, if a failure occurs when rewriting the program in the entire main FLASHROM area, a special connection called boot mode is not required from the outside of the controller, and the main processor is restored to a re-reproproducible state using the system inside the controller. can do.

図1は、本実施形態を説明するためのブロック図である。
本実施例の制御装置はメイン系処理装置001とサブ系処理装置011を有する2重系制御装置である。メイン系処理装置001は、CPU002とCANモジュール003とFLASHROM004とRAM005と外部バスI/F006と入出力装置007を有し、外部制御装置021やリプロツール022と通信ライン023により接続され、制御に必要なデータやリプロ用更新プログラムを受信する。受信したデータやプログラムを基に、メイン系処理装置001は制御処理やFLASHROM004の内のプログラムを更新する。
FIG. 1 is a block diagram for explaining the present embodiment.
The control device of this embodiment is a dual control device having a main processing device 001 and a sub processing device 011. The main processing unit 001 includes a CPU 002, a CAN module 003, a FLASHROM 004, a RAM 005, an external bus I / F 006, and an input / output device 007. New data and repro updates. Based on the received data and program, the main processor 001 updates the control process and the program in the FLASHROM004.

このようなデータや更新プログラムは、外部制御装置021やリプロツール022から、定期的に更新するために送信されるほか、メイン系処理装置001の返信に応じて送信される。上記の通信情報には、データの正当性をあらわす情報(誤り検出符号あるいは誤り訂正符号)を付加して送信される。   Such data and update programs are transmitted from the external control device 021 and the repro tool 022 for periodic updates, and are transmitted in response to a reply from the main processing device 001. The communication information is transmitted with information (error detection code or error correction code) indicating the validity of the data added thereto.

CPU002は、メイン系処理装置001が起動すると、後述するFLASHROM004の格納エリアA1に格納されたベクターテーブルに従って、格納エリアA2あるいは、格納エリアA3のプログラムを実行する。   When the main processing unit 001 is activated, the CPU 002 executes the program in the storage area A2 or the storage area A3 according to the vector table stored in the storage area A1 of the FLASHROM 004 described later.

FLASHROM004は電気特性として書き換え可能な性能を有しており、電源を切ってもデータが消えない不揮発性の半導体メモリである。   FLASHROM004 is a non-volatile semiconductor memory that has rewritable performance as electrical characteristics and does not lose data even when the power is turned off.

CANモジュール003は外部制御装置021やリプロツール022とCAN通信を行い、CPU002やFLASHROM004にデータや更新プログラムを伝送する。   The CAN module 003 performs CAN communication with the external control device 021 and the repro tool 022, and transmits data and an update program to the CPU 002 and the FLASHROM 004.

サブ系処理装置011は、CPU012とCANモジュール013とFLASHROM014とRAM015と外部バスI/F016と入出力装置017を有し、メイン系処理装置001と入出力装置017を通して接続され、メイン系処理装置001とサブ系処理装置011はお互いに正常に動作しているかをメイン系−サブ系処理装置通信線018を通して相互監視する。そして異常検知した場合、即座にフェールセーフモードに移行することを目的にしている。   The sub system processor 011 includes a CPU 012, a CAN module 013, a FLASHROM 014, a RAM 015, an external bus I / F 016, and an input / output device 017, which are connected through the main system processor 001 and the input / output device 017, and the main system processor 001. And the sub system processing device 011 mutually monitor each other through the main system-sub system processing device communication line 018 to determine whether they are operating normally. And when abnormality is detected, it aims at making it transfer to fail safe mode immediately.

また、サブ系処理装置011はリプロ通信線020を通して、メイン系処理装置001をブートモードに変更することでCPU002の判断なしにサブ系処理装置011のCPU012の判断のみでリプロ可能な機能を有している。
Further, the sub processor 011 has a function that can be reproduced only by the judgment of the CPU 012 of the sub processor 011 without making the judgment of the CPU 002 by changing the main processor 001 to the boot mode through the repro communication line 020. ing.

図2は、本実施形態におけるメイン系処理装置001のFLASHROM004の格納エリアを示すブロック図である。本実施の形態においては、図2に示すとおり、FLASHROM004の格納エリアは大きく4つに分かれている。ここで格納エリアは、FLASHROM004の消去性能に依存した消去ブロック単位で構成されている。   FIG. 2 is a block diagram showing a storage area of the FLASHROM 004 of the main processing apparatus 001 in the present embodiment. In this embodiment, as shown in FIG. 2, the storage area of FLASHROM004 is roughly divided into four. Here, the storage area is configured in units of erase blocks depending on the erase performance of FLASHROM004.

格納エリアA1はベクターテーブルが格納されるエリアである。メイン系処理装置001に電源投入されると、CPU002は最初にこのベクターテーブルに登録されているパワーオンリセット処理を呼び出す。   The storage area A1 is an area where the vector table is stored. When the main processing unit 001 is powered on, the CPU 002 first calls a power-on reset process registered in this vector table.

格納エリアA2はフラッシュブートローダが格納されるエリアであり、上記のパワーオンリセット処理は、フラッシュブートローダ内に存在する。さらに、フラッシュブートローダ内には、通常動作モードおよびリプロモードの2つの制御モードを判断するプログラムとリプロモード時に実際にリプロを行うためのプログラムが格納されている。これらの制御モードの切換えは、FLASHROM004の内容が意図した内容と同一である場合は通常動作モードと判断し、それ以外の場合はリプロモードと判断する。   The storage area A2 is an area in which the flash boot loader is stored, and the above power-on reset process exists in the flash boot loader. Further, the flash boot loader stores a program for determining two control modes, a normal operation mode and a repro mode, and a program for actually performing the repro in the repro mode. The switching of these control modes is determined as the normal operation mode when the content of the FLASHROM 004 is the same as the intended content, and is determined as the repro mode otherwise.

格納エリアA3には、アプリケーションプログラムが格納されるエリアである。フラッシュブートローダにて通常動作モードと判断された場合、アプリケーションプログラムを実行する。格納エリアA4には、アプリケーションプログラムで使用されるアプリケーションデータが格納されるエリアである。   The storage area A3 is an area where application programs are stored. When the flash boot loader determines that the normal operation mode is selected, the application program is executed. The storage area A4 is an area for storing application data used in the application program.

一般にFLASHROMの特性上、データを記憶するときは消去単位であるブロック毎にデータ消去(イレース)してから新しいデータを書き込む必要がある。消去途中あるいは書き込み途中に電源瞬断の発生や何らかの原因によりプログラム更新が停止した場合、FLASHROMの内容は本来意図しないデータとなり、データの更新に失敗してしまう。その結果、該当する箇所のプログラムは正常に動作できない。
さらにフラッシュブートローダのプログラムを更新中に書換え失敗した場合、書換えを実施するプログラム自身が正常に動作できないため再リプロ不可の状況となってしまう。そこで従来の技術ではリプロによるプログラム更新が可能な対象領域は格納エリアA3およびA4のみとしていた。
In general, due to the characteristics of FLASHROM, when data is stored, it is necessary to erase (erase) data for each block which is an erase unit and then write new data. If the program update is stopped due to the occurrence of a momentary power interruption or some reason during the erasing or writing, the contents of the FLASHROM become unintended data and the data update fails. As a result, the program at the corresponding location cannot operate normally.
Furthermore, if rewriting fails while updating the flash boot loader program, the program that performs the rewriting itself cannot operate normally, so that the repro-prohibition is impossible. Therefore, in the prior art, the storage areas A3 and A4 are the only target areas that can be updated by repro.

本実施例では、後述する理由により、メイン系処理装置の制御プログラムを実行することなく、上記の再リプロ不可の状況から復旧することができる。そのため、プログラム更新が対象領域は格納エリアA1、A2、A3およびA4の全領域に対して実施可能となる。   In the present embodiment, for the reason described later, it is possible to recover from the situation where the re-repro is impossible without executing the control program of the main processing apparatus. Therefore, the program update can be performed on all the storage areas A1, A2, A3, and A4.

図3は、本実施形態におけるサブ系処理装置011のFLASHROM014の格納エリアを示すブロック図である。本実施の形態においては、図3に示すとおり、FLASHROM014の格納エリアは大きく5つに分かれている。ここで格納エリアは、FLASHROM014の消去性能に依存した消去ブロック単位で構成されている。   FIG. 3 is a block diagram showing a storage area of the FLASH ROM 014 of the sub-system processing device 011 in the present embodiment. In the present embodiment, as shown in FIG. 3, the storage area of FLASHROM014 is roughly divided into five. Here, the storage area is configured in units of erase blocks depending on the erase performance of FLASHROM014.

格納エリアB1、B2、B3およびB4までは、サブ系処理装置011における図2のA1、A2、A3およびA4と対応した機能を持つブロックである。格納エリアB5は、格納エリアA2に存在するメイン系処理装置001のフラッシュブートローダを複写したROM情報を格納するエリアである。   The storage areas B1, B2, B3, and B4 are blocks having functions corresponding to A1, A2, A3, and A4 in FIG. The storage area B5 is an area for storing ROM information obtained by copying the flash boot loader of the main processing unit 001 existing in the storage area A2.

図4は、本実施例におけるサブ系処理装置011によるメイン系処理装置001のプログラム更新のフローチャートである。このフローチャートは電源投入後、サブ系処理装置の初期化処理が終わった後に実行される。以下にフローチャートの各ステップについて説明する。   FIG. 4 is a flowchart of program update of the main processing unit 001 by the sub processing unit 011 in the present embodiment. This flowchart is executed after the power is turned on and after the initialization processing of the sub processor is completed. Each step of the flowchart will be described below.

最初にステップS100において、サブ系処理装置011のCPU012は、メイン系処理装置001と相互監視を実施し、メイン系処理装置001のROM診断結果を取得する。   First, in step S100, the CPU 012 of the sub system processing device 011 performs mutual monitoring with the main system processing device 001 and acquires the ROM diagnosis result of the main system processing device 001.

次にステップS200において、メイン系ROMの正常異常判断を行う。その結果、正常の場合にはステップS300処理を実行する。異常の場合、ステップS500の処理を実行する。上記のROM診断結果の判定処理は、メイン系処理装置001の制御プログラムが動作しない可能性も考慮し、所定時間の間にROM診断結果を取得しなければ異常と判断とする処理を追加してもよい。   Next, in step S200, the main ROM is judged to be normal or abnormal. As a result, if normal, step S300 is executed. If abnormal, the process of step S500 is executed. Considering the possibility that the control program of the main processing unit 001 does not operate, the above ROM diagnosis result determination process adds a process for determining that an abnormality is detected unless a ROM diagnosis result is acquired within a predetermined time. Also good.

S300にて、メイン系フラッシュブートローダとサブ系FLASHROM014の格納エリアB5内のROM情報の差異判定を行う。その結果、差異ありの場合にはステップS400処理を実行する。
ステップS400では、サブ系FLASHROM014の格納エリアB5に格納されているフラッシュブートローダのROM情報を複写し記録することで、最新のROM情報に更新する。
In S300, the difference between the ROM information in the storage area B5 of the main flash boot loader and the sub flash memory 014 is determined. As a result, if there is a difference, step S400 is executed.
In step S400, the ROM information of the flash boot loader stored in the storage area B5 of the sub system FLASH ROM 014 is copied and recorded, so that the latest ROM information is updated.

S500にて、メイン系処理装置001のメイン系フラッシュブートローダ診断結果を取得する。   In S500, the main system flash boot loader diagnosis result of the main system processor 001 is acquired.

次にステップS600において、メイン系フラッシュブートローダの正常異常判断を行う。その結果、正常の場合にはステップS300処理を実行する。異常の場合、ステップS700の処理を実行する。上記のROM診断結果の判定処理は、再リプロ不可通知信号線019を用いて判断もしくは、メイン系処理装置001が全く動作しない可能性も考慮し、所定時間の間にフラッシュブートローダ診断結果を取得しなければ異常と判断とする処理を追加してもよい。
S600において、フラッシュブートローダが異常と判断された場合には、メイン系処理装置001は再リプロ不可状態になっており、最悪の場合では処理動作不可の状態に陥ってしまっている。
In step S600, the main flash boot loader is determined to be normal or abnormal. As a result, if normal, step S300 is executed. If abnormal, the process of step S700 is executed. The determination process of the ROM diagnosis result described above is determined using the re-reprohibit notification signal line 019 or considering the possibility that the main processing unit 001 does not operate at all, and obtains the flash boot loader diagnosis result for a predetermined time. If not, a process for determining an abnormality may be added.
If it is determined in S600 that the flash boot loader is abnormal, the main processing unit 001 is in a state where re-repro is impossible, and in the worst case, the processing operation is impossible.

そこで、S700にてリプロ通信線020を用いて、メイン系処理装置001のブートモード状態にする。さらにサブ系FLASHROM014の格納エリアB5に格納されているフラッシュブートローダのROM情報を用いて、メイン系FLASHROM004の格納A2エリアに対して、サブ系処理装置のリプロ制御処理を用いてリプロを実施する。格納エリアA2に正常のフラッシュブートローダが書き込まれることにより、メイン系処理装置001は再リプロ不可状態からリプロ可能状態に復旧することができ、本来のリプロツールとの通信を再開することにより、正常なROM情報を書き込まれることができる。   Therefore, in S700, the main processor 001 is set to the boot mode using the repro communication line 020. Further, using the ROM information of the flash boot loader stored in the storage area B5 of the sub system FLASHROM 014, the repro is executed on the storage A2 area of the main system FLASHROM004 using the repro control processing of the sub system processing device. By writing the normal flash boot loader in the storage area A2, the main processing unit 001 can recover from the re-repro disabled state to the re-pro enabled state, and by restarting communication with the original re-pro tool, ROM information can be written.

上記のリプロはメイン系処理装置001の入出力装置007とサブ系処理装置011の入出力装置の間のリプロ専用の通信線020を用いるため、CAN通信を使用した通常のリプロと比較して、より確実に伝送することが可能である。また、電源瞬断等によりリプロ失敗したとしても、再度電源投入時に同じプロセスで再リプロ可能であるため、システム全体として再リプロ不可状態になることはない。   Since the above-mentioned repro uses the repro-dedicated communication line 020 between the input / output device 007 of the main processing unit 001 and the input / output unit of the sub-system processing unit 011, compared to a normal repro using CAN communication, It is possible to transmit more reliably. Even if repro failure occurs due to a momentary power interruption or the like, reprovision can be performed in the same process when the power is turned on again, so that the system as a whole cannot be reproprohibited.

このようにして、メイン系FLASHROM全領域のプログラム書き換え時に失敗した場合において、サブ系処理装置の制御によりメイン系処理装置を再リプログラミング可能状態に復旧することができる。   In this way, when the program rewriting of the entire main system FLASHROM fails, the main system processor can be restored to a re-programmable state under the control of the sub processor.

以上に説明したように本実施例の制御装置は、プログラムの処理を実行するCPU(002、012)と、電気的に記憶内容が書き換え可能であるとともに、制御用プログラムを記憶する記憶手段(004、014)を備えた処理装置(001、011)を複数有する。そして、処理装置(001、011)は、互いに正常、又は異常を判定する診断監視手段と、外部装置021からの伝送される制御用プログラムの書換え要求に従って自身の処理装置(001、011)のプログラムを更新する手段と、他の処理装置(001、011)からプログラムの更新を制御する手段を有する。   As described above, the control device of this embodiment includes a CPU (002, 012) that executes program processing, and storage means (004) that can electrically rewrite the stored contents and store the control program. , 014) and a plurality of processing devices (001, 011). Then, the processing device (001, 011) is a program of the processing device (001, 011) of the processing device (001, 011) according to the diagnosis monitoring means for determining normality or abnormality from each other and the rewrite request of the control program transmitted from the external device 021 And a means for controlling update of the program from other processing devices (001, 011).

またメイン系処理装置002に搭載した記憶媒体004の領域に対して制限なく、プログラム更新を行う手段を有することが望ましい。また、メイン系処理装置002のプログラム更新用プログラム(フラッシュブートローダ)のROM情報が正常、又は異常をサブ系処理装置012が判定することが望ましい。また、ROM診断が正常の場合、メイン系処理装置001のプログラム更新用プログラム(フラッシュブートローダ)を別領域に複写しROM情報を格納することが望ましい。   Further, it is desirable to have a means for updating the program without limitation on the area of the storage medium 004 installed in the main processing unit 002. Further, it is desirable that the sub system processor 012 determines whether the ROM information of the program update program (flash boot loader) of the main system processor 002 is normal or abnormal. When the ROM diagnosis is normal, it is desirable to copy the program update program (flash boot loader) of the main processing unit 001 to another area and store the ROM information.

さらに、ROM診断が異常の場合に上記で格納済みのメイン系処理装置001のプログラム更新用プログラム(フラッシュブートローダ)をサブ系処理装置011の制御によって、メイン系処理装置001のプログラム更新用プログラム用の該当領域にプログラム更新することが望ましい。   Further, when the ROM diagnosis is abnormal, the stored program update program (flash boot loader) of the main processor 001 is stored in the program for the program update program of the main processor 001 under the control of the sub processor 011. It is desirable to update the program in the corresponding area.

本発明の実施形態は上述した内容に拘泥されることなく、様々な変更が可能である。たとえば、本実施形態におけるFLASHROMは、オンボードでリプロが可能な不揮発性の特性を備えたメモリであればよい。またメイン系フラッシュブートローダを複写・格納する格納エリアB4は必ずしもFLASHROM014内に存在する必要はなく、処理装置内に別に設けられる不揮発性の特性を備えたメモリに格納してもよい。また通信方式にしてもROM情報を伝送可能なCAN通信以外の通信方式であってもよい。
Various modifications can be made to the embodiment of the present invention without being limited to the above-described contents. For example, the FLASHROM in the present embodiment may be a memory having a nonvolatile characteristic that can be reproposed on-board. The storage area B4 for copying and storing the main flash boot loader does not necessarily exist in the FLASH ROM 014, and may be stored in a memory having a non-volatile characteristic provided separately in the processing apparatus. Further, a communication method other than CAN communication capable of transmitting ROM information may be used.

001:メイン系処理装置
002:CPU(演算器)(メイン系処理装置)
003:CANモジュール(メイン系処理装置)
004:FLASHROM(メイン系処理装置)
005:RAM(メイン系処理装置)
006:外部バス I/F部(メイン系処理装置)
007:入出力装置(メイン系処理装置)
011:サブ系処理装置
012:CPU(演算器)(サブ系処理装置)
013:CANモジュール(サブ系処理装置)
014:FLASHROM(サブ系処理装置)
015:RAM(サブ系処理装置)
016:外部バス I/F部(サブ系処理装置)
017:入出力装置(サブ系処理装置)
018:メイン系−サブ系処理装置通信線
019:再リプロ不可通知信号線
020:リプロ通信線
021:外部制御装置
022:リプロツール
023:通信ライン
031:各種入力装置
032:各種出力装置
001: Main system processor 002: CPU (calculator) (main system processor)
003: CAN module (main processing unit)
004: FLASHROM (main processing unit)
005: RAM (main processing unit)
006: External bus I / F unit (main processing unit)
007: Input / output device (main processing device)
011: Sub system processor 012: CPU (calculator) (sub system processor)
013: CAN module (sub system processor)
014: FLASHROM (sub processor)
015: RAM (sub processor)
016: External bus I / F unit (sub system processing device)
017: Input / output device (sub system processing device)
018: Main system-Sub system processing device communication line 019: Re-repro disabled notification signal line 020: Repro communication line 021: External control device 022: Repro tool 023: Communication line 031: Various input devices 032: Various output devices

Claims (5)

プログラムの処理を実行するCPUと、電気的に記憶内容が書き換え可能であるとともに、制御用プログラムを記憶する記憶手段を備えた処理装置を複数有する制御装置において、
前記の処理装置は、
互いに正常、又は異常を判定する診断監視手段と、
外部装置からの伝送される制御用プログラムの書換え要求に従って自信の処理装置のプログラムを更新する手段と、
他の処理装置からプログラムの更新を制御する手段を有することを特徴とする制御装置。
In a control device having a plurality of processing devices including a CPU that executes processing of a program and a storage unit that is electrically rewritable and stores a control program,
The processing apparatus is
Diagnostic monitoring means for determining whether each other is normal or abnormal, and
Means for updating the program of the confident processing device in accordance with the rewriting request of the control program transmitted from the external device;
A control apparatus comprising means for controlling update of a program from another processing apparatus.
請求項1の記載の制御装置は、
前記処理装置のうちメイン系処理装置に搭載した記憶媒体の領域に対して制限なく、プログラム更新を行う手段を有することを特徴とする制御装置。
The control device according to claim 1 is:
A control apparatus comprising means for updating a program without limitation on an area of a storage medium mounted on a main processing apparatus among the processing apparatuses.
請求項2の記載の制御装置は、
前記メイン系処理装置のプログラム更新用プログラム(フラッシュブートローダ)のROM情報が正常、又は異常を前記処理装置のうちサブ系処理装置が判定することを特徴とする制御装置。
The control device according to claim 2 comprises:
A control device, wherein a sub-system processing device of the processing devices determines whether ROM information of a program update program (flash boot loader) of the main processing device is normal or abnormal.
請求項3の記載の制御装置は、
ROM診断が正常の場合、前記メイン系処理装置の前記プログラム更新用プログラム(フラッシュブートローダ)を別領域に複写し前記ROM情報を格納することを特徴とする制御装置。
The control device according to claim 3 is:
When the ROM diagnosis is normal, the controller updates the program update program (flash boot loader) of the main processor and copies the ROM information to another area.
請求項3の記載の制御装置は、
ROM診断が正常の場合に前記メイン系処理装置の前記プログラム更新用プログラム(フラッシュブートローダ)を別領域に複写し前記ROM情報を格納し、
ROM診断が異常の場合に格納済みの前記メイン系処理装置の前記プログラム更新用プログラム(フラッシュブートローダ)を前記サブ系処理装置の制御によって、前記メイン系処理装置のプログラム更新用プログラム用の該当領域にプログラム更新すること特徴とする制御装置。
The control device according to claim 3 is:
When the ROM diagnosis is normal, the program update program (flash boot loader) of the main processor is copied to another area and the ROM information is stored.
When the ROM diagnosis is abnormal, the stored program update program (flash boot loader) of the main processor is transferred to the corresponding area for the program update program of the main processor under the control of the sub processor. A control device characterized by updating a program.
JP2015016294A 2015-01-30 2015-01-30 Control device Pending JP2016143103A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2015016294A JP2016143103A (en) 2015-01-30 2015-01-30 Control device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2015016294A JP2016143103A (en) 2015-01-30 2015-01-30 Control device

Publications (1)

Publication Number Publication Date
JP2016143103A true JP2016143103A (en) 2016-08-08

Family

ID=56570458

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2015016294A Pending JP2016143103A (en) 2015-01-30 2015-01-30 Control device

Country Status (1)

Country Link
JP (1) JP2016143103A (en)

Similar Documents

Publication Publication Date Title
WO2018120213A1 (en) Firmware updating method and controller
JP5431111B2 (en) Information processing apparatus and system setting method
WO2017149825A1 (en) Program update system, program update method, and computer program
JP6751057B2 (en) Electronic control system
JP7232062B2 (en) Electronic controller and program update method
KR20220084336A (en) Elastic software updates on secure storage devices
JP5762016B2 (en) Information processing apparatus, control method, and program
CN112015447B (en) System updating method and device of electronic equipment, electronic equipment and storage medium
JP2020160747A (en) Information processing device, control method therefor, and program
JP4753929B2 (en) Non-volatile memory rewriting system for in-vehicle control unit
JP5034979B2 (en) START-UP DEVICE, START-UP METHOD, AND START-UP PROGRAM
TWI590012B (en) Control machine for distributed control system and distributed control basic module
JP2016126699A (en) Electronic control unit for vehicle
JP5080318B2 (en) Image processing apparatus and access control method
JP6021597B2 (en) Information processing apparatus, information processing method, and computer program
JP2007316800A (en) Onboard program rewriting controller
JP2016143103A (en) Control device
JP2007293802A (en) Disk array apparatus, and control method and control program for disk array apparatus
JP2008262426A (en) Duplex controller system and controller
JP6109404B2 (en) Computer apparatus and computer mechanism
TWI839587B (en) Method and device for managing software updates , and non-transitory computer readable storage medium
JP2009025967A (en) Backup system of duplicated firmware, method and operating system
JP5360311B2 (en) Disk array device
JP2019160080A (en) Controller and abnormality detection method
WO2016125455A1 (en) Communication system, communication device, and communication method

Legal Events

Date Code Title Description
RD04 Notification of resignation of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7424

Effective date: 20170117

RD04 Notification of resignation of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7424

Effective date: 20170124