JP2001051868A - Data processing device with built-in debugging mechanism, host machine, and recording medium - Google Patents
Data processing device with built-in debugging mechanism, host machine, and recording mediumInfo
- Publication number
- JP2001051868A JP2001051868A JP11222225A JP22222599A JP2001051868A JP 2001051868 A JP2001051868 A JP 2001051868A JP 11222225 A JP11222225 A JP 11222225A JP 22222599 A JP22222599 A JP 22222599A JP 2001051868 A JP2001051868 A JP 2001051868A
- Authority
- JP
- Japan
- Prior art keywords
- communication interface
- communication
- host machine
- command
- data processing
- 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
Links
Landscapes
- Debugging And Monitoring (AREA)
- Test And Diagnosis Of Digital Computers (AREA)
Abstract
(57)【要約】
【課題】 通信インタフェースの一部に不具合がある場
合でも、ソフトウェアのデバックや評価を可能にするデ
バック機構内蔵のデータ処理装置を得る。
【解決手段】 デバック機構内蔵のデータ処理装置は、
ホストマシンに接続される複数の通信インタフェース回
路と、複数の通信インタフェース回路に対応して複数の
通信制御モジュールプログラムが含まれ、デバックを行
うための実行プログラムが格納されたメモリと、プロセ
ッサにより構成される。実行プログラムの処理は、ホス
トマシンから複数の通信インタフェース回路のいずれか
一つを選択するためのデジタル値を受け、プロセッサに
取り込まれる第1のステップと、デジタル値により選択
された通信インタフェース回路に対応する通信制御モジ
ュールを介してデバックのためのコマンドとその応答が
行われる第2のステップを含むようにした。
(57) [Problem] To provide a data processing device with a built-in debugging mechanism that enables software debugging and evaluation even when a part of a communication interface has a defect. SOLUTION: A data processing device with a built-in debugging mechanism is:
A plurality of communication interface circuits connected to the host machine, a plurality of communication control module programs corresponding to the plurality of communication interface circuits, a memory storing an execution program for performing debugging, and a processor. You. The processing of the execution program corresponds to the first step of receiving a digital value for selecting any one of the plurality of communication interface circuits from the host machine and taking in the processor, and the communication interface circuit selected by the digital value. And a second step in which a command for debugging and a response to the command are performed via the communication control module.
Description
【0001】[0001]
【発明の属する技術分野】本発明はデバック対象のプロ
グラムをデバックするための機構を含んだデータ処理装
置、ホストマシン、及び記録媒体に関するものである。[0001] 1. Field of the Invention [0002] The present invention relates to a data processing apparatus, a host machine, and a recording medium including a mechanism for debugging a program to be debugged.
【0002】[0002]
【従来の技術】図12に従来のソフトウェアデバック装
置1の構成図を示す。CPUあるいはDSPなどのプロ
セッサを内蔵したLSIのソフトウェアデバッグ装置1
は、図12のように、デバッグ対象LSI10が搭載さ
れた評価ボード20とPCやWS等のホストマシン30
が通信ケーブル40を介して接続された構成となってい
る。このようなソフトウェアデバッグ装置1による評価
ボード20上のソフトウェアのデバッグは、以下のよう
にして行われる。2. Description of the Related Art FIG. 12 shows a configuration diagram of a conventional software debug device 1. Software debug device 1 of LSI incorporating processor such as CPU or DSP
12, an evaluation board 20 on which a debug target LSI 10 is mounted and a host machine 30 such as a PC or WS, as shown in FIG.
Are connected via a communication cable 40. Debugging of the software on the evaluation board 20 by the software debug device 1 is performed as follows.
【0003】初めにデバックを行う設計者の判断によ
り、ホストマシン30からデバッグ用のコマンドが評価
ボード20上のデバッグ対象LSI10に対して送信さ
れる。そのコマンドを受信したデバック対象LSI10
は、デバック対象LSI10に内蔵されているデバッガ
処理プログラムとそのプログラムを実行するプロセッサ
によりそのコマンドを解釈し、実行される。デバック対
象LSI10は、そのコマンドの実行結果をホストマシ
ン30に送り返すことにより、ホストマシン30のディ
スプレイにそのコマンドに対する処理結果が表示され、
一つのデバック用のコマンドに対する処理が終了する。
ホストマシン30によりこれらの操作を繰り返すことに
よりソフトウェアのデバックが行われる。[0005] First, a debug command is transmitted from the host machine 30 to the debug target LSI 10 on the evaluation board 20 at the discretion of the designer who performs debugging. The debug target LSI 10 that has received the command
Are interpreted and executed by a debugger processing program built in the debug target LSI 10 and a processor that executes the program. The debug target LSI 10 sends the execution result of the command back to the host machine 30 so that the processing result for the command is displayed on the display of the host machine 30.
The processing for one debugging command ends.
The software is debugged by repeating these operations by the host machine 30.
【0004】[0004]
【発明が解決しようとする課題】このような現状のソフ
トウェアデバック装置1では、通信を行うためのH/W
など通信インタフェースに不具合があると、ホストマシ
ン30と評価ボード間の通信が困難になるため、ソフト
ウェアデバッグ装置1を動作させることができなくな
る。このように、通信を行うための通信インタフェース
の不具合により、チップ製造後のLSIの評価/デバッ
グが不可能になるという問題点があった。In such a current software debug device 1, an H / W for communication is used.
If there is a problem in the communication interface, for example, communication between the host machine 30 and the evaluation board becomes difficult, so that the software debug device 1 cannot be operated. As described above, there is a problem that evaluation / debugging of an LSI after chip manufacture becomes impossible due to a defect of a communication interface for performing communication.
【0005】また、デバッグ対象LSI10が搭載され
るボード(システム)の制約により、デバッグ対象LS
I10に搭載されている通信手段のすべてを使用するこ
とができない場合もある。例えば、デバッグ対象LSI
10内にはパラレルインタフェースが内蔵されているに
もかかわらず、そのデバッグ対象LSI10が搭載され
るボード(システム)においてはパラレルインタフェー
スをサポートしていない場合などがある。このときデバ
ックのためのホストマシン30と評価ボード20との通
信のインタフェースとして、パラレルインタフェースし
かサポートされていなければデバック対象LSI10の
デバックができないという問題があった。Further, due to the limitations of the board (system) on which the LSI 10 to be debugged is mounted, the
In some cases, it may not be possible to use all of the communication means mounted on the I10. For example, LSI to be debugged
In some cases, a board (system) on which the debug target LSI 10 is mounted does not support the parallel interface even though the parallel interface is built in the device 10. At this time, if only the parallel interface is supported as the communication interface between the host machine 30 and the evaluation board 20 for debugging, there is a problem that the debugging target LSI 10 cannot be debugged.
【0006】この発明は上述のような問題を解決するた
めになされたもので、通信を行うための通信インタフェ
ースの一部に不具合がある場合やデバック対象LSI1
0が搭載されるボード(システム)側に制約があり、デ
バック対象LSI10で用意されている通信インタフェ
ースのすべてをボード(システム)側で用意できない場
合でも、ソフトウェアのデバックや評価を行うことを可
能にするデバック機構を搭載したデータ処理装置を得る
ことを目的としている。また、ソフトウェアのデバック
や評価を行うことを可能にするデバック機構を搭載した
データ処理装置と一体になってソフトウェアデバック装
置1を実現するホストマシン30を得ることを目的にし
ている。SUMMARY OF THE INVENTION The present invention has been made to solve the above-described problems. The present invention has been made in the case where a part of a communication interface for performing communication has a defect, or the LSI 1 to be debugged has a problem.
Even if there is a restriction on the board (system) side on which 0 is mounted and all the communication interfaces prepared in the LSI 10 to be debugged cannot be prepared on the board (system) side, software debugging and evaluation can be performed. It is an object of the present invention to obtain a data processing device equipped with a debugging mechanism. It is another object of the present invention to obtain a host machine 30 that realizes the software debug device 1 integrally with a data processing device equipped with a debug mechanism that enables software debugging and evaluation.
【0007】[0007]
【課題を解決するための手段】第1の発明に係わるデバ
ック機構内蔵のデータ処理装置においては、各々はホス
トマシンにそれぞれ接続される複数の通信インタフェー
ス回路と、前記複数の通信インタフェース回路のそれぞ
れに対応して通信制御を行うための複数の通信制御モジ
ュールプログラムが含まれ、デバックを行うための実行
プログラムが格納されたメモリと、前記メモリに格納さ
れた前記実行プログラムを読み出して実行するプロセッ
サとにより構成され、前記実行プログラムにより指示さ
れる処理は、(1)前記ホストマシンから前記複数の通
信インタフェース回路の中でいずれか一つを選択するた
めのデジタル値を受けた場合、このデジタル値が前記プ
ロセッサに取り込まれる第1のステップと、(2)第1
のステップの後に前記デジタル値により選択された通信
インタフェース回路に対応する通信制御モジュールを介
してデバックのためのコマンドとその応答の送受信が行
われる第2のステップとを含むようにしたものである。In the data processing device with a built-in debugging mechanism according to the first invention, a plurality of communication interface circuits respectively connected to a host machine and a plurality of communication interface circuits are respectively provided. Correspondingly includes a plurality of communication control module programs for performing communication control, a memory storing an execution program for performing debugging, and a processor for reading and executing the execution program stored in the memory. The processing instructed by the execution program includes: (1) when receiving a digital value for selecting any one of the plurality of communication interface circuits from the host machine, this digital value is A first step taken by the processor, and (2) a first step.
And a second step of transmitting and receiving a command for debugging and a response to the command via a communication control module corresponding to the communication interface circuit selected by the digital value.
【0008】第2の発明に係わるデバック機構内蔵のデ
ータ処理装置においては、前記実行プログラムにより指
示される処理はさらに、第1のステップの前にホストマ
シンから複数の通信インタフェース回路の内の一つを介
してテストの要求を受けた場合、前記プロセッサがテス
ト応答データを前記テストの要求を受けた通信インタフ
ェース回路と同じ通信インタフェース回路を介してホス
トマシンに送出する第3のステップが含まれているよう
にしたものである。In the data processing device with a built-in debugging mechanism according to the second invention, the processing instructed by the execution program is further executed by the host machine prior to the first step. And a third step in which the processor sends test response data to the host machine via the same communication interface circuit as the communication interface circuit that has received the test request when the test request is received via It is like that.
【0009】第3の発明に係わるデバック機構内蔵のデ
ータ処理装置においては、複数の通信インタフェース回
路とは別の通信インタフェース回路をさらに備え、いず
れか一つの通信インタフェース回路を選択するためのデ
ジタル値を受けるのは、前記別の通信インタフェース回
路により行われるようにしたものである。The data processing device with a built-in debugging mechanism according to the third invention further includes a communication interface circuit different from the plurality of communication interface circuits, and stores a digital value for selecting one of the communication interface circuits. The receiving is performed by the another communication interface circuit.
【0010】第4の発明に係わるデバック機構内蔵のデ
ータ処理装置においては、いずれか一つの通信インタフ
ェース回路を選択するためのデジタル値を受けるのは、
複数の通信インタフェース回路の中で動作可能ないずれ
か一つの通信インタフェース回路により行われるように
したものである。In the data processing device with a built-in debugging mechanism according to the fourth invention, receiving the digital value for selecting one of the communication interface circuits is as follows.
This is performed by any one of the communication interface circuits operable among the plurality of communication interface circuits.
【0011】第5の発明に係わるデバック機構内蔵のデ
ータ処理装置においては、各々はホストマシンにそれぞ
れ接続される複数の通信インタフェース回路と、前記複
数の通信インタフェース回路のそれぞれに対応して通信
制御を行うためのプログラムである複数の通信制御モジ
ュールが含まれ、デバックを行うための実行プログラム
が格納されたメモリと、前記メモリに格納された前記実
行プログラムを読み出して実行するプロセッサとにより
構成され、前記実行プログラムにより指示される処理
は、ホストマシンからテストの要求を受けた場合、前記
プロセッサが前記複数の通信インタフェース回路のそれ
ぞれを介してテスト応答データをそれぞれホストマシン
に送出するステップが含まれるようにしたものである。In a data processing device with a built-in debugging mechanism according to a fifth invention, a plurality of communication interface circuits each connected to a host machine, and communication control corresponding to each of the plurality of communication interface circuits. A plurality of communication control modules, which are programs for executing, a memory storing an execution program for performing debugging, and a processor configured to read and execute the execution program stored in the memory, The processing instructed by the execution program includes a step in which, when a test request is received from a host machine, the processor sends test response data to the host machine via each of the plurality of communication interface circuits. It was done.
【0012】第6の発明に係わるホストマシンにおいて
は、デバック機構内蔵のデータ処理装置のデバック制御
を行う制御プログラムが内蔵され、前記データ処理装置
のデバック制御を行う処理部と、前記データ処理装置と
の間をそれぞれ接続する複数の通信インタフェースとを
含み、前記処理部の前記制御プログラムにより指示され
る処理は、(1)前記データ処理装置に対してテストを
要求するコマンドの送信を行う第1のステップと、
(2)前記第1のステップによるテストを要求するコマ
ンドに対する前記データ処理装置からの応答を受信する
第2のステップと、(3)前記第2のステップにより受
信した応答を判断することにより前記いずれか一つの通
信インタフェースを選択し、その選択された通信インタ
フェースに対応するデジタル値を送信する第3のステッ
プを含む通信インタフェース確立手順を有しており、通
信インタフェース確立後は前記いずれか一つの通信イン
タフェースを用いてコマンドとそのコマンドに対する応
答の送受信が行われるようにしたものである。In a host machine according to a sixth aspect of the present invention, there is provided a control program for performing a debugging control of a data processing device having a built-in debugging mechanism, and a processing unit for performing the debugging control of the data processing device; And a plurality of communication interfaces respectively connecting between the first and second communication interfaces, and the processing instructed by the control program of the processing unit includes: (1) a first command for transmitting a command requesting a test to the data processing device; Steps and
(2) a second step of receiving a response from the data processing device to the command requesting the test in the first step, and (3) determining the response received in the second step. A communication interface establishing procedure including a third step of selecting one of the communication interfaces and transmitting a digital value corresponding to the selected communication interface, and after establishing the communication interface, A command and a response to the command are transmitted and received using an interface.
【0013】第7の発明に係わるホストマシンにおいて
は、複数の通信インタフェースとは別の通信インタフェ
ースをさらに備え、第3のステップにおける選択された
通信インタフェースに対応するデジタル値の送信は、前
記別の通信インタフェースにより行われるようにしたも
のである。[0013] The host machine according to a seventh aspect of the present invention further comprises a communication interface different from the plurality of communication interfaces. This is performed by a communication interface.
【0014】第8の発明に係わるホストマシンにおいて
は、第3のステップにおける選択された通信インタフェ
ースに対応するデジタル値の送信は、複数の通信インタ
フェースの中で動作可能ないずれか一つの通信インタフ
ェースにより行われるようにしたものである。In the host machine according to the eighth invention, the transmission of the digital value corresponding to the selected communication interface in the third step is performed by any one of the plurality of communication interfaces. It is intended to be performed.
【0015】第9の発明に係わるホストマシンにおいて
は、デバック機構内蔵のデータ処理装置のデバック制御
を行う制御プログラムが内蔵され、前記データ処理装置
のデバック制御を行う処理部と、前記データ処理装置と
の間をそれぞれ接続する複数の通信インタフェースとを
含み、前記処理部の前記制御プログラムにより指示され
る処理は、(1)前記データ処理装置に対してテストを
要求するコマンドの送信を行う第1のステップと、
(2)前記第1のステップによるテストを要求するコマ
ンドに対する前記データ処理装置からの応答を前記複数
の通信インタフェースのそれぞれの通信インタフェース
から受信する第2のステップとを含む通信インタフェー
ス確立手順を有しており、通信インタフェース確立後は
前記いずれか一つの通信インタフェースを用いてコマン
ドとそのコマンドに対する応答の送受信が行われるよう
にしたものである。In a host machine according to a ninth aspect of the present invention, a control program for performing a debug control of a data processing device having a built-in debug mechanism is built in, and a processing unit for performing the debug control of the data processing device; And a plurality of communication interfaces respectively connecting between the first and second processing units. The processing instructed by the control program of the processing unit includes: (1) a first command for transmitting a command requesting a test to the data processing device; Steps and
(2) receiving a response from the data processing device to the command requesting the test in the first step from each of the plurality of communication interfaces. After the communication interface is established, a command and a response to the command are transmitted and received using one of the communication interfaces.
【0016】第10の発明に係わる記録媒体において
は、ホストマシンのメモリ内に記憶されデバック機構内
蔵のデータ処理装置のデバック制御を行うための制御プ
ログラムが格納されたものであり、前記制御プログラム
により指示される処理は、(1)前記データ処理装置に
対してテストを要求するコマンドの送信を行う第1のス
テップと、(2)前記第1のステップによるテストを要
求するコマンドに対する前記データ処理装置からの応答
を受信する第2のステップと、(3)前記第2のステッ
プにより受信した応答を判断することにより前記いずれ
か一つの通信インタフェースを選択し、その選択された
通信インタフェースに対応するデジタル値を送信する第
3のステップを含む通信インタフェース確立手順を有し
ており、通信インタフェース確立後は前記いずれか一つ
の通信インタフェースを用いてコマンドとそのコマンド
に対する応答の送受信を行わせるように前記ホストマシ
ンを制御するための前記制御プログラムを格納した前記
ホストマシンで読み取り可能であるようにしたものであ
る。In a recording medium according to a tenth aspect of the present invention, a control program stored in a memory of a host machine for performing a debugging control of a data processing device having a built-in debugging mechanism is stored. The instructed processing includes: (1) a first step of transmitting a command requesting a test to the data processing apparatus; and (2) the data processing apparatus responding to a command requesting a test in the first step. And (3) selecting one of the communication interfaces by judging the response received in the second step, and selecting a digital interface corresponding to the selected communication interface. A communication interface establishment procedure including a third step of transmitting a value; After the connection is established, the host computer storing the control program for controlling the host machine to transmit and receive a command and a response to the command using one of the communication interfaces may be readable. It was made.
【0017】第11の発明に係わる記録媒体において
は、ホストマシンのメモリ内に記憶されデバック機構内
蔵のデータ処理装置のデバック制御を行うための制御プ
ログラムが格納されたものであり、前記制御プログラム
により指示される処理は、(1)前記データ処理装置に
対してテストを要求するコマンドの送信を行う第1のス
テップと、(2)前記第1のステップによるテストを要
求するコマンドに対する前記データ処理装置からの応答
を前記複数の通信インタフェースのそれぞれの通信イン
タフェースから受信する第2のステップとを含む通信イ
ンタフェース確立手順を有しており、通信インタフェー
ス確立後は前記いずれか一つの通信インタフェースを用
いてコマンドとそのコマンドに対する応答の送受信を行
わせるように前記ホストマシンを制御するための前記制
御プログラムを格納した前記ホストマシンで読み取り可
能であるようにしたものである。In a recording medium according to an eleventh aspect of the present invention, a control program stored in a memory of a host machine for performing a debugging control of a data processing device having a built-in debugging mechanism is stored. The instructed processing includes: (1) a first step of transmitting a command requesting a test to the data processing apparatus; and (2) the data processing apparatus responding to a command requesting a test in the first step. And a second step of receiving a response from each of the plurality of communication interfaces from the communication interface. After the communication interface is established, a command is issued using any one of the communication interfaces. And send and receive a response to that command. Tomashin is obtained as is readable by the host machine which stores the control program for controlling.
【0018】[0018]
【発明の実施の形態】実施の形態1.図1に実施の形態
1におけるデバック対象LSI10が搭載された評価ボ
ード20内のソフトウェアやファームウェアなどのプロ
グラムをデバックするときのソフトウェアデバック装置
1の構成図を示す。ソフトウェアデバック装置1はデバ
ック対象LSI10と、デバック対象LSI10が実装
された評価ボード20と、デバック対象LSI10に搭
載されているプログラムなどをデバックや評価をするた
めのデバック制御を行う制御部31を含んだホストマシ
ン30と、評価ボート20とホストマシン30との間を
接続する複数のケーブルからなる通信ケーブル40とに
より構成されている。図1には示されていないが、ホス
トマシン30の制御部31には、評価ボード20側のデ
バック制御を行うための制御プログラムが格納されたメ
モリと、そのメモリに格納されている制御プログラムを
実行するCPUが含まれている。また、ホストマシン3
0には、デバック制御を行うための制御プログラムが格
納された記録媒体の内容を読み出し、その記録媒体に格
納されていた制御プログラムを制御部31内のメモリに
書き込む装置を内蔵している。DESCRIPTION OF THE PREFERRED EMBODIMENTS Embodiment 1 FIG. 1 shows a configuration diagram of a software debug device 1 for debugging a program such as software or firmware in an evaluation board 20 on which a debug target LSI 10 is mounted according to the first embodiment. The software debug device 1 includes an LSI 10 to be debugged, an evaluation board 20 on which the LSI 10 to be debugged is mounted, and a control unit 31 for performing debug control for debugging and evaluating a program and the like mounted on the LSI 10 to be debugged. It comprises a host machine 30 and a communication cable 40 composed of a plurality of cables connecting between the evaluation boat 20 and the host machine 30. Although not shown in FIG. 1, the control unit 31 of the host machine 30 stores a memory storing a control program for performing debugging control on the evaluation board 20 side and a control program stored in the memory. A CPU to execute is included. Also, host machine 3
0 includes a device for reading the contents of a recording medium storing a control program for performing debug control and writing the control program stored in the recording medium to a memory in the control unit 31.
【0019】次にデバック対象LSI10のH/W内部
構成と評価ボード20の構成について図2に示す。デバ
ック対象LSI10はCPUあるいはDSPなどのプロ
セッサ101と、プロセッサ101が実行する命令が格
納されている命令ROM102と、プロセッサ101が
実行するときのデータが格納されているデータRAM1
03と、デバック対象LSIの外部との通信をするため
の通信インタフェース60、61、62とにより構成さ
れている。また、通信インタフェース60は、デバック
対象LSI10内の通信ポート110と、評価ボード2
0上のコネクタ210と、ホストマシン30に接続され
たケーブル400とが含まれている。通信インタフェー
ス61は、デバック対象LSI10内の第1通信インタ
フェース回路111と、評価ボード20上のコネクタ2
11と、ホストマシン30に接続されたケーブル401
とが含まれている。通信インタフェース62は、デバッ
ク対象LSI10内の第2通信インタフェース回路11
2と、評価ボード20上のコネクタ212と、ホストマ
シン30に接続されたケーブル402とが含まれてい
る。FIG. 2 shows the internal configuration of the hardware of the LSI 10 to be debugged and the configuration of the evaluation board 20. The debug target LSI 10 includes a processor 101 such as a CPU or a DSP, an instruction ROM 102 storing instructions to be executed by the processor 101, and a data RAM 1 storing data to be executed by the processor 101.
03, and communication interfaces 60, 61, and 62 for communicating with the outside of the debug target LSI. The communication interface 60 includes a communication port 110 in the debug target LSI 10 and an evaluation board 2.
0 and a cable 400 connected to the host machine 30. The communication interface 61 includes a first communication interface circuit 111 in the debug target LSI 10 and a connector 2 on the evaluation board 20.
11 and a cable 401 connected to the host machine 30
And are included. The communication interface 62 is connected to the second communication interface circuit 11 in the debug target LSI 10.
2, a connector 212 on the evaluation board 20, and a cable 402 connected to the host machine 30.
【0020】次にデバック対象LSI10内部の接続形
態について説明する。プロセッサ101はAD1バスを
介して命令ROM102に接続されている。また、プロ
セッサ101はAD2バスを介してデータRAM103
と、通信インタフェース60内の通信ポート110の受
信側出力端と、通信インタフェース61内の第1通信イ
ンタフェース回路111の送信側入力端及び受信側出力
端と、通信インタフェース62内の第2通信インタフェ
ース回路112の送信側入力端及び受信側出力端とに接
続されている。Next, the connection configuration inside the debug target LSI 10 will be described. The processor 101 is connected to the instruction ROM 102 via the AD1 bus. The processor 101 is connected to the data RAM 103 via the AD2 bus.
A receiving-side output terminal of the communication port 110 in the communication interface 60, a transmitting-side input terminal and a receiving-side output terminal of the first communication interface circuit 111 in the communication interface 61, and a second communication interface circuit in the communication interface 62. 112 are connected to a transmission-side input terminal and a reception-side output terminal.
【0021】次に評価ボード20の接続形態について説
明する。通信インタフェース60内のデバック対象LS
I10の通信ポート110の受信側入力端は、信号線C
P1と、コネクタ210を介して通信ケーブル40の一
つであるケーブル400とに接続されている。また、通
信インタフェース61内の第1通信インタフェース回路
111の送信側出力端及び受信側入力端は、信号線C1
と、コネクタ211を介して通信ケーブル40の一つで
あるケーブル401とに接続されている。さらに、通信
インタフェース62内の第2通信インタフェース回路1
12の送信側出力端及び受信側入力端は、信号線C2
と、コネクタ212を介して通信ケーブル40の一つで
あるケーブル402と接続されている。図では示されて
いないがホストマシン30と評価ボード20はケーブル
400、401、402からなる通信ケーブル40によ
り接続されている。Next, a connection form of the evaluation board 20 will be described. LS to be debugged in communication interface 60
The receiving input terminal of the communication port 110 of I10 is connected to the signal line C
It is connected to P1 and a cable 400 which is one of the communication cables 40 via a connector 210. The transmission-side output terminal and the reception-side input terminal of the first communication interface circuit 111 in the communication interface 61 are connected to the signal line C1.
And a cable 401 which is one of the communication cables 40 via a connector 211. Further, the second communication interface circuit 1 in the communication interface 62
12 are connected to a signal line C2.
Is connected to a cable 402 which is one of the communication cables 40 via a connector 212. Although not shown, the host machine 30 and the evaluation board 20 are connected by a communication cable 40 including cables 400, 401, and 402.
【0022】次に動作について説明する。プロセッサ1
01は命令ROM102あるいはここでは示されていな
いが命令RAMに格納されているプログラムに従い、デ
ータRAM103に格納されているデータを参照しなが
ら命令を実行してゆく。また、命令ROM102に格納
されているプログラムに従って、通信インタフェース6
0、61、62を介してホストマシン30との間でデー
タの送受信が行われる。なお、命令ROM102にはデ
バック機能を実現するデバッガ処理プログラム500が
格納されている。デバック対象である被デバックプログ
ラムは、命令ROM102もしくはここでは示されてい
ないがデバック対象LSI10の内部あるいは外部に存
在する命令RAMに格納されている。Next, the operation will be described. Processor 1
Reference numeral 01 executes an instruction according to a program stored in an instruction ROM 102 or an instruction RAM (not shown) while referring to data stored in a data RAM 103. Further, according to the program stored in the instruction ROM 102, the communication interface 6
Data transmission / reception with the host machine 30 via 0, 61, and 62 is performed. The instruction ROM 102 stores a debugger processing program 500 for realizing a debugging function. The debug target program to be debugged is stored in the instruction ROM 102 or an instruction RAM (not shown) existing inside or outside the debug target LSI 10.
【0023】図3に命令ROM102に格納されている
デバッガ処理プログラム500の内部構成を示す。デバ
ッガ処理プログラム500はデバッガメインルーチン5
01と、デバッガメインルーチン501より呼び出され
るコマンド解析ルーチン502と、同様にデバッガメイ
ンルーチン501より呼び出されるコマンド実行ルーチ
ン503と、コマンド解析ルーチン502又はコマンド
実行ルーチン503もしくはデバッガメインルーチン5
01より呼び出される通信インタフェース制御ルーチン
504により構成されている。FIG. 3 shows the internal configuration of the debugger processing program 500 stored in the instruction ROM 102. The debugger processing program 500 is a debugger main routine 5
01, a command analysis routine 502 called from the debugger main routine 501, a command execution routine 503 also called from the debugger main routine 501, a command analysis routine 502 or the command execution routine 503 or the debugger main routine 5
The communication interface control routine 504 is called from step S01.
【0024】また通信インタフェース制御ルーチン50
4はデバッグ対象LSI10内の通信ポート110、第
1通信インタフェース回路111及び第2通信インタフ
ェース回路112のそれぞれに対応する通信制御モジュ
ールCP1M、C1M、C2Mが含まれている。通信制
御モジュールCP1M、C1M、C2Mの各々は、ドラ
イバとも呼ばれ、対応する通信ポート110、第1通信
インタフェース回路111及び第2通信インタフェース
回路112のH/Wを直接制御することにより送受信デ
ータの受け渡しを行うプログラムである。The communication interface control routine 50
Reference numeral 4 includes communication control modules CP1M, C1M, and C2M corresponding to the communication port 110, the first communication interface circuit 111, and the second communication interface circuit 112 in the debug target LSI 10, respectively. Each of the communication control modules CP1M, C1M, C2M is also called a driver, and exchanges transmission / reception data by directly controlling the H / W of the corresponding communication port 110, the first communication interface circuit 111, and the second communication interface circuit 112. Is a program that performs
【0025】ここで通信ポート110が含まれている通
信インタフェース60は、ホストマシン30からデバッ
クコマンド及びそのデバックコマンドの応答のデータを
送受信するときに使用される通信インタフェースを指示
するための信号が伝達される。デバックコマンド及びそ
のデバックコマンドの応答のデータを送受信するときに
使用される通信インタフェースとしては、第1通信イン
タフェース回路111が含まれている通信インタフェー
ス61及び第2通信インタフェース回路112が含まれ
ている通信インタフェース62のいずれか一方が使用さ
れる。Here, the communication interface 60 including the communication port 110 transmits a signal for designating a communication interface used when transmitting / receiving a debug command and data of a response to the debug command from the host machine 30. Is done. The communication interface used when transmitting and receiving the debug command and the data of the response to the debug command includes a communication interface 61 including the first communication interface circuit 111 and a communication interface including the second communication interface circuit 112. One of the interfaces 62 is used.
【0026】ホストマシン30が起動され、評価ボート
20に搭載されたデバッグ対象LSI10のデバックを
開始するためには、ホストマシン30と評価ボード20
の間の通信インタフェースとして通信インタフェース6
1及び通信インタフェース62のいずれか一つを選択し
て通信するための通信路を決定する必要がある。すなわ
ち、デバックのためのデバックコマンドとその応答を送
受信するための通信インタフェースの確立を行わなけれ
ばならない。In order to start the host machine 30 and start debugging the debug target LSI 10 mounted on the evaluation boat 20, the host machine 30 and the evaluation board 20
Communication interface 6 as communication interface between
1 and the communication interface 62 must be selected to determine a communication path for communication. That is, it is necessary to establish a communication interface for transmitting and receiving a debug command for debugging and its response.
【0027】図4のフローチャートにより、ホストマシ
ン30側からみたときの通信インタフェースの確立のた
めの手順を示す。ホストマシン30はデバックを行うた
めに通信インタフェースの確立が必要であると判断する
と、初めにステップS101の処理が開始される。ステ
ップS101では通信インタフェース番号の初期値とし
て“0”が設定される。ステップS102で、ステップ
S101により指定された通信インタフェース番号に対
応する通信インタフェースを使用してテストコマンドが
送出される。ここで、通信インタフェース番号の値が
“0”の場合には第1通信インタフェース回路111が
含まれる通信インタフェース61を利用した通信であ
り、通信インタフェース番号の値が“1”の場合には第
2通信インタフェース回路112が含まれる通信インタ
フェース62を利用した通信であると仮定する。FIG. 4 is a flowchart showing a procedure for establishing a communication interface when viewed from the host machine 30 side. When the host machine 30 determines that it is necessary to establish a communication interface to perform debugging, first, the process of step S101 is started. In step S101, "0" is set as the initial value of the communication interface number. In step S102, a test command is transmitted using the communication interface corresponding to the communication interface number specified in step S101. Here, when the value of the communication interface number is “0”, communication is performed using the communication interface 61 including the first communication interface circuit 111, and when the value of the communication interface number is “1”, the communication is performed using the second. It is assumed that the communication is performed using the communication interface 62 including the communication interface circuit 112.
【0028】ステップS103で、ステップS102で
送出されたテストコマンドに対する期待された応答をホ
ストマシン30で受信することができたかをデータRA
M103に記録される。ステップS104で、指定され
た通信インタフェース番号が通信インタフェース番号の
最後のものかを判断し、もし通信インタフェース番号が
最後の番号でない場合にはステップS105の処理が行
われる。もし、通信インタフェース番号が最後の番号で
ある場合にはステップS106の処理が行われる。な
お、この例では通信インタフェース番号として“0”、
“1”しかないので、通信インタフェース番号が最後の
番号とは“1”の値を指している。ステップS105に
おいて、通信インタフェース番号の値がインクリメント
され、ステップS102に戻る。In step S103, the data RA indicates whether the expected response to the test command transmitted in step S102 has been received by the host machine 30.
Recorded in M103. In step S104, it is determined whether the designated communication interface number is the last one of the communication interface numbers. If the communication interface number is not the last number, the process of step S105 is performed. If the communication interface number is the last number, the process of step S106 is performed. In this example, the communication interface number is “0”,
Since there is only “1”, the last communication interface number indicates a value of “1”. In step S105, the value of the communication interface number is incremented, and the process returns to step S102.
【0029】ステップS106で、ステップS103に
よりメモリに記憶されている期待された応答を受信する
ことのできた通信インタフェース番号の中で、デバック
コマンドを送出するのに最適な通信インタフェース番号
が選択される。なお、デバックコマンドを送出するのに
最適な通信インタフェースとしては、送受信が可能な通
信インタフェースの中で通信のオーバーヘッドが最も小
さくなる通信インタフェースを用いることが望ましい。
ステップS107で、選択された通信インタフェース番
号のデータを通信インタフェース60の通信ポート11
0に向けて送出され、通信インタフェースの確立の処理
が終わる。In step S106, an optimum communication interface number for transmitting the debug command is selected from among the communication interface numbers that have been able to receive the expected response stored in the memory in step S103. As an optimal communication interface for transmitting the debug command, it is desirable to use a communication interface that minimizes communication overhead among communication interfaces that can transmit and receive.
In step S107, the data of the selected communication interface number is transferred to the communication port 11 of the communication interface 60.
0, and the process of establishing the communication interface ends.
【0030】次に、図5のフローチャートにより、評価
ボード20側からみたときの通信インタフェースの確立
のための手順を示す。評価ボード20側は電源が投入さ
れるとステップS121の処理が開始される。ステップ
S121はホストマシン30から送られてくるコマンド
のデータの受信待ちの状態であり、ホストマシン30側
からのデータを受信することによりステップS122の
処理が行われる。ステップS122では、ホストマシン
30側からの受信データが通信インタフェース60の通
信ポート110から入力されたものであるかを判断し、
そうであれば、ステップS125が実行される。もし、
そうでない、すなわち通信インタフェース61もしくは
通信インタフェース62からの受信であれば、ステップ
S123が実行される。Next, a procedure for establishing a communication interface as viewed from the evaluation board 20 will be described with reference to the flowchart of FIG. When the power is turned on on the evaluation board 20 side, the process of step S121 is started. Step S121 is a state of waiting for reception of the data of the command sent from the host machine 30, and the process of step S122 is performed by receiving the data from the host machine 30 side. In step S122, it is determined whether or not the data received from the host machine 30 is input from the communication port 110 of the communication interface 60.
If so, step S125 is performed. if,
Otherwise, that is, if it is received from the communication interface 61 or 62, step S123 is executed.
【0031】ステップS123で、ホストマシン30側
から受信したコマンドはテストコマンドであり、そのテ
ストコマンドで指示された処理が行われる。ステップS
124で、テストコマンドを受信した通信インタフェー
スと同じ通信インタフェースを用いてテストコマンドに
対する応答を送出してステップS121に戻る。In step S123, the command received from the host machine 30 is a test command, and the processing specified by the test command is performed. Step S
At 124, a response to the test command is transmitted using the same communication interface as the communication interface that received the test command, and the process returns to step S121.
【0032】ステップS125でデバック対象LSI1
0は通信ポート110が含まれる通信インタフェース6
0を介してホストマシン30側から送出された通信イン
タフェース番号データを取り込み、データRAM103
に格納して通信インタフェースの確立の処理が終了とな
る。ここで、通信インタフェース番号の値が“0”の場
合には通信インタフェース61を利用した通信であり、
通信インタフェース番号の値が“1”の場合には通信イ
ンタフェース62を利用した通信である。In step S125, the LSI 1 to be debugged
0 is the communication interface 6 including the communication port 110
0, the communication interface number data transmitted from the host machine 30 through the data RAM 103.
And the process of establishing the communication interface is completed. Here, when the value of the communication interface number is “0”, the communication is performed using the communication interface 61.
When the value of the communication interface number is “1”, the communication is performed using the communication interface 62.
【0033】なお、テストコマンドとは、ホストマシン
30側から評価ボード20に搭載されたデバック対象L
SI10のデバックを実行することができるか否かを判
断するためのコマンドであり、評価ボード20を含めて
デバック対象LSI10とホストマシン30との間で通
信が正常にできるかのテストと、デバック対象LSI1
0内のデータRAM103に対して読み書きテストを行
うコマンドである。それらのテスト結果をテストコマン
ドに対する応答として、評価ボード20側よりホストマ
シン30側へ出力される。すなわち、ホストマシン30
は評価ボート20に搭載されたデバッグ対象LSI10
に対してテストコマンドを実行することにより通信イン
タフェース61及び通信インタフェース62のそれぞれ
のテスト及びデバック対象LSI10内のデータRAM
103のテストが行われる。The test command refers to the debug target L mounted on the evaluation board 20 from the host machine 30 side.
This is a command for determining whether or not the debugging of the SI 10 can be executed. The command is for testing whether communication between the LSI 10 to be debugged including the evaluation board 20 and the host machine 30 can be normally performed, LSI1
This is a command for performing a read / write test on the data RAM 103 in 0. The test results are output from the evaluation board 20 to the host machine 30 as a response to the test command. That is, the host machine 30
Is the debug target LSI 10 mounted on the evaluation boat 20
Executing a test command with respect to the data RAM in the test and debug target LSI 10 of each of the communication interface 61 and the communication interface 62
A test of 103 is performed.
【0034】その結果ホストマシン30は、第1通信イ
ンタフェース回路111が含まれる通信インタフェース
61及び第2通信インタフェース回路112が含まれる
通信インタフェース62のそれぞれが使用可能であるか
否かと、デバック対象LSI10内のデータRAM10
3に読み書きできるかを知ることができる。ホストマシ
ン30がデバック対象LSI10のデバックが可能と判
断されると、以降の通信はテスト結果に基づいていずれ
か一方の通信インタフェースを介して通信するように制
御される。As a result, the host machine 30 determines whether each of the communication interface 61 including the first communication interface circuit 111 and the communication interface 62 including the second communication interface circuit 112 is available, Data RAM 10
3 can read and write. If the host machine 30 determines that the debug target LSI 10 can be debugged, the subsequent communication is controlled to communicate via one of the communication interfaces based on the test result.
【0035】すなわち、通信インタフェース61を用い
て通信を行うときは、通信インタフェース60の通信ポ
ート110に向けて“0”が送出される。また、通信イ
ンタフェース62を用いて通信を行うときは、通信イン
タフェース60の通信ポート110に向けて“1”が送
出される。That is, when performing communication using the communication interface 61, “0” is transmitted to the communication port 110 of the communication interface 60. When communication is performed using the communication interface 62, “1” is transmitted to the communication port 110 of the communication interface 60.
【0036】次に通信インタフェースの確立後の動作に
ついて説明する。なおここでは、通信インタフェースの
確立においてデバックコマンドとその応答を送受信する
通信インタフェースとして、第1通信インタフェース回
路111が含まれる通信インタフェース61が選択され
ているものと仮定して説明する。図6にデバック機能を
実現するデバッガ処理プログラム500のデバックコマ
ンド処理の処理フローを示す。Next, the operation after the establishment of the communication interface will be described. Here, the description will be made on the assumption that the communication interface 61 including the first communication interface circuit 111 is selected as the communication interface for transmitting and receiving the debug command and its response in establishing the communication interface. FIG. 6 shows a processing flow of the debug command processing of the debugger processing program 500 for realizing the debug function.
【0037】初めにデバックコマンドの受信の前処理と
して、データRAM103に格納されている通信インタ
フェース番号の値が“0”であるので、デバッガ処理プ
ログラム500内の通信制御モジュールC1Mが起動さ
れ、第1通信インタフェース回路111からのコマンド
受信待ち状態になる。このコマンド受信待ち状態にある
ときに、ホストマシン30よりデバックコマンドが通信
インタフェース61の第1通信インタフェース回路11
1に向けて送出される。そのデバックコマンドを受信す
ることによりプロセッサ101に対して割り込みが発生
し、デバッガ処理プログラム500が起動され、デバッ
クコマンド処理が開始される。First, as a pre-process for receiving a debug command, since the value of the communication interface number stored in the data RAM 103 is "0", the communication control module C1M in the debugger processing program 500 is started, and the first A command reception from the communication interface circuit 111 is waited. When in the command reception waiting state, the debug command is transmitted from the host machine 30 to the first communication interface circuit 11 of the communication interface 61.
Sent toward 1. Upon receiving the debug command, an interrupt occurs to the processor 101, the debugger processing program 500 is started, and the debug command processing is started.
【0038】ステップS501において、この送られて
きたデバックコマンドを通信インタフェース制御ルーチ
ン504の通信モジュールC1Mにより第1通信インタ
フェース回路111の受信側を介してプロセッサ101
に読み込まれる。すなわちデバックコマンドの入力が行
われる。ステップS502で読み込まれたデバックコマ
ンドをコマンド解析ルーチン502で解析し、その解析
結果に基づいてコマンド実行ルーチン503によりデバ
ックコマンドが実行される。ステップS503で、デー
タRAM103に格納されている通信インタフェース番
号の値が“0”であるので、デバックコマンドを実行し
た結果のデータをレスポンスとして第1通信インタフェ
ース回路111の送信側を介してホストマシン30に送
信される。ホストマシン30に対する送信は、通信制御
モジュールC1Mを指定した通信インタフェース制御ル
ーチン504を起動することにより第1通信インタフェ
ース回路111を介して送出される。In step S501, the transmitted debug command is transmitted to the processor 101 via the receiving side of the first communication interface circuit 111 by the communication module C1M of the communication interface control routine 504.
Is read in. That is, a debug command is input. The debug command read in step S502 is analyzed by the command analysis routine 502, and the command execution routine 503 executes the debug command based on the analysis result. In step S503, since the value of the communication interface number stored in the data RAM 103 is "0", the host machine 30 via the transmission side of the first communication interface circuit 111 receives the data resulting from executing the debug command as a response. Sent to. The transmission to the host machine 30 is transmitted via the first communication interface circuit 111 by activating the communication interface control routine 504 specifying the communication control module C1M.
【0039】このように、第1通信インタフェース回路
111あるいは第2通信インタフェース回路112を含
む二つの通信インタフェース61、62と、第1通信イ
ンタフェース回路111及び第2通信インタフェース回
路112のそれぞれに対応する通信制御モジュールC1
M及びC2Mと、通信ポート110とを備えた。また、
二つの通信インタフェース61、62のいずれか一つを
選択する通信インタフェース選択手段として、ホストマ
シン30からのテストコマンドによるテスト要求に従っ
て二つの通信インタフェース61、62をそれぞれテス
トを行うステップと、そのテスト結果をホストマシン3
0に応答するステップと、応答を受け取ったホストマシ
ン30がデバックに使用する通信インタフェースを通信
ポート110を使用してプロセッサ101に知らせるス
テップから成る通信インタフェース確立手順を有してい
るので、この通信インタフェース確立手順により第1通
信インタフェース回路111あるいは第2通信インタフ
ェース回路112を含む二つの通信インタフェース6
1、62の一方の通信インタフェースが使用することが
できない場合でも、プロセッサ101が使用できる方の
通信インタフェースを簡単に知ることができ、選択する
ことができるので、容易に信頼性の高いデバック機構内
蔵のデバック対象LSIが搭載された評価ボード20が
得られるようになるという効果がある。As described above, the two communication interfaces 61 and 62 including the first communication interface circuit 111 or the second communication interface circuit 112 and the communication interfaces corresponding to the first communication interface circuit 111 and the second communication interface circuit 112, respectively. Control module C1
M and C2M, and a communication port 110. Also,
A step of testing each of the two communication interfaces 61 and 62 according to a test request by a test command from the host machine 30 as communication interface selecting means for selecting one of the two communication interfaces 61 and 62; The host machine 3
0, and a communication interface establishment procedure comprising the step of notifying the processor 101 of the communication interface used for debugging by the host machine 30 which has received the response, using the communication port 110. Two communication interfaces 6 including the first communication interface circuit 111 or the second communication interface circuit 112 depending on the establishment procedure.
Even if one of the communication interfaces 1 and 62 cannot be used, the communication interface that can be used by the processor 101 can be easily known and selected, so that a highly reliable debugging mechanism is easily incorporated. There is an effect that an evaluation board 20 on which the LSI to be debugged is mounted can be obtained.
【0040】また、評価ボード20の制約により、第1
通信インタフェース回路111あるいは第2通信インタ
フェース回路112の一方の通信インタフェース回路し
か搭載することができない場合でも、ホストマシン30
は通信インタフェース確立手順によりデバックに使用で
きる通信インタフェースを知ることができるので、その
通信インタフェースを使用してデバックや評価を行うこ
とができるようになるという効果がある。Also, due to the limitations of the evaluation board 20, the first
Even when only one communication interface circuit of the communication interface circuit 111 or the second communication interface circuit 112 can be mounted, the host machine 30
Since the communication interface that can be used for debugging can be known by the communication interface establishment procedure, there is an effect that debugging and evaluation can be performed using the communication interface.
【0041】さらに、テストの結果、第1通信インタフ
ェース回路111を含む通信インタフェース61及び第
2通信インタフェース回路112を含む通信インタフェ
ース62の双方に問題があり、デバックを行うことがで
きないときに、ホストマシン30より通信ポート110
に向けて通信不能を示すデータを送出し、評価ボード2
0側にそのことを知らせることができ、信頼性の向上の
役に立つという効果がある。Further, as a result of the test, when there is a problem in both the communication interface 61 including the first communication interface circuit 111 and the communication interface 62 including the second communication interface circuit 112 and debugging cannot be performed, the host machine Communication port 110 from 30
Sends data indicating that communication is not possible to the evaluation board 2
This can be notified to the 0 side, which is effective in improving reliability.
【0042】なお、通信インタフェースの確立のための
手順において、ホストマシン30は通信インタフェース
番号が“0”から最終番号まで順次テストしているが、
すべてをテストするのではなく、期待された応答を受信
することができた時点でテストを終了とし、その通信イ
ンタフェース番号データを通信ポート110に接続され
たケーブルに送出するようにしてもよい。In the procedure for establishing the communication interface, the host machine 30 sequentially tests the communication interface number from "0" to the last number.
Instead of testing all, the test may be terminated when an expected response can be received, and the communication interface number data may be transmitted to the cable connected to the communication port 110.
【0043】また、第1通信インタフェース回路111
及び第2通信インタフェース回路112は、それぞれビ
ットI/O、パラレルI/O、一般のパラレル/シリア
ルあるいはシリアル/パラレル変換が行われる非同期式
通信制御回路あるいは同期式通信制御回路、及びJTA
G仕様のシリアルインタフェース回路のいずれでもよ
い。The first communication interface circuit 111
The second communication interface circuit 112 includes a bit I / O, a parallel I / O, an asynchronous communication control circuit for performing general parallel / serial or serial / parallel conversion, a synchronous communication control circuit, and a JTA.
Any of G serial interface circuits may be used.
【0044】さらに、ここではデバックコマンドとその
応答を送受信する通信インタフェースとして、第1通信
インタフェース回路111が含まれる通信インタフェー
ス61と第2通信インタフェース回路112が含まれる
通信インタフェース62の二つの場合について示した
が、通信インタフェースをn個としてもよい。“n”は
2以上の自然数である。このときn個の通信インタフェ
ースのそれぞれに対応して、n個の通信インタフェース
回路と、n個のケーブルと、通信インタフェースモジュ
ール504内に対応するn個の通信制御モジュールとが
必要となる。このとき通信ポート110は、“n”の値
が指定できるビット数のポートが必要となる。Further, here, two communication interfaces for transmitting and receiving a debug command and its response, that is, the communication interface 61 including the first communication interface circuit 111 and the communication interface 62 including the second communication interface circuit 112 are shown. However, the number of communication interfaces may be n. “N” is a natural number of 2 or more. At this time, n communication interface circuits, n cables, and n communication control modules corresponding to the communication interface module 504 are required for each of the n communication interfaces. At this time, the communication port 110 needs a port having the number of bits that can specify the value of “n”.
【0045】なお、評価ボード20の制約により、n個
の通信インタフェース回路のすべてを評価ボード20に
搭載できない場合でも、ホストマシン30は通信インタ
フェース確立手順によりデバックに使用可能な通信イン
タフェースを知ることができ、それらの使用可能な通信
インタフェースの中でデバックコマンドとその応答の送
受信に使用する通信インタフェースを評価ボード20の
プロセッサ101に知らせることができるので、知らさ
れた通信インタフェースを使用することによりデバック
や評価を行うことができるようになるという効果があ
る。Even when all of the n communication interface circuits cannot be mounted on the evaluation board 20 due to the restriction of the evaluation board 20, the host machine 30 can know the communication interface that can be used for debugging by the communication interface establishing procedure. It is possible to notify the processor 101 of the evaluation board 20 of the communication interface used for transmitting and receiving a debug command and its response among those available communication interfaces. There is an effect that evaluation can be performed.
【0046】実施の形態2.実施の形態2は、図2で示
した実施の形態1のデバック対象LSI10のH/W内
部構成と評価ボード20の構成から通信インタフェース
60を除いた構成である。すなわち、通信インタフェー
ス60が備えていたデバック対象LSI10内の通信ポ
ート110と、評価ボード上のコネクタ210と、コネ
クタ210に接続された信号線CP1と、通信ケーブル
40内のケーブル400とが削除された構成となってい
る。この実施の形態2におけるデバック対象LSI10
のH/W内部構成と評価ボード20の構成を図7に示
す。Embodiment 2 The second embodiment has a configuration in which the communication interface 60 is removed from the internal configuration of the H / W of the debug target LSI 10 and the configuration of the evaluation board 20 of the first embodiment shown in FIG. That is, the communication port 110 in the debug target LSI 10 provided in the communication interface 60, the connector 210 on the evaluation board, the signal line CP1 connected to the connector 210, and the cable 400 in the communication cable 40 are deleted. It has a configuration. The LSI 10 to be debugged in the second embodiment
7 shows the internal configuration of the H / W and the configuration of the evaluation board 20.
【0047】なお、デバック対象LSI10が搭載され
た評価ボード20内のソフトウェアやファームウェアな
どのプログラムをデバックするときのデバックシステム
構成図は実施の形態1で示した図1と同一であるので、
その部分の説明は省略する。また図7で示したデバック
対象LSI10のH/W内部構成と評価ボード20の構
成についての説明も上記に述べたように図2の構成から
一部が削除された構成なので省略する。A debugging system configuration diagram for debugging a program such as software or firmware in the evaluation board 20 on which the debugging target LSI 10 is mounted is the same as FIG. 1 shown in the first embodiment.
The description of that part is omitted. Further, the description of the internal configuration of the H / W of the debug target LSI 10 and the configuration of the evaluation board 20 shown in FIG. 7 will be omitted because the configuration is partially deleted from the configuration of FIG. 2 as described above.
【0048】次に実施の形態2の動作について説明す
る。プロセッサ101は命令ROM102あるいはここ
では示されていないが命令RAMに格納されているプロ
グラムに従い、データRAM103に格納されているデ
ータを参照しながら命令を実行してゆく。また、命令R
OM102に格納されているプログラムに従って、通信
インタフェース61あるいは通信インタフェース62を
介してホストマシン30との間でデータの送受信が行わ
れる。なお、命令ROM102にはデバック機能を実現
するデバッガ処理プログラム500が格納されている。
デバック対象である被デバックプログラムは、命令RO
M102もしくはここでは示されていないがデバック対
象LSI10の内部あるいは外部に存在する命令RAM
に格納されている。Next, the operation of the second embodiment will be described. The processor 101 executes instructions while referring to data stored in the data RAM 103 according to an instruction ROM 102 or a program (not shown) stored in the instruction RAM. The instruction R
According to the program stored in the OM 102, data is transmitted to and received from the host machine 30 via the communication interface 61 or 62. The instruction ROM 102 stores a debugger processing program 500 for realizing a debugging function.
The debug target program to be debugged is the instruction RO
M102 or an instruction RAM (not shown) existing inside or outside the debug target LSI 10
Is stored in
【0049】命令ROM102に格納されているデバッ
ガ処理プログラム500の内部構成は、図3で示した実
施の形態1におけるデバッガ処理プログラム500の内
部構成から通信インタフェース制御ルーチン504内に
通信制御モジュールCP1Mが存在しないことである。
他の内部構成は実施の形態1と同様である。よって、デ
バッガ処理プログラム500はデバッガメインルーチン
501と、デバッガメインルーチン501より呼び出さ
れるコマンド解析ルーチン502と、同様にデバッガメ
インルーチン501より呼び出されるコマンド実行ルー
チン503と、コマンド解析ルーチン502又はコマン
ド実行ルーチン503もしくはデバッガメインルーチン
501より呼び出される通信インタフェース制御ルーチ
ン504により構成されている。The internal configuration of the debugger processing program 500 stored in the instruction ROM 102 is different from the internal configuration of the debugger processing program 500 in the first embodiment shown in FIG. That is not to do.
Other internal configurations are the same as in the first embodiment. Therefore, the debugger processing program 500 includes a debugger main routine 501, a command analysis routine 502 called from the debugger main routine 501, a command execution routine 503 also called from the debugger main routine 501, and the command analysis routine 502 or the command execution routine 503. Alternatively, it comprises a communication interface control routine 504 called from the debugger main routine 501.
【0050】また通信インタフェース制御ルーチン50
4はデバッグ対象LSI10内の第1通信インタフェー
ス回路111及び第2通信インタフェース回路112の
それぞれに対応する通信制御モジュールC1M、C2M
が含まれている。通信制御モジュールC1M、C2Mの
各々は、ドライバとも呼ばれ、対応する第1通信インタ
フェース回路111及び第2通信インタフェース回路1
12のH/Wを直接制御することにより送受信データの
受け渡しを行うプログラムである。The communication interface control routine 50
Reference numeral 4 denotes communication control modules C1M and C2M corresponding to the first communication interface circuit 111 and the second communication interface circuit 112 in the debug target LSI 10, respectively.
It is included. Each of the communication control modules C1M and C2M is also called a driver, and has a corresponding first communication interface circuit 111 and second communication interface circuit 1
12 is a program for directly transmitting and receiving data by directly controlling the H / W 12.
【0051】ホストマシン30が起動され、評価ボート
20に搭載されたデバッグ対象LSI10のデバックを
開始するためには、ホストマシン30と評価ボード20
の間の通信インタフェースとして通信インタフェース6
1及び通信インタフェース62のいずれか一つを選択し
て通信するための通信路を決定する必要がある。すなわ
ち、デバックのためのデバックコマンドとその応答を送
受信するための通信インタフェースの確立を行わなけれ
ばならない。In order to start the host machine 30 and start debugging the debug target LSI 10 mounted on the evaluation boat 20, the host machine 30 and the evaluation board 20
Communication interface 6 as communication interface between
1 and the communication interface 62 must be selected to determine a communication path for communication. That is, it is necessary to establish a communication interface for transmitting and receiving a debug command for debugging and its response.
【0052】図8のフローチャートにより、実施の形態
2におけるホストマシン30側からみたときの通信イン
タフェースの確立のための手順を示す。ホストマシン3
0はデバックを行うために通信インタフェースの確立が
必要であると判断すると、初めにステップS201の処
理が開始される。ステップS201では通信インタフェ
ース番号の初期値として“0”が設定される。ステップ
S202で、指定された通信インタフェース番号に対応
する通信インタフェースを使用してテストコマンドが送
出される。ここで、通信インタフェース番号の値が
“0”の場合には通信インタフェース回路111が含ま
れた通信インタフェース61を利用した通信であり、通
信インタフェース番号の値が“1”の場合には通信イン
タフェース回路112が含まれた通信インタフェース6
2を利用した通信であると仮定する。FIG. 8 is a flowchart showing a procedure for establishing a communication interface as viewed from the host machine 30 according to the second embodiment. Host machine 3
If 0 determines that the communication interface needs to be established for debugging, the process of step S201 is first started. In step S201, “0” is set as an initial value of the communication interface number. In step S202, a test command is transmitted using the communication interface corresponding to the specified communication interface number. Here, when the value of the communication interface number is “0”, communication is performed using the communication interface 61 including the communication interface circuit 111, and when the value of the communication interface number is “1”, the communication interface circuit is used. Communication interface 6 including 112
It is assumed that the communication uses the communication No. 2.
【0053】ステップS203で、ステップS202で
送出されたテストコマンドに対する期待された応答をホ
ストマシン30で受信することができたかをメモリに記
録される。ステップS204で、指定された通信インタ
フェース番号が通信インタフェース番号の最後のものか
を判断し、もし通信インタフェース番号が最後の番号で
ない場合にはステップS205の処理が行われる。も
し、通信インタフェース番号が最後の番号である場合に
はステップS206の処理が行われる。なお、この例で
は通信インタフェース番号として“0”と“1”しかな
いので、通信インタフェース番号が最後の番号とは
“1”の値を指している。ステップS205において、
通信インタフェース番号の値がインクリメントされ、ス
テップS202に戻る。In step S203, whether or not the expected response to the test command transmitted in step S202 has been received by the host machine 30 is recorded in the memory. In step S204, it is determined whether the designated communication interface number is the last one of the communication interface numbers. If the communication interface number is not the last number, the process of step S205 is performed. If the communication interface number is the last number, the process of step S206 is performed. In this example, since there are only “0” and “1” as communication interface numbers, the last communication interface number indicates a value of “1”. In step S205,
The value of the communication interface number is incremented, and the process returns to step S202.
【0054】ステップS206で、ステップS203に
よりメモリに記憶されている期待された応答を受信する
ことのできた通信インタフェース番号の中で、デバック
コマンドを送出するのに最適な通信インタフェース番号
が選択される。なお、デバックコマンドを送出するのに
最適な通信インタフェースとしては、送受信が可能な通
信インタフェースの中で通信のオーバーヘッドが最も小
さくなる通信インタフェースを用いることが望ましい。
ステップS207で、選択された通信インタフェース番
号のデータをテストコマンドの送信データの所定位置に
含めて、予めソフトウェアデバック装置1で決められて
いる通信インタフェースを用いて送出される。例えば、
予めソフトウェアデバック装置1で決められている通信
インタフェースとして通信インタフェース61であれ
ば、その通信インタフェース61の第1通信インタフェ
ース回路111に向けてテストコマンドが送出される。In step S206, an optimum communication interface number for transmitting the debug command is selected from among the communication interface numbers in which the expected response stored in the memory in step S203 has been received. As an optimal communication interface for transmitting the debug command, it is desirable to use a communication interface that minimizes communication overhead among communication interfaces that can transmit and receive.
In step S207, the data of the selected communication interface number is included in a predetermined position of the transmission data of the test command and transmitted using the communication interface determined in advance by the software debug device 1. For example,
If the communication interface 61 is the communication interface determined in advance by the software debug device 1, the test command is transmitted to the first communication interface circuit 111 of the communication interface 61.
【0055】なお、通信インタフェースの確立のための
手順において、ホストマシン30は通信インタフェース
のテスト結果から、デバックコマンドとその応答の送受
信に使用する通信インタフェースに対応する通信インタ
フェース番号のデータを予め設定されている通信インタ
フェース61により評価ボード20に送出しようとする
が、その通信インタフェース61に問題があり通信でき
ないときは、次の通信インタフェースである通信インタ
フェース62により通信インタフェース番号のデータが
送出される。In the procedure for establishing the communication interface, the host machine 30 sets in advance the data of the communication interface number corresponding to the communication interface used for transmitting and receiving the debug command and its response from the test result of the communication interface. The communication interface 61 is trying to send the data to the evaluation board 20, but if there is a problem with the communication interface 61 and communication is not possible, the data of the communication interface number is sent out by the communication interface 62 which is the next communication interface.
【0056】次に、図9のフローチャートにより、実施
の形態2における評価ボード20側からみたときの通信
インタフェースの確立のための手順を示す。評価ボード
20側は電源が投入されるとステップS221の処理が
開始される。ステップS221はホストマシン30から
送られてくるテストコマンドの受信待ちの状態であり、
ホストマシン30側からのテストコマンドを受信するこ
とによりステップS222の処理が行われる。ステップ
S222では、ホストマシン30側からのテストコマン
ドの受信データの中に通信インタフェース番号データが
含まれているか否かを判断し、通信インタフェース番号
データが含まれているときはステップS225が実行さ
れる。もし、含まれていなければ、ステップS223が
実行される。Next, a procedure for establishing a communication interface as viewed from the evaluation board 20 according to the second embodiment will be described with reference to the flowchart of FIG. When the power is supplied to the evaluation board 20, the process of step S221 is started. Step S221 is a state of waiting for reception of a test command sent from the host machine 30,
Upon receiving the test command from the host machine 30, the process of step S222 is performed. In step S222, it is determined whether or not the communication interface number data is included in the received data of the test command from the host machine 30. If the communication interface number data is included, step S225 is executed. . If not included, step S223 is executed.
【0057】ステップS223で、ホストマシン30側
から受信したテストコマンドで指示された処理が行われ
る。ステップS224で、テストコマンドを受信した通
信インタフェース回路と同じ通信インタフェース回路を
用いてテストコマンドに対する応答を送出してステップ
S221に戻る。In step S223, the process specified by the test command received from the host machine 30 is performed. In step S224, a response to the test command is transmitted using the same communication interface circuit as the communication interface circuit that received the test command, and the process returns to step S221.
【0058】ステップS225でホストマシン30側か
ら送出された通信インタフェース番号データを取り込
み、その番号データをデータRAM103に格納して通
信インタフェースの確立の処理が終了となる。ここで、
通信インタフェース番号の値が“0”の場合には通信イ
ンタフェース回路111が含まれる通信インタフェース
61を利用した通信であり、通信インタフェース番号の
値が“1”の場合には通信インタフェース回路112が
含まれる通信インタフェース62を利用した通信であ
る。In step S225, the communication interface number data sent from the host machine 30 is fetched, the number data is stored in the data RAM 103, and the process of establishing the communication interface is completed. here,
When the value of the communication interface number is “0”, communication is performed using the communication interface 61 including the communication interface circuit 111. When the value of the communication interface number is “1”, the communication interface circuit 112 is included. This is communication using the communication interface 62.
【0059】なお、テストコマンドとは、ホストマシン
30側から評価ボード20に搭載されたデバック対象L
SI10のデバックを実行することができるか否かを判
断するためのコマンドであり、評価ボード20を含めて
デバック対象LSI10とホストマシン30との間で通
信が正常にできるかのテストと、デバック対象LSI1
0内のデータRAM103に対して読み書きテストを行
うコマンドである。それらのテスト結果をテストコマン
ドに対する応答として、評価ボード20側よりホストマ
シン30側へ出力される。すなわちホストマシン30は
評価ボート20に搭載されたデバッグ対象LSI10に
対してテストコマンドをそれぞれの通信インタフェース
回路111、112を介して順次実行することにより通
信インタフェース61及び通信インタフェース62のそ
れぞれのテスト及びデバック対象LSI10内のデータ
RAM103のテストが行われる。なお、通信インタフ
ェースを選択するための通信インタフェース番号のデー
タが含まれたテストコマンドの場合、そのコマンドを受
信しても特にテストを行う必要はない。The test command refers to the debug target L mounted on the evaluation board 20 from the host machine 30 side.
This is a command for determining whether or not the debugging of the SI 10 can be executed. The command is for testing whether communication between the LSI 10 to be debugged including the evaluation board 20 and the host machine 30 can be normally performed, LSI1
This is a command for performing a read / write test on the data RAM 103 in 0. The test results are output from the evaluation board 20 to the host machine 30 as a response to the test command. In other words, the host machine 30 sequentially executes test commands on the debug target LSI 10 mounted on the evaluation boat 20 via the respective communication interface circuits 111 and 112, thereby testing and debugging the communication interface 61 and the communication interface 62, respectively. A test of the data RAM 103 in the target LSI 10 is performed. In the case of a test command including communication interface number data for selecting a communication interface, it is not necessary to perform a test even when the command is received.
【0060】その結果ホストマシン30は、通信インタ
フェース61及び通信インタフェース62のそれぞれが
使用可能であるか否かと、デバック対象LSI10内の
データRAM103に読み書きできるかを知ることがで
きる。ホストマシン30がデバック対象LSI10内の
デバックが可能と判断されると、以降の通信すなわちデ
バックコマンドとその応答の送受信は、テスト結果に基
づいていずれか一方の通信インタフェースを介して行わ
れる。As a result, the host machine 30 can know whether or not each of the communication interface 61 and the communication interface 62 can be used and whether or not the data can be read from and written to the data RAM 103 in the LSI 10 to be debugged. If the host machine 30 determines that debugging within the debug target LSI 10 is possible, the subsequent communication, that is, transmission and reception of the debug command and its response, is performed via one of the communication interfaces based on the test result.
【0061】なお、テスト結果に基づいていずれか一つ
の通信インタフェースを選択するための通信インタフェ
ース番号のデータを送るときに使用する通信インタフェ
ースは、予めソフトウェアデバック装置1で決められて
いる。ここではその通信インタフェースとして通信イン
タフェース61が設定されており、通信インタフェース
番号のデータが“0”であれば、通信インタフェース6
1の第1通信インタフェース回路111に向けて通信イ
ンタフェース番号データを意味する所定の位置に“0”
が含まれるテストコマンドが送出される。また、通信イ
ンタフェース番号のデータが“1”であれば、通信イン
タフェース61の第1通信インタフェース回路111に
向けて通信インタフェース番号データを意味する所定の
位置に“1”が含まれるテストコマンドが送出される。The communication interface used when transmitting data of the communication interface number for selecting one of the communication interfaces based on the test result is determined in advance by the software debug device 1. Here, the communication interface 61 is set as the communication interface, and if the data of the communication interface number is “0”, the communication interface 6 is set.
"0" at a predetermined position meaning communication interface number data toward the first first communication interface circuit 111.
Is sent out. If the data of the communication interface number is “1”, a test command including “1” at a predetermined position meaning the communication interface number data is transmitted to the first communication interface circuit 111 of the communication interface 61. You.
【0062】なお、通信インタフェースの確立のための
手順において、ホストマシン30は通信インタフェース
のテスト結果から、デバックコマンドとその応答の送受
信に使用する通信インタフェースに対応する通信インタ
フェース番号のデータを予め設定されている通信インタ
フェース61により評価ボード20に送出しようとする
が、その通信インタフェース61に問題があり通信でき
ないときは、次の通信インタフェースである通信インタ
フェース62により通信インタフェース番号のデータが
送出される。In the procedure for establishing the communication interface, the host machine 30 sets in advance the data of the communication interface number corresponding to the communication interface used for transmitting and receiving the debug command and the response from the test result of the communication interface. The communication interface 61 is trying to send the data to the evaluation board 20, but if there is a problem with the communication interface 61 and communication is not possible, the data of the communication interface number is sent out by the communication interface 62 which is the next communication interface.
【0063】次に通信インタフェースの確立後の動作に
ついて説明する。通信インタフェースの確立後の動作に
ついては、実施の形態1と同様の動作となるので、ここ
ではその部分の動作説明を省略する。Next, the operation after the establishment of the communication interface will be described. Since the operation after the establishment of the communication interface is the same as that of the first embodiment, the description of the operation of that portion is omitted here.
【0064】このように、第1通信インタフェース回路
111あるいは第2通信インタフェース回路112を含
む二つの通信インタフェース61、62と、第1通信イ
ンタフェース回路111及び第2通信インタフェース回
路112のそれぞれに対応する通信制御モジュールC1
M及びC2Mとを備えた。また、二つの通信インタフェ
ース61、62のいずれか一つを選択する通信インタフ
ェース選択手段として、ホストマシン30からのテスト
コマンドによるテスト要求に従って二つの通信インタフ
ェース61、62をそれぞれテストを行うステップと、
そのテスト結果をホストマシン30に応答するステップ
と、応答を受け取ったホストマシン30がデバックに使
用する通信インタフェースを通信可能ないずれか一つの
通信インタフェースを使用してプロセッサ101に知ら
せるステップから成る通信インタフェース確立手段を有
しているので、この通信インタフェース確立手段により
第1通信インタフェース回路111あるいは第2通信イ
ンタフェース回路112を含む二つの通信インタフェー
ス61、62の一方の通信インタフェースが使用するこ
とができない場合でも、プロセッサ101が使用できる
方の通信インタフェースを簡単に知ることができ、選択
することができるので、容易に信頼性の高いデバック機
構内蔵のデバック対象LSIが得られるようになるとい
う効果がある。As described above, the two communication interfaces 61 and 62 including the first communication interface circuit 111 or the second communication interface circuit 112 and the communication interfaces corresponding to the first communication interface circuit 111 and the second communication interface circuit 112, respectively. Control module C1
M and C2M. A step of performing a test on each of the two communication interfaces 61 and 62 in accordance with a test request from a host machine 30 as a communication interface selecting means for selecting one of the two communication interfaces 61 and 62;
A communication interface comprising: a step of responding the test result to the host machine 30; and a step of informing the processor 101 of the communication interface used for debugging by the host machine 30 that has received the response, using any one of the communication interfaces capable of communicating. Since the communication interface establishing means has one of the two communication interfaces 61 and 62 including the first communication interface circuit 111 or the second communication interface circuit 112, the communication interface establishing means cannot use the communication interface. Since the communication interface which can be used by the processor 101 can be easily known and selected, there is an effect that a highly reliable debug target LSI with a built-in debugging mechanism can be easily obtained.
【0065】また、評価ボード20の制約により、第1
通信インタフェース回路111あるいは第2通信インタ
フェース回路112の一方の通信インタフェース回路し
か搭載することができない場合でも、ホストマシン30
は通信インタフェース確立手順によりデバックに使用で
きる通信インタフェースを知ることができるので、その
通信インタフェースを使用してデバックや評価を行うこ
とができるようになるという効果がある。Also, due to the limitations of the evaluation board 20, the first
Even when only one communication interface circuit of the communication interface circuit 111 or the second communication interface circuit 112 can be mounted, the host machine 30
Since the communication interface that can be used for debugging can be known by the communication interface establishment procedure, there is an effect that debugging and evaluation can be performed using the communication interface.
【0066】また、通信インタフェースの確立のための
手順において、ホストマシン30は通信インタフェース
番号が“0”から最終番号まで順次テストしているが、
通信インタフェースのすべてをテストするのではなく、
期待された応答を受信することができた時点でテストを
終了とし、その通信インタフェース番号のデータを予め
設定されている通信インタフェース61に送出するよう
にしてもよい。In the procedure for establishing the communication interface, the host machine 30 tests the communication interface numbers sequentially from “0” to the last number.
Instead of testing all of the communication interfaces,
The test may be terminated when the expected response can be received, and the data of the communication interface number may be transmitted to the communication interface 61 set in advance.
【0067】また、ホストマシン30はテスト結果に基
づいてデバックコマンドとその応答の送受信に使用され
る通信インタフェースを選択し、指定する必要がある。
通信インタフェース番号のデータを送出する通信インタ
フェースとして、実施の形態1で示した通信ポート60
が含まれる通信インタフェースではなく、デバックコマ
ンドとその応答を送受信することの可能性がある二つの
通信インタフェース61、62の内でいずれか一つの通
信インタフェースを予めソフトウェアデバック装置1で
決め、その予め決められた通信インタフェースを用いて
通信インタフェース番号のデータを送出するようにした
ので、実施の形態1での通信ポート110と、評価ボー
ド上のコネクタ210と、ケーブル400とを削減する
ことができるので、ソフトウェアデバック装置1のコス
トを低減することができるという効果を奏する。Further, the host machine 30 needs to select and designate a communication interface used for transmitting and receiving the debug command and its response based on the test result.
As the communication interface for transmitting the data of the communication interface number, the communication port 60 shown in the first embodiment is used.
Is not included in the communication interface, but one of the two communication interfaces 61 and 62 which may transmit and receive the debug command and its response is determined in advance by the software debug device 1, and the predetermined Since the data of the communication interface number is transmitted by using the specified communication interface, the communication port 110, the connector 210 on the evaluation board, and the cable 400 in the first embodiment can be reduced. There is an effect that the cost of the software debug device 1 can be reduced.
【0068】なお、第1通信インタフェース回路111
及び第2通信インタフェース回路112はそれぞれビッ
トI/O、パラレルI/O、一般のパラレル/シリアル
あるいはシリアル/パラレル変換が行われる非同期式通
信制御回路あるいは同期式通信制御回路、及びJTAG
仕様のシリアルインタフェース回路のいずれでもよい。The first communication interface circuit 111
And the second communication interface circuit 112 are respectively a bit I / O, a parallel I / O, an asynchronous communication control circuit or a synchronous communication control circuit for performing general parallel / serial or serial / parallel conversion, and JTAG.
Any of the serial interface circuits of the specification may be used.
【0069】また、ここではデバックコマンドとその応
答を送受信する通信インタフェースとして、第1通信イ
ンタフェース回路111が含まれる通信インタフェース
61と第2通信インタフェース回路112が含まれる通
信インタフェース62の二つの場合について示したが、
通信インタフェースをn個としてもよい。“n”は2以
上の自然数である。このときn個の通信インタフェース
のそれぞれに対応してn個の通信インタフェース回路及
び通信インタフェースモジュール504内に対応するn
個の通信制御モジュールが必要となる。Also, here, two communication interfaces for transmitting and receiving a debug command and its response, that is, the communication interface 61 including the first communication interface circuit 111 and the communication interface 62 including the second communication interface circuit 112, are shown. But
The number of communication interfaces may be n. “N” is a natural number of 2 or more. At this time, n communication interface circuits and n communication interfaces corresponding to n communication interfaces in the communication interface module 504 respectively.
Communication control modules are required.
【0070】なお、評価ボード20の制約により、n個
の通信インタフェース回路のすべてを評価ボード20に
搭載できない場合でも、ホストマシン30は通信インタ
フェース確立手順によりデバックに使用可能な通信イン
タフェースを知ることができ、それらの使用可能な通信
インタフェースの中でデバックコマンドとその応答の送
受信に使用する通信インタフェースを評価ボード20の
プロセッサ101に知らせることができるので、知らさ
れた通信インタフェースを使用することによりデバック
や評価を行うことができるようになるという効果があ
る。Even if all of the n communication interface circuits cannot be mounted on the evaluation board 20 due to the restriction of the evaluation board 20, the host machine 30 can know the communication interface that can be used for debugging by the communication interface establishing procedure. It is possible to notify the processor 101 of the evaluation board 20 of the communication interface used for transmitting and receiving a debug command and its response among those available communication interfaces. There is an effect that evaluation can be performed.
【0071】実施の形態3.実施の形態3は実施の形態
2と同一のH/W構成で制御の方法を変えたものであ
る。よって、デバック対象LSI10が搭載された評価
ボード20内のソフトウェアやファームウェアなどのプ
ログラムをデバックするときのソフトウェアデバック装
置1のデバックシステム構成図は実施の形態1及び実施
の形態2で示した図1と同一であるので、その部分の説
明は省略する。また、デバック対象LSI10のH/W
内部構成と評価ボードの構成についても実施の形態2で
示した図7と同一なので、その部分の説明は省略する。Embodiment 3 In the third embodiment, the control method is changed with the same H / W configuration as in the second embodiment. Therefore, the debug system configuration diagram of the software debug device 1 when debugging programs such as software and firmware in the evaluation board 20 on which the debug target LSI 10 is mounted is the same as FIG. 1 shown in the first and second embodiments. Since they are the same, the description of those parts is omitted. Also, the H / W of the debug target LSI 10
The internal configuration and the configuration of the evaluation board are also the same as those in FIG.
【0072】次に実施の形態3の動作について説明す
る。プロセッサ101は命令ROM102あるいはここ
では示されていないが命令RAMに格納されているプロ
グラムに従い、データRAM103に格納されているデ
ータを参照しながら命令を実行してゆく。また、命令R
OM102に格納されているプログラムに従って、第1
通信インタフェース回路111及び第2通信インタフェ
ース回路112を介してホストマシン30との間で送受
信が行われる。なお、命令ROM102にはデバック機
能を実現するデバッガ処理プログラム500が格納され
ている。デバック対象である被デバックプログラムは、
命令ROM102もしくはここでは示されていないがデ
バック対象LSI10の内部あるいは外部に存在する命
令RAMに格納されている。Next, the operation of the third embodiment will be described. The processor 101 executes instructions while referring to data stored in the data RAM 103 according to an instruction ROM 102 or a program (not shown) stored in the instruction RAM. The instruction R
According to the program stored in the OM 102, the first
Transmission and reception are performed with the host machine 30 via the communication interface circuit 111 and the second communication interface circuit 112. The instruction ROM 102 stores a debugger processing program 500 for realizing a debugging function. The debugged program to be debugged is
The instruction is stored in the instruction ROM 102 or an instruction RAM (not shown) existing inside or outside the debug target LSI 10.
【0073】命令ROM102に格納されているデバッ
ガ処理プログラム500の内部構成は、実施の形態2に
おけるデバッガ処理プログラム500の内部構成と同一
構成であり、ここではデバッガ処理プログラム500の
内部構成の説明を省略する。The internal configuration of the debugger processing program 500 stored in the instruction ROM 102 is the same as the internal configuration of the debugger processing program 500 in the second embodiment, and the description of the internal configuration of the debugger processing program 500 is omitted here. I do.
【0074】ホストマシン30が起動され、評価ボート
20に搭載されたデバッグ対象LSI10のデバックを
開始するためには、ホストマシン30と評価ボード20
の間の通信インタフェースとして通信インタフェース6
1及び通信インタフェース62のいずれか一つを選択し
て通信するための通信路を決定する必要がある。すなわ
ち、デバックのためのデバックコマンドとその応答を送
受信するための通信インタフェースの確立を行わなけれ
ばならない。In order to start the host machine 30 and start debugging the debug target LSI 10 mounted on the evaluation board 20, the host machine 30 and the evaluation board 20
Communication interface 6 as communication interface between
1 and the communication interface 62 must be selected to determine a communication path for communication. That is, it is necessary to establish a communication interface for transmitting and receiving a debug command for debugging and its response.
【0075】図10のフローチャートにより、実施の形
態3におけるホストマシン30側からみたときの通信イ
ンタフェースの確立のための手順を示す。ホストマシン
30はデバックを行うために通信インタフェースの確立
が必要であると判断すると、初めにステップS301の
処理が開始される。ステップS301において、複数の
通信インタフェースの中でいずれか一つの通信インタフ
ェースが選択される。ステップS302で、選択された
通信インタフェースを使用してテストコマンドが送出さ
れる。ここで、図7との対応を考えたときの通信インタ
フェースとしては、ケーブル401と第1通信インタフ
ェース回路111が含まれる通信インタフェース61
と、ケーブル402と第2通信インタフェース回路11
2が含まれる通信インタフェース62がある。なお、ス
テップS302によりテストコマンドを受信した評価ボ
ード20は、通信インタフェース61および通信インタ
フェース62のそれぞれを使用してそのテストコマンド
に対する応答をそれぞれ送出する。これは後述の評価ボ
ード20からみたときの通信インタフェースの確立のた
めの手順のステップS324の処理である。FIG. 10 is a flowchart showing a procedure for establishing a communication interface as viewed from the host machine 30 according to the third embodiment. When the host machine 30 determines that it is necessary to establish a communication interface to perform debugging, first, the processing of step S301 is started. In step S301, any one of a plurality of communication interfaces is selected. In step S302, a test command is transmitted using the selected communication interface. Here, as the communication interface when considering the correspondence with FIG. 7, the communication interface 61 including the cable 401 and the first communication interface circuit 111 is used.
, Cable 402 and second communication interface circuit 11
2 is included. The evaluation board 20 receiving the test command in step S302 transmits a response to the test command using each of the communication interface 61 and the communication interface 62. This is the process of step S324 of the procedure for establishing the communication interface when viewed from the evaluation board 20 described later.
【0076】ステップS303で、ステップS302で
送出されたテストコマンドに対する期待された応答をス
テップS302で選択された通信インタフェースより受
信することができたか否かが判断される。もし期待され
た応答を選択された通信インタフェースより受信するこ
とができたときはステップS308にスキップされる。
そうでないときはステップS304が実行される。ステ
ップS304で、ステップS302で送出されたテスト
コマンドに対する期待された応答をステップS302で
選択された通信インタフェース以外の通信インタフェー
スにより受信することができたか否かが判断される。も
し期待された応答を選択された通信インタフェース以外
の通信インタフェースにより受信することができたとき
はステップS305が実行される。そうでないときはス
テップS306が実行される。In step S303, it is determined whether the expected response to the test command transmitted in step S302 has been received from the communication interface selected in step S302. If the expected response can be received from the selected communication interface, the process skips to step S308.
Otherwise, step S304 is performed. In step S304, it is determined whether an expected response to the test command transmitted in step S302 has been received by a communication interface other than the communication interface selected in step S302. If the expected response can be received by a communication interface other than the selected communication interface, step S305 is executed. Otherwise, step S306 is executed.
【0077】ステップS305において、期待された応
答のあった通信インタフェースを選択してステップS3
02に戻る。ステップS306で、すべての通信インタ
フェース61、62が選択されたか否かが判断され、も
しすべての通信インタフェース61、62が今までに選
択されたことがあれば、それ以上テストをする意味がな
いので異常終了となる。もしそうでなければステップS
307の処理を行う。異常終了したときはデバックのた
めの通信インタフェースの確立ができなかったことを示
し、ホストマシン30のディスプレイに通信インタフェ
ースに異常があり、デバックを行うことができないこと
を表示して処理を終了する。ステップS307におい
て、今までに選択されたことのない通信インタフェース
を選択してステップS302に戻る。In step S305, a communication interface having an expected response is selected.
Return to 02. In step S306, it is determined whether or not all the communication interfaces 61 and 62 have been selected. If all of the communication interfaces 61 and 62 have been selected so far, there is no point in performing further tests. Abnormal termination. If not, step S
307 is performed. If the communication is abnormally terminated, it indicates that the communication interface for debugging could not be established, and the display of the host machine 30 indicates that the communication interface is abnormal and cannot be debugged, and the process ends. In step S307, a communication interface that has never been selected is selected, and the process returns to step S302.
【0078】ステップS308で、現在選択されている
通信インタフェースをデバックコマンドとその応答を送
受信するための通信インタフェースとすることをホスト
マシン30のメモリに記憶して通信インタフェースの確
立の処理が終了となる。In step S308, the fact that the currently selected communication interface is to be used as the communication interface for transmitting and receiving the debug command and its response is stored in the memory of the host machine 30, and the process of establishing the communication interface ends. .
【0079】次に、図11のフローチャートにより、実
施の形態3における評価ボード20側からみたときの通
信インタフェースの確立のための手順を示す。評価ボー
ド20側は電源が投入されるとステップS321の処理
が開始される。ステップS321はホストマシン30か
ら送られてくるテストコマンドの受信待ちの状態であ
り、ホストマシン30側からのテストコマンドを受信す
ることによりステップS322の処理が行われる。ステ
ップS322では、ホストマシン30側から送られてき
たコマンドがテストコマンドであるか判断し、テストコ
マンドである場合はステップS323が実行される。テ
ストコマンド以外であればステップS325が実行され
る。ステップS323では、ホストマシン30側から送
られてきたテストコマンドで指示された処理が行われ
る。ステップS324で、テストコマンドで指示された
処理の結果をテストコマンドに対する応答として、複数
の通信インタフェースのそれぞれの通信インタフェース
によりそれぞれ応答を送出してステップS321に戻
る。すなわち、通信インタフェース61及び通信インタ
フェース62のそれぞれを使用してテストコマンドに対
する応答がそれぞれ送出される。Next, a procedure for establishing a communication interface as viewed from the evaluation board 20 according to the third embodiment will be described with reference to the flowchart of FIG. When the power is turned on on the evaluation board 20 side, the process of step S321 is started. Step S321 is a state of waiting for the reception of the test command sent from the host machine 30, and the process of step S322 is performed by receiving the test command from the host machine 30 side. In step S322, it is determined whether the command sent from the host machine 30 is a test command. If the command is a test command, step S323 is executed. If it is not a test command, step S325 is executed. In step S323, the process specified by the test command sent from the host machine 30 is performed. In step S324, a response is sent from each of the plurality of communication interfaces as a response to the test command, with the result of the process specified by the test command, and the process returns to step S321. That is, a response to the test command is transmitted using each of the communication interface 61 and the communication interface 62.
【0080】ステップS325で、以降の処理におい
て、ステップS322で受信した通信インタフェースを
示す値をデバックコマンドとその応答を送受信するため
の通信インタフェースを示す値としてデータRAM10
3上に記憶するとともに、受信したコマンドの応答をそ
の通信インタフェースを使用して送出することにより、
通信インタフェースの確立の処理が終了となる。In step S325, in the subsequent processing, the value indicating the communication interface received in step S322 is used as the value indicating the communication interface for transmitting and receiving the debug command and its response.
3 and by sending out a response to the received command using the communication interface,
The process of establishing the communication interface ends.
【0081】なお、テストコマンドとは、ホストマシン
30側から評価ボード20に搭載されたデバック対象L
SI10のデバックを実行することができるか否かを判
断するためのコマンドであり、評価ボード20を含めて
デバック対象LSI10とホストマシン30との間で通
信が正常にできるかのテストと、デバック対象LSI1
0内のデータRAM103に対して読み書きテストを行
うコマンドである。それらのテスト結果をテストコマン
ドに対する応答として、評価ボード20側よりホストマ
シン30側へ出力される。すなわちホストマシン30は
評価ボート20に搭載されたデバッグ対象LSI10に
対してテストコマンドを実行することにより通信インタ
フェース61及び通信インタフェース62のそれぞれの
テスト及びデバック対象LSI10内のデータRAM1
03のテストが行われる。The test command refers to the debug target L mounted on the evaluation board 20 from the host machine 30 side.
This is a command for determining whether or not the debugging of the SI 10 can be executed. The command is for testing whether communication between the LSI 10 to be debugged including the evaluation board 20 and the host machine 30 can be normally performed, LSI1
This is a command for performing a read / write test on the data RAM 103 in 0. The test results are output from the evaluation board 20 to the host machine 30 as a response to the test command. That is, the host machine 30 executes the test command for the debug target LSI 10 mounted on the evaluation boat 20 to execute the test and debug of the data RAM 1 in the test and debug target LSI 10 of the communication interface 61 and the communication interface 62, respectively.
03 test is performed.
【0082】その結果、ホストマシン30は第1通信イ
ンタフェース回路111が含まれる通信インタフェース
61及び第2通信インタフェース回路112が含まれる
通信インタフェース62の中で使用可能な通信インタフ
ェースと、デバック対象LSI10内のデータRAM1
03に読み書きできるかを知ることができる。ホストマ
シン30がデバック対象LSI10内のデバックを行う
ことが可能と判断すると、以降の通信はテスト結果に基
づいていずれか一方の通信インタフェース回路介して行
われるようになる。As a result, the host machine 30 communicates with the communication interface usable in the communication interface 61 including the first communication interface circuit 111 and the communication interface 62 including the second communication interface circuit 112, and the communication interface in the LSI 10 to be debugged. Data RAM1
03 can be read or written. If the host machine 30 determines that it is possible to debug the LSI 10 to be debugged, the subsequent communication is performed via one of the communication interface circuits based on the test result.
【0083】次に通信インタフェースの確立後の動作に
ついて説明する。通信インタフェースの確立後の動作は
実施の形態1及び実施の形態2と同様の動作となるの
で、ここではその部分の動作説明を省略する。Next, the operation after the establishment of the communication interface will be described. Since the operation after the establishment of the communication interface is the same as that of the first and second embodiments, the description of the operation of that portion is omitted here.
【0084】このように、第1通信インタフェース回路
111を含む通信インタフェース61と、第2通信イン
タフェース回路112を含む通信インタフェース62
と、第1通信インタフェース回路111及び第2通信イ
ンタフェース回路112のそれぞれに対応する通信制御
モジュールC1M及びC2Mとを備えた。また、二つの
通信インタフェース61、62のいずれか一つを選択す
る通信インタフェース選択手段として、ホストマシン3
0からのテストコマンドによるテスト要求に従って通信
インタフェースのテストを行うステップと、二つの通信
インタフェース61、62のそれぞれによりそのテスト
結果の応答をそれぞれ返送するするステップから成る通
信インタフェース確立手順を有しているので、この通信
インタフェース確立手順により二つの通信インタフェー
ス61、62の中でデバック対象LSI10からホスト
マシン30への上り方向の伝送路の一部に不具合があっ
ても、ホストマシン30側で不具合のある通信インタフ
ェースをただちに知ることができるので、不具合のある
通信インタフェースを短時間で検出できようになるとい
う効果を奏する。As described above, the communication interface 61 including the first communication interface circuit 111 and the communication interface 62 including the second communication interface circuit 112
And communication control modules C1M and C2M corresponding to the first communication interface circuit 111 and the second communication interface circuit 112, respectively. In addition, as a communication interface selecting means for selecting one of the two communication interfaces 61 and 62, the host machine 3
It has a communication interface establishment procedure including a step of testing the communication interface according to a test request by a test command from 0, and a step of returning a response of the test result by each of the two communication interfaces 61 and 62. Therefore, even if a part of the upstream transmission path from the debug target LSI 10 to the host machine 30 has a failure in the two communication interfaces 61 and 62 by this communication interface establishment procedure, the host machine 30 has a failure. Since the communication interface can be immediately known, there is an effect that a defective communication interface can be detected in a short time.
【0085】また、通信インタフェースの中のホストマ
シン30からデバック対象LSIへの下り方向の伝送路
に不具合がある場合には、ホストマシン30側が期待さ
れた応答を受信することができないので、通信インタフ
ェース確立手順に、二つの通信インタフェース61、6
2の中で今まで選択されたことのない通信インタフェー
スを選択してテストコマンドを送出するステップを設け
た。その結果、正常に動作する通信インタフェースを調
べて、選択することができるので、通信インタフェース
61及び通信インタフェース62の一方が使用すること
ができない場合でも、使用できる方の通信インタフェー
ス回路を知ることができるので、容易に信頼性の高いデ
バック機構内蔵のデバック対象LSIが得られるように
なるという効果がある。Further, if there is a problem in the downstream transmission path from the host machine 30 in the communication interface to the LSI to be debugged, the host machine 30 cannot receive the expected response. In the establishment procedure, two communication interfaces 61, 6
And a step of transmitting a test command by selecting a communication interface which has not been selected before. As a result, a normally operating communication interface can be checked and selected, so that even if one of the communication interface 61 and the communication interface 62 cannot be used, it is possible to know which communication interface circuit can be used. Therefore, there is an effect that a debug target LSI having a built-in debug mechanism with high reliability can be easily obtained.
【0086】また、評価ボード20の制約により、第1
通信インタフェース回路111あるいは第2通信インタ
フェース回路112の一方の通信インタフェース回路し
か搭載することができない場合でも、ホストマシン30
は通信インタフェース確立手順によりデバックに使用で
きる通信インタフェースを知ることができるので、その
通信インタフェースを使用してデバックや評価を行うこ
とができるようになるという効果がある。Also, due to the limitations of the evaluation board 20, the first
Even when only one communication interface circuit of the communication interface circuit 111 or the second communication interface circuit 112 can be mounted, the host machine 30
Since the communication interface that can be used for debugging can be known by the communication interface establishment procedure, there is an effect that debugging and evaluation can be performed using the communication interface.
【0087】さらに、実施の形態1での通信インタフェ
ース60を削除できる、すなわち通信インタフェース6
0に含まれていた通信ポート110と、評価ボード上の
コネクタ210と、ケーブル400とを削減することが
できるので、ソフトウェアデバック装置1のコストを低
減することができるという効果を奏する。Further, the communication interface 60 in the first embodiment can be deleted, ie, the communication interface 6
Since the number of the communication ports 110, the connectors 210 on the evaluation board, and the cables 400 included in the software debug device 1 can be reduced, the cost of the software debug device 1 can be reduced.
【0088】なお、第1通信インタフェース回路111
及び第2通信インタフェース回路112はそれぞれビッ
トI/O、パラレルI/O、一般のパラレル/シリアル
あるいはシリアル/パラレル変換が行われる非同期式通
信制御回路あるいは同期式通信制御回路、及びJTAG
仕様のシリアルインタフェース回路のいずれでもよい。The first communication interface circuit 111
And the second communication interface circuit 112 are respectively a bit I / O, a parallel I / O, an asynchronous communication control circuit or a synchronous communication control circuit for performing general parallel / serial or serial / parallel conversion, and JTAG.
Any of the serial interface circuits of the specification may be used.
【0089】また、ここではデバックコマンドとその応
答を送受信する通信インタフェースとして、第1通信イ
ンタフェース回路111が含まれる通信インタフェース
61と第2通信インタフェース回路112が含まれる通
信インタフェース62の二つの場合について示したが、
通信インタフェースをn個としてもよい。“n”は2以
上の自然数である。このときn個の通信インタフェース
のそれぞれに対応してn個の通信インタフェース回路及
び通信インタフェースモジュール504内に対応するn
個の通信制御モジュールが必要となる。Here, two communication interfaces for transmitting and receiving a debug command and its response, that is, the communication interface 61 including the first communication interface circuit 111 and the communication interface 62 including the second communication interface circuit 112, are shown. But
The number of communication interfaces may be n. “N” is a natural number of 2 or more. At this time, n communication interface circuits and n communication interfaces corresponding to n communication interfaces in the communication interface module 504 respectively.
Communication control modules are required.
【0090】なお、評価ボード20の制約により、n個
の通信インタフェース回路のすべてを評価ボード20に
搭載できない場合でも、ホストマシン30は通信インタ
フェース確立手順によりデバックに使用可能な通信イン
タフェースを知ることができ、それらの使用可能な通信
インタフェースの中でデバックコマンドとその応答の送
受信に使用する通信インタフェースを選択し、その選択
された通信インタフェースを使用することによりデバッ
クや評価を行うことができるようになるという効果があ
る。Even when all of the n communication interface circuits cannot be mounted on the evaluation board 20 due to the restriction of the evaluation board 20, the host machine 30 can know the communication interface that can be used for debugging by the communication interface establishing procedure. It is possible to select a communication interface to be used for transmitting and receiving a debug command and its response from those available communication interfaces, and to perform debugging and evaluation by using the selected communication interface. This has the effect.
【0091】[0091]
【発明の効果】第1の発明に係わるデバック機能内蔵の
データ処理装置において、複数の通信インタフェース回
路と、複数の通信インタフェース回路のそれぞれに対応
する複数の通信制御モジュールプログラムが含まれ、デ
バックを行うための実行プログラムが格納されたメモリ
と、プロセッサとにより構成され、実行プログラムによ
り指示される処理は、ホストマシンから複数の通信イン
タフェース回路の中でいずれか一つを選択するするため
のデジタル値を受けた場合、このデジタル値がプロセッ
サに取り込まれる第1のステップと、第1のステップの
後にデジタル値により選択された通信インタフェース回
路に対応する通信制御モジュールを介してデバックのた
めのコマンドとその応答の送受信が行われる第2のステ
ップとを含むようにした。その結果、複数の通信インタ
フェース回路の中に使用できない通信インタフェース回
路が存在したとしても、複数の通信インタフェース回路
の中で使用可能であり、デバッグをするためのコマンド
とその応答の送受信に使用できるいずれか一つの通信イ
ンタフェース回路を選択するためのデジタル値をホスト
マシンより受けることが可能であるので、そのデジタル
値により選択された通信インタフェース回路に対応する
通信制御モジュールを介してデバックを行うことができ
るようになり、信頼性の向上したデバック機構内蔵のデ
ータ処理装置が得られるという効果を奏する。According to the first aspect of the present invention, there is provided a data processing device having a built-in debugging function, which includes a plurality of communication interface circuits and a plurality of communication control module programs respectively corresponding to the plurality of communication interface circuits, and performs debugging. The processing designated by the execution program is a digital value for selecting one of a plurality of communication interface circuits from the host machine. If so, a first step in which the digital value is taken into the processor, and after the first step, a command for debugging and a response thereof via the communication control module corresponding to the communication interface circuit selected by the digital value. And the second step of transmitting and receiving It was. As a result, even if there is a communication interface circuit that cannot be used among the plurality of communication interface circuits, it can be used among the plurality of communication interface circuits and can be used for transmitting and receiving a command for debugging and its response. Since the digital value for selecting one communication interface circuit can be received from the host machine, debugging can be performed via the communication control module corresponding to the communication interface circuit selected by the digital value. As a result, it is possible to obtain a data processing device with a built-in debugging mechanism with improved reliability.
【0092】第2の発明に係わるデバック機能内蔵のデ
ータ処理装置において、実行プログラムにより指示され
る処理はさらに、第1及び第2のステップの前にホスト
マシンからテストの要求を受けた場合、プロセッサがテ
スト応答データを同じ通信インタフェース回路を介して
ホストマシンに送出する第3のステップが含まれている
ことその結果、複数の通信インタフェース回路の中に使
用できない通信インタフェース回路が存在したとして
も、ホストマシンが第3のステップに基づいて複数の通
信インタフェース回路をそれぞれテストを行うことがで
き、そのテスト結果に基づいて、複数の通信インタフェ
ース回路の中で使用可能であり、デバッグをするための
コマンドとその応答の送受信に使用できるいずれか一つ
の通信インタフェース回路を選択するためのデジタル値
をホストマシンより受けることが可能であるので、その
デジタル値により選択された通信インタフェース回路に
対応する通信制御モジュールを介してデバックを行うこ
とができるようになり、信頼性の向上したデバック機構
内蔵のデータ処理装置が得られるという効果を奏する。In the data processing apparatus with a built-in debugging function according to the second invention, the processing specified by the execution program further includes a processor for receiving a test request from the host machine before the first and second steps. Includes a third step of transmitting the test response data to the host machine via the same communication interface circuit. As a result, even if there is an unusable communication interface circuit among the plurality of communication interface circuits, The machine can test each of the plurality of communication interface circuits based on the third step. Based on the test result, the machine can be used in the plurality of communication interface circuits, and a command for debugging can be provided. One of the communication interfaces that can be used to send and receive the response Since it is possible to receive a digital value for selecting a circuit from the host machine, debugging can be performed via the communication control module corresponding to the communication interface circuit selected by the digital value. There is an effect that a data processing device with a built-in debug mechanism with improved performance can be obtained.
【0093】第3の発明に係わるデバック機能内蔵のデ
ータ処理装置において、複数の通信インタフェースとは
別の通信インタフェースをさらに備え、いずれか一つの
通信インタフェースを選択するためのデジタル値を受け
るのは、別の通信インタフェースにより行われるように
した。その結果、複数の通信インタフェース回路の中に
使用できない通信インタフェース回路が存在したとして
も、別の通信インタフェース回路により容易に動作可能
ないずれか一つの通信インタフェース回路を選択するた
めのデジタル値を受けることができ、さらに複数の通信
インタフェースのすべてが使用できないときにはその旨
を別の通信インタフェースにより知らせることができる
ので、信頼性のより向上したデバック機構内蔵のデータ
処理装置が得られるという効果を奏する。In the data processing device with a built-in debugging function according to the third invention, a communication interface different from the plurality of communication interfaces is further provided, and a digital value for selecting one of the communication interfaces is received. It is performed by another communication interface. As a result, even if there is an unusable communication interface circuit among a plurality of communication interface circuits, receiving a digital value for selecting one of the communication interface circuits that can be easily operated by another communication interface circuit. In addition, when all of the plurality of communication interfaces cannot be used, this fact can be notified by another communication interface, so that a data processing device with a built-in debugging mechanism with higher reliability can be obtained.
【0094】第4の発明に係わるデバック機能内蔵のデ
ータ処理装置において、いずれか一つの通信インタフェ
ース回路を選択するためのデジタル値を受けるのは、複
数の通信インタフェース回路の中で動作可能ないずれか
一つの通信インタフェース回路により行われるようにし
たので、いずれか一つの通信インタフェース回路を選択
するためのデジタル値を受けるために別の通信インタフ
ェース回路を設けなくとも実現できるようになり、デバ
ック機構内蔵のデータ処理装置のコストを低減すること
ができるという効果を奏する。In the data processing apparatus with a built-in debugging function according to the fourth invention, receiving a digital value for selecting one of the communication interface circuits is performed by any of the plurality of communication interface circuits operable. Since it is performed by one communication interface circuit, it can be realized without providing another communication interface circuit to receive a digital value for selecting one of the communication interface circuits, and a built-in debug mechanism There is an effect that the cost of the data processing device can be reduced.
【0095】第5の発明に係わるデバック機能内蔵のデ
ータ処理装置において、複数の通信インタフェース回路
と、複数の通信インタフェース回路のそれぞれに対応す
る複数の通信制御モジュールが含まれ、デバックを行う
ための実行プログラムが格納されたメモリと、プロセッ
サとにより構成され、実行プログラムにより指示される
処理は、ホストマシンからテストの要求を受けた場合、
プロセッサが複数の通信インタフェース回路のそれぞれ
を介してテスト応答データをそれぞれホストマシンに送
出する第4のステップが含まれるようにしたものであ
る。その結果、複数の通信インタフェース回路の中に使
用できない通信インタフェース回路が存在したとして
も、第4のステップにより複数の通信インタフェース回
路の中でデバッグをするためのコマンドとその応答の送
受信に使用することが可能な通信インタフェース回路を
短時間で知ることができ、その通信インタフェース回路
を選択することによりデバックを行うことができるよう
になるので、デバックまでの準備時間を短縮したデバッ
ク機構内蔵のデータ処理装置が得られるという効果を奏
する。In the data processing device with a built-in debugging function according to the fifth invention, a plurality of communication interface circuits and a plurality of communication control modules respectively corresponding to the plurality of communication interface circuits are included. The processing instructed by the execution program, which is configured by the memory in which the program is stored and the processor, when a test request is received from the host machine,
A fourth step in which the processor sends test response data to the host machine via each of the plurality of communication interface circuits is included. As a result, even if there is a communication interface circuit that cannot be used among the plurality of communication interface circuits, the fourth step is to use the communication interface circuit to transmit and receive a command for debugging and a response thereof in the plurality of communication interface circuits. A data processing device with a built-in debugging mechanism that shortens the preparation time before debugging, because it is possible to know in a short time the communication interface circuit capable of performing debugging, and it is possible to perform debugging by selecting the communication interface circuit. Is obtained.
【0096】第6の発明に係わるホストマシンにおいて
は、デバック機構内蔵のデータ処理装置のデバック制御
を行う制御プログラムが内蔵され、データ処理装置のデ
バック制御を行う処理部と、複数の通信インタフェース
とを含み、処理部の前記制御プログラムにより指示され
る処理は、データ処理装置に対してテストを要求するコ
マンドの送信を行う第1のステップと、第1のステップ
によるテストを要求するコマンドに対するデータ処理装
置からの応答を受信する第2のステップと、第2のステ
ップにより受信した応答を判断することによりいずれか
一つの通信インタフェースを選択し、その選択された通
信インタフェースに対応するデジタル値を送信する第3
のステップを含む通信インタフェース確立手順を有して
おり、通信インタフェース確立後はいずれか一つの通信
インタフェースを用いてコマンドとそのコマンドに対す
る応答の送受信が行われるようにしたものである。その
結果、複数の通信インタフェースの中に使用できない通
信インタフェースが存在したとしても、通信インタフェ
ース確立手順により複数の通信インタフェースの中で使
用可能であり、デバッグをするためのコマンドとその応
答の送受信に使用するいずれか一つの通信インタフェー
スに対応するデジタル値を送信し、その通信インタフェ
ースが選択されることによりデバックを行うことができ
るようになり、信頼性の向上したデバックのためのホス
トマシンが得られるという効果を奏する。In the host machine according to the sixth aspect of the present invention, a control program for controlling debugging of a data processing device having a built-in debugging mechanism is built in, and a processing unit for controlling debugging of the data processing device and a plurality of communication interfaces are provided. The processing instructed by the control program of the processing unit includes a first step of transmitting a command requesting a test to the data processing apparatus, and a data processing apparatus responding to the command requesting the test in the first step. A second step of receiving a response from the second step, and selecting one of the communication interfaces by determining the response received in the second step, and transmitting a digital value corresponding to the selected communication interface. 3
After the establishment of the communication interface, a command and a response to the command are transmitted and received using any one of the communication interfaces. As a result, even if there is a communication interface that cannot be used among multiple communication interfaces, it can be used among multiple communication interfaces by the communication interface establishment procedure, and it can be used to send and receive commands for debugging and its response. A digital value corresponding to any one of the communication interfaces is transmitted, and debugging can be performed by selecting the communication interface, thereby obtaining a host machine for debugging with improved reliability. It works.
【0097】なお、第10の発明に係わる記録媒体にお
いては、その記録媒体に記録されている制御プログラム
をホストマシンのメモリに書き込み、データ処理装置を
制御することにより、第6の発明と同様の効果が得られ
る。In the recording medium according to the tenth aspect, the control program recorded on the recording medium is written in the memory of the host machine, and the data processing device is controlled, whereby the same processing as in the sixth aspect is achieved. The effect is obtained.
【0098】第7の発明に係わるホストマシンにおいて
は、複数の通信インタフェースとは別の通信インタフェ
ースをさらに備え、第3のステップにおける選択された
通信インタフェースに対応するデジタル値の送信は、別
の通信インタフェースにより行われるようにしたもので
ある。その結果、複数の通信インタフェースの中に使用
できない通信インタフェースが存在したとしても、別の
通信インタフェースにより容易に動作可能ないずれか一
つの通信インタフェースを選択するためのデジタル値を
送信することができ、そのデジタル値に基づいた通信イ
ンタフェースを選択することによりデバックを行うこと
ができるようになり、さらに複数の通信インタフェース
のすべてが使用できないときにはその旨を別の通信イン
タフェースにより知らせることができるので、信頼性の
より向上したデバックのためのホストマシンが得られる
という効果を奏する。[0098] The host machine according to the seventh aspect of the present invention further comprises a communication interface different from the plurality of communication interfaces, and the transmission of the digital value corresponding to the selected communication interface in the third step is performed by another communication interface. This is performed by the interface. As a result, even if there is a communication interface that cannot be used among the plurality of communication interfaces, it is possible to transmit a digital value for selecting any one communication interface that can be easily operated by another communication interface, By selecting a communication interface based on the digital value, debugging can be performed. Further, when all of the plurality of communication interfaces cannot be used, the fact can be notified by another communication interface, so that reliability can be improved. This has the effect that a host machine for improved debugging can be obtained.
【0099】第8の発明に係わるホストマシンにおいて
は、第3のステップにおける選択された通信インタフェ
ースに対応するデジタル値の送信は、複数の通信インタ
フェースの中で動作可能ないずれか一つの通信インタフ
ェースにより行われるようにしたので、いずれか一つの
通信インタフェースを選択するためのデジタル値を送信
するために別の通信インタフェースを設けないですむの
で、デバックのためのホストマシンのコストを低減する
ことができるという効果を奏する。In the host machine according to the eighth aspect, the transmission of the digital value corresponding to the selected communication interface in the third step is performed by any one of the plurality of communication interfaces. Since it is performed, there is no need to provide another communication interface for transmitting a digital value for selecting one of the communication interfaces, so that the cost of the host machine for debugging can be reduced. This has the effect.
【0100】第9の発明に係わるホストマシンにおいて
は、デバック機構内蔵のデータ処理装置のデバック制御
を行う制御プログラムが内蔵され、データ処理装置のデ
バック制御を行う処理部と、複数の通信インタフェース
とを含み、処理部の前記制御プログラムにより指示され
る処理は、データ処理装置に対してテストを要求するコ
マンドの送信を行う第1のステップと、第1のステップ
によるテストを要求するコマンドに対するデータ処理装
置からの応答を複数の通信インタフェースのそれぞれの
通信インタフェースから受信する第2のステップとから
なる通信インタフェース確立手順を有しており、通信イ
ンタフェース確立後はいずれか一つの通信インタフェー
スを用いてコマンドとそのコマンドに対する応答の送受
信が行われるようにしたものである。その結果、複数の
通信インタフェースの中に使用できない通信インタフェ
ースが存在したとしても、通信インタフェース確立手順
により複数の通信インタフェースの中でデバッグをする
ためのコマンドとその応答の送受信に使用することが可
能な通信インタフェースを短時間で知ることができ、そ
の通信インタフェースを選択することによりデバックを
行うことができるようになるので、準備時間の短い信頼
性の向上したデバックのためのホストマシンが得られる
という効果を奏する。In the host machine according to the ninth aspect of the present invention, a control program for controlling debugging of a data processing device having a built-in debugging mechanism is built in, and a processing unit for controlling debugging of the data processing device and a plurality of communication interfaces are provided. The processing instructed by the control program of the processing unit includes a first step of transmitting a command requesting a test to the data processing apparatus, and a data processing apparatus responding to the command requesting the test in the first step. And a second step of receiving a response from each of the plurality of communication interfaces from the communication interface. After the communication interface is established, a command and its command are transmitted using any one of the communication interfaces. Send and receive responses to commands One in which the. As a result, even if there is an unusable communication interface among the plurality of communication interfaces, the communication interface establishment procedure can be used to transmit and receive a command for debugging among the plurality of communication interfaces and its response. The communication interface can be known in a short time, and debugging can be performed by selecting the communication interface, so that a reliable host machine with a short preparation time and improved reliability can be obtained. To play.
【0101】なお、第11の発明に係わる記録媒体にお
いては、その記録媒体に記録されている制御プログラム
をホストマシンのメモリに書き込み、データ処理装置を
制御することにより、第9の発明と同様の効果が得られ
る。In the recording medium according to the eleventh invention, the control program recorded on the recording medium is written into the memory of the host machine, and the data processing device is controlled, whereby the same processing as the ninth invention is performed. The effect is obtained.
【図面の簡単な説明】[Brief description of the drawings]
【図1】 本発明の実施の形態1、実施の形態2、又は
実施の形態3によるソフトウェアデバック装置1の構成
図である。FIG. 1 is a configuration diagram of a software debug device 1 according to a first embodiment, a second embodiment, or a third embodiment of the present invention.
【図2】 本発明の実施の形態1によるデバック対象L
SI10のH/W内部構成と評価ボード20の構成を示
す構成図である。FIG. 2 is a debug target L according to the first embodiment of the present invention.
FIG. 2 is a configuration diagram showing an H / W internal configuration of an SI and an evaluation board 20;
【図3】 本発明の実施の形態1による命令ROM10
2に格納されているデバッガ処理プログラム500の構
成図である。FIG. 3 is an instruction ROM 10 according to the first embodiment of the present invention.
FIG. 4 is a configuration diagram of a debugger processing program 500 stored in the second embodiment.
【図4】 本発明の実施の形態1によるホストマシン3
0側からみた通信インタフェースの確立のための手順を
示すフローチャートである。FIG. 4 is a host machine 3 according to the first embodiment of the present invention.
9 is a flowchart illustrating a procedure for establishing a communication interface as viewed from the 0 side.
【図5】 本発明の実施の形態1による評価ボード20
側からみた通信インタフェースの確立のための手順を示
すフローチャートである。FIG. 5 is an evaluation board 20 according to the first embodiment of the present invention.
6 is a flowchart showing a procedure for establishing a communication interface as viewed from the side.
【図6】 本発明の実施の形態1によるデバックコマン
ド処理の手順を示すフローチャートである。FIG. 6 is a flowchart illustrating a procedure of a debug command process according to the first embodiment of the present invention.
【図7】 本発明の実施の形態2によるデバック対象L
SI10のH/W内部構成と評価ボード20の構成を示
す構成図である。FIG. 7 is a debug target L according to the second embodiment of the present invention.
FIG. 2 is a configuration diagram showing an H / W internal configuration of an SI and an evaluation board 20;
【図8】 本発明の実施の形態2によるホストマシン3
0側からみた通信インタフェースの確立のための手順を
示すフローチャートである。FIG. 8 shows a host machine 3 according to the second embodiment of the present invention.
9 is a flowchart illustrating a procedure for establishing a communication interface as viewed from the 0 side.
【図9】 本発明の実施の形態2による評価ボード20
側からみた通信インタフェースの確立のための手順を示
すフローチャートである。FIG. 9 is an evaluation board 20 according to the second embodiment of the present invention.
6 is a flowchart showing a procedure for establishing a communication interface as viewed from the side.
【図10】 本発明の実施の形態3によるホストマシン
30側からみた通信インタフェースの確立のための手順
を示すフローチャートである。FIG. 10 is a flowchart showing a procedure for establishing a communication interface as viewed from the host machine 30 according to the third embodiment of the present invention.
【図11】 本発明の実施の形態3による評価ボード2
0側からみた通信インタフェースの確立のための手順を
示すフローチャートである。FIG. 11 is an evaluation board 2 according to the third embodiment of the present invention.
9 is a flowchart illustrating a procedure for establishing a communication interface as viewed from the 0 side.
【図12】 従来のソフトウェアデバック装置の構成図
である。FIG. 12 is a configuration diagram of a conventional software debug device.
20 評価ボード 30 ホストマシン 31 処理部 60、61、62 通信インタフェース 101 プロセッサ 102 命令ROM 103 データRAM 110 通信ポート 111 第1通信インタフェース回路 112 第2通信インタフェース回路 400、401、402 ケーブル CP1M、C1M、C2M 通信制御モジュール Reference Signs 20 evaluation board 30 host machine 31 processing unit 60, 61, 62 communication interface 101 processor 102 instruction ROM 103 data RAM 110 communication port 111 first communication interface circuit 112 second communication interface circuit 400, 401, 402 cable CP1M, C1M, C2M Communication control module
Claims (11)
る複数の通信インタフェース回路と、 前記複数の通信インタフェース回路のそれぞれに対応し
て通信制御を行うためのプログラムである複数の通信制
御モジュールが含まれ、デバックを行うための実行プロ
グラムが格納されたメモリと、 前記メモリに格納された前記実行プログラムを読み出し
て実行するプロセッサとにより構成され、 前記実行プログラムにより指示される処理は、(1)前
記ホストマシンから前記複数の通信インタフェース回路
の中でいずれか一つを選択するためのデジタル値を受け
た場合、このデジタル値が前記プロセッサに取り込まれ
る第1のステップと、(2)第1のステップの後に前記
デジタル値により選択された通信インタフェース回路に
対応する通信制御モジュールを介してデバックのための
コマンドとその応答の送受信が行われる第2のステップ
とを含むことを特徴としたデバック機構内蔵のデータ処
理装置。1. A plurality of communication interface circuits each connected to a host machine, and a plurality of communication control modules which are programs for performing communication control corresponding to each of the plurality of communication interface circuits are included. A memory for storing an execution program for performing debugging, and a processor for reading and executing the execution program stored in the memory. The processing instructed by the execution program includes: When a digital value for selecting any one of the plurality of communication interface circuits is received from a machine, a first step in which the digital value is taken into the processor, and (2) a first step of: Communication control corresponding to the communication interface circuit selected by the digital value later A data processing device with a built-in debugging mechanism, comprising: a second step of transmitting and receiving a command for debugging and a response to the command via a module.
理はさらに、 第1のステップの前にホストマシンから複数の通信イン
タフェース回路の内の一つを介してテストの要求を受け
た場合、前記プロセッサがテスト応答データを前記テス
トの要求を受けた通信インタフェース回路と同じ通信イ
ンタフェース回路を介してホストマシンに送出する第3
のステップが含まれていることを特徴とする請求項1記
載のデバック機構内蔵のデータ処理装置。2. The process instructed by the execution program further includes: when a test request is received from a host machine via one of a plurality of communication interface circuits before a first step, Thirdly, the test response data is sent to the host machine via the same communication interface circuit as the communication interface circuit that received the test request.
2. The data processing device with a built-in debugging mechanism according to claim 1, further comprising:
通信インタフェース回路をさらに備え、 いずれか一つの通信インタフェース回路を選択するため
のデジタル値を受けるのは、前記別の通信インタフェー
ス回路により行われることを特徴とする請求項1又は請
求項2記載のデバック機構内蔵のデータ処理装置。3. A communication interface circuit different from the plurality of communication interface circuits, wherein receiving the digital value for selecting one of the communication interface circuits is performed by the another communication interface circuit. 3. A data processing device having a built-in debugging mechanism according to claim 1.
を選択するためのデジタル値を受けるのは、複数の通信
インタフェース回路の中で動作可能ないずれか一つの通
信インタフェース回路により行われるように構成されて
いることを特徴とする請求項1又は請求項2記載のデバ
ック機構内蔵のデータ処理装置。4. Receiving a digital value for selecting one of the communication interface circuits is performed by any one of the communication interface circuits operable among the plurality of communication interface circuits. 3. The data processing device with a built-in debugging mechanism according to claim 1, wherein
る複数の通信インタフェース回路と、 前記複数の通信インタフェース回路のそれぞれに対応し
て通信制御を行うためのプログラムである複数の通信制
御モジュールが含まれ、デバックを行うための実行プロ
グラムが格納されたメモリと、 前記メモリに格納された前記実行プログラムを読み出し
て実行するプロセッサとにより構成され、 前記実行プログラムにより指示される処理は、ホストマ
シンからテストの要求を受けた場合、前記プロセッサが
前記複数の通信インタフェース回路のそれぞれを介して
テスト応答データをそれぞれホストマシンに送出するス
テップが含まれていることを特徴とするデバック機構内
蔵のデータ処理装置。5. A communication system comprising: a plurality of communication interface circuits each connected to a host machine; and a plurality of communication control modules which are programs for controlling communication corresponding to each of the plurality of communication interface circuits. A memory that stores an execution program for performing debugging, and a processor that reads and executes the execution program stored in the memory. The processing instructed by the execution program is performed by a host machine. A data processing device with a built-in debugging mechanism, characterized by including a step of, when a request is received, sending the test response data to the host machine via each of the plurality of communication interface circuits.
バック制御を行う制御プログラムが内蔵され、前記デー
タ処理装置のデバック制御を行う処理部と、 前記データ処理装置との間をそれぞれ接続する複数の通
信インタフェースとを含み、 前記処理部の前記制御プログラムにより指示される処理
は、(1)前記データ処理装置に対してテストを要求す
るコマンドの送信を行う第1のステップと、(2)前記
第1のステップによるテストを要求するコマンドに対す
る前記データ処理装置からの応答を受信する第2のステ
ップと、(3)前記第2のステップにより受信した応答
を判断することにより前記いずれか一つの通信インタフ
ェースを選択し、その選択された通信インタフェースに
対応するデジタル値を送信する第3のステップを含む通
信インタフェース確立手順を有しており、 通信インタフェース確立後は前記いずれか一つの通信イ
ンタフェースを用いてコマンドとそのコマンドに対する
応答の送受信が行われるように構成されていることを特
徴とするホストマシン。6. A plurality of communications, each of which includes a control program for performing a debug control of a data processing device having a built-in debug mechanism, and a processing unit for performing a debug control of the data processing device, and a connection between the processing unit and the data processing device. An interface, wherein the processing instructed by the control program of the processing unit includes: (1) a first step of transmitting a command requesting a test to the data processing device; A second step of receiving a response from the data processing device to a command requesting a test according to the step of: Selecting and transmitting a digital value corresponding to the selected communication interface. Has an interface establishment procedure after establishing the communication interface host machine, characterized by being configured to send and receive a response takes place to the command and the command by using the any one communication interface.
インタフェースをさらに備え、 第3のステップにおける選択された通信インタフェース
に対応するデジタル値の送信は、前記別の通信インタフ
ェースにより行われることを特徴とする請求項6記載の
ホストマシン。7. The communication system according to claim 1, further comprising a communication interface different from the plurality of communication interfaces, wherein the transmission of the digital value corresponding to the selected communication interface in the third step is performed by the another communication interface. The host machine according to claim 6, wherein
インタフェースに対応するデジタル値の送信は、複数の
通信インタフェースの中で動作可能ないずれか一つの通
信インタフェースにより行われることを特徴とする請求
項6記載のホストマシン。8. The transmission of a digital value corresponding to the selected communication interface in the third step is performed by any one of the plurality of communication interfaces operable. 6. The host machine according to 6.
バック制御を行う制御プログラムが内蔵され、前記デー
タ処理装置のデバック制御を行う処理部と、 前記データ処理装置との間をそれぞれ接続する複数の通
信インタフェースとを含み、 前記処理部の前記制御プログラムにより指示される処理
は、(1)前記データ処理装置に対してテストを要求す
るコマンドの送信を行う第1のステップと、(2)前記
第1のステップによるテストを要求するコマンドに対す
る前記データ処理装置からの応答を前記複数の通信イン
タフェースのそれぞれの通信インタフェースから受信す
る第2のステップとを含む通信インタフェース確立手順
を有しており、 通信インタフェース確立後は前記いずれか一つの通信イ
ンタフェースを用いてコマンドとそのコマンドに対する
応答の送受信が行われるように構成されていることを特
徴とするホストマシン。9. A control program for performing a debug control of a data processing device having a built-in debug mechanism, a processing unit for performing the debug control of the data processing device, and a plurality of communications for respectively connecting the data processing device and the processing unit. An interface; and a process instructed by the control program of the processing unit includes: (1) a first step of transmitting a command requesting a test to the data processing device; Receiving the response from the data processing device to the command requesting the test by the steps of the above from the respective communication interfaces of the plurality of communication interfaces. After that, the command and its command are A host machine configured to transmit and receive a response to a command.
バック機構内蔵のデータ処理装置のデバック制御を行う
ための制御プログラムが格納されたものであり、 前記制御プログラムにより指示される処理は、(1)前
記データ処理装置に対してテストを要求するコマンドの
送信を行う第1のステップと、(2)前記第1のステッ
プによるテストを要求するコマンドに対する前記データ
処理装置からの応答を受信する第2のステップと、
(3)前記第2のステップにより受信した応答を判断す
ることにより前記いずれか一つの通信インタフェースを
選択し、その選択された通信インタフェースに対応する
デジタル値を送信する第3のステップを含む通信インタ
フェース確立手順を有しており、 通信インタフェース確立後は前記いずれか一つの通信イ
ンタフェースを用いてコマンドとそのコマンドに対する
応答の送受信を行わせるように前記ホストマシンを制御
するための前記制御プログラムを格納した前記ホストマ
シンで読み取り可能な記録媒体。10. A control program stored in a memory of a host machine for performing a debugging control of a data processing device having a built-in debugging mechanism. The processing instructed by the control program is as follows: A first step of transmitting a command requesting a test to the data processing apparatus; and (2) a second step of receiving a response from the data processing apparatus to the command requesting a test in the first step. Steps and
(3) a communication interface including a third step of selecting one of the communication interfaces by determining the response received in the second step and transmitting a digital value corresponding to the selected communication interface; After the communication interface is established, the control program for controlling the host machine so as to transmit and receive a command and a response to the command using any one of the communication interfaces is stored. A recording medium readable by the host machine.
バック機構内蔵のデータ処理装置のデバック制御を行う
ための制御プログラムが格納されたものであり、 前記制御プログラムにより指示される処理は、(1)前
記データ処理装置に対してテストを要求するコマンドの
送信を行う第1のステップと、(2)前記第1のステッ
プによるテストを要求するコマンドに対する前記データ
処理装置からの応答を前記複数の通信インタフェースの
それぞれの通信インタフェースから受信する第2のステ
ップとを含む通信インタフェース確立手順を有してお
り、 通信インタフェース確立後は前記いずれか一つの通信イ
ンタフェースを用いてコマンドとそのコマンドに対する
応答の送受信を行わせるように前記ホストマシンを制御
するための前記制御プログラムを格納した前記ホストマ
シンで読み取り可能な記録媒体。11. A control program stored in a memory of a host machine for performing a debugging control of a data processing device having a built-in debugging mechanism. The processing instructed by the control program is as follows: A first step of transmitting a command requesting a test to the data processing apparatus; and (2) transmitting a response from the data processing apparatus to the command requesting a test in the first step to the plurality of communication interfaces. And a second step of receiving from each of the communication interfaces. After the communication interface is established, a command and a response to the command are transmitted and received using any one of the communication interfaces. The control program for controlling the host machine to Readable recording medium by said host machine that stores grams.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP11222225A JP2001051868A (en) | 1999-08-05 | 1999-08-05 | Data processing device with built-in debugging mechanism, host machine, and recording medium |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP11222225A JP2001051868A (en) | 1999-08-05 | 1999-08-05 | Data processing device with built-in debugging mechanism, host machine, and recording medium |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| JP2001051868A true JP2001051868A (en) | 2001-02-23 |
Family
ID=16779089
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP11222225A Pending JP2001051868A (en) | 1999-08-05 | 1999-08-05 | Data processing device with built-in debugging mechanism, host machine, and recording medium |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JP2001051868A (en) |
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2012141906A (en) * | 2011-01-06 | 2012-07-26 | Nec Access Technica Ltd | Debug object device, debug information output system, debug information output method and debug information output program |
| US9875170B2 (en) | 2014-12-03 | 2018-01-23 | Samsung Electronics Co., Ltd. | Data storage device for self-detecting error and logging operation and method of operating the same |
-
1999
- 1999-08-05 JP JP11222225A patent/JP2001051868A/en active Pending
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2012141906A (en) * | 2011-01-06 | 2012-07-26 | Nec Access Technica Ltd | Debug object device, debug information output system, debug information output method and debug information output program |
| US9875170B2 (en) | 2014-12-03 | 2018-01-23 | Samsung Electronics Co., Ltd. | Data storage device for self-detecting error and logging operation and method of operating the same |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US4684885A (en) | Arrangement for on-line diagnostic testing of an off-line standby processor in a duplicated processor configuration | |
| US20050170699A1 (en) | USB OTG adapter module for debugging USB OTG devices | |
| JPH06119296A (en) | Data interface initial setting device for programmable controller and initial setting method | |
| US20030120970A1 (en) | Method and apparatus for debugging an electronic product using an internal I/O port | |
| CN112162894B (en) | Chip and debugging subassembly, debug system thereof | |
| US6286073B1 (en) | Integrated circuit interface between a personal computer and an external device | |
| US20050223298A1 (en) | Switcher for debugging and debugging method | |
| US6263305B1 (en) | Software development supporting system and ROM emulation apparatus | |
| CN101110051A (en) | A test method and system for single-board debugging serial port function | |
| JP2001051868A (en) | Data processing device with built-in debugging mechanism, host machine, and recording medium | |
| CN113608935B (en) | Method, system, equipment and medium for testing network card | |
| US6272454B1 (en) | Debugging and cosimulation method for wide band switch firmware | |
| JP2988443B2 (en) | Data transfer method | |
| CN211149270U (en) | debug circuit | |
| US8443236B2 (en) | Test apparatus for testing an information processing apparatus | |
| JPH10133903A (en) | Data transfer controller and loop back test system | |
| JP2998439B2 (en) | Line controller | |
| JP2518514B2 (en) | Automatic fault detection system | |
| JP3037150B2 (en) | Interface diagnostic system | |
| CN117873810A (en) | Mainboard debugging device based on USB interface | |
| KR100809259B1 (en) | Communication module interface device | |
| JP3155919B2 (en) | Information processing apparatus inspection system, inspection method, and inspection apparatus | |
| JPH11102308A (en) | Debugger | |
| JP2000206203A (en) | Boundary scan chain automatic connection device | |
| KR960011135B1 (en) | Protocol Redundancy System and Control Method for Message Communication in Satellite Network |