S32K3 Secure Boot activation timing question

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

S32K3 Secure Boot activation timing question

146件の閲覧回数
minjaekang99
Contributor I

Hello, I am working with Secure Boot on the S32K324 (HSE firmware), and I want to confirm whether my understanding is correct.

  1. Once Secure Boot is activated and the SMR/CR entries are provisioned, will the device refuse to boot if the application firmware changes even by one byte (e.g., code modification, rebuild, RTD version change, etc.) because the hash/signature no longer matches?

  2. Given this behavior, is the recommended workflow to complete all firmware development first, finalize the application image, and activate Secure Boot only at the very end of the project (since any further code changes would cause Secure Boot verification to fail)?

Thank you in advance for your clarification.

0 件の賞賛
返信
2 返答(返信)

48件の閲覧回数
lukaszadrapa
NXP TechSupport
NXP TechSupport

Hi @minjaekang99 

1. This is described in section "7.10.4 Sanctions" in HSE firmware reference manual. If the secure boot fails, alternate image can be executed (if configured). If it fails too, the device enters recovery mode. Or you can only disable usage of individual keys (based on smrFlags) or all keys. Or the device can be reset and it can enter a recovery mode after 8 resets... See mentioned section in the manual for more details and also check HSE Service API reference manual. 

2. Yes, common way is to finalize your application and then start with configuration of secure boot. 

Regards,

Lukas

0 件の賞賛
返信

70件の閲覧回数
minjaekang99
Contributor I

Can anyone answer this question?

