Inquiry Regarding Firmware Integrity Verification After Bootloader Flashing and Porting Functionalit

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

Inquiry Regarding Firmware Integrity Verification After Bootloader Flashing and Porting Functionalit

Jump to solution
478 Views
ChandlerX
Contributor I

Dear NXP Support Team,

I am currently working on a project involving the S32K146 microcontroller and the S32 Design Studio (S32DS) development environment. My question concerns two topics:

  1. After the Bootloader has successfully flashed the firmware, I would like to know if there is a way to verify the integrity of the firmware to ensure that it has been correctly written without any corruption. Could you provide guidance on any available methods or tools for achieving this firmware integrity verification?

  2. I am also attempting to port an existing MPC5606 project to the S32K146. Specifically, the original MPC5606 project uses the following code for section manipulation:#pragma push
    #pragma force_active on
    #pragma section_sconst_type "_bblk_entry" "_bblk_entry"
    extern __asm void __start();
    const uint32_t bblk_entry_addr = (uint32_t)__start; /*vcus*/
    #pragma pop

        I would like to know how to implement similar functionality in the S32K146 environment. Could you provide guidance on how to achieve this in the S32K146?

Thank you for your time and assistance. I look forward to your response.

 

Best regards,
ChandlerX

0 Kudos
Reply
1 Solution
457 Views
VaneB
NXP TechSupport
NXP TechSupport

Hi @ChandlerX 

1. Please refer to the following link where this topic has been discussed, as it may be helpful to you: Secure boot implementation for boot loader as well as application image security

2.
To port the code from the MPC5606 to the S32K146, you will need to adjust it for the GCC compiler used in the S32K146 environment. Unlike the MPC5606, GCC does not use pragmas for section manipulation but instead relies on __attribute__((section(".user_section"))). For further guidance, please refer to the following links:

Common Function Attributes

HOWTO: Place custom data into flash memory

 

BR, VaneB

View solution in original post

0 Kudos
Reply
2 Replies
458 Views
VaneB
NXP TechSupport
NXP TechSupport

Hi @ChandlerX 

1. Please refer to the following link where this topic has been discussed, as it may be helpful to you: Secure boot implementation for boot loader as well as application image security

2.
To port the code from the MPC5606 to the S32K146, you will need to adjust it for the GCC compiler used in the S32K146 environment. Unlike the MPC5606, GCC does not use pragmas for section manipulation but instead relies on __attribute__((section(".user_section"))). For further guidance, please refer to the following links:

Common Function Attributes

HOWTO: Place custom data into flash memory

 

BR, VaneB

0 Kudos
Reply
397 Views
ChandlerX
Contributor I
Hi VaneB,
I wanted to express my gratitude for the information you provided. It has been extremely helpful to me. Thank you so much for your support!

Best regards,
ChandlerX
0 Kudos
Reply