Hello,
We are still facing HSE initialization
issue on S32K324 AB_SWAP configuration.
[Environment]
- Device: S32K324 (AB_SWAP)
- SBAF version: v0.15.0.6
- HSE FW Pink Image:
s32k3x4_hse_fw_1.5.0_2.55.0
_pb250130.bin.pink
- IVT @ 0x00400000
- Pink Image @ 0x00422000
- BCW = 0x00000201
(FW_USAGE_FLAG_PROGRAM=1,
CM7_0_ENABLE=1)
[Register Values after Power ON]
- GPR3 (0x4039C028) = 0x00000081
bit0=1: HSE FW booted
bit7=1: SBAF random IV
bit1=0: MU Install mode NOT active
- GPR4 (0x4039C02C) = 0x00000001
- MU_FSR(0x4038C104) = 0x00400000
bit6=1: HOST_DEBUGGER_ACTIVE
bit8=0: HSE_STATUS_INIT_OK NOT set
- MU_GSR(0x4038C118) = 0xF7060001
- MU_RX0(0x4038C280) = 0x00000000
No response from SBAF
- DCMRWP1(0x402AC400) = 0xA5000500
bits[24:31]=0xA5 set
Recovery Counter = 5
- UTEST(0x1B000000) = 0xAABBCCDDDDCCBBAA ✓
[Problem]
1. HSE FW is booted (GPR3 bit0=1)
but HSE_STATUS_INIT_OK never set
2. SBAF does not enter MU Install
mode (GPR3 bit1=0, MU_RX0=0)
even though:
- DCMRWP1 bits[24:31] = 0xA5
- FW_USAGE_FLAG_PROGRAM = 1 in BCW
3. MU_GSR = 0xF7060001
Many flags set - possible HSE
internal error?
[Questions]
1. What does MU_GSR=0xF7060001
indicate?
2. Why is HSE_STATUS_INIT_OK not set
even though HSE FW is booted?
3. Why does SBAF not enter MU Install
mode despite all conditions met?
4. How can we force HSE FW
reinstallation in this state?
Thank you!
Hello,
Following your suggestion,
we performed HSE Firmware
Handshake (section 14.6.7).
[What we did]
1. Reset repeated until
GPR3 = 0xC2
(bit1=1: MU Install mode)
2. MU Install attempted:
- Received 0xAA55A55A
(Passive FW present)
- Performed Swap
- After Reset: GPR3 = 0xE0
(Recovery mode, no FW)
3. This loop repeats indefinitely:
0xC2 → 0xAA55A55A
→ Swap → 0xE0 → 0xC2...
[Register Values]
- DCMSTAT = 0x00030FF1
(Swap count increasing)
- MU_GSR = 0xF7060001
(HSE_ERR_GENERAL persists)
- GPR3 = 0xE0 after Swap
[Questions]
1. Why does SBAF respond
0xAA55A55A (FW present)
but GPR3=0xE0 after Swap?
2. Is HSE_ERR_GENERAL related
to Pink Image compatibility?
We use:
s32k3x4_hse_fw_1.5.0
_2.55.0_pb250130.bin.pink
for S32K324
3. Is there a specific Pink Image
version required for S32K324?
4. How to resolve this loop?
Thank you!
1) I would mainly deal with HSE_ERR_GENERAL.
2) Just because of that error.
3) That’s good question. I am not completely sure if mentioned error prevents MU installation but what I know is that
If the device is in AB_SWAP configuration, the firmware needs to be installed if it gets erased by SBAF due to some issue in the firmware as explained in the section HSE Firmware Handshake. The only way through which HSE Firmware can be installed is - “Installation via MU interface”.
what leads to the next point
4) It is needed perform HSE Firmware Handshake (as described in section 14.6.7 HSE Firmware Handshake) which can finally lead either in recovering of broken FW from backup or erasing of FW.