[CW6.0 MC9S08DZ60] Absolute section overwritten

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

[CW6.0 MC9S08DZ60] Absolute section overwritten

ソリューションへジャンプ
2,219件の閲覧回数
Nouchi
Senior Contributor II
Hello,

If do that in the prm file:
Code:
ROM =  READ_ONLY  0x1900 TO 0xFFAD FILL 0x8D; /* fill with an ILOP */

and that in my C file
Code:
const char SoftWareVer[3] @0xBE00 = {0,3,0};

SoftWare constant is overwritten  by the  FILL directive, is it normal?
I'm looking for a workaround.
any ideas?

Emmanuel



Message Edited by BugMan on 2007-09-12 09:36 AM
ラベル(1)
タグ(1)
0 件の賞賛
返信
1 解決策
1,252件の閲覧回数
BlackNight
NXP Employee
NXP Employee
Hi Emmanuel,
the easiest thing would be to split up your ROM part in the .prm, something like this:
ROM1 =  READ_ONLY  0x1900 TO 0xBDFF FILL 0x8D; /* fill with an ILOP */
/* Gap for 0xBE00..0xBE02 where we writhe SoftWareVer[3] */
ROM2 =  READ_ONLY  0xBE03 TO 0xFFAD FILL 0x8D; /* fill with an ILOP */
You will need to update the PLACEMENT as well to reflect ROM1 and ROM2.

Erich

元の投稿で解決策を見る

0 件の賞賛
返信
1 返信
1,253件の閲覧回数
BlackNight
NXP Employee
NXP Employee
Hi Emmanuel,
the easiest thing would be to split up your ROM part in the .prm, something like this:
ROM1 =  READ_ONLY  0x1900 TO 0xBDFF FILL 0x8D; /* fill with an ILOP */
/* Gap for 0xBE00..0xBE02 where we writhe SoftWareVer[3] */
ROM2 =  READ_ONLY  0xBE03 TO 0xFFAD FILL 0x8D; /* fill with an ILOP */
You will need to update the PLACEMENT as well to reflect ROM1 and ROM2.

Erich
0 件の賞賛
返信