Table 7-3 Memory area reserved for monitor
Device
Address range
Function
V850ES/SG2
(μPD70F3281Y)
ROM: 0x5F800 - 0x5FFFF
RAM: 0xFFFF EFF0 - 0xFFFF EFFF
Reserved for monitor
program
Moreover, the monitor reserves 10 bytes of the global stack area by halting the
user program, caused by a forcible break (debugger stop command) or a software
breakpoint.
Clock operation
After releasing a reset, the monitor program sets the operation clock of the CPU
to the maximum speed of 20 MHz. The monitor program switches also to the
maximum CPU speed of 20 MHz when releasing a forcible break (debugger stop
command) or when the user program execution is stopped caused by a software
breakpoint. After the user program execution is restarted (debugger go
command), the monitor restores the previous CPU operation clock setting.
Note
Do not change the frequency of the external oscillator connected to the X1 and
X2 pins.
The baud rate calculation for UARTD0 is based on a 4 MHz input frequency,
otherwise no communication to the
V850 ZigBee
TM
Gateway Development
Platform
board can be established.
Other limitations
The watchdog timer can not be used. Please be sure to set the option bytes of
the V850ES/SG2 device accordingly to allow the watchdog timer disable.
The forcible break (debugger stop command) can not be used when the global
interrupts were disabled by the user program (DI instruction).
Debug sessions
The debug session is done directly by connecting the
V850 ZigBee
TM
Gateway
Development Platform
board to the host PC via the USB cable. The TK interface
of IAR manages the debug session by using the serial interface that is connected
to the USB connecter of the TK-850/SG2+UZ. When using the TK interface serial
communications via UARTD0 is disabled to prevent a clash with the monitor
program. A pre-processor directive has been employed to ensure that the relevant
application code is disabled during a debug session. Please ensure that the
HARDWARE_NOUART pre-processor option is set in [Project] -> [Options] -> [C
\C++ Compiler] -> [Pre-processor] is set and, if necessary, rebuild the application
prior to starting the debug session.
Chapter 7
IAR Sample Session
44
User's Manual U19026EE3V0UM00