S32K312 how APPBL will run after secure boot configuration

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

S32K312 how APPBL will run after secure boot configuration

跳至解决方案
442 次查看
yumi
Contributor III

Hi,

I am thinking about  how S32K312 secure boot works after configuration. As we know in the demo project, we will update the IVT before functional reset after secure boot configuration. For S32K312, it has just one core, so the Apps for BOOT_TARGET bit#1/2/8 in the IVT is not working, so the MCU core will run the  0x30 address AppBL if it find the BOOT_SEQ in BCW equals 1?

标记 (1)
0 项奖励
回复
1 解答
257 次查看
davidtosenovjan
NXP TechSupport
NXP TechSupport

Basic Secure Boot supports booting one target core (AppBL). AppBL contains core identifier, specifying the core.

Advanced secure boot (SMR-based secure boot) supports booting single or multiple cores.

在原帖中查看解决方案

0 项奖励
回复
3 回复数
395 次查看
johnfinch204
Contributor I

Hi,

I am thinking about how S32K312 secure boot works after configuration. As we know in the demo project, we will update the IVT before functional reset after secure boot configuration. For S32K312, it has just one core, so the Apps for BOOT_TARGET bit#1/2/8 in the IVT is not working, so the MCU core will run the 0x30 address AppBL if it find the BOOT_SEQ in BCW equals 1?

 

Yes, your understanding is correct. Since the S32K312 is a single-core device, the core-specific BOOT_TARGET bits in the IVT are non-functional for determining the main execution path. If the BOOT_SEQ in the BCW is set to 1 (indicating secure boot), the Boot ROM will find the Image Vector Table (IVT), verify its integrity, and then transfer control to the Application Bootloader (AppBL) address specified within the IVT (often referenced as the 0x30 address field), initiating the secure load sequence for the user application.

295 次查看
yumi
Contributor III

Hi @johnfinch204,

So for the single core MCU S32K312, we can configure multiple area, and after functional reset, MCU just runs the AppBL.

For multiple core MCU, we can also configure multiple area different cores, and after functional reset, MCU also runs to AppBL? Must the AppBL be in Core 0 or it can be in any core? 

Thanks

0 项奖励
回复
258 次查看
davidtosenovjan
NXP TechSupport
NXP TechSupport

Basic Secure Boot supports booting one target core (AppBL). AppBL contains core identifier, specifying the core.

Advanced secure boot (SMR-based secure boot) supports booting single or multiple cores.

