AN2616 Freescale Semiconductor / Motorola, AN2616 Datasheet - Page 50

no-image

AN2616

Manufacturer Part Number
AN2616
Description
Getting Started with HCS08 and CodeWarrior Using C
Manufacturer
Freescale Semiconductor / Motorola
Datasheet
AN2616
Debugging does not
seem to use the
hardware/select in-
circuit debug
How can I see the
assembler code
generated for C
statements?
50
NOTE:
The most likely reason for this is that the debugger is using the simulator or the
wrong hardware. A may be caused by the debugger not finding a BDM pod
when it started and it defaulted to the software simulator.
Ensure the correct target is set.
To set in-circuit debug/programming whilst in “Full Chip Simulation” mode,
select “In-Circuit Debug/Programming” via the PEDebug pull-down menu:
The debugger will revert to the stage after it was invoked from the project
manager and should erase and reprogram the device.
When reviewing C code in order to optimize, it is helpful to see exactly what
code is generated by the compiler for a C statement. The easiest way to do this
is to highlight the relevant C code:
Next, drag the C code to the assembler window (hold the mouse down over the
selected text, move the cursor over the assembler window, and release) and
the assembly language statements for the C code will be highlighted:
Due to the optimization performed by the compiler, some code may not be
highlighted.
Getting Started with HCS08 and CodeWarrior Using C
Freescale Semiconductor, Inc.
For More Information On This Product,
Go to: www.freescale.com
MOTOROLA

Related parts for AN2616