I use S12ZVML31 mcu. I've problem. FSEC register is not correctly loaded from configuration field after reset in my application.
I use this code:
volatile const unsigned char flash_array[] @0xFFFE00 = {0xAA,0xAA,0xAA,0xAA,0xAA,0xAA,0xAA,0xAA,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xBD};
The following code is added in prm file
ENTRIES /* keep the following unreferenced variables */
/* OSEK: always allocate the vector table and all dependent objects */
//_vectab OsBuildNumber _OsOrtiStackStart _OsOrtiStart
flash_array;_vectab
END
but immediately after reset FSEC is still 0xFE.
I need secure my device but device is still unsecured.
help me,Thanks!
