Hello,
I am trying to install HSE Firmware
on S32K324 using MU Install method,
but SBAF does not enter
MU Install mode (GPR3 bit1 = 0).
[Environment]
- Device: S32K324
- HSE FW: s32k3x4_hse_fw_1.5.0_2.55.0
_pb250130.bin.pink
- SBAF Version: GPR2 = 0x500
- Lifecycle: CUST_DEL
[Current Status]
- IVT @ 0x00400000
- HSE_ADDR (offset 0x30) = 0x00422000
- Pink Image @ 0x00422000 (confirmed)
- UTEST 0x1B000000 = 0xDDCCBBAA
- UTEST 0x1B000004 = 0xAABBCCDD
- HSE FW not installed
(0x005D4000 = 0xFFFFFFFF)
- MU Clock enabled before MU Install
[GPR3 Status after Reset]
- GPR3 (0x4039C028) = 0xC0
- bit7 = 1 (SBAF random IV)
- bit6 = 1 (Reserved)
- bit1 = 0 (MU Install mode NOT set)
- bit0 = 0 (HSE FW not booted)
[MU Status]
- MU_FSR (0x4038C104) = 0x00000000
- MU_RSR (0x4038C12C) = 0x00000000
- MU_RX0 (0x4038C280) = 0x00000000
[Question]
1. Why is SBAF not entering
MU Install mode (GPR3 bit1)?
2. Is Pink Image format correct
for S32K324 with SBAF 0x500?
3. Is there any additional
configuration required for
S32K324 MU Install?
Thank you.
Could you please let me know how to resolve this issue? This issue is very important to me
Hello,
Following up on my previous question,
I have made progress but still have
an issue with HSE initialization.
[Current Status]
- Device: S32K324 (AB_SWAP)
- HSE FW: s32k3x4_hse_fw_1.5.0_2.55.0
_pb250130.bin.pink
- IVT FW_IMG pointer: offset 0x2C = 0x00422000
- Pink Image @ 0x00422000 ✓
- GPR3 (0x4039C028) = 0x81
- bit0 = 1: HSE FW booted ✓
- bit7 = 1: SBAF random IV
[Problem]
After HSE FW boot (GPR3 bit0 = 1),
HSE_STATUS_INIT_OK (bit8 of MU_FSR
upper 16bits) is never set.
MU_FSR (0x4038C104) upper 16bits:
- With debugger: 0x0040
(HSE_STATUS_HOST_DEBUGGER_ACTIVE)
- Without debugger: 0x0000
HSE_STATUS_INIT_OK = (1U << 8U)
= 0x0100 → never set
[Code]
We enable MU clock before
WaitUntilReady:
REG_WRITE32(0x402DC330U, 0x01000000U);
REG_WRITE32(0x402DC304U, 0x00000001U);
REG_WRITE32(0x402DC000U, 0x00005AF0U);
REG_WRITE32(0x402DC000U, 0x0000A50FU);
RetVal = Sherpa_Cdd_WaitUntilReady(
0xFFFFFFFFU,
HSE_STATUS_INIT_OK);
→ Always returns E_NOT_OK
[Questions]
1. Is there additional configuration
required for S32K324 AB_SWAP to
get HSE_STATUS_INIT_OK?
2. Should MU Install Swap sequence
(0x5A5AA5A5) be performed for
S32K324 AB_SWAP?
3. Is Pink Image location (0x00422000)
correct for S32K324 AB_SWAP?
Thank you!
Thank you for your response!
We are glad to hear that you
successfully tested with S32K344.
Regarding your question about
the usual method:
We initially tried the standard
IVT method, but had issues with
the HSE_ADDR offset in the IVT.
★ Root cause we found:
The HSE FW_IMG pointer should be
at IVT offset 0x2C, not 0x30.
After fixing this offset,
GPR3 bit0 became 1 (HSE FW booted).
Could you please share:
1. Your IVT configuration
for S32K344?
2. Which HSE FW version
did you use?
3. How did you verify
successful installation?
Also, do you have any suggestion
for S32K324 HSE initialization
(HSE_STATUS_INIT_OK via MU_FSR)?
Thank you!
Could you share your code? I have already tested this procedure successfully with S32K344, currently trying to test S32K312 ( not working for me yet).
Do you have specific reason why you don't use usual method (i.e. via IVT or default application NVM location)?
Hi
I am waiting for your answer.
Hello,
We are facing an issue with S32K324
in AB_SWAP configuration.
[Current Status]
- Device: S32K324 (AB_SWAP)
- SBAF version: v0.5.1
(GPR2 = 0x00000501)
- HSE FW: s32k3x4_hse_fw_1.5.0
_2.55.0_pb250130.bin.pink
- GPR3 = 0x81
(bit0=1: HSE FW booted)
- UTEST = 0xAABBCCDDDDCCBBAA ✓
- BCW = 0x00000201
(FW_USAGE_FLAG_PROGRAM=1,
CM7_0_ENABLE=1)
- DCMRWP1 bits[24:31] = 0xA5
[Problem]
HSE_STATUS_INIT_OK (MU_FSR bit8)
is never set.
MU_RX0 = 0x00000000
→ SBAF does not enter
MU Install mode
[Root Cause Suspected]
SBAF v0.5.1 may not support:
1. FW_USAGE_FLAG_PROGRAM in BCW
(supported from v0.15.0)
2. MU Install mode for AB_SWAP
We have SBAF update file:
s32k3x4_Secure_Baf_0_5_0_0_16_4_1
_pb251003_bin.pink
[Questions]
1. Is SBAF v0.5.1 compatible with
HSE FW v1.5.0 for AB_SWAP?
2. How can we update SBAF from
v0.5.1 to v0.16.4.1 when
HSE_STATUS_INIT_OK is not set?
3. Is there any way to enter
MU Install mode with SBAF v0.5.1?
Thank you!
I am sorry for delay.
I just answered here: