Hey guys,
I managed to enable the HSM but now the board is stuck in a reset loop and after 2 resets S32 asks for jtagpassword, which i dont know.
I didnt do anything fancy, I unlocked the utest area and wrote the DCF record(using some of the code from program and erase example). The utest area is now locked again.
The issue is that i would like to get the board back up and running since i dont know what went wrong. I managed to get my hands on a spare Lauterbach and from what i can see everything is fine, the utest area is locked, DCF is written, HSE and HSB both = 1.
Update1: I stepped the board using lauterbach and it turns out it fails when it gets to BAF area, specifically at 0x004057C6
Update2: the part at which it fails is the destructive reset register.
Solved! Go to Solution.
solution found, we needed the SHE firmware flash script... clearer documentation would be helpful next time
How do you enable the HSM? I want to enable HSM in my board. I am using MPC5748G LCEVB. Can you help me for enabling HSM?
Hi,
It is quite simple.
You have to program HSM enable DCF record into UTEST flash memory in first available space starting from 0x400300 address. HSM enable record is described in security reference manual.
I cannot share it here on community as it is confidential.
Peter
solution found, we needed the SHE firmware flash script... clearer documentation would be helpful next time
Well, this is quire sensitive theme and I cannot share information from security reference manual here.
But here is the general scheme:
So for correct HSM boot you need to have valid boot header in the correct bootable location. All HSM bootable locations are described in security reference manual.
Hi,
Well it looks like you don't have correct RCHW programmed.
As the BAF is not able to find valid program bootable start address.
Peter
Hi Peter,
Thanks for the reply, how can i do this, do i need to program the hsm baf record(the one that has no documentation at all) on page 2833 or a normal one like shown on page 2839 of the reference document.
I also noticed there is a bootloader example in s32 and it's .rbf file sets the 16kb hsm block area, should i use that as a guide?