
EVB9S08DZ60 User's Manual
Page 17
6 Application Tutorial
6.1 Overview
This section will provide a step-by-step guide on how to launch your first project and get
started with the CodeWarrior user interface.
6.2 Step-by-Step Tutorial
The sample application is the same as the one described in the
“Standalone Mode”
section
above.
1.
Set up the board so that it works in host mode (see “Host Mode” above).
2.
Ensure that the Evaluation Board is connected to the PC (via the USB cable) and that
the board is powered on.
3.
Start CodeWarrior by selecting it in the Windows Start menu.
4.
From the CodeWarrior main menu, choose
“File > Open”
and choose the
“\Program
Files\Freescale\CodeWarrior for HC08 V5.1\(CodeWarrior
Examples)\HCS08\Evaluation Board
Examples\EVB9S08DZ60\C\Demo\Demo.mcp”
.
5. Click
“Open”
. The
Project
window will open.
6.
The code of this example is contained in the
“main.c”
file. Double click on it to open.
7.
From the main menu, choose
“Project > Debug”
. This will compile the source code,
generate an executable file and download it to the evaluation board.
8.
A new debugger environment will open. From the main menu, choose
“Run >
Start/Continue”
. The program will be executed in real-time.
9.
From the main menu, choose
“Run > Halt”
. The program execution will stop. The next
instruction to be executed is highlighted in the
Source
window.
10.
From the main menu, choose
“Run > Single Step”
. The instruction highlighted in the
Source
window will be executed, and the program execution will be stopped immediately
after.
11.
From the main menu, choose
“Run > Start/Continue”
. The application will restart from
where it was previously stopped.
Congratulations! You have successfully completed this tutorial! You can continue to
experiment with the CodeWarrior user interface and discover by yourself its potentialities. For
an in-depth guide of all of the user interface features, select
“Help > CodeWarrior Help”
from
CodeWarrior Development Studio’s main menu.