NXP Semiconductors Freescale Semiconductor DEMO9S12NE64 Quick Start Manual Download Page 4

DEMO9S12NE64 Demo, Rev. 0.1

4

 

Freescale Semiconductor

 

Introduction

Use the Serial Monitor to Program the MC9S12NE64 Connector Game 

The Serial Monitor is a program in MCU memory used to program the chip using only a serial cable. Its 
source file is included on the provided MC9S12NE64 Resource CD as zip file, HCS12SerialMon2r1.zip. 
After installing CodeWarrior v3.1 for HC(S)12, follow the procedure below to load The Connector software 
into the DEMO board using the Serial Monitor. 

Note: 

If you later need to re-program the Serial Monitor, 

you will need a BDM interface cable to program the Flash on the MCU. The BDM interface cable is not 
provided in this kit.

1.

In the MC9S12NE64 Resource CD, open and save the “Connector_App.zip” file to your PC, and 
extract the files into a working folder. 

Note:

 Be sure to extract, and 

not just copy, the files.

2.

If you have not already done so, do step 2 of “

Connect the DEMO9S12NE64 to Your Computer 

and Apply Power

” (connect serial cable). If you are using a different PC COM port, you will need 

to adjust the settings within the CodeWarrior IDE. Default COM port in CodeWarrior is set to 
COM1. 

3.

In the working folder, double click on the “Connector_App.mcp”

 

project file. The CodeWarrior IDE 

will launch. 

4.

Open the main source file, “Main.c,” by double clicking it in the list of Files on the left side.

5.

Click on “Make” under Project in the menu bar or hit “F7.”

6.

This saves, compiles, etc. A list of errors and warnings should appear. There should be no errors. 

A trick:

 If the errors window does not appear, make a small code change (ex. type a space and 

<Bksp>) and retry.

7.

Make sure the SW3 switch is set to position 0. Then press and release the RESET button on the 
DEMO board.

8.

Click on “Debug” under Project in the menu bar or hit “F5.” The True-Time Simulator & Real-Time 
Debugger should initiate serial communications with the DEMO board. As soon as the debugger 
opens, the code currently in the MC9S12NE64’s Flash memory is erased and the newly compiled 
code is programmed in. The serial monitor code is not erased.

9.

If the debugger does not open, refer to “

Reasons Why the Debugger Won’t Open

” of this guide.

10.

Once the “Connector” software has been programmed to the MCU and no error messages appear, 
you are ready to run and debug in real time. Move the SW3 switch to position 1, and click on the 
green arrow (Start/ Continue button) in the Debugger window to begin running/debugging the code.

11.

Conduct another ping test (refer to step 

3

 of “

Set the PC’s IP address and the Ping Test

” for details). 

The board’s IP address in the “Connector” demo game is set to 192.168.2.3 and the mask is 
255.255.255.0.

The serial monitor can be used for much more than just programming new code. Many debug operations 
(memory modify, breakpoints, real-time bug traces, etc.) can also be run over the serial cable while in this 
mode. Refer to application note AN2548 for more information on the serial monitor.

Running the MC9S12NE64 Demo Game: “The Connector”

This completes the quick start for your DEMO9S12NE64! Now that you have compiled and loaded the 
“Connector” game into the Flash memory of the MC9S12NE64 using the Serial Monitor, you are ready to 
play the game. The switches and analog input serve as controls. Click on “Connector.exe” on the 
MC9S12NE64 Resource CD, and enjoy! 

Reviews: