Freescale Semiconductor Microcontrollers User Manual

Page 801

Advertising
background image

Debugger Engine Commands

Debugger Commands

801

Microcontrollers Debugger Manual

i 0x3 (3)

!ENDFOR

When commands executed from a command file are logged, all executed
commands that are in the WHILE loop are logged the number of times they have
been executed. That is, a command file executed with the CF or CALL command
without the NL option and with the CMDFILE flag of the LOG command set to
TRUE.

Example 3:

When executing the following file:

define i = 1

WHILE i < 3

define i = i + 1

ls

ENDWHILE

The following log file is generated:

!define i = 1

!WHILE i < 3

! define i = i + 1

! ls

i 0x2 (2)

!ENDWHILE

! define i = i + 1

! ls

i 0x3 (3)

!ENDWHILE

When commands executed from a command file are logged, all executed
commands that are in the REPEAT loop are logged the number of times they have
been executed. That is, a command file executed with the CF or CALL command
without the NL option and with the CMDFILE flag of the LOG command set to
TRUE.

Advertising