0 项奖励
回复
%3CLINGO-SUB%20id%3D%22lingo-sub-2246416%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ES32K312%20%E9%85%8D%E7%BD%AE%E5%AE%89%E5%85%A8%E5%90%AF%E5%8A%A8%E5%90%8E%20APPBL%20%E5%B0%86%E5%A6%82%E4%BD%95%E8%BF%90%E8%A1%8C%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2246416%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3E%E6%82%A8%E5%A5%BD%3C%2FP%3E%3CP%3E%E6%88%91%E6%AD%A3%E5%9C%A8%E8%80%83%E8%99%91%20S32K312%20%E5%AE%89%E5%85%A8%E5%90%AF%E5%8A%A8%E5%9C%A8%E9%85%8D%E7%BD%AE%E5%90%8E%E6%98%AF%E5%A6%82%E4%BD%95%E5%B7%A5%E4%BD%9C%E7%9A%84%E3%80%82%E6%AD%A3%E5%A6%82%E6%88%91%E4%BB%AC%E5%9C%A8%E6%BC%94%E7%A4%BA%E9%A1%B9%E7%9B%AE%E4%B8%AD%E6%89%80%E7%9F%A5%E9%81%93%E7%9A%84%E9%82%A3%E6%A0%B7%EF%BC%8C%E6%88%91%E4%BB%AC%E5%B0%86%E5%9C%A8%E5%AE%89%E5%85%A8%E5%90%AF%E5%8A%A8%E9%85%8D%E7%BD%AE%E5%90%8E%E8%BF%9B%E8%A1%8C%E5%8A%9F%E8%83%BD%20RESET%20%E4%B9%8B%E5%89%8D%E6%9B%B4%E6%96%B0%20IVT%E3%80%82%E5%AF%B9%E4%BA%8E%20S32K312%EF%BC%8C%E5%AE%83%E5%8F%AA%E6%9C%89%E4%B8%80%E4%B8%AA%E5%86%85%E6%A0%B8%EF%BC%8C%E5%9B%A0%E6%AD%A4%20IVT%20%E4%B8%AD%20BOOT_TARGET%20%E4%BD%8D%231%2F2%2F8%20%E7%9A%84%E5%BA%94%E7%94%A8%E7%A8%8B%E5%BA%8F%E4%B8%8D%E8%B5%B7%E4%BD%9C%E7%94%A8%EF%BC%8C%E9%82%A3%E4%B9%88%20MCU%20%E5%86%85%E6%A0%B8%E5%9C%A8%E5%8F%91%E7%8E%B0%20BCW%20%E4%B8%AD%E7%9A%84%20BOOT_SEQ%20%E7%AD%89%E4%BA%8E%201%20%E6%97%B6%E4%BC%9A%E8%BF%90%E8%A1%8C%200x30%20%E5%9C%B0%E5%9D%80%20AppBL%20%E5%90%97%EF%BC%9F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2246717%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20S32K312%20how%20APPBL%20will%20run%20after%20secure%20boot%20configuration%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2246717%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CBLOCKQUOTE%3E%3CP%3E%E6%82%A8%E5%A5%BD%3C%2FP%3E%3CP%3E%E6%88%91%E6%AD%A3%E5%9C%A8%E8%80%83%E8%99%91%20S32K312%20%E5%AE%89%E5%85%A8%E5%90%AF%E5%8A%A8%E5%9C%A8%E9%85%8D%E7%BD%AE%E5%90%8E%E6%98%AF%E5%A6%82%E4%BD%95%E5%B7%A5%E4%BD%9C%E7%9A%84%E3%80%82%E6%AD%A3%E5%A6%82%E6%88%91%E4%BB%AC%E5%9C%A8%E6%BC%94%E7%A4%BA%E9%A1%B9%E7%9B%AE%E4%B8%AD%E6%89%80%E7%9F%A5%E9%81%93%E7%9A%84%E9%82%A3%E6%A0%B7%EF%BC%8C%E6%88%91%E4%BB%AC%E5%B0%86%E5%9C%A8%E5%AE%89%E5%85%A8%E5%90%AF%E5%8A%A8%E9%85%8D%E7%BD%AE%E5%90%8E%E8%BF%9B%E8%A1%8C%E5%8A%9F%E8%83%BD%20RESET%20%E4%B9%8B%E5%89%8D%E6%9B%B4%E6%96%B0%20IVT%E3%80%82%E5%AF%B9%E4%BA%8E%20S32K312%EF%BC%8C%E5%A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%E5%B0%86%E6%89%BE%E5%88%B0%E5%9B%BE%E5%83%8F%E7%9F%A2%E9%87%8F%E8%A1%A8%20(IVT)%EF%BC%8C%E9%AA%8C%E8%AF%81%E5%85%B6%E5%AE%8C%E6%95%B4%E6%80%A7%EF%BC%8C%E7%84%B6%E5%90%8E%E5%B0%86%E6%8E%A7%E5%88%B6%E6%9D%83%E8%BD%AC%E7%A7%BB%E5%88%B0%20IVT%EF%BC%88%E9%80%9A%E5%B8%B8%E7%A7%B0%E4%B8%BA%200x30%20%E5%9C%B0%E5%9D%80%E5%AD%97%E6%AE%B5%EF%BC%89%E4%B8%AD%E6%8C%87%E5%AE%9A%E7%9A%84%E5%BA%94%E7%94%A8%E7%A8%8B%E5%BA%8F%E5%BC%95%E5%AF%BC%E5%8A%A0%E8%BD%BD%E7%A8%8B%E5%BA%8F%20(AppBL)%20%E5%9C%B0%E5%9D%80%EF%BC%8C%E5%90%AF%E5%8A%A8%E7%94%A8%E6%88%B7%E5%BA%94%E7%94%A8%E7%A8%8B%E5%BA%8F%E7%9A%84%E5%AE%89%E5%85%A8%E5%8A%A0%E8%BD%BD%E9%A1%BA%E5%BA%8F%E3%80%82%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2251633%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20S32K312%20how%20APPBL%20will%20run%20after%20secure%20boot%20configuration%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2251633%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3E%E4%BD%A0%E5%A5%BD%EF%BC%8C%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F257221%22%20target%3D%22_blank%22%3E%40johnfinch204%3C%2FA%3E%E3%80%81%3C%2FP%3E%3CP%3E%E5%9B%A0%E6%AD%A4%EF%BC%8C%E5%AF%B9%E4%BA%8E%E5%8D%95%E6%A0%B8%20MCU%20S32K312%EF%BC%8C%E6%88%91%E4%BB%AC%E5%8F%AF%E4%BB%A5%E9%85%8D%E7%BD%AE%E5%A4%9A%E4%B8%AA%E5%8C%BA%E5%9F%9F%EF%BC%8C%E5%9C%A8%E5%8A%9F%E8%83%BDRESET%E5%90%8E%EF%BC%8CMCU%20%E5%8F%AA%E8%BF%90%E8%A1%8C%20AppBL%E3%80%82%3C%2FP%3E%3CP%3E%E5%AF%B9%E4%BA%8E%E5%A4%9A%E6%A0%B8%20MCU%EF%BC%8C%E6%88%91%E4%BB%AC%E8%BF%98%E5%8F%AF%E4%BB%A5%E9%85%8D%E7%BD%AE%E5%A4%9A%E4%B8%AA%E5%8C%BA%E5%9F%9F%E4%B8%8D%E5%90%8C%E7%9A%84%E5%86%85%E6%A0%B8%EF%BC%8C%E5%8A%9F%E8%83%BD%20RESET%20%E5%90%8E%EF%BC%8CMCU%20%E4%B9%9F%E8%BF%90%E8%A1%8C%E5%88%B0%20AppBL%EF%BC%9FAppBL%20%E5%BF%85%E9%A1%BB%E5%9C%A8%E6%A0%B8%E5%BF%83%200%20%E4%B8%AD%EF%BC%8C%E8%BF%98%E6%98%AF%E5%8F%AF%E4%BB%A5%E5%9C%A8%E4%BB%BB%E4%BD%95%E6%A0%B8%E5%BF%83%E4%B8%AD%EF%BC%9F%20%3C%2FP%3E%3CP%3E%E8%B0%A2%E8%B0%A2%EF%BC%81%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2252361%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20S32K312%20how%20APPBL%20will%20run%20after%20secure%20boot%20configuration%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2252361%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3E%E5%9F%BA%E6%9C%AC%E5%AE%89%E5%85%A8%E5%90%AF%E5%8A%A8%E6%94%AF%E6%8C%81%E5%90%AF%E5%8A%A8%E4%B8%80%E4%B8%AA%E7%9B%AE%E6%A0%87%E5%86%85%E6%A0%B8%20(AppBL)%E3%80%82AppBL%20%E5%8C%85%E5%90%AB%E6%A0%B8%E5%BF%83%E6%A0%87%E8%AF%86%E7%AC%A6%EF%BC%8C%E6%8C%87%E5%AE%9A%E4%BA%86%E6%A0%B8%E5%BF%83%E3%80%82%3C%2FP%3E%0A%3CP%3E%E9%AB%98%E7%BA%A7%E5%AE%89%E5%85%A8%E5%90%AF%E5%8A%A8%EF%BC%88%E5%9F%BA%E4%BA%8E%20SMR%20%E7%9A%84%E5%AE%89%E5%85%A8%E5%90%AF%E5%8A%A8%EF%BC%89%E6%94%AF%E6%8C%81%E5%90%AF%E5%8A%A8%E5%8D%95%E6%A0%B8%E6%88%96%E5%A4%9A%E6%A0%B8%E3%80%82%3C%2FP%3E%3C%2FLINGO-BODY%3E