How to run app on internal RAM with OTFAD ?

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

How to run app on internal RAM with OTFAD ?

Jump to solution
1,049 Views
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

Tags (1)
0 Kudos
Reply
1 Solution
1,027 Views
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

View solution in original post

0 Kudos
Reply
3 Replies
1,028 Views
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 Kudos
Reply
1,011 Views
samet-san
Contributor II

Thank you Diego

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


0 Kudos
Reply
1,003 Views
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 Kudos
Reply