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;
A. Sequential Boot Mode
Q1:
(void)CSEC_DRV_BootDefine(BOOT_SIZE, CSEC_BOOT_SERIAL) After enabling secureboot, power on again to enter Secureboot. Since the selected mode is A. Sequential Boot Mode, even if the on-chip ROM fails to verify the Bootmanager image, the Bootmanager code will still be executed, so I It cannot be judged whether the first level verification is successful. I use the CSEC_DRV_GetStatus() interface in Bootmanager to determine the result of the first-level verification. If the (1 == (CSEC_STATUS_BOOT_OK & CSEC_DRV_GetStatus())) condition is met, the first-level verification is considered successful. Is my understanding correct?
Q2:
Is there any way I can get the BOOT_MAC value calculated by CSEC? Because I want to know what is the difference between this and the BOOT_MAC I calculated on my PC