Hi @Vishnu123 ,
Thank you for your interest in the NXP MIMXRT product, I would like to provide service for you.
The main core is selected by eFuse, the default CM7 is the main core, if you need to change the main core to CM4, you need to flash eFuse.
I recommend that you refer to the documentation below:
i.MX RT1170 Dual Core Application (nxp.com.cn)
Also, NXP SDK library support a lot of routines.

Wish it helps you.
If you still have question about it, please kindly let me know.
Best Regards
mayliu