02.08.2013 Views

S12(X) Debugger Manual - Freescale Semiconductor

S12(X) Debugger Manual - Freescale Semiconductor

S12(X) Debugger Manual - Freescale Semiconductor

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Table of Contents<br />

Starting the <strong>Debugger</strong> . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .208<br />

Starting with WinEdit . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .208<br />

Starting from within the IDE . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .209<br />

<strong>Debugger</strong> Command Line Start. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .211<br />

Switching Connections . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .212<br />

Loading the Full Chip Simulation Connection . . . . . . . . . . . . . . . . . . . . . .212<br />

Loading the P&E Multilink/Cyclone Pro Connection. . . . . . . . . . . . . . . . .214<br />

Switching to SofTec HC<strong>S12</strong> . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .218<br />

Switching to HC<strong>S12</strong> Serial Monitor Connection . . . . . . . . . . . . . . . . . . . .219<br />

Using the Stationery Wizard to Create a Project. . . . . . . . . . . . . . . . . . . . . . . .221<br />

CodeWarrior IDE Integration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .232<br />

<strong>Debugger</strong> Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .232<br />

Automating <strong>Debugger</strong> Startup. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .233<br />

Loading an Application. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .234<br />

Starting an Application . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .235<br />

Stopping an Application . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .235<br />

Stepping in the Application. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .235<br />

On Source Level . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .236<br />

Step on Assembly Level . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .237<br />

Working on Variables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .238<br />

Display Local Variable from a Function . . . . . . . . . . . . . . . . . . . . . . . . . . .238<br />

Display Global Variable from a Module . . . . . . . . . . . . . . . . . . . . . . . . . . .238<br />

Change Format for Variable Value Display. . . . . . . . . . . . . . . . . . . . . . . . .239<br />

Modify a Variable Value . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .240<br />

Retrieve the Variable Allocation Address . . . . . . . . . . . . . . . . . . . . . . . . . .240<br />

Inspect Memory Starting at a Variable Location Address. . . . . . . . . . . . . .241<br />

Load an Address Register with the Variable Address . . . . . . . . . . . . . . . . .241<br />

Working on the Register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .241<br />

Change Format of Register Display. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .241<br />

Modify a Register Content. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .242<br />

Start Memory Dump at Selected Register Address . . . . . . . . . . . . . . . . . . .243<br />

Modify Content of Memory Address . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .243<br />

Consulting Assembler Instructions Generated by a Source Statement . . . . . . .244<br />

Viewing Code . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .244<br />

Communicating with the Application . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .245<br />

6 <strong>S12</strong>(X) <strong>Debugger</strong> <strong>Manual</strong>

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!