Hard Fault when moving the LC status using HSE_B API

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Hard Fault when moving the LC status using HSE_B API

725 次查看
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

 

 

 

标记 (1)
0 项奖励
回复
1 回复

687 次查看
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 项奖励
回复