Corruption on HSE Status Register

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

Corruption on HSE Status Register

695 Views
abdul_rahiman_csg
Contributor II

Images below for reference

abdul_rahiman_csg_0-1753449874831.png

abdul_rahiman_csg_1-1753449924290.pngabdul_rahiman_csg_2-1753449953207.pngabdul_rahiman_csg_3-1753449971206.png

abdul_rahiman_csg_4-1753449998730.png

using S32K312 and facing issues with the HSE firmware:

1.The HSE status register value appears corrupted (0x4038C107).

2.Unable to access HSE APIs due to this status corruption.

3.Attempts to erase or reflash the HSE firmware have failed.

4.Writing to MU0_TR1 register or memory to trigger erase/reset commands does not work.

5.Observed multiple software resets during a single external reset when debugger is connected.

Request:

1.Could you please provide the correct procedure to erase and reflash the HSE firmware on the S32K312?

2.If reflashing the HSE firmware is not possible due to the current corrupted state, what steps can be taken to recover the HSE or resolve the status register corruption?

3.Any known issues or workarounds for the multiple resets observed during hard reset with debugger attached?
4.How can I resolve the corrupted HSE status register issue and regain access to the HSE APIs?

 

Procedure followed during HSE firmware flashing:


step 1: flashed the provided PINK file without IVT along with the demo application and the secure boot application ELF files.
step2: Reset done
Step3: Observed "??" marks at HSE locations 0x005d4000 and DCM registers
Step4: We reflashed our bootloader at address 0x00400000 and the application at address 0x00442000
Step5: When performing a hard reset with the debugger connected, we observed multiple resets triggered from the software side, despite issuing only a single external reset command

Tags (2)
0 Kudos
Reply
1 Reply
%3CLINGO-SUB%20id%3D%22lingo-sub-2141039%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ECorruption%20on%20HSE%20Status%20Register%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2141039%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3E%3CSTRONG%3EImages%20below%20for%20reference%3C%2FSTRONG%3E%3CBR%20%2F%3E%3CBR%20%2F%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22abdul_rahiman_csg_0-1753449874831.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22abdul_rahiman_csg_0-1753449874831.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F349540i1DA8D3F43CE6BD03%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22abdul_rahiman_csg_0-1753449874831.png%22%20alt%3D%22abdul_rahiman_csg_0-1753449874831.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22abdul_rahiman_csg_1-1753449924290.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22abdul_rahiman_csg_1-1753449924290.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F349541iDBD1AC9393D185F4%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22abdul_rahiman_csg_1-1753449924290.png%22%20alt%3D%22abdul_rahiman_csg_1-1753449924290.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22abdul_rahiman_csg_2-1753449953207.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22abdul_rahiman_csg_2-1753449953207.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F349542i28B8228C6A06C26B%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22abdul_rahiman_csg_2-1753449953207.png%22%20alt%3D%22abdul_rahiman_csg_2-1753449953207.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22abdul_rahiman_csg_3-1753449971206.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22abdul_rahiman_csg_3-1753449971206.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F349543i17A4E1CE975FF444%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22abdul_rahiman_csg_3-1753449971206.png%22%20alt%3D%22abdul_rahiman_csg_3-1753449971206.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22abdul_rahiman_csg_4-1753449998730.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22abdul_rahiman_csg_4-1753449998730.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F349544i4F106C62A04934DE%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22abdul_rahiman_csg_4-1753449998730.png%22%20alt%3D%22abdul_rahiman_csg_4-1753449998730.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3Eusing%20S32K312%20and%20facing%20issues%20with%20the%3CSTRONG%3E%20HSE%20firmware%3A%3C%2FSTRONG%3E%3C%2FP%3E%3CP%3E1.The%20HSE%20status%20register%20value%20appears%20corrupted%20(0x4038C107).%3C%2FP%3E%3CP%3E2.Unable%20to%20access%20HSE%20APIs%20due%20to%20this%20status%20corruption.%3C%2FP%3E%3CP%3E3.Attempts%20to%20erase%20or%20reflash%20the%20HSE%20firmware%20have%20failed.%3C%2FP%3E%3CP%3E4.Writing%20to%20MU0_TR1%20register%20or%20memory%20to%20trigger%20erase%2Freset%20commands%20does%20not%20work.%3C%2FP%3E%3CP%3E5.Observed%20multiple%20software%20resets%20during%20a%20single%20external%20reset%20when%20debugger%20is%20connected.%3C%2FP%3E%3CP%3E%3CSTRONG%3ERequest%3A%3C%2FSTRONG%3E%3C%2FP%3E%3CP%3E1.Could%20you%20please%20provide%20the%20correct%20procedure%20to%20erase%20and%20reflash%20the%20HSE%20firmware%20on%20the%20S32K312%3F%3C%2FP%3E%3CP%3E2.If%20reflashing%20the%20HSE%20firmware%20is%20not%20possible%20due%20to%20the%20current%20corrupted%20state%2C%20what%20steps%20can%20be%20taken%20to%20recover%20the%20HSE%20or%20resolve%20the%20status%20register%20corruption%3F%3C%2FP%3E%3CP%3E3.Any%20known%20issues%20or%20workarounds%20for%20the%20multiple%20resets%20observed%20during%20hard%20reset%20with%20debugger%20attached%3F%3CBR%20%2F%3E4.How%20can%20I%20resolve%20the%20corrupted%20HSE%20status%20register%20issue%20and%20regain%20access%20to%20the%20HSE%20APIs%3F%3C%2FP%3E%3CBR%20%2F%3E%3CP%3EProcedure%20followed%20during%20HSE%20firmware%20flashing%3A%3C%2FP%3E%3CP%3E%3CBR%20%2F%3Estep%201%3A%20flashed%20the%20provided%20PINK%20file%20without%20IVT%20along%20with%20the%20demo%20application%20and%20the%20secure%20boot%20application%20ELF%20files.%3CBR%20%2F%3Estep2%3A%20Reset%20done%3CBR%20%2F%3EStep3%3A%20Observed%20%3CSTRONG%3E%22%3F%3F%22%3C%2FSTRONG%3E%20marks%20at%20HSE%20locations%200x%3CSTRONG%3E005d4000%3C%2FSTRONG%3E%20and%20%3CSTRONG%3EDCM%3C%2FSTRONG%3E%20registers%3CBR%20%2F%3EStep4%3A%20We%20reflashed%20our%20bootloader%20at%20address%200x%3CSTRONG%3E00400000%3C%2FSTRONG%3E%20and%20the%20application%20at%20address%200x%3CSTRONG%3E00442000%3C%2FSTRONG%3E%3CBR%20%2F%3EStep5%3A%20When%20performing%20a%20hard%20reset%20with%20the%20debugger%20connected%2C%20we%20observed%20multiple%20resets%20triggered%20from%20the%20software%20side%2C%20despite%20issuing%20only%20a%20single%20external%20reset%20command%3C%2FP%3E%3C%2FLINGO-BODY%3E