Code Development; Hmon - Renesas EDK3687 User Manual

Evaluation development kit
Table of Contents

Advertisement

7.
C
D
ODE
EVELOPMENT

7.1. HMON

7.1.1. M
S
ODE
UPPORT
The HMON library is built to support Normal Mode only.
7.1.2. B
S
REAKPOINT
UPPORT
The monitor utilises the Address Break Controller for code located in ROM, allowing a single breakpoint to be set in the code.
Code located in RAM may have multiple breakpoints limited only by the size of the On-Chip RAM.
Due to a limitation of the internal address break controller, a breakpoint set in ROM will execute the instruction at the
breakpoint and stop on the subsequent op-code.
7.1.2.1.C
ODE LOCATED IN
Double clicking in the breakpoint column in the code sets the breakpoint. Adding a further breakpoint in the code removes
the previous one. A warning message will be displayed in the message window when this occurs.
7.1.2.2.C
ODE LOCATED IN
Double clicking in the breakpoint column in the code sets the breakpoint. Breakpoints will remain unless they are double
clicked to remove them.
7.1.3. H
C
S
MON
ODE
IZE
HMON is built along with the debug code. Certain elements of the HMON code must remain at a fixed location in memory.
The following table details the HMON components and their size and location in memory. For more information, refer to the
map file when building code.
Section
RESET_VECTOR
TRAP_VECTORS
HW_BREAK_VECTORS
SCI_VECTOR
PHMON
CHMON
BHMON
FDTInit
FDTUserModeMicroKernel
CUser_Vectors
* CUserVectors is a long word location with the upper 16 bits set to zero.
FLASH / ROM
RAM
Description
HMON Reset Vector (Vector 0)
Required for Startup of HMON
Trap Vectors (Vector 8, 9, 10, 11)
Required by HMON to create Trap Breakpoints in RAM
HMON Break Controller (Vector 12)
Required by HMON to create Breakpoints in ROM
HMON Serial Port Vectors (Vector 23)
Used by HMON when EDK is configured to connect to the
default serial port.
HMON Code
HMON Constant Data
HMON Uninitialised data
FDT User Mode Kernel.
This is at a fixed location and must not be moved. Should the
kernel need to be moved it must be re-compiled.
FDT User Mode Kernel.
This is at a fixed location and must not be moved. Should the
kernel need to be moved it must be re-compiled.
Pointer used by HMON to point to the start of user code.
Start Location
Size
(H'bytes)
H' 0000
2
H' 0010
8
H' 0018
2
H' 002E
2
H' 1000
2C3D
H' 2C3E
2D10
H' FC80
1FD
H' 0400
F7
H' 0500
6CC
H' 0C00
4*
14

Advertisement

Table of Contents
loading

Table of Contents