s32k312 boot fail and HSE status analysis

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

s32k312 boot fail and HSE status analysis

Jump to solution
1,200 Views
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..

Tags (2)
0 Kudos
1 Solution
1,172 Views
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

View solution in original post

0 Kudos
5 Replies
1,154 Views
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 Kudos
1,136 Views
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 Kudos
1,148 Views
TOMMY2
Contributor I

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

0 Kudos
1,134 Views
lukaszadrapa
NXP TechSupport
NXP TechSupport

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

Regards,

Lukas

0 Kudos
1,173 Views
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 Kudos