S32K314 secure boot: BSB mode

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

S32K314 secure boot: BSB mode

跳至解决方案
579 次查看
liTian_one
Contributor II

After program the relevant firmware for enabling secure boot, and after powering off and on again, the software remained at 0x2040012e.

What could be the reason for this?  Or is there any way I can find out the cause?

liTian_one_1-1756637375754.png

 

 

0 项奖励
回复
1 解答
438 次查看
lukaszadrapa
NXP TechSupport
NXP TechSupport

How did you generated the GMAC? Do you follow the S32K344_Basic_SecureBoot example or do you generate the GMAC externally? Maybe this could be useful for you:

https://community.nxp.com/t5/S32K/Request-for-PC-side-GMAC-example-for-S32K344-Basic-Secure-Boot/td-...

在原帖中查看解决方案

0 项奖励
回复
4 回复数
470 次查看
lukaszadrapa
NXP TechSupport
NXP TechSupport

Hi @liTian_one 

The device is in recovery mode. This mode is entered when: IVT is not present or corrupted or there are more than 8 consecutive functional/destructive resets or when secure boot fails.

In case of JTAG recovery mode, the device just hangs in endless loop in RAM, so user can take appropriate actions and the device is not bricked.

Based on your description, it’s caused by failing secure boot.

 

You can follow demo code from:

https://www.nxp.com/webapp/Download?colCode=S32K3_HSE_DemoExamples

Example:

c:\NXP\S32K3_HSE_DemoExamples_1_0_0\S32K3_HSE_DemoExamples\Secure_Boot\S32K344_Basic_SecureBoot\

 

We also provide Secure Boot application note including demo projects. It can be downloaded from:

https://www.nxp.com/products/S32K3

Application note can be found here:

Documentation -> Secure Files -> Secure Boot Application note v0.1.1.0 (AN744511)

Associated demo project can be downloaded here:

Design Resources -> Software -> Secure Files -> SecureBootAppNoteDemo (SW745310)

 

Common problem is wrong alignment of your application. Please take a look at this section from the application note:

lukaszadrapa_0-1756708389147.png

 

Regards,

Lukas

0 项奖励
回复
467 次查看
liTian_one
Contributor II
The settings of IVT (0x00400000) should be correct, and the addresses of APP header and APP code are (0x004020c0) and (0x00402100) respectively.
0 项奖励
回复
439 次查看
lukaszadrapa
NXP TechSupport
NXP TechSupport

How did you generated the GMAC? Do you follow the S32K344_Basic_SecureBoot example or do you generate the GMAC externally? Maybe this could be useful for you:

https://community.nxp.com/t5/S32K/Request-for-PC-side-GMAC-example-for-S32K344-Basic-Secure-Boot/td-...

0 项奖励
回复
424 次查看
liTian_one
Contributor II
The cause of the problem has been identified.thank you
0 项奖励
回复