[CW6.0 MC9S08DZ60] Absolute section overwritten

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

[CW6.0 MC9S08DZ60] Absolute section overwritten

跳至解决方案
2,202 次查看
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,235 次查看
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,236 次查看
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 项奖励
回复