Inquiry Regarding Firmware Integrity Verification After Bootloader Flashing and Porting Functionalit

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

Inquiry Regarding Firmware Integrity Verification After Bootloader Flashing and Porting Functionalit

跳至解决方案
475 次查看
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 项奖励
回复
1 解答
454 次查看
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 项奖励
回复
2 回复数
455 次查看
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 项奖励
回复
394 次查看
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 项奖励
回复