0 件の賞賛
返信
%3CLINGO-SUB%20id%3D%22lingo-sub-2232752%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ES32K3%20%E3%82%BB%E3%82%AD%E3%83%A5%E3%82%A2%E3%83%96%E3%83%BC%E3%83%88%E3%81%AE%E3%82%A2%E3%82%AF%E3%83%86%E3%82%A3%E3%83%99%E3%83%BC%E3%82%B7%E3%83%A7%E3%83%B3%E3%82%BF%E3%82%A4%E3%83%9F%E3%83%B3%E3%82%B0%E3%81%AB%E9%96%A2%E3%81%99%E3%82%8B%E8%B3%AA%E5%95%8F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2232752%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3E%E3%81%93%E3%82%93%E3%81%AB%E3%81%A1%E3%81%AF%E3%80%82S32K324%20(HSE%20%E3%83%95%E3%82%A1%E3%83%BC%E3%83%A0%E3%82%A6%E3%82%A7%E3%82%A2)%20%E3%81%AE%E3%82%BB%E3%82%AD%E3%83%A5%E3%82%A2%20%E3%83%96%E3%83%BC%E3%83%88%E3%81%AB%E5%8F%96%E3%82%8A%E7%B5%84%E3%82%93%E3%81%A7%E3%81%84%E3%81%BE%E3%81%99%E3%81%8C%E3%80%81%E7%A7%81%E3%81%AE%E7%90%86%E8%A7%A3%E3%81%8C%E6%AD%A3%E3%81%97%E3%81%84%E3%81%8B%E3%81%A9%E3%81%86%E3%81%8B%E7%A2%BA%E8%AA%8D%E3%81%97%E3%81%9F%E3%81%84%E3%81%A8%E6%80%9D%E3%81%84%E3%81%BE%E3%81%99%E3%80%82%3C%2FP%3E%3COL%3E%3CLI%3E%3CP%3E%E3%82%BB%E3%82%AD%E3%83%A5%E3%82%A2%20%E3%83%96%E3%83%BC%E3%83%88%E3%81%8C%E3%82%A2%E3%82%AF%E3%83%86%E3%82%A3%E3%83%96%E5%8C%96%E3%81%95%E3%82%8C%E3%80%81SMR%2FCR%20%E3%82%A8%E3%83%B3%E3%83%88%E3%83%AA%E3%81%8C%E3%83%97%E3%83%AD%E3%83%93%E3%82%B8%E3%83%A7%E3%83%8B%E3%83%B3%E3%82%B0%E3%81%95%E3%82%8C%E3%82%8B%E3%81%A8%E3%80%81%E3%82%A2%E3%83%97%E3%83%AA%E3%82%B1%E3%83%BC%E3%82%B7%E3%83%A7%E3%83%B3%20%E3%83%95%E3%82%A1%E3%83%BC%E3%83%A0%E3%82%A6%E3%82%A7%E3%82%A2%E3%81%8C%201%20%E3%83%90%E3%82%A4%E3%83%88%E3%81%A7%E3%82%82%E5%A4%89%E6%9B%B4%E3%81%95%E3%82%8C%E3%82%8B%E3%81%A8%20(%E3%82%B3%E3%83%BC%E3%83%89%E3%81%AE%E5%A4%89%E6%9B%B4%E3%80%81%E5%86%8D%E6%A7%8B%E7%AF%89%E3%80%81RTD%20%E3%83%90%E3%83%BC%E3%82%B8%E3%83%A7%E3%83%B3%E3%81%AE%E5%A4%89%E6%9B%B4%E3%81%AA%E3%81%A9)%E3%80%81%E3%83%8F%E3%83%83%E3%82%B7%E3%83%A5%2F%E7%BD%B2%E5%90%8D%E3%81%8C%E4%B8%80%E8%87%B4%E3%81%97%E3%81%AA%E3%81%8F%E3%81%AA%E3%82%8B%E3%81%9F%E3%82%81%E3%80%81%E3%83%87%E3%83%90%E3%82%A4%E3%82%B9%E3%81%AF%E3%83%96%E3%83%BC%E3%83%88%E3%82%92%E6%8B%92%E5%90%A6%E3%81%97%E3%81%BE%E3%81%99%E3%81%8B%3F%3C%2FP%3E%3C%2FLI%3E%3CLI%3E%3CP%3E%E3%81%93%E3%81%AE%E5%8B%95%E4%BD%9C%E3%82%92%E8%80%83%E6%85%AE%E3%81%99%E3%82%8B%E3%81%A8%E3%80%81%3CSTRONG%3E%E6%9C%80%E5%88%9D%E3%81%AB%E3%81%99%E3%81%B9%E3%81%A6%E3%81%AE%E3%83%95%E3%82%A1%E3%83%BC%E3%83%A0%E3%82%A6%E3%82%A7%E3%82%A2%E9%96%8B%E7%99%BA%E3%82%92%E5%AE%8C%E4%BA%86%E3%81%97%3C%2FSTRONG%3E%E3%80%81%E3%82%A2%E3%83%97%E3%83%AA%E3%82%B1%E3%83%BC%E3%82%B7%E3%83%A7%E3%83%B3%20%E3%82%A4%E3%83%A1%E3%83%BC%E3%82%B8%E3%82%92%E5%AE%8C%E6%88%90%E3%81%95%E3%81%9B%E3%80%81%E3%83%97%E3%83%AD%E3%82%B8%E3%82%A7%E3%82%AF%E3%83%88%E3%81%AE%3CSTRONG%3E%E6%9C%80%E5%BE%8C%E3%81%AB%E3%81%AE%E3%81%BF%E3%82%BB%E3%82%AD%E3%83%A5%E3%82%A2%20%E3%83%96%E3%83%BC%E3%83%88%E3%82%92%E3%82%A2%E3%82%AF%E3%83%86%E3%82%A3%E3%83%96%E5%8C%96%E3%81%99%E3%82%8B%3C%2FSTRONG%3E(%E3%81%9D%E3%82%8C%E4%BB%A5%E4%B8%8A%E3%81%AE%E3%82%B3%E3%83%BC%E3%83%89%E5%A4%89%E6%9B%B4%E3%82%92%E8%A1%8C%E3%81%86%E3%81%A8%E3%82%BB%E3%82%AD%E3%83%A5%E3%82%A2%20%E3%83%96%E3%83%BC%E3%83%88%E3%81%AE%E6%A4%9C%E8%A8%BC%E3%81%8C%E5%A4%B1%E6%95%97%E3%81%99%E3%82%8B%E3%81%9F%E3%82%81)%20%E3%81%A8%E3%81%84%E3%81%86%E3%83%AF%E3%83%BC%E3%82%AF%E3%83%95%E3%83%AD%E3%83%BC%E3%81%8C%E6%8E%A8%E5%A5%A8%E3%81%95%E3%82%8C%E3%81%BE%E3%81%99%E3%81%8B%3F%3C%2FP%3E%3C%2FLI%3E%3C%2FOL%3E%3CP%3E%E3%81%94%E8%AA%AC%E6%98%8E%E3%82%92%E3%82%88%E3%82%8D%E3%81%97%E3%81%8F%E3%81%8A%E9%A1%98%E3%81%84%E3%81%84%E3%81%9F%E3%81%97%E3%81%BE%E3%81%99%E3%80%82%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2246832%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20S32K3%20Secure%20Boot%20activation%20timing%20question%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2246832%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3E%3CSPAN%3E%E8%AA%B0%E3%81%8B%E3%81%93%E3%81%AE%E8%B3%AA%E5%95%8F%E3%81%ABCAN%E3%81%BE%E3%81%99%E3%81%8B%3F%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2248069%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20S32K3%20Secure%20Boot%20activation%20timing%20question%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2248069%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3E%E3%81%93%E3%82%93%E3%81%AB%E3%81%A1%E3%81%AF%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F242600%22%20target%3D%22_blank%22%3E%40minjaekang99%3C%2FA%3E%3C%2FP%3E%0A%3CP%3E1.%E3%81%93%E3%82%8C%E3%81%AB%E3%81%A4%E3%81%84%E3%81%A6%E3%81%AF%E3%80%8C7.10.4HSE%20%E3%83%95%E3%82%A1%E3%83%BC%E3%83%A0%E3%82%A6%E3%82%A7%E3%82%A2%20%E3%83%AA%E3%83%95%E3%82%A1%E3%83%AC%E3%83%B3%E3%82%B9%20%E3%83%9E%E3%83%8B%E3%83%A5%E3%82%A2%E3%83%AB%E3%81%AE%E3%80%8C%E5%88%B6%E8%A3%81%E3%80%8D%E3%82%92%E5%8F%82%E7%85%A7%E3%81%97%E3%81%A6%E3%81%8F%E3%81%A0%E3%81%95%E3%81%84%E3%80%82%E3%82%BB%E3%82%AD%E3%83%A5%E3%82%A2%20%E3%83%96%E3%83%BC%E3%83%88%E3%81%8C%E5%A4%B1%E6%95%97%E3%81%97%E3%81%9F%E5%A0%B4%E5%90%88%E3%80%81%E4%BB%A3%E6%9B%BF%E3%82%A4%E3%83%A1%E3%83%BC%E3%82%B8%E3%82%92CAN%E5%AE%9F%E8%A1%8C%E3%81%A7%E3%81%8D%E3%81%BE%E3%81%99%20(%E6%A7%8B%E6%88%90%E3%81%95%E3%82%8C%E3%81%A6%E3%81%84%E3%82%8B%E5%A0%B4%E5%90%88)%E3%80%82%E3%81%9D%E3%82%8C%E3%82%82%E5%A4%B1%E6%95%97%E3%81%97%E3%81%9F%E5%A0%B4%E5%90%88%E3%80%81%E3%83%87%E3%83%90%E3%82%A4%E3%82%B9%E3%81%AF%E5%9B%9E%E5%BE%A9%E3%83%A2%E3%83%BC%E3%83%89%E3%81%AB%E5%85%A5%E3%82%8A%E3%81%BE%E3%81%99%E3%80%82%E3%81%BE%E3%81%9F%E3%81%AF%E3%80%81%E5%80%8B%E3%80%85%E3%81%AE%E3%82%AD%E3%83%BC%20(smrFlags%20%E3%81%AB%E5%9F%BA%E3%81%A5%E3%81%84%E3%81%A6)%20%E3%81%BE%E3%81%9F%E3%81%AF%E3%81%99%E3%81%B9%E3%81%A6%E3%81%AE%E3%82%AD%E3%83%BC%E3%81%AE%E4%BD%BF%E7%94%A8%E3%81%AE%E3%81%BF%E3%82%92%E7%84%A1%E5%8A%B9%E3%81%AB%E3%81%99%E3%82%8B%E3%81%93%E3%81%A8%E3%82%82CAN%E3%80%82%E3%81%BE%E3%81%9F%E3%81%AF%E3%80%81%E3%83%87%E3%83%90%E3%82%A4%E3%82%B9%E3%82%92%E3%83%AA%E3%82%BB%E3%83%83%E3%83%88%E3%81%97%E3%81%A6%E3%80%818%20%E5%9B%9E%E3%83%AA%E3%82%BB%E3%83%83%E3%83%88%E3%81%97%E3%81%9F%E5%BE%8C%E3%81%AB%E5%9B%9E%E5%BE%A9%E3%83%A2%E3%83%BC%E3%83%89%E3%81%AB%E5%85%A5%E3%82%8BCAN...%E8%A9%B3%E7%B4%B0%E3%81%AB%E3%81%A4%E3%81%84%E3%81%A6%E3%81%AF%E3%80%81%E3%83%9E%E3%83%8B%E3%83%A5%E3%82%A2%E3%83%AB%E3%81%AE%E8%A8%98%E8%BC%89%E3%81%95%E3%82%8C%E3%81%A6%E3%81%84%E3%82%8B%E3%82%BB%E3%82%AF%E3%82%B7%E3%83%A7%E3%83%B3%E3%82%92%E5%8F%82%E7%85%A7%E3%81%97%E3%81%A6%E3%81%8F%E3%81%A0%E3%81%95%E3%81%84%E3%80%82%E3%81%BE%E3%81%9F%E3%80%81HSE%20%E3%82%B5%E3%83%BC%E3%83%93%E3%82%B9%20API%20%E3%83%AA%E3%83%95%E3%82%A1%E3%83%AC%E3%83%B3%E3%82%B9%E3%83%BB%E3%83%9E%E3%83%8B%E3%83%A5%E3%82%A2%E3%83%AB%E3%82%82%E7%A2%BA%E8%AA%8D%E3%81%97%E3%81%A6%E3%81%8F%E3%81%A0%E3%81%95%E3%81%84%E3%80%82%3C%2FP%3E%0A%3CP%3E2.%20%E3%81%AF%E3%81%84%E3%80%81%E4%B8%80%E8%88%AC%E7%9A%84%E3%81%AA%E6%96%B9%E6%B3%95%E3%81%AF%E3%80%81%E3%82%A2%E3%83%97%E3%83%AA%E3%82%B1%E3%83%BC%E3%82%B7%E3%83%A7%E3%83%B3%E3%82%92%E5%AE%8C%E6%88%90%E3%81%95%E3%81%9B%E3%81%A6%E3%81%8B%E3%82%89%E3%82%BB%E3%82%AD%E3%83%A5%E3%82%A2%20%E3%83%96%E3%83%BC%E3%83%88%E3%81%AE%E6%A7%8B%E6%88%90%E3%82%92%E9%96%8B%E5%A7%8B%E3%81%99%E3%82%8B%E3%81%93%E3%81%A8%E3%81%A7%E3%81%99%E3%80%82%3C%2FP%3E%0A%3CP%3E%E3%82%88%E3%82%8D%E3%81%97%E3%81%8F%E3%81%8A%E9%A1%98%E3%81%84%E3%81%84%E3%81%9F%E3%81%97%E3%81%BE%E3%81%99%E3%80%82%3C%2FP%3E%0A%3CP%3E%E3%83%AB%E3%83%BC%E3%82%AB%E3%82%B9%3C%2FP%3E%3C%2FLINGO-BODY%3E