SetHardBreakpoint Method
UP ]

 

Description

This method is used to set a hardware breakpoint at a specified address. The function of a breakpoint is to halt user program execution when the program reaches the breakpoint address. When a breakpoint address is encountered, the CPU automatically stop the running user code and place itself in active background debug mode.

Syntax

HCS121.SetHardBreakpoint (Address)

Part Type Description
Address long Breakpoint address. It could be a 16 bit address or a linear address.

Remarks

Address can be a linear address instead of a 16 bit address. This is useful in cases when the target’s flash memory space is larger than 64k bytes. In order to get the linear address you must apply the following formula:

Address = PPageNum * $4000 + PPageWinAddr % $4000;

Where PPageNum is the page number and PPageWinAddr is the address belonging to page window interval [$8000-$BFFF]. A maximum of 2 breakpoints may be set at one time, this is because of the limited target CPU’s hardware breakpoint capability.

See also:

RmHardBreakpoints

GetHardBreakpointAddr

 

If you have a question or suggestion please contact me. Updated: 03.27.2003
Copyright (c) 2003-2004 J.Gorgas. All rights reserved. All trademarks mentioned are the property of their respective owners.