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

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

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

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

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

554 次查看
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 项奖励