o Start Freescale Special Edition CodeWarrior for Microcontrollers 10.6 or 11.1 o Build your project as defined under "Follow these directions on how to build a new project using CodeWarrior." o If you have pre-existing projects, make sure that only one project is open. Close each open project by right-clicking on an open project name in the "CodeWarrior Projects" pane and selecting "Close Project." Open the appropriate project by right-clicking on the project name in the "CodeWarrior Projects" pane and selecting "Open Project." o To ensure the project is built with no errors or warnings, select Project -> Clean... In the pop-up window, select "Clean projects selected below" and make sure that only the appropriate project is checked. "Start a build immediately" should be checked and "Build the entire workspace" should be selected. Click on "OK" in the pop-up window. The "Problems" pane should indicate "0 items." o Ensure that the K70 Tower System is attached to your computer. o Select Run -> Debug (or type F11). Do *not* select Run -> Run (or type Ctrl+F11) -- selecting Run will not work correctly. In the pop-up window labeled "Select Configuration," select the configuration that includes "RAM" in the name. Do *not* select the configuration that includes "FLASH" in the name. Then click on "OK." If the pop-up window that says "The selection cannot be launched, and there are no recent launches" appears, select Run -> Debug As -> CodeWarrior. Then, in the "Launch Configuration Selection" window, select the configuration that includes "RAM" in the name. For the built-in OSBDM, select the configuration that includes "PnE U-MultiLink" in the name; for the Segger J-Link EDU or the Segger J-Link EDU mini, select the configuration that includes "Segger J-Link_Trace" in the name. o If you are using either Segger J-Link EDU or Segger J-Link EDU mini, you may see a pop-up window labelled "J-Link V6.16f - Terms of use" (perhaps with a different version number) that requires confirmation that the Segger EDU device may be used for non-commercial (educational) purposes only. Select the "Do not show this message again for today" button, then click on the "Accept" button to confirm that the J-Link EDU device will be used solely for educational purposes. o You may see a pop-up window labelled "Confirm" that says "Old OSJTAG/OSBDM firmware has been detected. The embedded firmware needs to be in bootloader mode to update. Please unplug the USB cable, insert a jumper on the 2-pin bootloader header (connecting JM60 IRQ to ground), and reconnect the USB cable." If you see this message, please follow the directions. First, UNPLUG THE USB CABLE FROM YOUR COMPUTER. A header is a component that has pins that stick up from it to allow connections. This 2-pin bootloader header is labelled J10 and is found on the upper side of the red, uppermost K70 processor PCB (printed circuit board) near the primary elevator (the primary elevator has white connectors -- rather than black connectors) in a cluster with other headers. This cluster of 2-pin headers is comprised of headers labelled J12, J2, J10, J1, J16, and J20. The jumper referred to in the directions is a small black plastic assembly with a metal connector inside. There is a currently-unused jumper installed to one pin of header J2. Remove the jumper from J2 and install it on header J10 so that it slides onto BOTH pins of header J10. After installing the jumper on J10, reconnect the USB connector to your computer. Click OK in the "Confirm" window and wait for the "Updating firmware of P&E Interface..." to complete. You will now see a pop-up window labelled "Confirm" that says "The embedded OSJTAG/OSBDM needs to enter run mode to start the debug/programming session. Please unplug the USB cable, remove the jumper from the 2-pin bootloader header, and reconnect the USB cable." Now, once again UNPLUG THE USB CABLE FROM YOUR COMPUTER. Remove the jumper from J10 and install it on only the upper pin of header J2 -- in the same position where it was originally. After removing the jumper from J10, reconnect the USB connector to your computer. Click OK in the "Confirm" window and continue. CONTINUE FROM HERE IF YOU DO NOT SEE THE MESSAGE "Old OSJTAG/OSBDM firmware has been detected. o CodeWarrior Development Studio now switches to the "Debug Perspective" rather than the "C/C++ Perspective." o After your code is loaded into the the K70 a new tool bar will appear just below the "File," "Edit," "Source," "Refactor," etc. tool bar. Toward the middle of that tool bar is a "Resume" button that looks like a usual "play" button (i.e., a right pointing green triangle) (this button is equivalent to the F8 key and also the same as Run -> Resume). Click on the "Resume" button to run your project. o You can permanently stop a running project by clicking on the "Terminate" button that looks like a usual "stop" button (i.e., a red square) (this button is equivalent to Ctrl+F2 and also the same as Run -> Terminate). o You can temporarily pause a running project by clicking on the "Suspend" button that looks like a usual "pause" button (i.e., two vertical yellow bars) (this button is the same as Run -> Suspend). o Before exiting from the Code Warrior application, any running project should be terminated (or end on its own). o You can switch back to the "C/C++ Perspective" by clicking on "C/C++ Perspective" in the "Open Perspective" pane. o If you built a "Debugger Console" project and used standard I/O function calls in your program, your I/O to stdin, stdout, and stderr will take place in the "Console" pane.