Hi jze duan,
Do you want to put all the code to the QSPI and run from qspi, or just want to put some part of the code to the qspi flash, and still run from the internal flash?
If you want to run from the qspi, you can refer to this document:
https://www.nxp.com/docs/en/user-guide/MBOOTQSPIUG.pdf
If you just want to copy part of the code to the QSPI, you can refer to my attached code.
Wish it helps you!
If you still have question about it, please kindly let me know.
Have a great day,
kerry
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------