Download Debugger User`s Manual
Transcript
Freescale Semiconductor, Inc. BREAK - Set, Modify, or Clear Breakpoints The optional parameter #bn represents a breakpoint number. Breakpoint numbers do not have to be consecutive, they can be assigned arbitrarily. For example, it may be convenient to allocate breakpoints so that one function is assigned breakpoints 1 to 10, another uses 11 to 20, and so on. If no breakpoint number is assigned, the default will be the next available consecutive number. Freescale Semiconductor, Inc... The parameter swbp_type represents the software breakpoint type and is required. If you type al, the breakpoint will always be acted upon. Breakpoint types other than al are conditional and device specific. See the list of Types of Software Breakpoints for an explanation of each type of breakpoint. The parameter address represents the address where the software breakpoint is set. This parameter is required. For example, to set a breakpoint at address $103 in p memory, type: p:$103 IMPORTANT: This address MUST be the first word of an instruction. Note: ALSO: If you have provided a swbp_type (breakpoint type), the breakpoint can ONLY be set to an address which contains a nop. Setting the breakpoint to an address which contains any other opcode will cause your program to execute incorrectly. The optional parameter t(expression) represents a test of the expression within the parentheses. If the expression is true the breakpoint will cause the action to be performed. If the expression is false, program execution continues. Be aware that a side effect of evaluating an expression (whether it is true or false) is that the program will not be executed in real time. See Using Expressions in Breakpoints for more information. The optional parameter count represents the number of times the Debugger should encounter the breakpoint before performing the action. For example, if you set the count to 3, the breakpoint will be triggered the third time that the breakpoint is encountered. Keep in mind that real time execution will be affected if you set the Count to more than one. The optional parameter action indicates the action to be taken when the breakpoint is triggered. If no action is provided, Halt will be assumed as the default. Possible actions are: Motorola Debugger Command Reference For More Information On This Product, Go to: www.freescale.com 13-11