S32K310 HSE Firmware Protection Not Working After Flashing Hex (Converted from Pink) via NuProgPlus

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

S32K310 HSE Firmware Protection Not Working After Flashing Hex (Converted from Pink) via NuProgPlus

501 Views
error81
Contributor I

Hello,

I'm using the S32K310 and trying to install the HSE full memory firmware and user application using a NuProgPlus gang programmer.
I would like to confirm whether my flashing sequence is correct and understand why the HSE firmware appears to be erased even after reset.

Flashing Procedure

  1. I converted the official HSE pink image (.pink) to .hex using srec_cat.

    • Example: srec_cat hse.pink -binary -offset 0x00400000 -Intel -o hse.hex

  2. I used NuProgPlus to download this .hex file to address 0x00400000.

  3. After flashing, I performed an MCU reset (to allow SBAF to boot and protect the secure region).

  4. Then I executed MCU Erase All via NuProgPlus.

  5. After that, I flashed my application.

Problem

After step 4 (Erase All), I checked the flash memory and found that the previously installed HSE firmware is completely erased,
suggesting that the SBAF secure protection did not activate properly.

 

My Questions

  1. Is this flashing procedure acceptable for installing HSE + user application using NuProgPlus?

  2. If I use a .hex file (converted from .pink) instead of the raw .pink,
    does SBAF still recognize and protect the HSE firmware area correctly?

  3. What is the minimum wait/reset timing required after flashing the HSE firmware to ensure SBAF sets up the secure area?

  4. Is it mandatory to offset the user application address (e.g., start from 0x00430000) to avoid conflict with the HSE firmware?

  5. Does NuProgPlus offer an option to exclude specific regions from erase (e.g., prevent erase of 0x00400000~0x0042BFFF)?

 

Any clarification on whether .hex-based HSE installation is valid, and how to ensure the firmware remains protected after erase, would be greatly appreciated.

Thank you!

 

S32K3 

0 Kudos
Reply
1 Reply

474 Views
VaneB
NXP TechSupport
NXP TechSupport

Hi @error81 

I am not familiar with the functionality of NuProgPlus, but for a more in-depth understanding of HSE firmware installation, we offer an Application Note with step-by-step instructions. You can download this resource from the following location:

S32K3 Microcontrollers for Automotive General Purpose → Documentation → Secure Files → HSE FW Install for S32K3xx.

Also, I recommend referring to the S32K344_HSE_FW_INSTALL demo provided with the S32K3 MCUs for General Purpose HSE Demo Examples

 

BR, VaneB

0 Kudos
Reply