1867147_en-US

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

1867147_en-US

1867147_en-US

code not jumping to main after flashing hex for hse installation

Hi ,

  I have ported the HSE firmware installation example code for s32K312.

I am able to install the HSE firmware after flashing the mcu and run it in debug mode but i am facing issue when i am flashing the hex file of the project directly then it is not installing the firmware because it is not jumping to the main after the reset the mcu .

I am using the installation with IVT. kindly look the linker file and boot_header.c file for your reference.

and provide the solution for the same.

Re: code not jumping to main after flashing hex for hse installation

To help you debug why your S32K312 is not jumping to main after flashing the hex file (but works in debug mode), we need to focus on a few key areas:

  1. IVT and boot header configuration

  2. Linker script alignment with IVT/bootloader

  3. Reset vector and boot entry behavior

  4. Possible watchdog resets or early faults

Since you've ported the HSE firmware installation with IVT and mentioned issues with standalone hex flashing, please share your linker script. Once I see those, I can help identify if there are misconfigurations or missing setup steps. mymilestonecard.com activate

Re: code not jumping to main after flashing hex for hse installation

If the issue is that the application is not starting after reset, but works in debug mode, it's almost always due to:

  • IVT pointing to wrong reset vector

  • HSE firmware address mismatch

  • Linker not placing IVT/boot_header in correct location

  • Reset vector section not mapped correctly

  • publixsurvey.com
Re: code not jumping to main after flashing hex for hse installation

Hi ,

  I had ported the example code given for the s32k344, i have checked and found that the linker file is same with s32k344 .

i have attached the files in the message . kindly check and let me know what i am doing wrong.

Re: code not jumping to main after flashing hex for hse installation

Hi,

For the S32K312, ensure the IVT and boot configuration are correctly set in your linker file and boot_header.c. Check the HSE GPR status register to confirm if the firmware is present. If issues persist, align your IVT update process with the NXP sample project, as improper IVT updates can cause boot failures.

Re: code not jumping to main after flashing hex for hse installation

Kindly provide solution


Tags (1)
No ratings
Version history
Last update:
‎11-21-2025 11:58 PM
Updated by: