User`s manual
SuperH Family E10A-USB Emulator Section 6 Tutorial
R20UT0870EJ1000 Rev. 10.00 Page 244 of 292
Aug 10, 2012
Set the same program counter and stack pointer values (PC = H’00000800 and R15 =
H’00010000) as were set in section 6.8, Setting Registers (again, use the [Register] window).
Click the [Go] button.
When using the MCU with flash memory, specify the end address of the internal RAM for the
stack pointer (SP). The internal RAM area differs depending on the MCU. Refer to the
hardware manual of the MCU used.
If program execution is failed, reset the device and execute again the procedures above.
After the break in program execution, select [Stack Trace] from the [Code] submenu of the
[View] menu to open the [Stack Trace] window.
Figure 6.53 [Stack Trace] Window
Figure 6.53 shows that the position of the program counter is currently at the selected line of the
sort() function, and that the sort() function is called from the tutorial() function.
To remove the PC breakpoint, double-click the [S/W breakpoint] column in the sort function
again.
Note: For details on this function, refer to the online help.










