[CW6.0 MC9S08DZ60] Absolute section overwritten

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

[CW6.0 MC9S08DZ60] Absolute section overwritten

Jump to solution
1,283 Views
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
Labels (1)
Tags (1)
0 Kudos
1 Solution
316 Views
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

View solution in original post

0 Kudos
1 Reply
317 Views
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 Kudos