Справочник Пользователя для Renesas R0E530640MCU00

Скачать
Страница из 229
R0E530640MCU00 User’s Manual 
5. Debugging Functions 
REJ10J1733-0100  Rev.1.00  Apr. 01, 2008 
Page 209 of 229 
 
 
 
 
5.15 
Using the Start/Stop Function 
 
The emulator executes the specified routine of the user program immediately before starting and immediately after halting 
program execution. This function is used to control the user system in synchronization with execution and halting of the user 
program. 
 
5.15.1  Opening the Start/Stop Function Setting Dialog Box 
The routine executed immediately before starting and immediately after halting the user program execution is specified in the 
[Start/Stop function setting] dialog box. 
To open the Start/Stop function setting dialog box, choose Setup -> Emulator -> Start/Stop function setting… from the menu. 
 
 
Figure 5.152    Start/Stop function setting dialog box 
 
5.15.2  Specifying the Routine to be executed 
It is possible to specify the respective routines immediately before starting and immediately after halting the user program 
execution. 
When The specified routine is executed immediately before execution of the user’s program check box is selected, the routine 
specified in the Starting address combo box, which is below this check box, is executed immediately before starting user 
program execution. 
When The specified routine is executed immediately after the stop of the user’s program check box is selected, the routine 
specified in Starting address combo box, which is below this check box, is executed immediately after halting user program 
execution. 
 
5.15.3  Limitations of the Start/Stop Function 
The Start/Stop function is subject to the following limitations. 
- While the Start/Stop function is in use, do not use the debug functions listed below. 
(a) Memory setting and download into the program area of a specified routine 
(b) Breakpoint setting in the program area of a specified routine 
- While a specified routine is executed, the 4-byte value pointed to by the interrupt stack is used under control on the emulator 
side. 
- The general-purpose registers and flags used in a specified routine are subject to the following limitations.