s32k312 boot fail and HSE status analysis

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

s32k312 boot fail and HSE status analysis

ソリューションへジャンプ
1,203件の閲覧回数
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,175件の閲覧回数
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,157件の閲覧回数
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,139件の閲覧回数
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,151件の閲覧回数
TOMMY2
Contributor I

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

0 件の賞賛
1,137件の閲覧回数
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,176件の閲覧回数
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 件の賞賛