XIP nor flash only working in RAM not working in external flash

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

XIP nor flash only working in RAM not working in external flash

262 Views
sandeepc
Contributor III

Hi,

controller: IMxRT1170

For custom bootloader iam using ROM api to store the received bin file in to flash memory.

when i run in complete application in DTCM RAM working fine.

sandeepc_0-1714388146079.png

But since i am doing bootloader it has to execute from xip nor flash this is not working, what are the things needs to be change to execute in XIP (nor flash).

All rom related function i placed to ram section still its not working.

sandeepc_1-1714388393655.png

 

@kerryzhou @RT1170 @nxp 

 

Regards,

Sandeep C

 

0 Kudos
4 Replies

199 Views
diego_charles
NXP TechSupport
NXP TechSupport

Hi @sandeepc 

Did you had success by doing the update I mentioned in this post? This could save you effort and will enable you to place Boot ROM API calls in Flash.

https://community.nxp.com/t5/i-MX-RT/RT1170-EVKB-fsl-romapi-does-not-work/m-p/1856980/highlight/true...

Let me know if you are still finding any related issues, or comments. 

All the best, 

Diego

 

232 Views
kerryzhou
NXP TechSupport
NXP TechSupport

Hi @sandeepc ,

  1. to the RAM demo run in the flash, it is the non-xip situation, you can refer to my document:

https://community.nxp.com/t5/i-MX-RT-Knowledge-Base/How-to-load-MDK-RAM-app-to-the-RT1170-external-f...

 

2. to the ROM_API demo run in the flash, that should works, just need to leave enough internal RAM to the ROM API.

kerryzhou_0-1714471039403.png

Make sure, when you run the ROM_API code, don't let your app use the ROM API RAM memory.

 

Please try it on your side.

If you still have question about it, please kindly let me know.

Best Regards,

Kerry

 

0 Kudos

227 Views
sandeepc
Contributor III
Thanks for the reply
1) you mean we have to install keil ide to do 1st step?
2) Instead of keil can we do it MCUxpresso? if yes can you share documnet.




Regards
Sandeep C
0 Kudos

225 Views
kerryzhou
NXP TechSupport
NXP TechSupport

Hi @sandeepc 


1) you mean we have to install keil ide to do 1st step?

=>Kerry: No, I mean, in the MCUXPresso IDE, you need also do the memory offset, then generate the RAM app project, and use the mcubootutility to download the code.


2) Instead of keil can we do it MCUxpresso? if yes can you share documnet.

=>Answer: Yes

MCUXpresso document don't have directly, as I didn't write it, but that is also the same, in the memory, do the offset, then generate the image, then use the mcubootutility to download the code like the document.

You can try it, if you still have question about it, I will help you.

But, in fact, I think the ROM API should also works in the flash, in fact, you don't need to run the none-xip image.

 

Best Regards,

Kerry