Migrating from DP256 to DP512

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Migrating from DP256 to DP512

Jump to solution
2,399 Views
AndyUK
Contributor I
Hi,
 
I've several CW projects that are for the HCS12DP256 - which has become obselete - so I'm moving over to the HCS12DP512.
 
Question is - do I need to tell CW about this change - and if so - what do I need to change ?
 
Many Thanks
 
Andy
Labels (1)
Tags (1)
0 Kudos
1 Solution
828 Views
J2MEJediMaster
Specialist I
1) Be sure to change your derivative include file to MC9S12dp512.h, and if using assembly, MC9S12dp512.inc.
2) Be sure to change your PRM file so as to handle the new address ranges.
3) Check your vector.c file to ensure the device interrupts match.

You're going to find out real quick if you've factored your code to hide all hardware dependencies behind symbolics that the header files should automagically correct for you. Good luck.

---Tom

View solution in original post

0 Kudos
3 Replies
829 Views
J2MEJediMaster
Specialist I
1) Be sure to change your derivative include file to MC9S12dp512.h, and if using assembly, MC9S12dp512.inc.
2) Be sure to change your PRM file so as to handle the new address ranges.
3) Check your vector.c file to ensure the device interrupts match.

You're going to find out real quick if you've factored your code to hide all hardware dependencies behind symbolics that the header files should automagically correct for you. Good luck.

---Tom
0 Kudos
828 Views
CrasyCat
Specialist III
Hello
 
Just an add-on on Tom's answer.
 
In the debugger you need to change the MCU and let the debugger know you are now using a HCS12DP512.
Otherwise you might get into trouble when you try to program the flash.
 
CrasyCat
828 Views
Alban
Senior Contributor II
Hiya,

My turn to do an add-on.
Do check the Errata Sheet for the mask you will be using to make sure your code will work on the other device. Or a bug is corrected and the code might stop working (usually workaround still work when erratum is fixed though).

Better safe than losing time because of a glitch in the MCU.

:smileywink:

Alban.