AnsweredAssumed Answered

Application runs from RAM but not from QSPI configured for XIP.

Question asked by THIVYA ASHOK KUMAR on Nov 26, 2019
Latest reply on Nov 27, 2019 by Kerry Zhou

Hi there,

I'm using an i.MXRT1052 and I'm trying to run XIP from the QSPI flash. i use MCUXpresso IDE v11.0.1. I've made all the necessary changes mentioned in the application notes. I'm also able to run the sdk sample projects from the flash. However, when I try my own project, I have no problem when I run the code from RAM by selecting "Link Application to RAM" and I'm able to step through all my functions and it works as expected. However, when I uncheck the option and try to run it XIP in flash, I see something strange in my Disassembly window and there are no actual jump addresses for functions and when I try to step into my functions, it just drops through the stack and none of the functions are executed. 

I'm attaching a screenshot of my disassembly where there are no actual jump addresses to the locations where the function definitions live. 

If anyone can throw some light on what I'm missing here to make it run from the flash, it'll be of great help.