NOTE: This is NOT supported by NXP, but this article is how to make it WORK anyway . Do not contact Freescale support when you modify your installation files. Ask your questions here on the forum about this process. Also SofTec, TBDML, Abatron, etc... and the other older connection options will still NOT work because the makers of those devices have not wrote modern OS drivers. Serial debugger is also not currently available with my workaround. Your options are P&E tools and USBDM for programmer/debuggers.
If you have not already here is a link to the special edition of 5.2
https://cache.nxp.com/lgfiles/devsuites/HC12/CWS12v5.2_Win_b151201_se.exe
See attachment "cw 5 2 missing pieces v3.zip" at the bottom
(see hashes at the bottom; there is no .exe in zip, download from nxp community forum)
Note: My zip includes some updated files. See the explanation in this video link
Confirm CodeWarrior is closed and not running
You need administrator rights or login info to do these steps
Instructions for Windows Vista, Windows 7, Windows 8 / 8.1, Windows 10:
Extract the attached zip (see bottom of post), so that you have three folders.
Select and Drag the 3 folders (Bin,Lib,Prog) into the CWS12v5.2 folder probably in C:\Program Files...
It will ask merge the files from the folders (overwriting some – answer yes)
See the video to make sure you do this right (not for XP): Video Instructions (YouTube)
Instructions for Windows XP:
Note: In Windows XP the default behavior is to overwrite and delete folders NOT merge them, so we use the 7-zip method which actually works for all.
Install and Open 7zip (as a Admin user)
Navigate to and open attached zip file within the 7zip main interface (you should see the Bin,Lib,Prog folders)
Click Extract and select your main CW5.2 installation folder eg C:\Program Files\CWS12v5.2 as the "Copy to:"
7zip will prompt you to overwrite a few files (answer, yes)
See attachment (at the bottom of the post) "PE config older chips.zip"
Extract this zip and replace these four files in your C:\Program Files\CWS12v5.2\ProcessorExpert\Config folder overwriting the files.
Install the latest P&E Hardware Interface Drivers, Version 12 (Win XP/Vista/7/8/10)
If you have issues read this FAQ
I am personally use a Wytec USBDM with the latest software and it works great . Consider it because they are a faction of the price of other programmers and are open source hardware and software. They are also available quite cheap on eBay, BUT do not use the software that comes with them, throw the CD away, and download the official latest software below.
https://sourceforge.net/projects/usbdm/files/ to get
USBDM_4_12_1_230_Win_i.msi or newer
And ONE of these:
USBDM_Drivers_4_12_3_Win_x64.msi or newer (for 64-bit 7 and 10)
or USBDM_Drivers_4_12_3_Win_x32.msi or newer (for 32-bit 7 and 10)
or USBDM_Drivers_4_12_3_WinXP_x32.msi or newer (for XP)
Don't forget to update your USBDM firmware.
Here is a video for CW5.1, but the process is similar CodeWarrior HCS12(X) Install and Update USBDM - YouTube
| Supported Derivatives CodeWarrior S12(X) 5.1 (with all service packs) and CW 5.2 after following STEPs above |
| Supported Derivatives CodeWarrior S12(X) 5.2 (default installation) |
| HC12 |
|
|
| Automotive Family |
|
|
| MC68HC812A4 |
|
|
| MC68HC912B32 |
|
|
| MC68HC912D60 |
|
|
| MC68HC912D60A |
|
|
| MC68HC912DG128 |
|
|
| MC68HC912DG128A |
|
|
| MC68HC912DT128 |
|
|
| MC68HC912DT128A |
|
|
| HCS12 9S12 S12 MC9S12 |
| HCS12 |
| HCS12A MC9S12A S12A Family |
|
|
| MC9S12A128B HCS12A128B S12A128B |
|
|
| MC9S12A256B HCS12A256B S12A256B |
|
|
| MC9S12A32 HCS12A32 S12A32 |
|
|
| MC9S12A64 HCS12A64 S12A64 |
|
|
| MC9S12A512 HCS12A512 S12A512 |
|
|
| HCS12B MC9S12B S12B Family |
|
|
| MC9S12B64 HCS12B64 S12B64 |
|
|
| MC9S12B128 HCS12B128 S12B128 |
|
|
| HCS12C MC9S12C S12C 9S12C Family |
| HCS12C Family |
| MC9S12C32 HCS12C32 S12C32 |
| MC9S12C32 |
| MC9S12C64 HCS12C64 S12C64 |
| MC9S12C64 |
| MC9S12C96 HCS12C96 S12C96 |
| MC9S12C96 |
| MC9S12C128 HCS12C128 S12C128 |
| MC9S12C128 |
| HCS12D MC9S12D S12D 9S12D Family |
|
|
| MC9S12D32 HCS12D32 S12D32 |
|
|
| MC9S12D64 HCS12D64 S12D64 |
|
|
| MC9S12DB128A HCS12DB128A S12DB128A |
|
|
| MC9S12DB128B HCS12DB128B S12DB128B |
|
|
| MC9S12DG128B HCS12DG128B S12DG128B |
|
|
| MC9S12DG256B HCS12DG256B S12DG256B |
|
|
| MC9S12DJ128B HCS12DJ128B S12DJ128B |
|
|
| MC9S12DJ256B HCS12DJ256B S12DJ256B |
|
|
| MC9S12DJ64 HCS12DJ64 S12DJ64 |
|
|
| MC9S12DP256B HCS12DP256B S12DP256B |
|
|
| MC9S12DP512 HCS12DP512 S12DP512 |
|
|
| MC9S12DT128B HCS12DT128B S12DT128B |
|
|
| MC9S12DT256 HCS12DT256 S12DT256 |
|
|
| MC9S12DT256B HCS12DT256B S12DT256B |
|
|
| HCS12E MC9S12E S12E 9S12E Family |
|
|
| MC9S12E32 HCS12E32 S12E32 |
|
|
| MC9S12E64 HCS12E64 S12E64 |
|
|
| MC9S12E128 HCS12E128 S12E128 |
|
|
| MC9S12E256 HCS12E256 S12E256 |
|
|
| HCS12G Family |
| HCS12G Family |
| MC9-S12G48 |
|
|
| MC9-S12G64 |
|
|
| MC9-S12G96 |
| MC9S12G96 |
| MC9-S12G128 |
| MC9S12G128 |
| MC9-S12G192 |
|
|
| MC9-S12G240 |
|
|
| MC9-S12GA48 |
|
|
| MC9-S12GA64 |
|
|
| MC9-S12GA96 |
|
|
| MC9-S12GA128 |
|
|
| MC9-S12GA192 |
|
|
| MC9-S12GA240 |
|
|
| MC9-S12GN16 |
| MC9S12GN16 |
| MC9-S12GN32 |
| MC9S12GN32 |
| MC9-S12GN48 |
|
|
| MC9-S12GNA16 |
|
|
| MC9-S12GNA32 |
|
|
| HCS12GC Family |
| HCS12GC Family |
| MC9-S12GC16 |
| MC9S12GC16 |
| MC9-S12GC32 |
| MC9S12GC32 |
| MC9-S12GC64 |
| MC9S12GC64 |
| MC9-S12GC128 |
| MC9S12GC128 |
| HCS12H Family |
|
|
| MC9-S12H128 |
|
|
| MC9-S12H256 |
|
|
| MC9-S12HN64 |
|
|
| MC9-S12HZ64 |
|
|
| MC9-S12HZ128 |
|
|
| MC9-S12HZ256 |
|
|
| HCS12HA Family |
|
|
| MC9-S12HA32 |
|
|
| MC9-S12HA48 |
|
|
| MC9-S12HA64 |
|
|
| HCS12HY Family |
|
|
| MC9-S12HY32 |
|
|
| MC9-S12HY48 |
|
|
| MC9-S12HY64 |
|
|
| HCS12I Family |
|
|
| MC9-S12I32 |
|
|
| MC9-S12I128 |
|
|
| HCS12K Family |
|
|
| MC9-S12KC64 |
|
|
| MC9-S12KC128 |
|
|
| MC9-S12KG64 |
|
|
| MC9-S12KG128 |
|
|
| MC9-S12KG256 |
|
|
| MC9-S12KL64 |
|
|
| MC9-S12KL128 |
|
|
| MC9-S12KT128 |
|
|
| MC9-S12KT256 |
|
|
| HCS12N Family |
|
|
| MC9-S12NE64 |
|
|
| HCS12P Family |
| HCS12P Family |
| MC9-S12P32 |
| MC9S12P32 |
| MC9-S12P64 |
| MC9S12P64 |
| MC9-S12P96 |
| MC9S12P96 |
| MC9-S12P128 |
| MC9S12P128 |
| HCS12Q Family |
|
|
| MC9-S12Q32 |
|
|
| MC9-S12Q64 |
|
|
| MC9-S12Q96 |
|
|
| MC9-S12Q128 |
|
|
| HCS12T Family |
|
|
| MC9-S12T64 |
|
|
| HCS12U Family |
|
|
| MC9-S12UF32 |
|
|
| HCS12VR Family |
| HCS12VR Family |
| MC9-S12VR16 |
| MC9S12VR16 |
| MC9-S12VR32 |
| MC9S12VR32 |
| MC9-S12VR48 |
| MC9S12VR48 |
| MC9-S12VR64 |
| MC9S12VR64 |
| HCS12X |
| HCS12X |
| HCS12XA Family |
|
|
| MC9-S12XA256 |
|
|
| MC9-S12XA512 |
|
|
| HCS12XB Family |
|
|
| MC9-S12XB128 |
|
|
| MC9-S12XB256 |
|
|
| HCS12XD Family |
|
|
| MC9-S12XD64 |
|
|
| MC9-S12XD128 |
|
|
| MC9-S12XD256 |
|
|
| MC9-S12XDG128 |
|
|
| MC9-S12XDP512 |
|
|
| MC9-S12XDQ256 |
|
|
| MC9-S12XDT256 |
|
|
| MC9-S12XDT384 |
|
|
| MC9-S12XDT512 |
|
|
| HCS12XE Family |
| HCS12XE Family |
| MC9-S12XEG128 |
|
|
| MC9-S12XEP100 |
| MC9S12XEP100 |
| MC9-S12XEP768 |
| MC9S12XEP768 |
| MC9-S12XEQ384 |
| MC9S12XEQ384 |
| MC9-S12XEQ512 |
| MC9S12XEQ512 |
| MC9-S12XET256 |
| MC9S12XET256 |
| HCS12XF Family |
|
|
| MC9-S12XF128 |
|
|
| MC9-S12XF256 |
|
|
| MC9-S12XF384 |
|
|
| MC9-S12XF512 |
|
|
| MC9-S12XFR128 |
|
|
| HCS12XHY Family |
|
|
| MC9-S12XHY128 |
|
|
| MC9-S12XHY256 |
|
|
| HCS12XHZ Family |
|
|
| MC9-S12XHZ256 |
|
|
| MC9-S12XHZ384 |
|
|
| MC9-S12XHZ512 |
|
|
| HCS12XS Family |
| HCS12XS Family |
| MC9-S12XS64 |
| MC9S12XS64 |
| MC9-S12XS128 |
| MC9S12XS128 |
| MC9-S12XS256 |
| MC9S12XS256 |
| MM912 |
|
|
| MM912x634 |
|
|
| MM912F634xx1xx |
|
|
| MM912F634xx2xx |
|
|
| MM912G634xx1xx |
|
|
| MM912G634xx2xx |
|
|
| MM912H634 |
|
|
| MM912x637 |
|
|
| MM912I637 |
|
|
| MM912J637 |
|
|
MD5 (cw-5.2-missing-peices-v3.zip) = 7a347a5b39a68da84e4a2870a4a6b55b
MD5 (PE-config-older-chips-v2.zip) = defbfba607f389a7191a63d8be513459
See Part D of the instructions.
What you need to do this written there.
Hi Mr Rodney,
Thank you for the post. Just wanted to check if this version of Code Warrior 5.2 has any restriction of code size (32KB) or something ?
Regards,
Parvathi
Yes, by default you get the special edition unless you have a license.
Thank you very much for this guide, but I did run into one issue.
The folders within the "cw-5.2-missing-peices-v1.zip" file are named "Bin", "Lib", and "Proj". While the Code Warrior 5.2 folders are "Bin", "lib", and "Prog". So if you just drag and drop the folders like you said they don't all go in the proper folder. I had to manually move the contents of each folder into their "proper" ones to get it to work properly.
This is excellent, thank you very much! You have picked up where NXP has left us stranded. How do they expect users to maintain old devices?
I'm running Windows 10, CW 5.2 (I think? IDE says 5.9.0 but Installed Products says "development studio 5.2"), and I'm using a new P&E Multilink Universal BDM interface. I've followed the directions here and got everything going for my MC9S12DG256, ported my source files, built a new project, and can run the CW (HiWare) debugger. Mostly...
I get erratic results with the debugger. Sometimes unsecure and/or breakpoints work, sometimes not. Downloading code is almost always successful. The debugger HC12MultilinkCyclonePro / Select Derivative menu does not show the 9S12DG256, not even close, so I'm thinking I have the wrong 'derivative' selected here.
Does anyone know what I should select for this? There are three "unknown" derivative options: $2EA, $3D7, and $3D9, and I've tried them all. I can't find where these are defined anywhere, or what the 'derivative' number of my device really is.
I would try a USBDM from eBay. See if the results are any different.
Can you update the Processor Expert of CW5.2 for HCS12 ? I can't find MC9S12A128 (S12A series) in Processor Expert of CW5.2 . I have updated the CW5.2 for HCS12 as above method.
In my original post, I added a zip file called "PE config older chips.zip"
Extract this zip and replace these four files in your CW5.2/ProcessorExpert/Config folder overwriting the files.
Hey, Followed all the instruction but when I want to use the serial monitor for a connection for class but it is invisible with a few other options. Is there a method that allows them to show. thanks man.
The serial monitor is not supported with 5.2.
In this case, you have to use 5.1.
https://cache.nxp.com/lgfiles/devsuites/HC12/CW_HC12_v5.1_SPECIAL.exe
List of updates for 5.1 (not needed for 5.2!)
CodeWarrior for HCS12 v5.1 Compiler Update.exe
CodeWarrior for HCS12(X) Microcontrollers v5.1.exe
Processor Expert updates V3.05 for CodeWarrior for HCS12 v5.1.exe
CodeWarrior for HCS12 v5.1 G240 Service Pack.exe
CodeWarrior for HCS12 v5.1 G64 Service Pack.exe
CodeWarrior for HCS12 v5.1 GA128GN32 Service Pack.exe
CodeWarrior for HCS12 v5.1 MM912 x634 Service Pack.exe
CodeWarrior for HCS12 v5.1 MM912F634 Service Pack.exe
CodeWarrior for HCS12 v5.1 MM912H634 Service Pack.exe
CodeWarrior for HCS12 v5.1 MM912J637 Service Pack.exe
CodeWarrior for HCS12 v5.1 VR64 Service Pack.exe
CodeWarrior for MCU HCS12 VR32 Service Pack v5.1 (Final).exe
Thanks. I fixed the link to updates.
The differences between 5.1 and 5.2 are listed in the main post. The main advantage is it comes with all the updates, and they fixed a few things in ProcessorExpert. But if 5.1 is working ... no need to change.