Hard Fault when moving the LC status using HSE_B API

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

Hard Fault when moving the LC status using HSE_B API

236 Views
Yiming2
Contributor III

hello all

I am implementing the debug port protection by HSE. Firstly the ADKP has been successfully programmed by HSE. and the key catalog also has been successfully initialized by HSE.

Secondly, I am trying to move/advance the Lifecycle(LC) to OEM_PROD or IN_FIELD status by HSE but failed.

It always interrupted by Hardfault when following function executed,but it the LC has been changed.And when I debug it and step into the HSE_AdvanceLifecycle(HSE_LC_OEM_PROD) and execute it step by step, there is no problem all steps can be executed  without Hardfault, when I reset the MCU the LC status can correctly read out and the value is the right one what I set .

Who can tell me why this problem occurred. 

Yiming2_0-1710743393797.png

 

 

 

Tags (1)
0 Kudos
Reply
1 Reply

198 Views
lukaszadrapa
NXP TechSupport
NXP TechSupport

Hi @Yiming2 

this sounds like typical read-while-write issue.

See please section "14.6.5 Synchronizing flash read/write access between HSE and application core" in the HSE-B Firmware reference manual rev 2.3.

Probably this is the problem:

lukaszadrapa_0-1711372715335.png

Regards,

Lukas

0 Kudos
Reply