How to run app on internal RAM with OTFAD ?

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

How to run app on internal RAM with OTFAD ?

跳至解决方案
1,055 次查看
samet-san
Contributor II

Hello 

I want to run my application on internal RAM. And I use OTFAD. 

I want to copy it to internal RAM  and run it after OTFAD decrypt application

 

How can I do it ? 
Thank you

标记 (1)
0 项奖励
回复
1 解答
1,033 次查看
diego_charles
NXP TechSupport
NXP TechSupport

Hi @samet-san 

I understand that you want to store an encrypted image on XIP flash and then execute it from SRAM, please let me know otherwise.

Since the OTFAD can only decrypt from FlexSPI, we may need a bootloader to copy decrypted  image from flash to internal SRAM. Let me check for the simplest solution we could have available.

If you have more details to add regarding your requirements, please let me know.

Diego

在原帖中查看解决方案

0 项奖励
回复
3 回复数
1,034 次查看
diego_charles
NXP TechSupport
NXP TechSupport

Hi @samet-san 

I understand that you want to store an encrypted image on XIP flash and then execute it from SRAM, please let me know otherwise.

Since the OTFAD can only decrypt from FlexSPI, we may need a bootloader to copy decrypted  image from flash to internal SRAM. Let me check for the simplest solution we could have available.

If you have more details to add regarding your requirements, please let me know.

Diego

0 项奖励
回复
1,017 次查看
samet-san
Contributor II

Thank you Diego

It will be better if i start to make a bootloader.  


0 项奖励
回复
1,009 次查看
diego_charles
NXP TechSupport
NXP TechSupport

Hi @samet-san 

Ok, yes, that is an alternative! We have some bootloader codes avaiable, eventougth they do not support your application use case, they can be used as a reference to boot to the application, they are the flashloader and the NXP SBL

Diego

0 项奖励
回复