Hi @mastupristi ,
Thank you for your interest in the NXP MIMXRT product, I would like to provide service for you.
I consulted with an expert in the boot field of RT product. The conclusion is that the CM4 image supports xip execution.
If the CM7 program is 0x30002000 XIP, then the CM4 program will have to avoid this position.
If you put the CM4 program in this position(0x30002000), then put the CM7 program back. 0x3000_0000 - 0x3000_1FFF Put the boot head of the CM7 program, the header will point to the address of the CM7 program, and the ROM will jump to the CM7 program according to the starter header. After the CM7 program runs, kickoff 0x3000_2000 the CM4 program is executed.
I suggest you can refer to the following link.
痞子衡嵌入式:MCUXpresso IDE下在线联合调试i.MXRT1170双核工程的三种方法 - 痞子衡 - 博客园 (cnblogs.com)
Wish it helps you.
If you still have question about it, please kindly let me know.
Best Regards
mayliu