[Security] S32K142 after enable CSEc module, cannot return to factory mode.

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

[Security] S32K142 after enable CSEc module, cannot return to factory mode.

70 Views
chunmei_tu
Contributor I

Dear all:

After I lunch the Partition Command, I can use the CSEc module. With the example "csec_boot_protection_s32k142", secure boot also success.

But in one test process, the eraseKeys() function cannot set the FCSESTAT->IDB bit to 1, the chip can reset flash to the factory state.

After found this problem, I tried follow test :

1. try to use setAuthKey() function to set CSEC_MASTER_ECU, failed error is STATUS_SEC_KEY_UPDATE_ERROR.

2.try to use loadKey(CSEC_MASTER_ECU, g_authIdKey, 2, 0) to update the master key, also failed, error code is STATUS_SEC_KEY_UPDATE_ERROR.

3.try again eraseKeys() function, found in getUID() -->CSEC_DRV_GetID() function, read out error bits is STATUS_SEC_KEY_NOT_AVAILABLE.

 

Now I'm not sure what status is the chip in, and what should I do to make the chip to the factory state. Hope you can help me to analysis this problem, thanks very much.

 

Tags (4)
0 Kudos
0 Replies