s32k312 boot fail and HSE status analysis

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

s32k312 boot fail and HSE status analysis

跳至解决方案
1,198 次查看
JasonChou
Contributor II

Hi all,

I am working on secure boot via HSE in s32k312. And, here is some question to ask.

Q1: how can I know the status when S32k312 boot fail?

In the manual(HSE_B Firmware Reference Manual, Rev 2.1),

Q2: chap. 14.2.7 mention handshake mode, my question is which conditions will trigger this mode?

Q3: Chap. 10 mention about GSR register logs the HSE system event, can we know the GSR address? If GSR address isn’t allow to know, do we have another way or register to know HSE status during boot time?

 

Thanks for reading..

标记 (2)
0 项奖励
1 解答
1,170 次查看
lukaszadrapa
NXP TechSupport
NXP TechSupport

Hi @JasonChou 

A1: You can use service HSE_SMR_CORE_BOOT_STATUS_ATTR_ID to check the status of SMR verification. See the details of hseAttrSmrCoreStatus_t in HSE Service API Reference Manual.

A2: This could be caused by double bit ECC error in flash HSE FW area, by interrupted HSE FW intallation, etc.

A3:

lukaszadrapa_0-1686742981574.png

 

lukaszadrapa_1-1686742988804.png

lukaszadrapa_2-1686742996279.png

 

Regards,

Lukas

在原帖中查看解决方案

0 项奖励
5 回复数
1,152 次查看
JasonChou
Contributor II

Hi lukaszadrapa,

Thanks for reply, follow the Q1,

Q1.1: So bascially, I need to verify SMR/CR before enable secure boot and reset, right? 

Q1.2: If the scenario is mcu enable secure boot without entry Apps(USer code), how can I debug? recovery mode?

0 项奖励
1,134 次查看
lukaszadrapa
NXP TechSupport
NXP TechSupport

1. You need to provide authenticity proof when installing a SMR. You can either calculate it offline using tools like OpenSSL or you can use HSE services to generate the signatures. The authenticity proof is optional only when life cycle is set to CUST_DEL and when entryIndex is 0.
2. If SMR verification fails, the device enters recovery mode as described in "8.8.4 Sanctions" in HSE FW RM.

Regards,

Lukas

0 项奖励
1,146 次查看
TOMMY2
Contributor I

MPC8308CVMAGDA还能继续执行该计划吗?以后会有产品吗?

0 项奖励
1,132 次查看
lukaszadrapa
NXP TechSupport
NXP TechSupport

MPC8308CVMAGDA is in "End of Life" status, you can only buy last pieces from our distributors.

Regards,

Lukas

0 项奖励
1,171 次查看
lukaszadrapa
NXP TechSupport
NXP TechSupport

Hi @JasonChou 

A1: You can use service HSE_SMR_CORE_BOOT_STATUS_ATTR_ID to check the status of SMR verification. See the details of hseAttrSmrCoreStatus_t in HSE Service API Reference Manual.

A2: This could be caused by double bit ECC error in flash HSE FW area, by interrupted HSE FW intallation, etc.

A3:

lukaszadrapa_0-1686742981574.png

 

lukaszadrapa_1-1686742988804.png

lukaszadrapa_2-1686742996279.png

 

Regards,

Lukas

0 项奖励