We are using the NXP S32K312 MCU and currently 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 for Assistance:
1.Could you please provide the correct and recommended 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?
Process we followed HSE firmware flashing.
step 1:We 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
Please find Screenshots for reference






@lukaszadrapa Please help me to resolve these issues