Migrating from DP256 to DP512

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

Migrating from DP256 to DP512

跳至解决方案
3,451 次查看
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
标签 (1)
标记 (1)
0 项奖励
回复
1 解答
1,880 次查看
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 项奖励
回复
3 回复数
1,881 次查看
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 项奖励
回复
1,880 次查看
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
1,880 次查看
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.