Jim Pantera

cant assert security setting via S19 file content

Discussion created by Jim Pantera on Nov 20, 2006
Latest reply on Nov 22, 2006 by David Payne
reference mc9s08rd32dwe processor, code warrior debugger ver6.1
while debug using a P&E multilink debugger in CodeWarrior i am unable to assert flash location 0xFFBF to a 0xFF value, it seems to default to 0xFE and gives me a unable to verify error at load.

dont see any options in the codewarrior debugger to modify this behavior. what step by step method to set the option in the debugger to load from S19 the security settings.


//in code i am asserting 0xFFB0 through 0xFFBF by:
//from the file myglobals.c
#pragma CONST_SEG _mySecurity
const struct flashreg FlashReg = {{0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08},
{0xFF, 0xFF, 0xFF, 0xFF, 0xFF,},
0x7F, 0xFF, 0xFF};
#pragma CONST_SEG DEFAULT

//from the myLinker.prm file
SEGMENTS
mySecurity = READ_ONLY 0xFFB0 TO 0xFFBF;
END
PLACEMENT
_mySecurity INTO mySecurity;



in the debug scession, the "MEMORY" window i can see the 1,2,3,4... pattern in flash but the last location at 0xFFBF is set to 0xFE not 0xFF. this results in the loader giveing me a flash memory load verify error.

thanks everyone!

Outcomes