HSE FW installation steps

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

HSE FW installation steps

Jump to solution
198 Views
anilsp31PA
Contributor III

Hi,

As per steps mentioned in the Demo Application as well as i AN13465, can I use following simple steps to program the HSE FW?

1. Write “HSE FW feature flag” in the UTEST area with 0xAABBCCDDDDCCBBAA.

2. Program the encrypted image of HSE FW at start location of code flash area i.e. 0x00400000.

3. Give a reset by Power cycle of the board.

So will the above steps install the HSE-FW for the first time? Or is anything more needed?

 

Thanks,

Anil

Tags (2)
0 Kudos
Reply
1 Solution
179 Views
VaneB
NXP TechSupport
NXP TechSupport

Hi @anilsp31PA 

HSE Firmware can be installed using one of the following 3 methods:

  • Installation via IVT
  • Programming an encrypted FW‑IMG at the default location IVT_START
  • Programming an encrypted FW‑IMG using the MU interface

Installation via IVT is required to perform the following steps:

  • Enable the HSE feature flag by programming an 8‑byte value not consisting entirely of 0xFF into the UTEST address 0x1B000000
  • Set the HSE firmware storage address in the IVT (refer to Section 32.5.3 of the S32K3xx Reference Manual, Rev. 12)
  • Program the HSE firmware into P‑Flash
  • Reset the MCU

For detailed guidance, please refer to the dedicated HSE firmware installation example provided as part of the S32K3 MCUs for General Purpose HSE Demo Examples.

As a simplified alternative, the firmware can be installed by programming the encrypted FW‑IMG at IVT_START. The following steps are required:

  • Enable the HSE feature flag, as described above
  • Program the .pink file at the start address 0x00400000
  • Reset the MCU

With this method, there must be no valid IVT present at the default location IVT_START. More details about this condition are discussed in the following thread:

S32K312 HSE without IVT Install Not Successful

 

BR, VaneB

View solution in original post

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

Hi @anilsp31PA 

HSE Firmware can be installed using one of the following 3 methods:

  • Installation via IVT
  • Programming an encrypted FW‑IMG at the default location IVT_START
  • Programming an encrypted FW‑IMG using the MU interface

Installation via IVT is required to perform the following steps:

  • Enable the HSE feature flag by programming an 8‑byte value not consisting entirely of 0xFF into the UTEST address 0x1B000000
  • Set the HSE firmware storage address in the IVT (refer to Section 32.5.3 of the S32K3xx Reference Manual, Rev. 12)
  • Program the HSE firmware into P‑Flash
  • Reset the MCU

For detailed guidance, please refer to the dedicated HSE firmware installation example provided as part of the S32K3 MCUs for General Purpose HSE Demo Examples.

As a simplified alternative, the firmware can be installed by programming the encrypted FW‑IMG at IVT_START. The following steps are required:

  • Enable the HSE feature flag, as described above
  • Program the .pink file at the start address 0x00400000
  • Reset the MCU

With this method, there must be no valid IVT present at the default location IVT_START. More details about this condition are discussed in the following thread:

S32K312 HSE without IVT Install Not Successful

 

BR, VaneB

0 Kudos
Reply
162 Views
anilsp31PA
Contributor III

It worked.

Thanks for your support.

 

Anil

