MCUXpresso SDK Documentation

Debug patch install#

The RT2660 debug patch is now a combined IAR + J-Link patch, shipped as iar_segger_support_patch_rt2660_vX.Y.zip.

It supports debugging all targets on MIMXRT2660.

Where to obtain the zip: refer to Installing the third-party patch for how to get the iar_segger_support_patch_rt2660_vX.Y.zip package.

Use SWD, not JTAG: RT2660 debug uses the SWD interface only. Set your probe’s target interface to SWD in your IDE – JTAG is not supported and the debugger will fail to connect. This applies to every flow in this guide (Ozone, and IAR C-SPY with either a J-Link or CMSIS-DAP probe).

What’s in the zip#

Unzip iar_segger_support_patch_rt2660_vX.Y.zip – it contains:

File

Purpose

Needed for

JLink.zip

SEGGER J-Link device support (jlinkscript, flash loaders, iMXRT2660.xml)

Ozone, and IAR C-SPY with a J-Link probe

arm.zip

IAR EWARM debugger / device / flashloader / linker config files

IAR C-SPY (both J-Link and CMSIS-DAP probes)

readme.txt

Upstream install notes and MD5 checksums

Reference

Use the latest patch: newer iar_segger_support_patch_rt2660_vX.Y.zip releases carry fixes and broader scenario coverage – always install the newest one.

Install the IAR part (arm.zip)#

Only needed if you debug inside IAR EWARM (C-SPY). Skip this if you only use Ozone.

Unzip arm.zip and merge its arm\ folder into your IAR EWARM installation’s arm\ folder, for example:

C:\Program Files\IAR Systems\Embedded Workbench 9.x\arm\

Merge, don’t replace: copy the patch’s arm\ contents over the existing arm\ folder so the new files are added / overwritten. Do not delete other files already in IAR’s arm\ folder.

The patch overlays these IAR config files (under arm\config\):

  • debugger\NXP\ – .ddf, .dmac, .svd, MIMXRT2660_M85.ProbeConfig

  • devices\NXP\i.MX\i.MXRT\ – .menu, .i79 device definitions

  • flashloader\NXP\ – XSPI flash loaders (.board, .flash, .out, .mac)

  • linker\NXP\ – MIMXRT266xxxxxx_M85.icf linker files

Verify the IAR part#

In IAR EWARM, open Project -> Options -> General Options -> Target. The RT2660 device variants (MIMXRT2660 / 2661 / 2662 / 2663) should be selectable. If they’re missing, the IAR (arm.zip) part isn’t installed.

IAR device selection