How to enable XIP mode for booting from QSPI flash?

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

How to enable XIP mode for booting from QSPI flash?

1,926 Views
junixwu
Contributor II

How to enable XIP mode for booting from QSPI flash?

We need to run FreeRTOS on QSPI NOR FLASH,and disable DDR for power saving。

Internal ram size is too small,so we have to put the code on QSPI flash and run code in QSPI flash。 

What can we do for booting from QSPI flash at XIP mode?do modify the QuadSPI Configuration Parameters(8.6.3) or  Look-up Table(40.5.3.4) ?

Thank you very much!

Labels (1)
0 Kudos
2 Replies

1,454 Views
igorpadykov
NXP Employee
NXP Employee

Hi junix

for xip please change destination memory pointed to qspi,

as described in Figure 8-21. Image Vector Table i.MX6UL Reference Manual

also

- from sect.8.6.2 QuadSPI Serial Flash BOOT Operation :

For XIP boot, the image has to be built for QuadSPI address space

- from sect.40.8.1.4, 40.8.3 Boot initialization sequence :

When in XIP mode the software should ensure that all the flashes connected to the
controller are in XIP mode. As a part of initializing the controller, all the flashes may be
enabled with XIP by carrying out dummy reads.

http://cache.freescale.com/files/32bit/doc/ref_manual/IMX6ULRM.pdf 

Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

1,454 Views
junixwu
Contributor II

Thank you for your reply!

I double checked according to the process you gave and found that my entry was wrong。

I fixed it now,it can run normally at QSPI flash address!

Thanks!

0 Kudos