0 Kudos
Reply
%3CLINGO-SUB%20id%3D%22lingo-sub-2358684%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3EHSE%20FW%20installation%20steps%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2358684%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%2C%3C%2FP%3E%3CP%3EAs%20per%20steps%20mentioned%20in%20the%20Demo%20Application%20as%20well%20as%20i%20AN13465%2C%20can%20I%20use%20following%20simple%20steps%20to%20program%20the%20HSE%20FW%3F%3C%2FP%3E%3CP%3E1.%20Write%26nbsp%3B%E2%80%9CHSE%20FW%20feature%20flag%E2%80%9D%20in%20the%20UTEST%20area%20with%26nbsp%3B0xAABBCCDDDDCCBBAA.%3C%2FP%3E%3CP%3E2.%26nbsp%3BProgram%20the%20encrypted%20image%20of%20HSE%20FW%20at%20start%20location%20of%20code%20flash%20area%20i.e.%200x00400000.%3C%2FP%3E%3CP%3E3.%20Give%20a%20reset%20by%20Power%20cycle%20of%20the%20board.%3C%2FP%3E%3CP%3ESo%20will%20the%20above%20steps%20install%20the%20HSE-FW%20for%20the%20first%20time%3F%20Or%20is%20anything%20more%20needed%3F%3C%2FP%3E%3CBR%20%2F%3E%3CP%3EThanks%2C%3C%2FP%3E%3CP%3EAnil%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2358814%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20HSE%20FW%20installation%20steps%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2358814%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F229232%22%20target%3D%22_blank%22%3E%40anilsp31PA%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EHSE%20Firmware%20can%20be%20installed%20using%20one%20of%20the%20following%203%20methods%3A%3C%2FP%3E%0A%3CUL%3E%0A%3CLI%3EInstallation%20via%20IVT%3C%2FLI%3E%0A%3CLI%3EProgramming%20an%20encrypted%20FW%E2%80%91IMG%20at%20the%20default%20location%20IVT_START%3C%2FLI%3E%0A%3CLI%3EProgramming%20an%20encrypted%20FW%E2%80%91IMG%20using%20the%20MU%20interface%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CP%3EInstallation%20via%20IVT%20is%20required%20to%20perform%20the%20following%20steps%3A%3C%2FP%3E%0A%3CUL%20class%3D%22lia-list-style-type-circle%22%3E%0A%3CLI%3EEnable%20the%20HSE%20feature%20flag%20by%20programming%20an%208%E2%80%91byte%20value%20not%20consisting%20entirely%20of%200xFF%20into%20the%20UTEST%20address%200x1B000000%3C%2FLI%3E%0A%3CLI%3ESet%20the%20HSE%20firmware%20storage%20address%20in%20the%20IVT%20(refer%20to%20Section%2032.5.3%20of%20the%20S32K3xx%20Reference%20Manual%2C%20Rev.%2012)%3C%2FLI%3E%0A%3CLI%3EProgram%20the%20HSE%20firmware%20into%20P%E2%80%91Flash%3C%2FLI%3E%0A%3CLI%3EReset%20the%20MCU%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CP%3EFor%20detailed%20guidance%2C%20please%20refer%20to%20the%20dedicated%20HSE%20firmware%20installation%20example%20provided%20as%20part%20of%20the%20%3CA%20href%3D%22https%3A%2F%2Fwww.nxp.com%2Fwebapp%2FDownload%3FcolCode%3DS32K3_HSE_DemoExamples%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noreferrer%22%3ES32K3%20MCUs%20for%20General%20Purpose%20HSE%20Demo%20Examples%3C%2FA%3E.%3C%2FP%3E%0A%3CP%3EAs%20a%20simplified%20alternative%2C%20the%20firmware%20can%20be%20installed%20by%20programming%20the%20encrypted%20FW%E2%80%91IMG%20at%20IVT_START.%20The%20following%20steps%20are%20required%3A%3C%2FP%3E%0A%3CUL%20class%3D%22lia-list-style-type-circle%22%3E%0A%3CLI%3EEnable%20the%20HSE%20feature%20flag%2C%20as%20described%20above%3C%2FLI%3E%0A%3CLI%3EProgram%20the%20.pink%20file%20at%20the%20start%20address%200x00400000%3C%2FLI%3E%0A%3CLI%3EReset%20the%20MCU%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CP%3EWith%20this%20method%2C%20there%20must%20be%20no%20valid%20IVT%20present%20at%20the%20default%20location%20IVT_START.%20More%20details%20about%20this%20condition%20are%20discussed%20in%20the%20following%20thread%3A%3C%2FP%3E%0A%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2FS32K%2FS32K312-HSE-without-IVT-Install-Not-Successful%2Ftd-p%2F2096756%22%20target%3D%22_blank%22%3ES32K312%20HSE%20without%20IVT%20Install%20Not%20Successful%3C%2FA%3E%3C%2FP%3E%0A%3CBR%20%2F%3E%0A%3CP%3EBR%2C%20VaneB%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2359311%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20HSE%20FW%20installation%20steps%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2359311%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EIt%20worked.%3C%2FP%3E%3CP%3EThanks%20for%20your%20support.%3C%2FP%3E%3CBR%20%2F%3E%3CP%3EAnil%3C%2FP%3E%3C%2FLINGO-BODY%3E