Hi @surabhi_sk30 ,
Thanks for contacting NXP tech support!
1. Regarding how to use JLink Commander, if you are not familiar with it, we recommend you to operate it once with MCUXpressoIDE and then read the script file it generates.


2. About how to see if you're in main:

You can look at the Image information through MCUXpressoIDE to get the run address of the main function, and then, in JLink Commander, put a breakpoint here.
3. About how to use RTT
At present, NXP official does not provide sample projects after porting RTT driver, may need to be transplanted by the customer to be able to use. There are a couple of web-based materials that you can refer to here:
https://mcuoneclipse.com/2015/07/07/using-segger-real-time-terminal-rtt-with-eclipse/
https://www.nxpic.org.cn/module/forum/forum.php?mod=viewthread&tid=615390&extra=page%3D&page=1&imx=&...
Hope it helps!
Best regards,
Gavin