Dear NXPs:
S32K146
P-Flash 1M(2 Block)
D-Flash 32K
background:
CMD_BOOT_DEFINE→BootManager 6KB Use CSEC's secureboot mechanism for verification.
The secondary verification area is Flex NVM Bootloader;
The area of third-level verification is Application;
Q1: When I fail to verify the bootloader, I will call the CSEC_DRV_BootFailure() interface to notify CSEC. What I want to know is that in addition to the SHE Key being locked, what other processing will NXP do when calling the CSEC_DRV_BootFailure() interface? For example, Reset, etc.
Q2: I use the interface CSEC_DRV_VerifyMACAddrMode() to verify P-Flash. What I want to know is whether there is a limit to the size of P-FLash that can be verified by calling this interface once (I don't want to design it to be called multiple times)? For example, it does not exceed 512K, for example, it cannot be called across blocks, etc.
Q3: When you power on for the first time, call the CSEC_DRV_BootDefine() interface in the BootManager project. In this way, secureboot will be executed when you power on for the second time. What method should I use to ensure that the CSEC_DRV_BootDefine() interface is only called once? I noticed that the CSEC_DRV_GetStatus() interface provided by the SDK does not necessarily meet my needs. I look forward to your help.