AN2616 Freescale Semiconductor / Motorola, AN2616 Datasheet - Page 21

no-image

AN2616

Manufacturer Part Number
AN2616
Description
Getting Started with HCS08 and CodeWarrior Using C
Manufacturer
Freescale Semiconductor / Motorola
Datasheet
MOTOROLA
NOTE:
Apart from a few exceptions, debugging will be the same whether the monitor
or BDM is used. The notable difference is that, when debugging using the
HCS08 serial monitor, loss of communication between the debugger and the
device is possible due to the fact that the monitor is code within the FLASH,
interrupt driven and susceptible to errors in the user code, for example,
disabling interrupts or user code runaway.
The monitor is in protected FLASH but, if it is erased, it will have to be
reprogrammed. Refer to Frequently Asked Questions for more information on
reprogramming the monitor.
Buttons of interest from the debugger window are:
At this point, running the application will appear to have no effect, as there is
no code that actually does anything. The following sections add code that can
be run, and that performs real functions.
For a detailed discussion of the HCS08 on-chip debug features using the
CodeWarrior interface, refer to application note, “AN2596 — Using the HCS08
family On-Chip Debug System.”
Getting Started with HCS08 and CodeWarrior Using C
Freescale Semiconductor, Inc.
For More Information On This Product,
RUN
STEP INTO
STEP OVER
STEP OUT
Assembly Step
HALT
RESET
Go to: www.freescale.com
Run code from current pc location until either
halted or reset
Execute one C statement; enter into functions
Execute remaining C statements in function
Stop the executing program
Hardware reset
Execute one C statement or complete function
Step one assembly language instruction
Developing an Application with CodeWarrior
AN2616
21

Related parts for AN2616