DEBUGGING SYSTEM, EMULATOR, AND DEBUGGING METHOD
A debug system includes: a microcomputer mounted on a target system; an emulator configured to execute emulation of the microcomputer based on a user program embedded in the microcomputer; and a computer connected with the emulator in radio communication and configured to instruct start of the emulation and to execute a debugging operation of the microcomputer based on a result of the emulation. The emulator includes: a control section configured to execute the emulation of the microcomputer based on control data from the computer; a radio communication state monitoring section configured to monitor a state of the radio communication between the computer and the emulator when the emulation is performed; and a storage section configured to store substitution control data. The control section acquires the substitution control data from the storage section, when the radio communication is in a non-communicable state, and controls the microcomputer based on the substitution control data such that the target system is set to a predetermined state.
1 . A debug system comprising:
a microcomputer mounted on a target system;
an emulator configured to execute emulation of said microcomputer based on a user program embedded in said microcomputer; and
a computer connected with said emulator in radio communication and configured to instruct start of the emulation and to execute a debugging operation of said microcomputer based on a result of the emulation,
wherein said emulator comprises:
a control section configured to execute the emulation of said microcomputer based on control data from said computer;
a radio communication state monitoring section configured to monitor a state of the radio communication between said computer and said emulator when the emulation is performed; and
a storage section configured to store substitution control data, and
wherein said control section acquires said substitution control data from said storage section, when said radio communication is in a non-communicable state, and controls said microcomputer based on said substitution control data such that said target system is set to a predetermined state.
2 . The debugging system according to claim 1 , wherein said substitution control data includes a control data to control said microcomputer to stop execution of a user program embedded in said microcomputer for a control of said apparatus, and a control data to control said microcomputer to set said target system to the predetermined state.
3 . The debugging system according to claim 1 , wherein said control section determines whether or not said microcomputer is executing said user program when it is determined that said radio communication is in the non-communicable state, and controls said microcomputer based on said substitution control data when said user program is being executing.
4 . The debugging system according to claim 1 , wherein said radio communication state monitoring section determines the state of the radio communication between said computer and said emulator based on one of the number of times of data retransmission, a reception electric field strength of a radio signal, and a data error.
5 . An emulator which performs emulation of a microcomputer mounted on a target system based on a user program embedded in said microcomputer in response to control data from a computer, and transmits an emulation result to said computer, wherein a radio communication is performed between said emulator and said computer, said emulator comprising:
a control section configured to execute the emulation of said microcomputer based on control data from said computer;
a radio communication state monitoring section configured to monitor a state of the radio communication between said computer and said emulator when the emulation is performed; and
a storage section configured to store substitution control data,
wherein said control section acquires said substitution control data from said storage section, when said radio communication is in a non-communicable state, and controls said microcomputer based on said substitution control data such that said target system is set to a predetermined state.
6 . The emulator according to claim 5 , wherein said substitution control data includes a control data to control said microcomputer to stop execution of a user program embedded in said microcomputer for a control of said apparatus, and a control data to control said microcomputer to set said target system to the predetermined state.
7 . The emulator according to claim 5 , wherein said control section determines whether or not said microcomputer is executing said user program when it is determined that said radio communication is in the non-communicable state, and controls said microcomputer based on said substitution control data when said user program is being executing.
8 . The emulator according to claim 5 , wherein said radio communication state monitoring section determines the state of the radio communication between said computer and said emulator based on one of the number of times of data retransmission, a reception electric field strength of a radio signal, and a data error.
9 . A debug method comprising:
receiving control data transmitted in a radio communication from a computer by an emulator;
performing emulation of a microcomputer mounted on a target system by said emulator based on a user program embedded in said microcomputer in response to said control data;
transmitting an emulation result of said microcomputer from said emulator to said computer in the radio communication;
monitoring a state of the radio communication between said computer and said emulator; and
controlling said microcomputer by said emulator based on a substitution control data such that said target system is set to a predetermined state, when the radio communication is in a non-communicable state.
10 . The debugging method according to claim 9 , wherein said substitution control data includes a control data to control said microcomputer to stop execution of a user program embedded in said microcomputer for a control of said apparatus, and a control data to control said microcomputer to set said target system to the predetermined state.
11 . The debugging method according to claim 9 , wherein said monitoring comprises:
determining whether or not said microcomputer is executing said user program when it is determined that said radio communication is in the non-communicable state, and
wherein said controlling comprises:
controlling said microcomputer based on said substitution control data when said user program is being executing.
12 . The debugging method according to claim 9 , wherein said monitoring comprises:
determining the state of the radio communication between said computer and said emulator based on one of the number of times of data retransmission, a reception electric field strength of a radio signal, and a data error.
13 . A computer-readable recording medium in which a computer-executable program code is stored to attain an emulation control method in an emulator which performs emulation of a microcomputer mounted on a target system in response to a start instruction from a computer, and transmits an emulation result to said computer, wherein a radio communication is performed between said emulator and said computer, wherein said emulation control method comprising:
executing the emulation of said microcomputer based on control data from said computer;
monitoring a state of the radio communication between said computer and said emulator when the emulation is performed; and
controlling said microcomputer by said emulator based on a substitution control data such that said target system is set to a predetermined state, when the radio communication is in a non-communicable state.
14 . The computer-readable recording medium according to claim 13 , wherein said substitution control data includes a control data to control said microcomputer to stop execution of a user program embedded in said microcomputer for a control of said apparatus, and a control data to control said microcomputer to set said target system to the predetermined state.
15 . The computer-readable recording medium according to claim 13 , wherein said monitoring comprises:
determining whether or not said microcomputer is executing said user program when it is determined that said radio communication is in the non-communicable state, and
wherein said controlling comprises:
controlling said microcomputer based on said substitution control data when said user program is being executing.
16 . The computer-readable recording medium according to claim 13 , wherein said monitoring comprises:
determining the state of the radio communication between said computer and said emulator based on one of the number of times of data retransmission, a reception electric field strength of a radio signal, and a data error.