JP2002236595A - Electronic equipment and its device and method for debugging assistance - Google Patents

Electronic equipment and its device and method for debugging assistance

Info

Publication number
JP2002236595A
JP2002236595A JP2001034074A JP2001034074A JP2002236595A JP 2002236595 A JP2002236595 A JP 2002236595A JP 2001034074 A JP2001034074 A JP 2001034074A JP 2001034074 A JP2001034074 A JP 2001034074A JP 2002236595 A JP2002236595 A JP 2002236595A
Authority
JP
Japan
Prior art keywords
electronic device
microcomputer
memory
stored
data
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
JP2001034074A
Other languages
Japanese (ja)
Other versions
JP4398102B2 (en
Inventor
Tetsuhiro Noguchi
哲宏 野口
Kenichiro Ide
賢一郎 井手
Isao Hamada
勲 濱田
Hiroki Ito
広己 伊藤
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 Ten Ltd
Original Assignee
Denso Ten 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 Denso Ten Ltd filed Critical Denso Ten Ltd
Priority to JP2001034074A priority Critical patent/JP4398102B2/en
Publication of JP2002236595A publication Critical patent/JP2002236595A/en
Application granted granted Critical
Publication of JP4398102B2 publication Critical patent/JP4398102B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Testing And Monitoring For Control Systems (AREA)
  • Debugging And Monitoring (AREA)
  • Microcomputers (AREA)

Abstract

PROBLEM TO BE SOLVED: To leave information which is useful for analysis in case of various abnormalities occurring to a program placing a microcomputer in operation. SOLUTION: A program running on the computer stores the trace of its operation state in a RAM 4 and further stores it in a writable ROM 3 such as a flash memory. In an operation state, a time stamp from a timer 7 is also included. The result of self-diagnosis when an abnormality detection part 9 detects abnormality is also stored. The storage contents can be read out to a external personal computer 20, etc., converted into text data, etc., browsed and given notes, and sent and received as electronic mail 22 to and from remote places.

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は、マイクロコンピュ
ータを備え、予め設定されるプログラムに従って動作す
る電子機器ならびにそのデバッグ支援装置および方法に
関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an electronic apparatus having a microcomputer and operating according to a preset program, and a debugging support apparatus and method for the electronic apparatus.

【0002】[0002]

【従来の技術】従来から、パーソナルコンピュータやワ
ードプロセッサなどの電子情報機器をはじめ、各種制御
装置など、非常に多くの電子機器でマイクロコンピュー
タが使用されている。半導体製造技術などの進歩で、高
機能のマイクロコンピュータや大容量の半導体メモリな
どのハードウエアが比較的低コストで使用可能となって
きている。マイクロコンピュータを動作させるプログラ
ムも、格納するメモリの大容量化に対応して、多くの機
能を備えたり、高度な処理を行うようになってきてい
る。
2. Description of the Related Art Heretofore, microcomputers have been used in a great number of electronic devices such as electronic information devices such as personal computers and word processors, as well as various control devices. Advances in semiconductor manufacturing technology and the like have made it possible to use hardware such as high-performance microcomputers and large-capacity semiconductor memories at relatively low cost. A program for operating a microcomputer also has many functions and performs advanced processing in response to an increase in the capacity of a stored memory.

【0003】マイクロコンピュータを備える電子機器を
新たに開発する場合は、ハードウエアとともにプログラ
ムなどのソフトウエアも新たに開発する必要が生じる。
大規模なソフトウエアの開発には時間がかかるので、実
際のハードウエアの試作などに先行して、シミュレーシ
ョンなどで充分な検討を行っておく必要がある。しかし
ながら、実際に使用するハードウエアと組合わせた後で
顕在化したり、特殊な条件でのみ顕在化する不具合が存
在する可能性は無視できない。そのため、電子機器自体
に、異常発生などに対する自己診断機能が備えられてい
ることが多い。
When newly developing an electronic device including a microcomputer, it is necessary to newly develop software such as a program together with hardware.
Since it takes time to develop large-scale software, it is necessary to conduct a thorough study by simulation, etc., prior to trial production of actual hardware. However, it is not negligible that there may be a problem that appears after being combined with the hardware actually used or that appears only under special conditions. Therefore, the electronic device itself is often provided with a self-diagnosis function for occurrence of an abnormality or the like.

【0004】今日では、自動車にも多くの電子機器が搭
載され、各種制御などに利用されている。自動車に搭載
される電子機器は、信頼性が特に重要であり、異常が生
じているか否かを自己診断する機能を備えていることが
多い。たとえば特開平9−20261号公報には、パワ
ーステアリング装置が、車両の移動している条件で、パ
ワーステアリング動作用の検出信号を所定時間範囲で記
憶し、外部故障診断装置からの要求で、記憶されている
情報を故障診断用のデータとして出力する先行技術が開
示されている。また、特開平7−181112号公報に
は、複数の電子制御ユニットであるECUのうちの複数
の子ECUがそれぞれ常時自己故障診断を実行し、故障
検出時に現在の年月日時刻を親ECUに要求して、親E
CUから与えられる年月日時刻を故障内容とともにダイ
アグ情報としてメモリに保存する先行技術が開示されて
いる。
[0004] Today, many electronic devices are also mounted on automobiles and used for various controls. The reliability of reliability of electronic devices mounted on automobiles is particularly important, and electronic devices are often provided with a function of self-diagnosing whether an abnormality has occurred. For example, Japanese Patent Application Laid-Open No. 9-20261 discloses that a power steering device stores a detection signal for a power steering operation in a predetermined time range under a condition where a vehicle is moving, and stores the detection signal in response to a request from an external failure diagnosis device. There is disclosed a prior art for outputting the information as failure diagnosis data. In Japanese Patent Application Laid-Open No. 7-181112, a plurality of child ECUs among a plurality of ECUs, which are electronic control units, always execute self-diagnosis, and when a failure is detected, the current date and time are sent to a parent ECU. Request, parent E
A prior art has been disclosed in which a date provided by a CU is stored in a memory as diagnostic information together with details of a failure.

【0005】本件出願人も、たとえば特開平10−23
8445号公報で、内燃機関の点火装置で故障か否かを
判定し、故障と判定されればダイアグコードを出力する
先行技術を開示している。
[0005] The present applicant also discloses, for example, Japanese Patent Application Laid-Open
Japanese Patent No. 8445 discloses a prior art in which it is determined whether or not a failure occurs in an ignition device of an internal combustion engine, and a diagnostic code is output if the failure is determined.

【0006】自己診断によるダイアグコードを解析する
と、故障を生じた原因などを特定し、プログラムの不具
合を修正するためなどに有効な情報を得ることができ
る。マイクロコンピュータを備える電子機器や、マイク
ロコンピュータが動作するプログラムは、一旦製品化さ
れた後でも、ダイアグデータの解析結果などに基づくデ
バッグ作業が行われ、バージョンアップと称される改良
が施されることが多い。
[0006] By analyzing the diagnostic code by the self-diagnosis, it is possible to identify the cause of the failure and to obtain effective information for correcting a failure of the program. Electronic devices with microcomputers and programs that operate microcomputers are debugged based on the results of analysis of diagnostic data, etc., even after they have been commercialized, and improvements called upgrades are made. There are many.

【0007】[0007]

【発明が解決しようとする課題】電子機器が備える自己
診断機能も、予め設定されるプログラムに基づく以上、
過去の経験や、開発期間に判明している不具合や異常に
しか対応していない。しかしながら実際の電子機器は、
全く予期していないような異常を生じる可能性がある。
また、潜在的な異常が生じていて、予期していないよう
な条件で顕在化する可能性もある。特に、他の機器と組
合わせて使用するときに、単独の電子機器としての解析
では特定が不可能な異常が生じる可能性がある。
The self-diagnosis function of the electronic device is also based on a preset program.
It responds only to past experience, defects and anomalies known during the development period. However, actual electronic devices are
Abnormalities can occur that are completely unexpected.
In addition, there is a possibility that a potential abnormality has occurred and becomes apparent under unexpected conditions. In particular, when used in combination with another device, there is a possibility that an abnormality that cannot be specified by analysis as a single electronic device may occur.

【0008】従来の電子機器では、異常が発生すると、
その異常を再現させ、どのような条件で発生するかを解
析し、解析結果に基づいてプログラムやデータなどのソ
フトウエアを修正するデバッグを行っている。他の機器
との組合わせで生じる動作異常などは、電子機器単独で
は同様の現象を再現しないので、解析に非常に時間がか
かったり、解析不可能な場合さえ生じる。また、従来の
電子機器には、プログラムの開発段階では予期していな
い特定条件下で発生する異常や、潜在的に作り込まれて
いる問題を発見する手段が設けられていない。
In a conventional electronic device, when an abnormality occurs,
We reproduce the abnormalities, analyze under what conditions they occur, and perform debugging to modify software such as programs and data based on the analysis results. Since an electronic device alone does not reproduce the same phenomenon as an operation abnormality or the like that occurs in combination with another device, it takes a very long time to analyze, or even when analysis is impossible. Further, conventional electronic devices are not provided with a means for finding an abnormality that occurs under a specific condition that is not expected at the stage of developing a program or a problem that is potentially created.

【0009】本発明の目的は、マイクロコンピュータを
動作させるプログラムに生じる各種異常などに対して、
解析に役立つ情報を残すことができる電子機器ならびに
そのデバッグ支援装置および方法を提供することであ
る。
An object of the present invention is to prevent various abnormalities occurring in a program for operating a microcomputer.
An object of the present invention is to provide an electronic device capable of leaving information useful for analysis and a debugging support device and method thereof.

【0010】[0010]

【課題を解決するための手段】本発明は、予め設定され
るプログラムに従って動作するマイクロコンピュータを
備える電子機器において、該マイクロコンピュータは、
電子機器としての動作中に、予め設定されるプログラム
に従って、自己の動作状態をコード化する処理を実行
し、該コード化された動作状態が記憶されるメモリを含
み、該マイクロコンピュータは、電子機器外部からの要
求に応じて、メモリに記憶されているコード化された動
作状態を、外部に出力可能であることを特徴とする電子
機器である。
According to the present invention, there is provided an electronic apparatus including a microcomputer which operates according to a preset program.
During operation as an electronic device, the microcomputer executes a process of coding its own operation state according to a preset program, and includes a memory in which the coded operation state is stored. An electronic apparatus characterized in that a coded operating state stored in a memory can be output to an external device in response to a request from the external device.

【0011】本発明に従えば、電子機器には、予め設定
されるプログラムに従って動作するマイクロコンピュー
タが備えられる。マイクロコンピュータは、電子機器と
しての動作中に、予め設定されるプログラムに従って、
自己の動作状態をコード化する処理を実行する。コード
化された動作状態はメモリに記憶される。したがって、
マイクロコンピュータのプログラムで、たとえば分岐部
分などに目印となるマイルストーンとして特定の情報を
コード化するようにしておけば、メモリに記憶されてい
るデータで、プログラムの分岐部分での動作状態を解析
することができる。メモリに記憶されているデータは、
電子機器外部からの要求に応じて、外部に出力可能であ
るので、電子機器の外部でデータを解析して、プログラ
ムのデバッグを行うことができる。動作状態はコード化
するので、多くの情報を少ないデータに集約することが
できる。プログラムの変更によって、記憶しておく動作
状態を変えることもでき、特定条件下で発生する異常や
潜在異常を、記憶する動作状態を選択して、容易に再現
しうるようにすることもできる。
According to the present invention, the electronic device is provided with a microcomputer that operates according to a preset program. The microcomputer, during operation as an electronic device, according to a preset program,
Executes a process of coding its own operation state. The coded operating state is stored in the memory. Therefore,
If a microcomputer program encodes specific information as milestones, for example, as a mark at a branch portion, the operating state at the branch portion of the program is analyzed with data stored in the memory. be able to. The data stored in the memory is
Since the data can be output to the outside in response to a request from outside the electronic device, the data can be analyzed outside the electronic device to debug the program. Since the operating state is coded, much information can be aggregated into a small amount of data. By changing the program, the operation state to be stored can be changed, and an abnormality or a latent abnormality that occurs under a specific condition can be easily reproduced by selecting an operation state to be stored.

【0012】また本発明で、前記マイクロコンピュータ
は、自己の動作に異常が検出されるか否かを判断し、異
常が検出されるとき、自己診断を行って、自己診断の結
果を前記動作状態として前記メモリに記憶することを特
徴とする。
In the present invention, the microcomputer determines whether or not an abnormality is detected in its own operation, and when an abnormality is detected, performs a self-diagnosis and reports a result of the self-diagnosis to the operating state. And stored in the memory.

【0013】本発明に従えば、ソフトウエアが自己動作
の異常を検出して、異常が検出されると自己診断を行
い、診断結果をコード化してメモリに記憶するので、表
面上では検出困難な内部的な異常や潜在的な異常を、摘
出することも可能になる。
According to the present invention, the software detects an abnormality in the self-operation and performs a self-diagnosis when the abnormality is detected. The result of the diagnosis is coded and stored in the memory. Internal abnormalities and potential abnormalities can be extracted.

【0014】また本発明は、不揮発性の記憶手段を含
み、前記マイクロコンピュータは、前記メモリにコード
化されて記憶されている動作状態を、該不揮発性の記憶
手段に記憶させることを特徴とする。
Further, the present invention includes a nonvolatile storage means, wherein the microcomputer stores an operation state coded and stored in the memory in the nonvolatile storage means. .

【0015】本発明に従えば、マイクロコンピュータは
プログラムの動作中に自己の動作状態をプログラム動作
に使用するメモリに記憶し、さらに不揮発性の記憶手段
に記憶させることができる。不揮発性の記憶手段は、電
源の供給を停止しても記憶内容を保持するので、後から
解析する際に有効に利用することができる。プログラム
の動作中には、一旦メモリに動作状態を記憶するので、
一般に記憶に時間がかかる不揮発性の記憶手段への直接
的な記憶を避けて、プログラムの動作に与える遅れを小
さくすることができる。
According to the present invention, the microcomputer can store its operating state in the memory used for the program operation during the operation of the program, and further can store it in the nonvolatile storage means. The non-volatile storage means retains the stored contents even when the supply of power is stopped, so that it can be effectively used for later analysis. During the operation of the program, the operating state is temporarily stored in the memory,
In general, it is possible to avoid a direct storage in a non-volatile storage means which takes a long time to store, and to reduce a delay given to a program operation.

【0016】また本発明は、時間経過を計測する計時手
段を含み、前記マイクロコンピュータは、前記メモリに
記憶する動作状態に、計時手段が計測する時間経過に基
づくタイムスタンプを含めることを特徴とする。
Further, the present invention includes time measuring means for measuring a time lapse, wherein the microcomputer includes a time stamp based on the time lapse measured by the time measuring means in the operation state stored in the memory. .

【0017】本発明に従えば、メモリに記憶される動作
状態には時間経過に基づくタイムスタンプを含めるの
で、メモリに記憶されている動作状態を時間経過に従う
動作状態の軌跡として解析することができる。
According to the present invention, since the operation state stored in the memory includes a time stamp based on the passage of time, the operation state stored in the memory can be analyzed as a trajectory of the operation state according to the passage of time. .

【0018】また本発明は、前述のいずれかに記載の電
子機器から前記メモリに記憶されている前記動作状態を
読出すデータ読出し手段と、データ読出し手段によって
読出された動作状態を、情報ファイルとして取扱うため
の予め定める形式のデータに変換するデータ変換手段と
を含むことを特徴とする電子機器のデバッグ支援装置で
ある。
According to the present invention, there is provided a data reading means for reading the operation state stored in the memory from any of the electronic devices described above, and an operation state read by the data reading means as an information file. A data conversion means for converting the data into data of a predetermined format for handling.

【0019】本発明に従えば、電子機器のメモリには、
電子機器の動作状態がコード化されて記憶されているの
で、メモリの記憶容量に対して、多くの情報を含めるこ
とができる。電子機器のメモリから読出した動作状態
は、情報ファイルとして取扱うための予め定める形式、
たとえばテキスト形式などのデータに変換するので、デ
ータの閲覧が容易でわかりやすくなり、エディタなどの
ツールでの注釈の記入や加工、さらに電子メールでの送
受信が容易になる。
According to the present invention, the memory of the electronic device includes:
Since the operation state of the electronic device is coded and stored, a lot of information can be included in the storage capacity of the memory. The operation state read from the memory of the electronic device is a predetermined format for handling as an information file,
For example, since the data is converted into data in a text format or the like, the data can be easily viewed and understood, and annotations can be written and processed by a tool such as an editor, and further, transmission and reception by e-mail can be easily performed.

【0020】さらに本発明は、コンピュータを、前述の
電子機器のデバッグ支援装置として機能させるためのプ
ログラムを記録したコンピュータ読みとり可能な記録媒
体である。
Further, the present invention is a computer-readable recording medium in which a program for causing a computer to function as the above-described debugging support apparatus for electronic equipment is recorded.

【0021】本発明に従えば、汎用のコンピュータに記
録媒体に記録されているプログラムを読みとらせ、電子
機器のデバッグ支援装置として機能させることができ
る。
According to the present invention, a general-purpose computer can read a program recorded in a recording medium and can function as a debugging support device for an electronic device.

【0022】さらに本発明は、電子機器が備えるマイク
ロコンピュータ上で動作するプログラムが、自己の動作
状態の軌跡を予め定める条件でコード化して、メモリに
記憶しておき、メモリの記憶内容を電子機器の外部に読
出すことを特徴とする電子機器のデバッグ支援方法であ
る。
Further, according to the present invention, a program that operates on a microcomputer provided in an electronic device encodes a trajectory of its own operating state under predetermined conditions and stores it in a memory. A debugging support method for an electronic device, characterized by reading out to the outside of the electronic device.

【0023】本発明に従えば、電子機器が備えるマイク
ロコンピュータの動作を記述するプログラムで、自己の
動作状態の軌跡を予め定める条件でコード化してメモリ
に記憶するので、少ない記憶領域でも多くの情報を含む
コードを記憶することができる。メモリの記憶内容は、
電子機器の外部に読出すので、電子機器自体には動作状
態の解析機能を持たせる必要はなく、外部の装置で充分
な解析を行うことができる。
According to the present invention, a program describing the operation of a microcomputer provided in an electronic device is coded according to predetermined conditions and stored in a memory, so that a large amount of information can be stored in a small storage area. Can be stored. The contents of the memory are
Since the data is read out of the electronic device, there is no need to provide the electronic device itself with an operation state analysis function, and a sufficient analysis can be performed by an external device.

【0024】[0024]

【発明の実施の形態】図1は、本発明の実施の一形態で
ある車載用の電子機器1に関連する概略的な電気的構成
を示す。電子機器1は、予め設定されるプログラムに従
って動作するマイクロコンピュータ2を備える。電子機
器1は、マイクロコンピュータ2をプログラム動作させ
るために、ROM(Read Only Memory)3およびRAM
(Random Access Memory)4を備える。マイクロコンピ
ュータ2のプログラム動作では、特定用途用の半導体集
積回路であるASIC(Application SpecificInt egra
ted Circuit)5などを介して、各種処理や制御が行わ
れる。
FIG. 1 shows a schematic electrical configuration relating to an on-vehicle electronic device 1 according to an embodiment of the present invention. The electronic device 1 includes a microcomputer 2 that operates according to a preset program. The electronic device 1 includes a ROM (Read Only Memory) 3 and a RAM for causing the microcomputer 2 to perform a program operation.
(Random Access Memory) 4. In the program operation of the microcomputer 2, an application specific integrated circuit (ASIC), which is a semiconductor integrated circuit for a specific application, is used.
Various processes and controls are performed via a ted circuit 5 or the like.

【0025】マイクロコンピュータ2も半導体集積回路
として製造され、プログラムやデータを格納するROM
6、時間経過を計測するタイマ7、外部とのインタフェ
ースを行うI/F回路8および異常検出部9などを含
む。マイクロコンピュータ2内のROM6には、基本的
な動作に必要なプログラムやデータが予め格納される。
電子機器1としての動作に直接関連するプログラムやデ
ータは、外部のROM6に格納される。外部のROM6
のうち、少なくとも一部は、フラッシュメモリなど、電
気的に消去と再書込みが可能でしかも不揮発性であるデ
バイスを使用する。RAM4は、マイクロコンピュータ
2がプログラムに従って動作する際のワークメモリとな
る。マイクロコンピュータ2と、ROM3、RAM4お
よびASIC5との間は、アドレスやデータのバス10
を介して接続される。
The microcomputer 2 is also manufactured as a semiconductor integrated circuit, and stores ROM and programs and data.
6, a timer 7 for measuring the passage of time, an I / F circuit 8 for interfacing with the outside, an abnormality detection unit 9 and the like. The ROM 6 in the microcomputer 2 stores in advance programs and data necessary for basic operations.
Programs and data directly related to the operation as the electronic device 1 are stored in the external ROM 6. External ROM6
At least some of them use devices that are electrically erasable and rewritable and are nonvolatile, such as flash memories. The RAM 4 is a work memory when the microcomputer 2 operates according to a program. An address and data bus 10 is provided between the microcomputer 2 and the ROM 3, the RAM 4, and the ASIC 5.
Connected via

【0026】本実施形態では、マイクロコンピュータ2
が電子機器1としての動作中に、予め設定されるプログ
ラムに従って、自己の動作状態をコード化する処理を実
行し、コード化された動作状態をRAM4のトレース領
域11に記憶する。トレース領域11の記憶内容は、マ
イクロコンピュータ2のI/F回路8を介して、外部に
読出すことができる。車載用の電子機器1は、通常車両
のバッテリに接続されており、RAM4にスタンバイモ
ードなどを有するS−RAM(Static RAM)などを用い
れば、記憶内容を保持しておくことができる。さらに、
トレース領域11の記憶内容の一部は、電源の停電等に
よって失われないように、電子機器1の電源スイッチを
ONからOFFに操作したときなどに、マイクロコンピ
ュータ2が制御するS−RAMの電源をOFFにする前
に、S−RAMからフラッシュメモリなどによって実現
されるROM3のトレース保存領域12に移動する。ト
レース保存領域12に移動した記憶内容は、消去や再書
込みの動作を行わない限り、電源を遮断しても失われな
い。トレース領域11やトレース保存領域12に記憶さ
れる情報には、ASIC5内部の動作状態を示すレジス
タ13からのステータス情報なども含まれる。
In this embodiment, the microcomputer 2
Executes an encoding process of its own operation state according to a preset program during operation as the electronic device 1, and stores the encoded operation state in the trace area 11 of the RAM 4. The contents stored in the trace area 11 can be read out via the I / F circuit 8 of the microcomputer 2. The in-vehicle electronic device 1 is usually connected to the battery of the vehicle, and can use a RAM 4 such as an S-RAM (Static RAM) having a standby mode or the like to retain the stored contents. further,
When the power switch of the electronic device 1 is turned from ON to OFF, a part of the storage contents of the trace area 11 is not lost due to a power failure or the like. Before turning off, the program moves from the S-RAM to the trace storage area 12 of the ROM 3 realized by a flash memory or the like. The stored contents moved to the trace storage area 12 are not lost even when the power is turned off, unless an erasing or rewriting operation is performed. The information stored in the trace area 11 and the trace storage area 12 includes status information from the register 13 indicating the operation state inside the ASIC 5 and the like.

【0027】またマイクロコンピュータ2は、自己の動
作に異常が検出されるか否かを判断する異常検出部9を
備えている。異常検出部9は、実行しようとするタスク
のレベルや割込み処理のレベルが適正でないときなどに
動作異常としてエラーを表す信号を発生する。エラー情
報は、RAM4のトレース領域11に記憶され、さらに
ROM3のトレース保存領域12にも記憶される。この
ように、ソフトウエアが自己動作の異常を検出して、異
常が検出されると自己診断を行い、診断結果をコード化
してメモリに記憶するので、表面上では検出困難な内部
的な異常や潜在的な異常を、摘出することも可能にな
る。
The microcomputer 2 has an abnormality detecting section 9 for judging whether or not an abnormality is detected in its operation. The abnormality detector 9 generates a signal indicating an error as an operation abnormality when the level of the task to be executed or the level of the interrupt processing is not appropriate. The error information is stored in the trace area 11 of the RAM 4 and also in the trace storage area 12 of the ROM 3. In this way, the software detects an abnormality in the self-operation, performs a self-diagnosis when the abnormality is detected, encodes the diagnosis result and stores it in the memory. Potential abnormalities can also be extracted.

【0028】本実施形態の電子機器1には、時間経過を
計測する計時手段としてのタイマ7が含まれているの
で、マイクロコンピュータ2は、メモリに記憶する動作
状態に、タイマ7が計測する時間経過に基づくタイムス
タンプを含める。メモリに記憶される動作状態には時間
経過に基づくタイムスタンプを含めるので、動作状態の
変化等の発生順や発生時刻を知ることができる。すなわ
ち、メモリに記憶されているデータに基づき、時間経過
に従う動作状態の軌跡として解析することができる。
Since the electronic device 1 of this embodiment includes the timer 7 as time measuring means for measuring the passage of time, the microcomputer 2 sets the operation state stored in the memory to the time measured by the timer 7. Include a timestamp based on progress. Since the operation state stored in the memory includes a time stamp based on the passage of time, it is possible to know the order and time of occurrence of changes in the operation state. That is, based on the data stored in the memory, it is possible to analyze the trajectory of the operation state according to the passage of time.

【0029】トレース領域11やトレース保存領域12
にコード化されて記憶されている動作状態について、電
子機器1のマイクロコンピュータ2は、電子機器1の外
部のパーソナルコンピュータ20などからの要求に応じ
て、出力可能である。電子機器1のマイクロコンピュー
タ2が備えるI/F回路8とパーソナルコンピュータ2
0との間は、たとえばRS−232Cなどのインターフ
ェースケーブル21で接続することができる。パーソナ
ルコンピュータ20には、電子機器1をターゲット機器
としてデバッグ支援を行うアプリケーションプログラム
が、CD−ROMやフロッピディスクなどの記録媒体か
らの読込みや、通信ネットワークを介してのダウンロー
ドなどによってインストールされている。パーソナルコ
ンピュータ20は、トレース結果のデータをROM3や
RAM4から読出す。読出すデータは、コード化された
バイナリデータであるので、エディタなどでの閲覧や編
集が容易なテキストデータに変換したり、コードに対応
する注釈の記入などが自動的にわれる。変換されたデー
タは、電子メール22として、さらに通信ネットワーク
を介して遠方、場合によっては海外に送信したり、プリ
ンタ23で印字出力することができる。
Trace area 11 and trace storage area 12
The microcomputer 2 of the electronic device 1 can output the operating state coded and stored in the electronic device 1 in response to a request from a personal computer 20 or the like outside the electronic device 1. I / F circuit 8 included in microcomputer 2 of electronic device 1 and personal computer 2
0 can be connected by an interface cable 21 such as RS-232C, for example. In the personal computer 20, an application program for supporting debugging with the electronic device 1 as a target device is installed by reading from a recording medium such as a CD-ROM or a floppy disk, or by downloading via a communication network. The personal computer 20 reads the data of the trace result from the ROM 3 or the RAM 4. Since the data to be read is coded binary data, it is automatically converted into text data which can be easily viewed and edited by an editor or the like, and an annotation corresponding to the code is automatically entered. The converted data can be transmitted as an e-mail 22 via a communication network to a distant place, in some cases overseas, or printed out by a printer 23.

【0030】たとえば、電子機器1が輸出する製品であ
ると、国内での開発時の試験などでは予期し得ないよう
な環境等にさらされる場合がある。現地の技術者に、問
題が生じた電子機器1のそばに携帯型のパーソナルコン
ピュータ20を持って行き、データを電子メール22と
して送信してもらうようにすれば、開発担当者が実際に
現地に行かなくても、迅速にデバッグを行うことができ
る。
For example, if the electronic device 1 is a product to be exported, the electronic device 1 may be exposed to an environment or the like that cannot be expected in a test during development in Japan. By having a local technician take a portable personal computer 20 near the electronic device 1 in which the problem has occurred and send the data as an e-mail 22, the developer can actually go to the site. You can debug quickly without going.

【0031】以上で説明したように、マイクロコンピュ
ータ2は、電子機器1としての動作中に、予め設定され
るプログラムに従って、自己の動作状態をコード化し
て、RAM4やROM3などのメモリに記憶する。マイ
クロコンピュータ2のプログラムで、たとえば分岐部分
などを目印となるマイルストーンとして、その目印部分
の動作を行うときに、特定の動作状態に関する情報をコ
ード化するようにしておけば、メモリに記憶されている
データで、プログラムの分岐部分などでの動作状態を解
析することができる。メモリに記憶されているデータ
を、電子機器1の外部で解析して、プログラムのデバッ
グを行うことができる。動作状態はコード化するので、
多くの情報を少ないデータに集約することができる。プ
ログラムの変更によって、記憶しておく動作状態を変え
ることもでき、特定条件下で発生する異常や潜在異常
を、記憶する動作状態を選択して、容易に再現しうるよ
うにすることもできる。
As described above, during operation of the electronic device 1, the microcomputer 2 encodes its own operation state in accordance with a preset program and stores it in a memory such as the RAM 4 or the ROM 3. In the program of the microcomputer 2, for example, when a branch portion or the like is set as a milestone as a landmark and information on a specific operation state is coded when the operation of the landmark portion is performed, the information is stored in a memory. With this data, it is possible to analyze the operating state at the branch part of the program. Data stored in the memory can be analyzed outside the electronic device 1 to debug a program. Since the operating state is coded,
More information can be aggregated into less data. By changing the program, the operating state to be stored can be changed, and an operating state to be stored can be easily reproduced by selecting an operating state to store an abnormality or a latent abnormality that occurs under a specific condition.

【0032】本実施形態のメモリには、不揮発性の記憶
手段であるROM3に、電気的なデータの消去と再書込
みとが可能なフラッシュメモリなどを含む。マイクロコ
ンピュータ2は、RAM4のトレース領域11にコード
化されて記憶されている動作状態を、フラッシュメモリ
などのトレース保存領域12に記憶させる。マイクロコ
ンピュータ2はプログラムの動作中に自己の動作状態を
プログラム動作に使用するメモリであるRAM4に記憶
し、さらに不揮発性のフラッシュメモリなどに記憶させ
ることができる。不揮発性のフラッシュメモリなどに記
憶させておけば、電源の供給を停止しても記憶内容を保
持しておくことができ、航空機事故のときに活用するフ
ライトレコーダのように、後から不具合を解析する際に
有効に利用することができる。プログラムの動作中に
は、一旦RAM4に動作状態を記憶するので、一般に記
憶に時間がかかるフラッシュメモリなどへの直接的な記
憶を避けて、プログラムの動作に与える遅れを小さくす
ることができる。
The memory of the present embodiment includes a flash memory capable of erasing and rewriting electrical data in the ROM 3, which is a nonvolatile storage means. The microcomputer 2 stores the operation state coded and stored in the trace area 11 of the RAM 4 in a trace storage area 12 such as a flash memory. During operation of the program, the microcomputer 2 can store its own operation state in the RAM 4 which is a memory used for the program operation, and can further store it in a nonvolatile flash memory or the like. If the data is stored in a non-volatile flash memory, the stored data can be retained even when the power supply is stopped, and failures can be analyzed later, such as a flight recorder used in the event of an aircraft accident It can be used effectively when doing. Since the operation state is temporarily stored in the RAM 4 during the operation of the program, it is possible to avoid a direct storage in a flash memory or the like, which generally takes a long time, and to reduce a delay given to the operation of the program.

【0033】図2は、図1のROM3の少なくとも一部
としてのフラッシュメモリのトレース保存領域12にデ
ータを書込む手順を示す。ステップa0から手順を開始
し、ステップa0でデータの書込みを行う。なお、すで
にデータが書込まれている領域に再書込みを行うときに
は、先にデータを消去しなければならない。ただしデー
タの消去は、メモリ素子全体または部分的なブロック単
位で行う必要がある。データの書込みの後では、ステッ
プa2でデータの読出しを行う。ステップa3では、読
出したデータを書込んだデータの元のデータと比較し
て、一致していることを確認するベリファイを行う。本
実施形態では、元のデータはRAM4のトレース領域1
1に記憶されている。ステップa3のベリファイで不一
致があれば、ステップa4でエラーコードをRAM4の
トレース領域11に記憶する。ステップa4が終了した
後、またはステップa3でベリファイがOKであるとき
は、ステップa5で手順を終了する。
FIG. 2 shows a procedure for writing data in the trace storage area 12 of the flash memory as at least a part of the ROM 3 of FIG. The procedure is started from step a0, and data is written in step a0. When rewriting data in an area in which data has already been written, the data must be erased first. However, data must be erased in units of the entire memory element or partial blocks. After data writing, data reading is performed in step a2. In step a3, the read data is compared with the original data of the written data to perform a verify operation to confirm that they match. In this embodiment, the original data is stored in the trace area 1 of the RAM 4.
1 is stored. If there is a mismatch in the verification in step a3, the error code is stored in the trace area 11 of the RAM 4 in step a4. After the step a4 ends, or when the verification is OK in the step a3, the procedure ends in a step a5.

【0034】図3は、電子機器1に接続される各種スイ
ッチ、たとえば車両のイグニッションスイッチなどのO
N/OFF状態をコードとして記憶する手順を示す。ス
イッチの状態変化は、たとえば割込み信号で、マイクロ
コンピュータ2に知らされる。ステップb0から動作を
開始し、ステップb1では動作状態の検出を行う。ステ
ップb2では、状態がONであるか否かを判断する。O
Nであると判断されるときは、ステップb3でON状態
に設定し、ステップb4でON状態を表すコードをメモ
リに記憶する。ステップb2で状態がONでないと判断
されるときは、ステップb5でOFF状態に設定し、ス
テップb6でOFF状態を表すコードをメモリに記憶す
る。ステップb4またはステップb6が終了すると、ス
テップb7で手順を終了する。
FIG. 3 shows various switches connected to the electronic device 1, for example, an O such as an ignition switch of a vehicle.
A procedure for storing the N / OFF state as a code will be described. The change in the state of the switch is notified to the microcomputer 2 by, for example, an interrupt signal. The operation starts from step b0, and the operation state is detected in step b1. In step b2, it is determined whether the state is ON. O
If it is determined to be N, the ON state is set in step b3, and a code representing the ON state is stored in the memory in step b4. If it is determined in step b2 that the state is not ON, the state is set to OFF in step b5, and a code representing the OFF state is stored in the memory in step b6. When step b4 or step b6 ends, the procedure ends in step b7.

【0035】図4は、ROM3およびRAM4のメモリ
マップの概要を示す。ROM3およびRAM4は、マイ
クロコンピュータ2のアドレス空間の異なる領域に配置
され、さらに内部は複数の領域に分割されている。RO
M3には、管理情報30、エラートレース保存領域3
1、ASIC実行トレース保存領域32、電源制御状態
遷移トレース保存領域33、プログラム領域34、およ
びデータ領域35などが設けられる。RAM4には、管
理情報40、エラートレース領域41、ASIC実行ト
レース領域42、電源制御状態遷移トレース領域43、
LAN(LocalArea Network)コマンドトレース領域4
4、TAB(Telecontrol Audio Bus)コマンドトレ
ース領域45、モード管理ユニットトレース領域46、
TCB(Task Control Block)トレース領域47、バッ
ファ領域48、メモリプール領域49、およびスタック
領域50などが設けられる。
FIG. 4 shows an outline of a memory map of the ROM 3 and the RAM 4. The ROM 3 and the RAM 4 are arranged in different areas of the address space of the microcomputer 2, and the inside is further divided into a plurality of areas. RO
In M3, management information 30, error trace storage area 3
1. An ASIC execution trace storage area 32, a power control state transition trace storage area 33, a program area 34, a data area 35, and the like are provided. In the RAM 4, management information 40, an error trace area 41, an ASIC execution trace area 42, a power control state transition trace area 43,
LAN (Local Area Network) command trace area 4
4, TAB (Telecontrol Audio Bus) command trace area 45, mode management unit trace area 46,
A TCB (Task Control Block) trace area 47, a buffer area 48, a memory pool area 49, a stack area 50, and the like are provided.

【0036】エラートレース領域41、ASIC実行ト
レース領域42、電源制御状態遷移トレース領域43、
LAN(Local Area Network)コマンドトレース領域4
4、TABコマンドトレース領域45、モード管理ユニ
ットトレース領域46、およびTCB(Task Control B
lock)トレース領域47は、図1のトレース領域11を
形成する。このうち、エラートレース領域41、ASI
C実行トレース領域42および電源制御状態遷移トレー
ス領域43のデータは、エラートレース保存領域31、
ASIC実行トレース保存領域32、電源制御状態遷移
トレース保存領域33で形成されるトレース保存領域1
2に保存される。
An error trace area 41, an ASIC execution trace area 42, a power control state transition trace area 43,
LAN (Local Area Network) command trace area 4
4, TAB command trace area 45, mode management unit trace area 46, and TCB (Task Control B
lock) The trace area 47 forms the trace area 11 of FIG. Of these, the error trace area 41, ASI
The data in the C execution trace area 42 and the power control state transition trace area 43 are stored in the error trace storage area 31,
Trace storage area 1 formed by ASIC execution trace storage area 32 and power supply control state transition trace storage area 33
2 is stored.

【0037】図5は、図4のエラートレース領域41、
ASIC実行トレース領域42および電源制御状態遷移
トレース領域43に保存される動作状態を表すデータの
構成を示す。図5(a)に示すエラートレースは、図1
の異常検出部9によって、タスクレベルエラーおよび割
込レベルエラーが発生したときに検出される動作状態を
記憶する。自己診断結果は、「故障レベル」としてコー
ド化される。図5(b)に示すASICトレースは、図
1のASIC5のレジスタ13にアクセスする際に、ア
クセス前レジスタ値とアクセス後レジスタ値とを含む動
作状態を記憶する。ASIC5の処理は、「処理種別」
としてコード化される。図5(c)に示す電源トレース
は、電源関連のイベントが発生する際の動作状態を記憶
する。イベントの種類は、イベント番号としてコード化
される。
FIG. 5 shows the error trace area 41 of FIG.
4 shows a configuration of data indicating an operation state stored in the ASIC execution trace area 42 and the power control state transition trace area 43. The error trace shown in FIG.
The operation state detected when the task level error and the interrupt level error have occurred is stored by the abnormality detecting unit 9 of FIG. The self-diagnosis result is coded as “failure level”. The ASIC trace shown in FIG. 5B stores an operation state including a register value before access and a register value after access when accessing the register 13 of the ASIC 5 in FIG. The processing of the ASIC 5 is “processing type”
Coded as The power trace shown in FIG. 5C stores an operation state when a power-related event occurs. The event type is coded as an event number.

【0038】図6は、図4のLANコマンドトレース領
域44およびTABコマンドトレース領域45にそれぞ
れ記憶されるLANトレースおよびTABトレースの構
成を、(a)および(b)でそれぞれ示す。LAN通信
やTAB通信で送受信されるメッセージを記憶しておく
ことによって、通信に関連するプログラムのデバッグを
有効に行うことができる。
FIGS. 6A and 6B show the configurations of the LAN trace and the TAB trace stored in the LAN command trace area 44 and the TAB command trace area 45 of FIG. 4, respectively. By storing messages transmitted and received by LAN communication or TAB communication, it is possible to effectively debug a program related to communication.

【0039】図7は、図4のモード管理ユニットトレー
ス領域46に記憶されるデータの構成を示す。データの
構成は、トレース種別に従って、(a)のマクロ実行、
(b)のAVCLAN受信通知メッセージ、または
(c)の受信メッセージorタイムアウトとなる。図4
のTCBトレース領域47には、実行されたタスクを示
すTCBが記憶される。
FIG. 7 shows the structure of data stored in the mode management unit trace area 46 of FIG. The data structure is as follows: (a) macro execution,
The AVCLAN reception notification message of (b) or the reception message or timeout of (c) occurs. FIG.
The TCB trace area 47 stores the TCB indicating the executed task.

【0040】本実施形態の電子機器1は、マイクロコン
ピュータ2上で動作するプログラムが、自己の動作状態
の軌跡をメモリに記憶しておき、メモリの記憶内容を電
子機器2の外部に読出してデバッグを支援することがで
きる。自己の動作状態を予め定める条件でコード化して
メモリに記憶するので、少ない記憶領域でも多くの情報
を含むコードを記憶することができる。メモリの記憶内
容は、電子機器1の外部に読出すので、電子機器1自体
には動作状態の解析機能を持たせる必要はなく、外部の
装置で充分な解析を行うことができる。
In the electronic device 1 of the present embodiment, the program operating on the microcomputer 2 stores the trajectory of its own operating state in a memory, reads out the contents stored in the memory to the outside of the electronic device 2, and debugs it. Can help. Since its own operation state is coded under a predetermined condition and stored in the memory, a code including a lot of information can be stored in a small storage area. Since the contents stored in the memory are read out of the electronic device 1, the electronic device 1 itself does not need to have an operation state analysis function, and sufficient analysis can be performed by an external device.

【0041】[0041]

【発明の効果】以上のように本発明によれば、予め設定
されるプログラムに従って動作するマイクロコンピュー
タを備える電子機器で、マイクロコンピュータが電子機
器としての動作中に、予め設定されるプログラムに従っ
て、自己の動作状態をコード化し、メモリに記憶する。
マイクロコンピュータのプログラムで、マイルストーン
として特定の位置での動作状態を示す情報をコード化す
るようにしておけば、メモリに記憶されているデータか
ら、プログラムのマイルストーン位置での動作状態を解
析することができる。メモリに記憶されているデータは
コード化され、電子機器外部からの要求に応じて、外部
に出力可能であるので、電子機器の外部でデータを解析
して、プログラムのデバッグを行うことができる。プロ
グラムの変更によって、記憶しておく動作状態を変える
こともでき、特定条件下で発生する異常や潜在異常を、
容易に再現しうるようにすることもできる。
As described above, according to the present invention, in an electronic device including a microcomputer that operates according to a preset program, the microcomputer operates in accordance with the preset program while operating as the electronic device. Is coded and stored in the memory.
If a microcomputer program encodes information indicating the operating status at a specific location as a milestone, the operating status at the milestone location of the program is analyzed from the data stored in the memory. be able to. Since the data stored in the memory is encoded and can be output to the outside in response to a request from outside the electronic device, the data can be analyzed outside the electronic device to debug the program. By changing the program, it is possible to change the operating state to be stored, and to detect abnormalities and latent abnormalities that occur under specific conditions,
It can also be easily reproduced.

【0042】また本発明によれば、ソフトウエアが自己
動作の異常を検出すれば自己診断を行い、診断結果をコ
ード化してメモリに記憶するので、表面上では検出困難
な内部的な異常や潜在的な異常を、摘出することも可能
になる。
According to the present invention, if the software detects an abnormality in the self-operation, a self-diagnosis is performed, and the diagnosis result is coded and stored in the memory. It is also possible to extract any abnormalities.

【0043】また本発明によれば、マイクロコンピュー
タはプログラムの動作中に自己の動作状態を一旦メモリ
に記憶し、さらに不揮発性の記憶手段に記憶させること
ができる。プログラムの動作中には、一旦メモリに動作
状態を記憶するので、一般に記憶に時間がかかる不揮発
性の記憶手段への直接的な記憶を避けることができる。
Further, according to the present invention, the microcomputer can temporarily store its own operation state in the memory during the operation of the program, and further store it in the nonvolatile storage means. Since the operating state is temporarily stored in the memory during the operation of the program, it is possible to avoid direct storage in the non-volatile storage means, which generally takes a long time to store.

【0044】また本発明によれば、メモリに記憶されて
いる動作状態を、時間経過に従う動作状態の軌跡として
解析することができる。
Further, according to the present invention, the operating state stored in the memory can be analyzed as a trajectory of the operating state over time.

【0045】また本発明によれば、電子機器の動作状態
がコード化されて記憶されているメモリから読出したデ
ータは、情報ファイルとして取扱うための予め定める形
式に変換するので、データの閲覧が容易でわかりやすく
なり。情報ファイルは、注釈の記入や加工、さらに電子
メールでの送受信も行うことができるので、電子機器の
使用環境から離れた位置でも容易にデバッグを行うこと
ができる。。
According to the present invention, the data read from the memory in which the operating state of the electronic device is coded and stored is converted into a predetermined format for handling as an information file, so that the data can be easily browsed. It is easy to understand. The information file can also be used to write and process annotations, and can also be transmitted and received by e-mail, so that debugging can be easily performed even at a position away from the usage environment of the electronic device. .

【0046】さらに本発明によれば、汎用のコンピュー
タに記録媒体に記録されているプログラムを読みとら
せ、電子機器のメモリに記憶されているコード化された
動作状態を読みとって解析し、電子機器のプログラムを
改善するデバッグ支援装置として機能させることができ
る。
Further, according to the present invention, a general-purpose computer is made to read a program recorded in a recording medium, and a coded operation state stored in a memory of an electronic device is read and analyzed, and the electronic device is analyzed. Can be functioned as a debug support device that improves the program of the above.

【0047】さらに本発明によれば、電子機器自体で、
自己の動作状態の軌跡をコード化してメモリに記憶する
ので、少ない記憶領域でも多くの情報を記憶することが
できる。メモリの記憶内容を電子機器の外部に読出すの
で、外部の装置で充分な解析を行い、プログラムをデバ
ッグすることができる。
Further, according to the present invention, in the electronic device itself,
Since the trajectory of the own operation state is encoded and stored in the memory, a large amount of information can be stored in a small storage area. Since the contents stored in the memory are read out of the electronic device, sufficient analysis can be performed by an external device to debug the program.

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

【図1】本発明の実施の一形態である電子機器1に関連
する電気的構成を示すブロック図である。
FIG. 1 is a block diagram showing an electrical configuration related to an electronic device 1 according to an embodiment of the present invention.

【図2】図1のマイクロコンピュータ2がフラッシュメ
モリにデータの書込みを行う手順を示すフローチャート
である。
FIG. 2 is a flowchart showing a procedure in which the microcomputer 2 in FIG. 1 writes data in a flash memory.

【図3】図1のマイクロコンピュータ2がスイッチのO
N/OFF状態を記憶する手順を示すフローチャートで
ある。
FIG. 3 is a diagram showing a microcomputer O of FIG.
9 is a flowchart illustrating a procedure for storing an N / OFF state.

【図4】図1のROM3およびRAM4のメモリマップ
の概要を示す図である。
FIG. 4 is a diagram showing an outline of a memory map of a ROM 3 and a RAM 4 in FIG. 1;

【図5】図4のエラートレース領域41、ASIC実行
トレース領域42および電源制御状態遷移トレース領域
43に保存される動作状態を表すデータの構成を示す図
である。
FIG. 5 is a diagram showing a configuration of data indicating an operation state stored in an error trace area 41, an ASIC execution trace area 42, and a power control state transition trace area 43 in FIG.

【図6】図4のLANコマンドトレース領域44および
TABコマンドトレース領域45にそれぞれ記憶される
データの構成を示す図である。
6 is a diagram showing a configuration of data stored in a LAN command trace area 44 and a TAB command trace area 45 in FIG. 4, respectively.

【図7】図4のモード管理ユニットトレース領域46に
記憶されるデータの構成を示す図である。
FIG. 7 is a diagram showing a configuration of data stored in a mode management unit trace area 46 of FIG.

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

1 電子機器 2 マイクロコンピュータ 3,6 ROM 4 RAM 5 ASIC 7 タイマ 8 I/F回路 9 異常検出部 11 トレース領域 12 トレース保存領域 13 レジスタ 20 パーソナルコンピュータ 22 電子メール 23 プリンタ DESCRIPTION OF SYMBOLS 1 Electronic device 2 Microcomputer 3, 6 ROM 4 RAM 5 ASIC 7 Timer 8 I / F circuit 9 Abnormality detection unit 11 Trace area 12 Trace storage area 13 Register 20 Personal computer 22 E-mail 23 Printer

───────────────────────────────────────────────────── フロントページの続き (72)発明者 濱田 勲 兵庫県神戸市兵庫区御所通1丁目2番28号 富士通テン株式会社内 (72)発明者 伊藤 広己 兵庫県神戸市兵庫区御所通1丁目2番28号 富士通テン株式会社内 Fターム(参考) 5B042 GA13 GB08 GC08 GC11 HH05 HH30 JJ11 JJ12 KK01 KK14 KK15 LA19 LA20 MA06 MA09 MB01 MC19 MC35 5B062 JJ07 JJ08 5H223 AA10 CC09 DD01 DD09 EE11 EE15 EE19  ──────────────────────────────────────────────────続 き Continuing from the front page (72) Inventor Isao Hamada 1-2-28 Goshodori, Hyogo-ku, Kobe City, Hyogo Prefecture Inside Fujitsu Ten Co., Ltd. (72) Inventor Hiroki Ito 1-chome, Goshodori, Hyogo-ku, Kobe City, Hyogo Prefecture No. 28 No. 28 F-term in Fujitsu Ten Limited (reference) 5B042 GA13 GB08 GC08 GC11 HH05 HH30 JJ11 JJ12 KK01 KK14 KK15 LA19 LA20 MA06 MA09 MB01 MC19 MC35 5B062 JJ07 JJ08 5H223 AA10 CC09 DD01 DD09 EE11 EE15 EE19

Claims (7)

【特許請求の範囲】[Claims] 【請求項1】 予め設定されるプログラムに従って動作
するマイクロコンピュータを備える電子機器において、 該マイクロコンピュータは、電子機器としての動作中
に、予め設定されるプログラムに従って、自己の動作状
態をコード化する処理を実行し、 該コード化された動作状態が記憶されるメモリを含み、 該マイクロコンピュータは、電子機器外部からの要求に
応じて、メモリに記憶されているコード化された動作状
態を、外部に出力可能であることを特徴とする電子機
器。
1. An electronic device comprising a microcomputer that operates according to a preset program, wherein the microcomputer encodes its own operation state according to a preset program during operation as the electronic device. The microcomputer includes a memory in which the coded operation state is stored, and the microcomputer externally transmits the coded operation state stored in the memory in response to a request from outside the electronic device. An electronic device characterized by being capable of outputting.
【請求項2】 前記マイクロコンピュータは、自己の動
作に異常が検出されるか否かを判断し、異常が検出され
るとき、自己診断を行って、自己診断の結果を前記動作
状態として前記メモリに記憶することを特徴とする請求
項1記載の電子機器。
2. The microcomputer determines whether or not an abnormality is detected in its own operation. When an abnormality is detected, the microcomputer performs a self-diagnosis and sets a result of the self-diagnosis as the operation state in the memory. The electronic device according to claim 1, wherein the electronic device is stored in the electronic device.
【請求項3】 不揮発性の記憶手段を含み、 前記マイクロコンピュータは、前記メモリにコード化さ
れて記憶されている動作状態を、該不揮発性の記憶手段
に記憶させることを特徴とする請求項1または2記載の
電子機器。
3. The non-volatile storage means includes a non-volatile storage means, wherein the microcomputer stores an operation state coded and stored in the memory in the non-volatile storage means. Or the electronic device according to 2.
【請求項4】 時間経過を計測する計時手段を含み、 前記マイクロコンピュータは、前記メモリに記憶する動
作状態に、計時手段が計測する時間経過に基づくタイム
スタンプを含めることを特徴とする請求項1〜3のいず
れかに記載の電子機器。
4. The microcomputer according to claim 1, further comprising: a timer for measuring a lapse of time, wherein the microcomputer includes a time stamp based on the lapse of time measured by the timer in the operation state stored in the memory. An electronic device according to any one of claims 1 to 3.
【請求項5】 請求項1〜4のいずれかに記載の電子機
器から前記メモリに記憶されている前記動作状態を読出
すデータ読出し手段と、 データ読出し手段によって読出された動作状態を、情報
ファイルとして取扱うための予め定める形式のデータに
変換するデータ変換手段とを含むことを特徴とする電子
機器のデバッグ支援装置。
5. A data reading means for reading the operating state stored in the memory from the electronic device according to claim 1, and an operating state read by the data reading means in an information file. A data conversion means for converting the data into data of a predetermined format to be handled as an electronic device.
【請求項6】 コンピュータを、請求項5記載の電子機
器のデバッグ支援装置として機能させるためのプログラ
ムを記録したコンピュータ読みとり可能な記録媒体。
6. A computer-readable recording medium in which a program for causing a computer to function as the debugging support device for an electronic device according to claim 5 is recorded.
【請求項7】 電子機器が備えるマイクロコンピュータ
上で動作するプログラムが、自己の動作状態の軌跡を予
め定める条件でコード化して、メモリに記憶しておき、
メモリの記憶内容を電子機器の外部に読出すことを特徴
とする電子機器のデバッグ支援方法。
7. A program that operates on a microcomputer provided in an electronic device encodes a trajectory of its own operating state under a predetermined condition and stores it in a memory.
A debugging support method for an electronic device, comprising reading out the contents stored in a memory to the outside of the electronic device.
JP2001034074A 2001-02-09 2001-02-09 Automotive electronics Expired - Fee Related JP4398102B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2001034074A JP4398102B2 (en) 2001-02-09 2001-02-09 Automotive electronics

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2001034074A JP4398102B2 (en) 2001-02-09 2001-02-09 Automotive electronics

Publications (2)

Publication Number Publication Date
JP2002236595A true JP2002236595A (en) 2002-08-23
JP4398102B2 JP4398102B2 (en) 2010-01-13

Family

ID=18897738

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2001034074A Expired - Fee Related JP4398102B2 (en) 2001-02-09 2001-02-09 Automotive electronics

Country Status (1)

Country Link
JP (1) JP4398102B2 (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005239086A (en) * 2004-02-27 2005-09-08 Fuji Heavy Ind Ltd Control unit and data transmitting method
JP2009259289A (en) * 2009-08-07 2009-11-05 Stmicroelectronics Sa Temporal correlation of message transmitted by monitor circuit of microprocessor
JP2012074057A (en) * 2003-07-11 2012-04-12 Yogitech Spa Dependable microcontroller, designing method thereof and computer program therefor

Citations (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5667505U (en) * 1979-10-30 1981-06-05
JPS60542A (en) * 1983-06-17 1985-01-05 Hitachi Ltd Program tracing device
JPS63114594A (en) * 1986-10-30 1988-05-19 Yaskawa Electric Mfg Co Ltd Trace back method for variable speed driving device
JPH01243138A (en) * 1988-03-25 1989-09-27 Hitachi Ltd System for tracing emulator
JPH02275541A (en) * 1989-04-17 1990-11-09 Fujitsu Ltd Trace information control system
JPH02307129A (en) * 1989-05-23 1990-12-20 Nec Corp Setting/deleting system for snap id output sentence
JPH04297350A (en) * 1991-03-27 1992-10-21 Toyota Autom Loom Works Ltd External memory control method in vehicle
JPH05100901A (en) * 1991-10-08 1993-04-23 Nec Ic Microcomput Syst Ltd Microcomputer
JPH05250210A (en) * 1992-02-27 1993-09-28 Nec Corp Program trace system
JPH05257736A (en) * 1992-03-12 1993-10-08 Nec Corp Program trace system
JPH06168111A (en) * 1992-11-30 1994-06-14 Fuji Facom Corp System for automatically generating debugged statement
JPH0654383U (en) * 1992-12-28 1994-07-22 日新電機株式会社 Central supervisory controller
JPH0916202A (en) * 1995-07-04 1997-01-17 Akebono Brake Ind Co Ltd Backup method for self-diagnostic data and controller for vehicle electronic equipment with data backup function
JPH0916432A (en) * 1995-06-27 1997-01-17 Nec Commun Syst Ltd Trace data analysis system
JPH09330104A (en) * 1996-06-10 1997-12-22 Unisia Jecs Corp Electronic control system for automobile
JPH1047151A (en) * 1996-08-08 1998-02-17 Hitachi Ltd Electronic control device for automobile
JP2000172385A (en) * 1998-12-03 2000-06-23 Clarion Co Ltd On-vehicle computer and its control method

Patent Citations (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5667505U (en) * 1979-10-30 1981-06-05
JPS60542A (en) * 1983-06-17 1985-01-05 Hitachi Ltd Program tracing device
JPS63114594A (en) * 1986-10-30 1988-05-19 Yaskawa Electric Mfg Co Ltd Trace back method for variable speed driving device
JPH01243138A (en) * 1988-03-25 1989-09-27 Hitachi Ltd System for tracing emulator
JPH02275541A (en) * 1989-04-17 1990-11-09 Fujitsu Ltd Trace information control system
JPH02307129A (en) * 1989-05-23 1990-12-20 Nec Corp Setting/deleting system for snap id output sentence
JPH04297350A (en) * 1991-03-27 1992-10-21 Toyota Autom Loom Works Ltd External memory control method in vehicle
JPH05100901A (en) * 1991-10-08 1993-04-23 Nec Ic Microcomput Syst Ltd Microcomputer
JPH05250210A (en) * 1992-02-27 1993-09-28 Nec Corp Program trace system
JPH05257736A (en) * 1992-03-12 1993-10-08 Nec Corp Program trace system
JPH06168111A (en) * 1992-11-30 1994-06-14 Fuji Facom Corp System for automatically generating debugged statement
JPH0654383U (en) * 1992-12-28 1994-07-22 日新電機株式会社 Central supervisory controller
JPH0916432A (en) * 1995-06-27 1997-01-17 Nec Commun Syst Ltd Trace data analysis system
JPH0916202A (en) * 1995-07-04 1997-01-17 Akebono Brake Ind Co Ltd Backup method for self-diagnostic data and controller for vehicle electronic equipment with data backup function
JPH09330104A (en) * 1996-06-10 1997-12-22 Unisia Jecs Corp Electronic control system for automobile
JPH1047151A (en) * 1996-08-08 1998-02-17 Hitachi Ltd Electronic control device for automobile
JP2000172385A (en) * 1998-12-03 2000-06-23 Clarion Co Ltd On-vehicle computer and its control method

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2012074057A (en) * 2003-07-11 2012-04-12 Yogitech Spa Dependable microcontroller, designing method thereof and computer program therefor
JP2005239086A (en) * 2004-02-27 2005-09-08 Fuji Heavy Ind Ltd Control unit and data transmitting method
JP4509603B2 (en) * 2004-02-27 2010-07-21 富士重工業株式会社 Control unit and data transmission method
JP2009259289A (en) * 2009-08-07 2009-11-05 Stmicroelectronics Sa Temporal correlation of message transmitted by monitor circuit of microprocessor

Also Published As

Publication number Publication date
JP4398102B2 (en) 2010-01-13

Similar Documents

Publication Publication Date Title
US7849364B2 (en) Kernel-mode in-flight recorder tracing mechanism
US9262283B2 (en) Method for reading kernel log upon kernel panic in operating system
JPH0850557A (en) Fault recorder of microprocessor
JP5051514B2 (en) Memory error pattern recording system and memory error pattern recording method
JP4526111B2 (en) Microcomputer and debugging method
WO2007086150A1 (en) Memory destruction detection method and device
CN115658321A (en) Method and device for acquiring fault information of automobile instrument, electronic equipment and storage medium
JP2002236595A (en) Electronic equipment and its device and method for debugging assistance
JP4762204B2 (en) Program development support device
JP4558376B2 (en) controller
JP2008129669A (en) Hardware failure recording device and method
JP2009223714A (en) Arithmetic circuit and failure analysis method of arithmetic circuit
US20100077383A1 (en) Simulation method and storage medium for storing program
JPS6146864B2 (en)
JP4339269B2 (en) Mobile phone bus monitor system and method
JP3459898B2 (en) Fault information tracer for embedded systems
JP2008234358A (en) Storage device, information processor, and unauthorized writing detection method
CN116775501B (en) Software testing method, server, readable storage medium and chip system
CN112468296B (en) Key programming method, system, electronic equipment and storage medium
JPH10228395A (en) Abnormality diagnostic device for controller
CN115934477A (en) Software fault information collection method, electronic equipment and system
JP3314719B2 (en) Flash EEPROM and its test method
JPS60181947A (en) Memory diagnosing system
JP2006228153A (en) Information processor and program
JPS6375844A (en) Trouble recovery confirming system

Legal Events

Date Code Title Description
A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20050927

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20051004

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20051202

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20060627

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20060828

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20061017

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20061218

A911 Transfer of reconsideration by examiner before appeal (zenchi)

Free format text: JAPANESE INTERMEDIATE CODE: A911

Effective date: 20061222

A912 Removal of reconsideration by examiner before appeal (zenchi)

Free format text: JAPANESE INTERMEDIATE CODE: A912

Effective date: 20070202

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20090714

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

Free format text: JAPANESE INTERMEDIATE CODE: A01

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20091022

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

Free format text: PAYMENT UNTIL: 20121030

Year of fee payment: 3

R150 Certificate of patent or registration of utility model

Ref document number: 4398102

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

Free format text: JAPANESE INTERMEDIATE CODE: R150

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

Free format text: PAYMENT UNTIL: 20121030

Year of fee payment: 3

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

Free format text: PAYMENT UNTIL: 20131030

Year of fee payment: 4

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

Free format text: PAYMENT UNTIL: 20131030

Year of fee payment: 4

LAPS Cancellation because of no payment of annual fees