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.
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:
Regards,
Lukas