S32K146: after enable secure boot, first powercycle will get secure boot failed (FCSESTAT->BOK==0)

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

S32K146: after enable secure boot, first powercycle will get secure boot failed (FCSESTAT->BOK==0)

811 Views
baichuan
Contributor II

Hi

like the subject said,

1. called CSEC_DRV_BootDefine(0x14000 * 8, CSEC_BOOT_SERIAL) to enable secure boot.

2. powercycle to let chip calculate BOOT_MAC and load it to CSEc automatically and stay in bootloader.

3.  powercycle again to see uartlog to check register FCSESTAT->BOK, the value is 0, secure boot failed.

4. But when I restart it again, uartlog shows register FCSESTAT->BOK == 1, secure boot success.

it didn't happen in S32DS debug. I want to know what caused this problem? How to resolve it? 

J-FLASH version: 6.88

Thanks

Tags (2)
0 Kudos
Reply
1 Reply

783 Views
lukaszadrapa
NXP TechSupport
NXP TechSupport

Hi,

this works as expected on my side, I can't see any issues. The BOK is set as expected right after second reset or power cycle (I tested both).

What is the time between the power cycles? Isn't that some extremely short period?

Regards,

Lukas

0 Kudos
Reply