|
|
|
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)
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: |
|