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!
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!
-----------------------------------------------------------------------------------------------------------------------
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!