Debug Commands; Break [Bnumber Baddr [Occcount] ['S'] ['W' Waddr Wcnt]] - Fujitsu F2MC-16L Series User Manual

Hide thumbs Also See for F2MC-16L Series:
Table of Contents

Advertisement

3.6. Debug Commands

3.6.1.
BREAK
Set Breakpoint/Snapshot/Watch-area
If no parameters are specified, the Breakpoint command will display the current breakpoint list.
If a BreakpointNumber and a BreakpointAddress is specified, a breakpoint is set at the
specified program location. The BreakpointNumber (0..E) is maintained as a reference. It will
be displayed when using the DISASSEMBLE command and must also be specified to clear a
specific breakpoint.
When the user program is executed, it will stop when a breakpoint is reached and the
breakpoint information (CPU registers, Breakpoint location) will be displayed.
Specifying an OccurCount
OccurCount-times before the breakpoint is activated.
Additionally, by setting the watch memory area flag ´W´, the breakpoint information can be
extended to add a dump of a specified memory area.
´W´ must be followed by a start address ´wAddr´ and a byte count ´wCnt´.
Specifying a snapshot flag 'S' converts the breakpoint into a 'Snapshot-point'. That is, the
breakpoint information is displayed whenever the snapshot-point is reached, but program
execution continues.
Using the occur counter in this case, program execution will stop when it reaches zero.
>break ff0122↵
>break 1 ff0152 10 s w ff0004 b↵
... The first example sets a simple breakpoint at ff0122. The second one sets a Counter-
Snapshot Watch: Eleven bytes beginning at ff0004h are displayed sixteen times, then the User
program is stopped.
NOTE: - If a previously used BreakpointNumber is specified again, the previous breakpoint is
overwritten.
- Do not specify the same BreakpointAddress more than once !
- The monitor stores its breakpoint information in a Monitor RAM section which is
not initialised (cleared) after a Monitor Reset. A check sum mechanism makes sure
the information is valid. Thus, if an 'out of control' user program has to be stopped
by Reset, the specified breakpoints remain valid unless the user program has
destroyed its own code or the Monitor RAM.
NOTE: - The breakpoints are removed temporary if other monitor commands want to access
the original contents.
See also NOTE of Trace command.
- 34 -
FUJITSU MB90675-Evaluation Board - User Manual
[ BN
BA
UMBER
DDR
value allows the processor to 'run over the breakpoint'
[ O
C
] [' S '] [' W '
CC
OUNT
© FUJITSU Mikroelektronik GmbH 1996
A
C
]]
W
DDR W
NT

Advertisement

Table of Contents
loading

This manual is also suitable for:

Mb90675 series

Table of Contents