How Do I Obtain the SBAF Version Information?

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How Do I Obtain the SBAF Version Information?

1,337 Views
luhaiou
Contributor II

How Do I Obtain the SBAF Version Information?

I try get the SBAF version from location of 0x4039C020-0x4039C027,

But caused HardFault,

luhaiou_0-1704282049875.png

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.

0 Kudos
Reply
2 Replies

1,282 Views
luhaiou
Contributor II

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

luhaiou_1-1705058078123.jpeg

2. I change to secure boot by setting BOOT_SEQ

luhaiou_2-1705058359708.png

but ,my app can not be boot.

 

 

0 Kudos
Reply

1,316 Views
Robin_Shen
NXP TechSupport
NXP TechSupport

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)

Get the current installed SBAF version.png

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.
-------------------------------------------------------------------------------

0 Kudos
Reply