Rodney McGee

How-to Add missing derivatives to CodeWarrior Classic HCS12(X) 5.2 (Unofficial Method)

Discussion created by Rodney McGee on Jul 17, 2016
Latest reply on Aug 2, 2017 by Gerrit Barrere

The Good and the Bad about CodeWarrior Development Studio for HCS12(X) Microcontrollers (Classic IDE) v5.2

  • Removed more than half of the supported chips for "market reasons" (see table below)
  • Updated P&E drivers for Windows 8 & 10 (already out of date again)
  • Removed some other connections (SofTec, Serial monitor, Abatron, TBDML)
  • Updated ProcessorExpert to 3.06 (not in release notes)
    • Fixed Device Initialization issue for S12X clock initialization
    • Fixed API pre-scaler range in Timer Int component for MC9S12XE derivatives

 

The Unofficial Workaround – have your cake and eat it too

 

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.

 

A. Install CW 5.2

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

 

B. Download Missing Pieces

See attachment "cw 5 2 missing pieces v1.zip" at the bottom

(see hashes at the bottom; there is no .exe in zip, download from nxp community forum)

  • Includes the missing xml,c,h files from CW5.1 and service packs
  • Updated P&E prog files - dated 28 June 2016 (which is newer than what comes with CW5.2)
  • A few newer versions of derivative header files

Note: You don't have to overwrite any files for this to work, but my zip includes some updated files. See the explanation in this video link

 

C. Merge files in CWS12v5.2 Program Files

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 your zip, 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

     Windows 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 for - YouTube

Instructions for Windows XP:

     Open 7zip (Run as administrator by right clicking on the 7zip program icon in start menu)

     Navigate 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)

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.

 

D. Install latest P&E Drivers (if needed)

P&E Hardware Interface Drivers, Version 12 (Win XP/Vista/7/8/10)

 

E. USBDM (if needed)

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_110_Win.msi  or newer

And ONE of these:

USBDM_Drivers_4_12_1_Win_x64.msi or newer (for 64-bit 7 and 10)

USBDM_Drivers_4_12_1_Win_x32.msi or newer (for 32-bit 7 and 10)

USBDM_Drivers_4_12_1_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

 

Table of missing derivatives (we fix this)

 

        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

 

 

 

 

cw 5.2 missing peices v1.zip checksum:

sha1 93bdf4a30c4081e9f218974f70f019dfaf352c05

md5 3ff7fcf994e87d046b59d8d94f4b1593

7zip-crc ce7639e5

Outcomes