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

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

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

跳至解决方案
2,225 次查看
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.

标记 (1)
0 项奖励
回复
1 解答
2,151 次查看
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 项奖励
回复
5 回复数
2,188 次查看
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 项奖励
回复
2,152 次查看
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 项奖励
回复
2,162 次查看
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 项奖励
回复
2,208 次查看
Miller
Contributor II

And also tried with different csf configuration.

Miller_1-1616133117057.png

@kerryzhou  Please help, thanks.

 

0 项奖励
回复
2,208 次查看
Miller
Contributor II

Modify the csf address and still not work.

Miller_0-1616133017211.png

 

0 项奖励
回复