Renesas H8S2215R Computer Hardware User Manual


 
Chapter 10. Code Development
10.1. Overview
Note: For all code debugging using Renesas software tools, the CPU board must either be connected to a PC serial port via a serial cable
or a PC USB port via an E8. An E8 is supplied with the RSK product.
The HMON embedded monitor code is modified for each specific Renesas microcontroller. HMON enables the High-performance
Embedded Workshop (HEW) development environment to establish a connection to the microcontroller and control code execution.
Breakpoints may be set in memory to halt code execution at a specific point.
Unlike other embedded monitors, HMON is designed to be integrated with the user code. HMON is supplied as a library file and several
configuration files. When debugging is no longer required, removing the monitor files and library from the code will leave the user’s code
operational.
The HMON embedded monitor code must be compiled with user software and downloaded to the CPU board, allowing the users’ code to
be debugged within HEW.
Due to the continuous process of improvements undertaken by Renesas the user is recommended to review the information provided on
the Renesas website at
www.renesas.com to check for the latest updates to the Compiler and Debugger manuals.
10.2. Compiler Restrictions
The compiler supplied with this RSK is fully functional for a period of 60 days from first use. After the first 60 days of use have expired, the
compiler will default to a maximum of 64k code and data. To use the compiler with programs greater than this size you will need to
purchase the full tools from your distributor.
Warning: The protection software for the compiler will detect changes to the system clock. Changes to the system clock back in
time may cause the trial period to expire prematurely.
10.3. Mode Support
The HMON library is built to support 16Mbyte Advanced Mode only, for the H8S family.
10.4. Breakpoint Support
The device does not include a user break controller. No breakpoints can be located in ROM code. However, code located in RAM may
have multiple breakpoints limited only by the size of the On-Chip RAM. To debug with breakpoints in ROM you need to purchase the
E10A-USB on-chip debugger from your local disctributor.
10.5.Code located in RAM
Double clicking in the breakpoint column in the HEW code window sets the breakpoint. Breakpoints will remain unless they are double
clicked to remove them. (See the Tutorial Manual for more information on debugging with the HEW environment.)
10.6. HMON Code Size
HMON is built along with the user’s code. Certain elements of the HMON code must remain at a fixed location in memory. Table 10-1
details the HMON components and their size and location in memory. For more information, refer to the map file when building code.
30