This document outlines how to install the Special Edition of Code Warrior, version 5 for the embedded 68HCS12 microcontroller. There are versions of Code Warrior for MS Windows, Mac OS, Solaris, and Linux, but the special edition may be limited in the operating systems it supports. This tutorial is focused at the MS Windows version. The publised literature suggests the following system resources.
The special edition of CodeWarrior for 68HC12(x) is limited in that the C object files it produces must be less than 32kbytes, however but this is not problem for us. The website also claims that the latest of this version is compatible with Windows Vista.
Clicking the link should open a new tab or window for the special editions
of Code Warrior.
CodeWarrior for HCS12(X) Microcontrollers
After taking a moment to puruse this page, click the "Download" link corresponding to the "Special Edition: CodeWarrior for HCS12(X) Microcontrollers"
Save the self installing executable in a conveninent location such as the following. You might have to register to be able to download this file.
C:\download\Freescale\Look about and make a note if there are any patch files. In some cases there are patch files for specific processor versions. The CodeWarrior installer should properly download and handle patch files for you, but in the off chance, it is a good idea to know where to get these files, if you have to. Save any additional files that you download in the same folder as the installer.
For debugging purposes we use a background debug module (BDM) adapter from P&E Microcoputer Systems, Inc. You will want to get the P&E driver. Previously we used version 'A' which is not supported for use with Windows Vista. We are migrating to version 'C' which is supported for use with Vista.
Go to the P&E website, clicking the following should open a new tab or window:
P&E Microcomputer Systems support page:
Click on the "Documentation & Downloads link"
In the "SKU/Part #" field click and find the entry for and select USB-ML-12 and then click Get Downloads.
Click to download the drivers, if you do not have an account then click an above icon to get an account, then come back here. Save the Drivers_vX_nn_install.exe installer for the driver into the folder you created above.
Windows operating systems can be fragile at times, I suggest that you restart your system prior to uninstalling or installing an application. I also suggest that if you do not already have a program to read PDF files, get an application such as Adobe's Acrobat Reader (no-charge from Adobe) to view the .pdf file.
Based on my reading it appears that the P&E BDM driver was only recently updated to support Windows Vista. Lets install the BDM driver first. Double click to run the P&E Driver_install.exe file.
You may have to click "Install" several times to finish the process, then restart your system to finish the install. What you are installing are actually tools that Windows uses to configure and install the drivers as needed.
Next open the folder conatining the installer for CodeWarrior and double click to start execution. The first directory the installer refers to is only temporarily used to extract the install files. Unless you have a reason, accept the default.
In the "Setup Type" window, select "Custom" and in the Custom Setup window navigate the menus:
This involves the driver software needed to access the P&E drivers. Left-click on the P&E icon and select the option, "This feature, and all subfeatures will be installed on local hard drive". This is a good opportunity to remove the remaining debugger drivers that we will not use from the install list.Program Files => debugger => drivers
CodeWarrior is willing to modify the file name extension associations on your computer. If you already have software tools installed, you may not want to have the file extension associations changed. Unselect each category to your liking. I left the CodeWarrior IDE-related files and Embedded Target files selected.
Before proceeding, make sure your Internet connection is in place and as before, unless you have a reason, accept the defaults. The installer is particularly slow, so be prepared to take a break.
Once the install is completed, if the CodeWarrior updater has not already
sucessfully run, then again check to make sure your Internet connection is in place
and run it now and consider taking another break while the computer works.
Programs => Freescale... => CodeWarrior...V5.0 => ...Updater
If you are getting fed up with the updater and want to see an indication of activity, then open the Network Connection Status to see if there is any network traffic, and only then consider stopping the updater and downloading updates yourself from the Downloads page. As with all patches, determine whats already installed and install the patches in proper order.
While there are at least three license options possible with this version of CodeWarrior, the license installed with the special edition should be already setup with reasonable limits. Later on if you receive an executable too large for this evaluation version type error, then go back and fix the installed license as necessary.
Connect the P&E USB multilink cable. In short order your computer should find this new hardware and ask if you want Windows to search for a driver, click YES. If a comment asking if you really want to install the driver, despite not having been LOGO tested, click YES. The adapter has two light emitting diodes (LEDs), the blue color LED indicates that the P&E driver software is installed and that the PC is prepared to communicate with the BDM device.
Reboot your computer. It is a good idea to reboot your computer before you run CodeWarrior the first time. For some odd reason, prior vesions completed a necessary install step when the computer rebooted.
The Adapt9S12C32 and Axiom CME12B32 boards provide a convenient interface to the Freescale MC9S12C32 or 68HC12B32 processor chip. While CodeWarrior includes a wizard that will generate a sample project, it is easier to use our stationery. If you want to use the wizard to make an absolute assembly project, be sure to first unselect the other choices.
Extract the contents of the file to the following subdirectory, which you may
have to create:
C:\Freescale\CW_HCS12X_5.0\(CodeWarrior_Examples)\Stationery\
To create a project using a stationary of your choice, either in the startup window or
after selecting File=>Startup Dialog, click 'Load Example Project' and in the
left pane click the '+' symbol to open your 'Stationery' folder and pick your
AsmAbs_9S12C32 stationary, then assiogn the location and project name, the project
name will have a .mcp extension. Rather than using the project directory, use
a location such as C:\MyName\MyCW\ or Z:\MyCW\ if you are on campus.
Click
For details on how to use the other build targets, in the project manager window double click the readme file included in the stationary.
If in the debugger a Set Communications Speed window should appear, then click the scan button and then okay. Sometimes it helps to disconnect the USB cable, turn off the board power, then reattach the board power and reconnect the USB cable, in that order. Also, sometimes the RAM build target comes up in a weird state. For some odd reason it sometimes helps to click ICD-12 => Flash and then in the pop-up window click Cancel.