Hi all,
I coded a GUI with the help of Embedded Wizard software in IMXRT1170. I am using my own custom board. I am displaying PAL camera output on TFT display with ADV7280M decoder. It works well in normal usage scenario. However, when I try to remove camera from its socket while PAL video is outputting video to IMXRT1170, TFT display stays locked and very short time later, IMXRT1170 gives me "BUS FAULT error" in below Screenshot.

I tried to find a way of which line of code exactly causes this to happen. However, since I am randomly removing camera cable from its connector, I could not catch the line where causing it.
I have a debugger ULINK 2. How can I achieve to debug this kind of errors with debugger?
Is there a way to see previous lines in code just before this error in Screenshot with debugger?
Thanks a lot