2.4.3 Connect to the debug tool using hot plug-in [E1][E20]

With hot plug-in function, you can connect the debug tool to the target board during execution of a program (without having to turn off the system) and debug the program while it is in execution.

Follow the steps below to establish hot plug-in connection.

Caution 1.

The hot plug-in connection is enabled only when the selected microcontroller incorporates the hot plug-in function.

Caution 2.

When a hot plug-in connection is made, the settings of the following properties are ignored (i.e. the program operates as if the specification for them is [No]). The settings of them become valid again after reconnection with CS+.
- [Mask TARGET RESET signal]
- [Mask INTERNAL RESET signal]
- [Power target from the emulator (MAX 200mA)]
- [Erase flash ROM when starting]



Caution 3.

When a hot plug-in connection is made, events currently being set in the project are ignored.
They become valid again after reconnection with CS+.

(1)

Set the number of times and interval to retry

Set the interval and number of times to retry connection when the emulator fails to communicate with the microcontroller on the target board.

You can configure this settings in [Hot Plug-in] category on the [Connect Settings] tab of the Property panel.

Figure 2.54

[Hot Plug-in] Category

(a)

[Retrying interval[ms]]

Specify an interval in 1 ms unit to retry the connection.

Directly enter the decimal number between 0 and 60000 (default: [1000]).

(b)

[Number of times of retrying]

Specify the number of times to retry the connection.

Directly enter the decimal number between 0 and 3 (default: [3]).

(2)

Execute the program

Execute the program which has been downloaded onto the microcontroller on the target board without connecting to the emulator.

(3)

Select the debug tool

In the active project, select the debug tool which supports hot plug-in connection (E1/ E20).

(4)

Connect the debug tool to CS+ using hot plug-in

Select [Hot Plug-in] from [Debug] menu to initiate the preparation for hot plug-in connection.

(5)

Connect to the target board

Following message will appear once you are ready to start hot plug-in connection. Connect the emulator to the target system and click [OK]. This will start the communication with the debug tool which is selected in the currently active project.

Figure 2.55

Message Indicating that Hot Plug-in Connection Is Ready to Be Started

 

(6)

Hot plug-in connection completed

Once the connection to the debug tool is successfully completed, the Statusbar on the Main window will change as shown below. For details on each item displayed on the statusbar, see the section of the "Main window".

Figure 2.56

Statusbar Indicating Successful Hot plug-in Connection to Debug Tool