background image

 
 
 

 

 

7. C

ODE 

D

EVELOPMENT

 

7.1. HMON 

7.1.1. M

ODE 

S

UPPORT

 

The HMON library is built to support Normal Mode only. 

7.1.2. B

REAKPOINT 

S

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 

FLASH / ROM 

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 

RAM 

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

MON 

C

ODE 

S

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 Description 

Start 

 

Location 

Size 
(H’bytes) 

RESET_VECTOR 

HMON Reset Vector (Vector 0) 
Required for Startup of HMON 

H’ 0000 

TRAP_VECTORS 

Trap Vectors (Vector 8, 9, 10, 11) 
Required by HMON to create Trap Breakpoints in RAM 

H’ 0010 

HW_BREAK_VECTORS HMON 

Break Controller (Vector 12) 

Required by HMON to create Breakpoints in ROM 

H’ 0018 

SCI_VECTOR 

HMON Serial Port Vectors (Vector 23) 
Used by HMON when EDK is configured to connect to the 
default serial port. 

H’ 002E 

PHMON 

HMON Code 

H’ 1000 

2C3D 

CHMON 

HMON Constant Data 

H’ 2C3E 

2D10 

BHMON 

HMON Uninitialised data 

H’ FC80 

1FD 

FDTInit 

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. 

H’ 0400 

F7 

FDTUserModeMicroKernel 

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. 

H’ 0500 

6CC 

CUser_Vectors 

Pointer used by HMON to point to the start of user code. 

H’ 0C00 

4* 

 

* CUserVectors is a long word location with the upper 16 bits set to zero. 

 

  

14 

Summary of Contents for EDK3687

Page 1: ...EDK3687 USER MANUAL FOR H8 3687 ON CHIP FLASH MICROCONTROLLER...

Page 2: ...ermission Trademarks General All brand or product names used in this manual are trademarks or registered trademarks of their respective companies or organisations Specific Microsoft MS and MS DOS are...

Page 3: ...N 6 4 1 USER INTERFACE 6 4 2 SERIAL INTERFACE 6 4 3 SPI EEPROM 7 4 4 I2C EEPROM 8 4 5 LIN INTERFACE 8 4 6 LEDS 8 5 BOARD OPTIONS 9 5 1 JUMPER LINKS 9 5 2 EDK OPTIONS CJ4 10 5 3 OPTION LINK SELECTION 1...

Page 4: ...D 2 3 POWER SUPPLY The EDK hardware requires a power supply of 5V Since total power consumption can vary widely due to external connections port states and memory configuration use a power supply capa...

Page 5: ...RX232 TX232 CTS RTS Microprocessor LIN I2C J1 J2 XTAL OSC Testpoints SPI DEBUG LIN I2C FIGURE 3 1 EDK BOARD LAYOUT 3 1 EDK BLOCK DIAGRAM The diagram shows the connectivity of the components on the ED...

Page 6: ...OR PIN DEFINITIONS The EDK RS232 interface conforms to Data Communication Equipment DCE format allowing the use of 1 1 cables when connected to Data Terminal Equipment DTE such as an IBM PC The cable...

Page 7: ...e rates above this level can only be utilised if the user provides direct logic level communications The user may replace the HC49 U surface mounted AT cut crystal with another of similar type within...

Page 8: ...ccur if these links are fitted inappropriately Please review the specifications for the LIN transceiver and LIN Interface before fitting any of these links 4 6 LEDS The EDK has three red LEDs The func...

Page 9: ...12 with pin 1 marked on the PCB by an arrow pointing to the pin The diagram below shows the numbering of these jumper links and indicates jumpers fitted 1 2 for each three pin jumper 5 1 JUMPER LINKS...

Page 10: ...J 4 C Default 2 3 Serial Receive Source Enable the Flash Programming header data receive Enable the RS232 interface data receive CJ 4 D Default 1 2 BOOT Mode Selection User Mode BOOT Mode TABLE 5 1 BO...

Page 11: ...attached devices 5 3 1 RST RESET FUNCTION The HD643687GFP device includes a built in reset control circuit C C C C C C R R R R R R 2 3 4 8 9 10 Internal X X Default RST External X X X X TABLE 5 2 OPTI...

Page 12: ...ed programming tool for control and programming of Renesas microcontrollers available separately from Renesas This header provides direct access for the FDM to control the EDK microcontroller To utili...

Page 13: ...1 49 25 P70 SCK3_2 P70 48 26 P23 P23 47 27 P22 TXD PTXD 46 28 P21 RXD PRXD 45 29 P20 SCK3 PSCK 44 30 P87 P87 43 31 P86 P86 42 32 P85 P85 41 6 2 HEADER J2 J2 Pin No Function EDK Symbol Device pin Pin N...

Page 14: ...e 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...

Page 15: ...CHMON CUser_Vectors BHMON Stack H 0400 H 04F7 H 0500 H 0BC1 H 1000 H 2D10 H 0C00 H 0C03 H E800 H EE00 H FE80 H 0000 H DFFF H EFFF H F700 H F77F Internal I O REGISTERS H FF7F H FC7F H FC80 RESET Vector...

Page 16: ...gher priority than the serial port If these interrupts are used HMON may not function correctly 7 2 ADDITIONAL INFORMATION For details on how to use HEW with HMON refer to the HEW manual available on...

Reviews: