767
User’s Manual U16702EE3V2UD00
Chapter 22
On-Chip Debug Function
The V850E/RS1 Series includes an on-chip debug unit. By connecting an N-Wire emulator, on-chip
debugging can be executed with the V850E/RS1 microcontroller alone.
Caution:
The following debug functions are supported by the V850E/RS1 series, but whether
they are usable or not differs depending on the debugger. For details of the
debugging function, refer to the user’s manual of the debugger to be used.
22.1 Functional
Outline
22.1.1 Type of on-chip debug unit
The on-chip debug unit of the V850E/RS1 series is RCU1 (Run Control Unit 1).
22.1.2 Debug
functions
The on-chip debug function supports the following operations implemented in hardware or with support
from the integrated debugger. For details on these functions, please refer to the user’s manual of the
ID850-NW debugger.
(1)
Debug interface
Communication with the host machine is established by using the DRST, DCK, DMS, DDI, and
DDO signals via an N-Wire emulator. The communication specifications of N-Wire are used for the
interface.
(2)
On-chip debug
On-chip debugging can be executed by preparing wiring and a connector for on-chip debugging on
the target system. An N-Wire emulator is used as the connector that connects the emulator.
Clear the OCDM0 bit of the OCDM register (special register) to 0 when you use on-chip debug
mode. Please refer to Table 4-8, “Port Type,” on page 170 for details.
(3)
Forced reset function
The V850E/RS1 can be forcibly reset.
(4)
Break reset function
The CPU can be started in the debug mode immediately after reset of the CPU is released.
(5)
Forced break function
Execution of the user program can be forcibly aborted (however, the illegal operation code
exception handler (first address: 00000060H) cannot be used).
(6)
Hardware break function
Two breakpoints for instruction and access can be used. The instruction breakpoint can abort
program execution at any address. The access breakpoint can abort program execution by data
access to any address.
electronic components distributor