User`s manual
SuperH Family E10A-USB Emulator Section 5 Debugging
R20UT0870EJ1000 Rev. 10.00 Page 181 of 292
Aug 10, 2012
The [Start/Stop Function Setting] dialog box contains the following options.
[Run the specified routine just before the user program execution is started.] checkbox:
Select this box if you wish to run a user routine just before the user program execution starts.
[Start address]: Specify an address where a routine will start to run just before the user
program execution starts. You can also specify a label. Do not specify
an odd-numbered address.
[Run the specified routine just after the user program execution is stopped.] checkbox:
Select this box if you wish to run a user routine just after the user program execution stops.
[Start address]: Specify an address where a routine will start to run just after the user
program execution stops. You can also specify a label. Do not specify
an odd-numbered address.
Notes: 1. The start/stop function is not supported for all products. For details on the
specifications of each product, refer to the online help.
2. For details, refer to the START_FUNCTION_BEFORE and
STOP_FUNCTION_AFTER command pages in the online help information.
3. The start/stop function is subject to the following limitations.
An RTS instruction must be written at the end of the user routine.
The user routine must end.
Ensure that no break occurs within the user routine.
No interrupts should be accepted in the user routine.
The user routine to run before the user program execution starts must end within
2 ms.
The user routine to run after the user program execution stops must end within
30 s.
User stack should be used by the user routine to run after user program
execution.
If the user routine is to use a general-purpose register, saving the contents of the
register, making the initial setting, and restoring the contents should all be done
within the routine.
If values are set via the [Registers] window of the HEW just before user program
execution starts, these values will not be reflected to the user routine.










