Currently, I am attempting to store code in the external QSPI and to execute it in internal RAM.
With MCUXpresso, this should be quite easy. You prepare a firmware stored in flash (XIP_EXTERNAL_FLASH=1 and XIP_BOOT_HEADER_ENABLE=1), and you set Plain Load Image flag with the desider memory area (SRAM_OC in my case).
Nonetheless, the operation does not work. After loading the firmware, I get a SIGTRAP at address 0xDEADBEEE.
Note that I read various threads on the forum, but I was unable to find a final solution.
Also note that I am using JLink on the JTAG/SWD port to program and debug the device.
Finally, the firmware runs with no problem as XIP.
Thanks in advance for any help!