Failed to run OTFAD encrypted code on RT1010_EVK

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

Failed to run OTFAD encrypted code on RT1010_EVK

跳至解决方案
1,586 次查看
calvin1
Contributor II

Hi, 

As title, I would like to run the OTFAD encryption image in QSPI XIP mode on RT1010, I was using NXP-MCUBootUtility 2.3 to program "led_blinky_0x6000a000.srec" from the apps folder, however, if I program this file in "DEV unsigned image boot" or "HAB signed image boot", it could run normally, but if I program the file in "OTFAD Encrypted Image Boot", the LED will not blink, as I already tried this on three of my EVK boards, I currently don't have any other "clean chip" to try any different settings, so I would like to ask if anyone knows what happened on my board?

And please let me know what change could I make to let my board successfully run in OTFAD?

Here are settings of NXP-MCUBootUtility:

pastedImage_4.png

pastedImage_5.png

pastedImage_2.png

pastedImage_3.png

Thanks

标签 (1)
0 项奖励
回复
1 解答
1,501 次查看
victorjimenez
NXP TechSupport
NXP TechSupport

Hi Calvin, 

This behavior is caused because you cannot make any frequency adjustments in the encrypted code area. This is specified in the application note AN12670. You can request this app note from the following link. Due to this, your application is currently crashing when it reaches the function BOARD_BootClockRUN. To avoid this from happening you need to move this function and all the other functions related to a flash are outside the OTFAD. My co-worker Kerry provided an example project that demonstrates how to achieve this, please refer to her last reply in the following community thread. https://community.nxp.com/thread/536241 

Have a great day,

Victor

-------------------------------------------------------------------------------

Note:

- If this post answers your question, please click the "Mark Correct"button. Thank you!

- We are following threads for 7 weeks after the last post, later replies are ignored

Please open a new thread and refer to the closed one, if you have a related question at a later point in time.

------------------------------------------------------------------------------- 

在原帖中查看解决方案

0 项奖励
回复
2 回复数
1,502 次查看
victorjimenez
NXP TechSupport
NXP TechSupport

Hi Calvin, 

This behavior is caused because you cannot make any frequency adjustments in the encrypted code area. This is specified in the application note AN12670. You can request this app note from the following link. Due to this, your application is currently crashing when it reaches the function BOARD_BootClockRUN. To avoid this from happening you need to move this function and all the other functions related to a flash are outside the OTFAD. My co-worker Kerry provided an example project that demonstrates how to achieve this, please refer to her last reply in the following community thread. https://community.nxp.com/thread/536241 

Have a great day,

Victor

-------------------------------------------------------------------------------

Note:

- If this post answers your question, please click the "Mark Correct"button. Thank you!

- We are following threads for 7 weeks after the last post, later replies are ignored

Please open a new thread and refer to the closed one, if you have a related question at a later point in time.

------------------------------------------------------------------------------- 

0 项奖励
回复
1,501 次查看
calvin1
Contributor II

Hi Victor,

After modify code as the post  XIP through OTFAD problems on RT1011  mentioned, now the blinking project works,

thank you.

Calvin

0 项奖励
回复