Getting Started with the MCU-LINK-MR

Last Modified: Aug 28, 2024Supports MCU-LINK-MR debug probe with USB-C and Serial Coms

Contents of this document

  • 1

    Overview of MCU-Link Installation
  • 2

    Using the MCU-LINK-MR with MCUXpresso IDE
  • 3

    Setting Up MCU-LINK-MR with 3rd Party IDEs
  • 4

    Using Other Serial Terminal Programs

1. Overview of MCU-Link Installation

Setting up your MCU-LINK-MR debug probe is very simple. MCU-LINK-MR debug probes are supported on host computers running Windows 10/11, MacOS X or Ubuntu Linux operating systems (OS). The debug probe works with standard OS drivers.

LinkServer is a utility for launching and managing GDB servers for NXP debug probes, flash programming, and other features, along with MCU-LINK-MR firmware update capability. You will also see an MCU-LINK-MR firmware update utility for version 2.263, but only install this if you cannot use WinUSB drivers for MCU-LINK-MR or if you are using MCUXpresso 11.6.1 or an earlier version (see your board user guide for more information).

The ISP mode of the MCU-LINK-MR is entered by pressing the LPC ISP Mode button on the board while powering the board.

Download and install the LinkServer utility package, change directory to the installation directory and follow the steps below:

  1. Plug in your MCU-LINK-MR and use the LinkServer application to ensure it is detected by using the LinkServer probes command:
  2. Now, use the LinkServer auto update command to attempt to update the firmware, using the probe identifier number (#) from the last step:
  3. If the update is successful the new version will be reported, and you are ready to use your MCU-LINK-MR
  4. If the update fails, unplug your MCU-LINK-MR, install the ISP jumper and reconnect. Then run the program_CMSIS.cmd script from the scripts directory:

Your MCU-LINK-MR should now work with any IDE that supports CMSIS-DAP probes, but is guaranteed to work with MCUXpresso IDE or MCUXpresso for Visual Studio Code with no further setup needed. If future releases of firmware become available, these IDEs will inform you.

There are several useful commands and utilities included with LinkServer; refer to the readme markdown file in the installation for more details.

MCU-LINK-MR probes can also be used with the LIBUSBIO library to provide USB to serial bridges for test and development. MCU-LINK-MR is also fully supported by the FreeMASTER debug tool, which provides very powerful, customizable visualization and control of variables. Also note that MCU-LINK-MR probes are fully compatible with the MCUXpresso Secure Programming / Provisioning Tool and the Secure Provisioning SDK which provides the source for the utilities that it uses.

2. Using the MCU-LINK-MR with MCUXpresso IDE

2.1 MCU-LINK-MR with MCUXpresso IDE Tutorial

MCUXpresso IDE will automatically detect MCU-LINK-MR, just as it does with other supported probes.

The MCU-LINK-MR VCOM feature is independent of the IDE, but the built-in Serial terminal feature of MCUXpresso IDE can be used with it.

See this short tutorial video for an overview of using MCU-LINK-MR with MCUXpresso IDE:

3. Setting Up MCU-LINK-MR with 3rd Party IDEs

MCU-LINK-MR can be used with IDEs from our partners, such as Arm Keil μVision and IAR Embedded Workbench. Setup is straightforward, as with any other CMSIS-DAP probe.

3.1 Setting Up IAR EWARM with MCU-LINK-MR

  1. Install the latest version of IAR available. The version must be at least, IAR Embedded Workbench IDE for Arm 8.40.2
  2. With your project workspace open, right click on the project:
  3. When the Options for workspace open, select the Debugger tab, then select CMSIS-DAP Debugger from the Setup selection:
  4. Click OK to close the dialog boxes. You can now use your MCU-LINK-MR as you would any other CMSIS-DAP probe

3.2 Setting Up Keil μVision with MCU-LINK-MR

  1. With your project workspace open, click on the "Options for target" icon:
  2. When the Options for target dialog opens, select the Debug tab, then select CMSIS-DAP ARMv8-M Debugger from the Use selection:
  3. After selecting this probe option, click on Settings to open the CMSIS-DAP ARMv8-M Target Driver Setup dialog. Select MCU-LINK-MR from the pulldown menu on the left:
  4. You should now see settings similar to this:
  5. Click OK to close the dialog boxes. You can now use your MCU-LINK-MR as you would any other CMSIS-DAP probe

4. Using Other Serial Terminal Programs

4.1 Using Other Serial Terminal Programs

MCU-LINK-MR VCOM feature can be used with serial terminal emulation programs, such as PuTTY Tutorial and Tera Term Tutorial. Setup is as with similar VCOM devices. Most MCUXpresso SDK examples will use a configuration of 115,200 baud rate, 8 data bits, no parity and 1 stop bit. To determine the port number of the MCU-LINK-MR virtual COM port, open the Device Manager and look under the "Ports" group.

PuTTY Tutorial

PuTTY Tutorial

PuTTY is a popular terminal emulation application. This program can be used to display information sent from your NXP development platform's virtual serial port.

  1. Download PuTTY using the button below. After the download, run the installer and then return to this webpage to continue
  2. Download

  3. Launch PuTTY by either double-clicking on the *.exe file you downloaded or from the Start menu, depending on the type of download you selected
  4. Configure in the window that launches, select the Serial radio button and enter the COM port number that you determined from the Device Manager. Also enter the baud rate, in this case 115,200
  5. Click Open to open the serial connection. Assuming the board is connected and you entered the correct COM port, the terminal window will open. If the configuration isn't correct, PuTTY will alert you
  6. You're ready to go

Tera Term Tutorial

Tera Term Tutorial

Tera Term is a very popular open source terminal emulation application. This program can be used to display information sent from your NXP development platform's virtual serial port.

  1. Download Tera Term from SourceForge. After the download, run the installer and then return to this webpage to continue
  2. Download

  3. Launch Tera Term. The first time it launches, it will show you the following dialog. Select the Serial option. Assuming your board is plugged in, there should be a COM port automatically populated in the list with the MCU-LINK-MR name
  4. Configure the serial port settings (using the COM port number identified earlier) to 115,200 baud rate, 8 data bits, no parity and 1 stop bit. To do this, go to Setup → Serial Port and change the settings
  5. Verify that the connection is open. If connected, Tera Term will show something like below in its title bar
  6. You're ready to go

Support

Forums

Learn more about the MCU-LINK-MR with design tips, training documents, and the NXP Community. If you need additional help, contact NXP Support.

Connect with other engineers and get expert advice on designing with the MCU-Link on one of our community sites: