csec error bits

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

csec error bits

470 Views
fan1234
Contributor III

Hi, 

    meet some problem when using CSEC with s32k144 , when does csec driver 

   1. return  ERC_GENERAL_ERROR (operating "Resetting Flash to the Factory State")

  2. return ERC_KEY_EMPTY,  seems key not  loaded, what's the possible reason?

 

BR!

Tags (1)
0 Kudos
Reply
3 Replies

433 Views
Senlent
NXP TechSupport
NXP TechSupport

Hi@fan1234

Before resetting Flash to the Factory State, you should ensure that the CSEc module has loaded the key.

Judging from your error messages, it seems you haven't loaded the key to CSEc or there was an error during the key loading process.

0 Kudos
Reply

427 Views
fan1234
Contributor III
my sequence is , load the key after Configure Csec Module, and trigger a software reset. the Csec seems enabled(by check FCNFG bit), what will cause the error during key loading process?
0 Kudos
Reply

424 Views
Senlent
NXP TechSupport
NXP TechSupport

Hi@fan1234

Do you have a test project? I cannot give specific possible reasons.

0 Kudos
Reply
%3CLINGO-SUB%20id%3D%22lingo-sub-2339856%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3Ecsec%20error%20bits%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2339856%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%2C%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%20%26nbsp%3B%20meet%20some%20problem%20when%20using%20CSEC%20with%20s32k144%20%2C%20when%20does%20csec%20driver%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%20%26nbsp%3B1.%20return%26nbsp%3B%20ERC_GENERAL_ERROR%20(operating%20%22Resetting%20Flash%20to%20the%20Factory%20State%22)%3C%2FP%3E%3CP%3E%26nbsp%3B%202.%26nbsp%3Breturn%26nbsp%3BERC_KEY_EMPTY%2C%26nbsp%3B%20seems%20key%20not%26nbsp%3B%20loaded%2C%20what's%20the%20possible%20reason%3F%3C%2FP%3E%3CBR%20%2F%3E%3CP%3EBR!%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2340810%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20csec%20error%20bits%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2340810%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%40%3CSPAN%3Efan1234%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3EDo%20you%20have%20a%20test%20project%3F%20I%20cannot%20give%20specific%20possible%20reasons.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2340756%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20csec%20error%20bits%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2340756%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3Emy%20sequence%20is%20%2C%20load%20the%20key%20after%20Configure%20Csec%20Module%2C%20and%20trigger%20a%20software%20reset.%20the%20Csec%20seems%20enabled(by%20check%20FCNFG%20bit)%2C%20what%20will%20cause%20the%20error%20during%20key%20loading%20process%3F%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2340669%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20csec%20error%20bits%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2340669%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%40%3CSPAN%3Efan1234%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3EBefore%20resetting%20Flash%20to%20the%20Factory%20State%2C%20you%20should%20ensure%20that%20the%20CSEc%20module%20has%20loaded%20the%20key.%3C%2FP%3E%0A%3CP%3EJudging%20from%20your%20error%20messages%2C%20it%20seems%20you%20haven't%20loaded%20the%20key%20to%20CSEc%20or%20there%20was%20an%20error%20during%20the%20key%20loading%20process.%3C%2FP%3E%3C%2FLINGO-BODY%3E