I have a strange bug on my iMXRT1021.
I am using IAR Embedded Workbench, and a J-Link on the SWD debug port.
Under normal operation, everything is fine. The debugger works OK.
I have a bug that I am trying to track down. It occurs fairly regularly. But when it occurs, the system hangs up, and so does the debugger!!
If I hit 'stop', so I can find out where the core is, I get an error message like "Cannot stop target" or "cannot read AICR".
Question - what sort of bug can disable the debug port?