AnsweredAssumed Answered

Debugger issue MIMXRT1020-EVK

Question asked by Chris Cowdery on May 20, 2019
Latest reply on Jun 3, 2019 by Chris Cowdery

Morning All,

 I have a strange (and intermittent) issue with using the debug interface (SWD) on the MIMXRT1020-RTK.

It doesn't matter whether I use the on-board OpenSDA or an external J-Link. I am using the latest version of IAR Embedded Workbench.

The issue occurs when the line

CLOCK_SetMux(kCLOCK_PeriphMux, 0x0);

is executed in clock_config.c (which is NXP reference code - I haven't changed it).

After that line, the debugger can no longer communicate with the core, and the board needs to be power cycled.

Has anybody else seen the same effect?

If I comment out the line, everything seems to work fine (but I suspect there is some clock configuration difference that I haven't traced yet).

Screenshots of the offending line, and the IAR Embedded Workbench error attached.

It doesn't always occur, it seems to occur regularly and repeatedly, then suddenly is OK for days at a time...