background image

EVB9S12NE64 Demo, Rev. 0.1

4

 

Freescale Semiconductor

 

Introduction and Default Settings

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, copy and open 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 EVB9S12NE64 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.

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, then 
<Del>) and retry.

7.

Assure the RUN/LOAD_SW is set to LOAD, and then press and release the RESET button on the 
EVB 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 EVB 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 and no error messages appear, you are 
ready to run and debug in real time. Move the RUN/LOAD_SW switch to RUN, and click on the 
green arrow (Start/ Continue button) in the Debugger window to begin running/ debugging code. 
The LINK LED should light up.

11.

Conduct another ping test (refer to “

Set the PC's IP address and the Ping Test

”). 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 EVB9S12NE64! 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!

Summary of Contents for EVB9S12NE64

Page 1: ...n the upper left hand corner All other ports are open no jumpers The board comes with the default settings already set You may check the settings or continue Figure 1 Default Settings for EVB9S12NE64 Connect the EVB9S12NE64 to your computer and apply power 1 Connect one end of the Crossover Ethernet cable provided to the J1 Ethernet Connector of the EVB board Connect the other end to the Ethernet ...

Page 2: ...ify that the PC is communicating with the EVB board through the Ethernet Crossover cable provided in the kit but you must first set the PC s IP address to one that is compatible with the board s IP address For this demo you will set the PC s IP address to 192 168 2 1 The board s IP address is currently set at 192 168 2 3 The mask for both should be 255 255 255 0 1 Board s IP address The board s IP...

Page 3: ... be established see Reasons Why the Ping Test might fail Install CodeWarrior Development Studio Version 3 1 for HC S 12 If you do not have Version 3 1 of CodeWarrior for HC S 12 installed on your computer please refer to the provided CodeWarrior Development Studio for Motorola CD for HC S 12 Special Edition Version 3 1 and the included CodeWarrior Quick Start Important You must register and obtain...

Page 4: ...l code change ex type a space then Del and retry 7 Assure the RUN LOAD_SW is set to LOAD and then press and release the RESET button on the EVB 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 EVB board As soon as the debugger opens the code currently in the MC9S12NE64 s Flash memory is erased a...

Page 5: ...lish a connection press the RESET button on the EVB board and retry The COM port on the PC may be in use by another application If so disconnect that application or connection RUN LOAD_SW may not be in the correct position LOAD to Flash memory and RUN to run program Please check your steps Reasons Why the Ping Test might fail Ethernet cable may not be secure IP addresses or masks may not be set co...

Page 6: ...ges Typical parameters which may be provided in Freescale Semiconductor data sheets and or specifications can and do vary in different applications and actual performance may vary over time All operating parameters including Typicals must be validated for each customer application by customer s technical experts Freescale Semiconductor does not convey any license under its patent rights nor the ri...

Reviews: