Printf, Ptrarray – Freescale Semiconductor Microcontrollers User Manual

Page 811

Advertising
background image

Debugger Engine Commands

Debugger Commands

811

Microcontrollers Debugger Manual

PRINTF

The PRINTF is the standard ANSI C command: Prints formatted output to the standard
output stream.

Usage

PRINTF (“[Text ]%format specification” , value)

Components

Debugger engine.

Example

in>PRINTF("The value of the counter is: %d", counter)

The output is: The value of the counter is: 2

PTRARRAY

The PTRARRAY command allows the user to specify a pointer to display as an array.

Usage

PTRARRY on|off [nb]

Where:

on displays pointers as arrays.

off displays pointers as usual (*pointer).

nb is the number of elements to display in the array when unfolding a pointer

displayed as array.

Components

Data component.

Example:

in>Ptrarray on 5

Display content of pointers as array of five items.

Advertising