How Do I Obtain the SBAF Version Information?
I try get the SBAF version from location of 0x4039C020-0x4039C027,
But caused HardFault,
The chips purchased by our company are at different times, and the SBAF version is different.
I need to make a judgment about the sbaf version in my project ,
and decide if I need to upgrade the SBAF.
I Need NXP to help me to get the SBAF version in my project,thank you very much.
Thank you for your reply, I encountered the following problems when debugging S32K344_Advanced_SecureBoot Project, please help support.
my project test on s32k312.
1.The Secure Boot CFG result is as follows
2. I change to secure boot by setting BOOT_SEQ
but ,my app can not be boot.
Hi luhaiou,
Please download S32K3 MCUs for General Purpose HSE Demo Examples(S32K3_HSE_DemoExamples.exe). After install it, you will find the S32K344_SBAF_UPDATE example. (C:\NXP\S32K3_HSE_DemoExamples_1_0_0\S32K3_HSE_DemoExamples\Device_Configuration\S32K344_SBAF_UPDATE)
typedef struct
{
uint8_t reserved1;
uint8_t socTypeId;
uint16_t reserved2;
uint8_t majorVersion;
uint8_t minorVersion;
uint16_t patchVersion;
} sbafVersion_t;
/* Variable to store SBAF version details */
sbafVersion_t gsbafVersion = {0U};
/* Get the current installed SBAF version */
memcpy(&gsbafVersion, (uint8_t*)0x4039C020, sizeof(sbafVersion_t));
Best Regards,
Robin
-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!
- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------