Failed to run OTFAD encrypted code on RT1010_EVK

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Failed to run OTFAD encrypted code on RT1010_EVK

ソリューションへジャンプ
1,520件の閲覧回数
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,435件の閲覧回数
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,436件の閲覧回数
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,435件の閲覧回数
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 件の賞賛
返信