[i.MX RT1172] Signed image cannot boot, and breaks at 0x223104

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

[i.MX RT1172] Signed image cannot boot, and breaks at 0x223104

Jump to solution
1,688 Views
Miller
Contributor II

I am developing with RT1172 M7. MCU boots failed and breaks at 0x223104.

Does anyone have suggestions for this case? Thank you very much!

Before that, I have written the SRK_1_2_3_4_fuse and closed SEC_CONFIG, then signed the image and burned it into flash.

Miller_0-1616062019978.png

 

Additional information:

a. Memory

Miller_1-1616062291397.png

Miller_2-1616062306394.png

b. Generate HAB4 PKI Tree.

Miller_3-1616062336806.png

c. Generate SRK table and fuse.

Miller_0-1616063353041.png

d. Sign the image and merge the signature bin.

Miller_2-1616063481018.png

e. Write SRKH and check.(fuse index 0x30~0x37)

Miller_3-1616063496372.png

f. Write SEC_CONFIG fuse and check. (fuse index 0x16)

Miller_4-1616063507742.png

g. Burn the signed image and reboot.

Miller_5-1616063516721.png

More info you can find in the attachment.

Tags (1)
0 Kudos
1 Solution
1,614 Views
Miller
Contributor II

I have resolved this issue.

The critical step is: merge the right FDCB to address 0x30000400.

(Once your code changes, the FDCB may change)

Miller_0-1617356844076.png

 

View solution in original post

0 Kudos
5 Replies
1,651 Views
victorjimenez
NXP TechSupport
NXP TechSupport

Hello, 

To provide you better support I will need more information from your end. Are you using our EVK or a custom board? If you are using a custom board, did you try to flash your image before securing it? If so, did it work? Probably the problem is not related to securing your board but with the hardware. How are you loading the image into the flash? 

Regards,
Victor 

 

0 Kudos
1,615 Views
Miller
Contributor II

I have resolved this issue.

The critical step is: merge the right FDCB to address 0x30000400.

(Once your code changes, the FDCB may change)

Miller_0-1617356844076.png

 

0 Kudos
1,625 Views
Miller
Contributor II

Hi Victor,

Thanks for your support.

a. I'm using a custom board.

b. Sure, I have flashed the image before securing it, and it runs normally.

c. As you can see in the picture at step (g). I use J-Link to burn the image.

 

And another question, how can I get the HAB event with RT1172?

0 Kudos
1,671 Views
Miller
Contributor II

And also tried with different csf configuration.

Miller_1-1616133117057.png

@kerryzhou  Please help, thanks.

 

0 Kudos
1,671 Views
Miller
Contributor II

Modify the csf address and still not work.

Miller_0-1616133017211.png

 

0 Kudos