Unsecure ms9s12p128

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

Unsecure ms9s12p128

Jump to solution
2,501 Views
MUXU
Contributor II

I have set the backdoor access key for mc9sp128 and configured the security state.

Now I want to read the flash content. How can I unlock it?

Labels (1)
0 Kudos
Reply
1 Solution
2,354 Views
MUXU
Contributor II

void Verity_BackdoorKey(void)

while((FSTAT&0X80) == 0){
if(FSEC&0X03)!=0X02 && (FSEC&0XC0) == 0X80) {

FSTAT=0X30;

FCC0BIX=0X00;FCCOB=0X0C00;

FCC0BIX=0X01;FCCOB=0X1234;

FCC0BIX=0X02;FCCOB=0X4567;

FCC0BIX=0X03;FCCOB=0X89AB;

FCC0BIX=0X04;FCCOB=0XCDEF;

Disable_Interrupt();

FlashOperateRun;

Enable_Interrupt();

}

}

View solution in original post

0 Kudos
Reply
3 Replies
2,355 Views
MUXU
Contributor II

void Verity_BackdoorKey(void)

while((FSTAT&0X80) == 0){
if(FSEC&0X03)!=0X02 && (FSEC&0XC0) == 0X80) {

FSTAT=0X30;

FCC0BIX=0X00;FCCOB=0X0C00;

FCC0BIX=0X01;FCCOB=0X1234;

FCC0BIX=0X02;FCCOB=0X4567;

FCC0BIX=0X03;FCCOB=0X89AB;

FCC0BIX=0X04;FCCOB=0XCDEF;

Disable_Interrupt();

FlashOperateRun;

Enable_Interrupt();

}

}

0 Kudos
Reply
2,479 Views
danielmartynek
NXP TechSupport
NXP TechSupport

HI @MUXU,

Refer to this document:
https://community.nxp.com/t5/S12-MagniV-Microcontrollers/S12-X-MCU-Security/ta-p/1111118

Once the MCU is unlocked via the backdoor key, you need to attach the debugger without resetting the MCU, any reset would lock the MCU again.

 

Regards,

Daniel

 

0 Kudos
Reply
2,420 Views
MUXU
Contributor II

First of all,thank you for your help.

I saw that there is a example in AN2880.pdf,but I couldn't find the AN2880SW.zip file.

Could you please assist me with this? 

0 Kudos
Reply