Migrating from DP256 to DP512

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Migrating from DP256 to DP512

ソリューションへジャンプ
3,463件の閲覧回数
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,892件の閲覧回数
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,893件の閲覧回数
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,892件の閲覧回数
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,892件の閲覧回数
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.