Hello
I am using an S12Z MCU and meeting an interesting question below need help.
1. After I secure MCU through debug pin to write value below
flash_array[] @0xFFFE00 = {0xAA,0xAA,0xAA,0xAA,0xAA,0xAA,0xAA,0xAA,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xBD};
2. Reset though debug and see MCU is locked.
3. Move out debug pin and power off/on
4. Send comment though to let MCU do the config below:
while(FSTAT_CCIF == 0) /*wait if command is in progress*/
FSTAT = 0x30; /*clear ACCERR and PVIOL*/
FCCOBIX = 0x04; /*Reflect parameters needed by the command; varies from command to command.
If not set correctly, ACCERR flag will be set preventing the command from being executed*/
FCCOB0 = 0x0C00; /*Verify Backdoor Access Key Command*/
FCCOB1 = 0xAAAA; /*Key0*/
FCCOB2 = 0xAAAA; /*Key1*/
FCCOB3 = 0xAAAA; /*Key2*/
FCCOB4 = 0xAAAA; /*Key3*/
Seems good. But how can I know if the MCU is unsecured? While I connect debug pin to check if I can debug again. MCU will reset and the "unsecured process" above seems not work.
Thanks
Charles