Getting Started with the MIMXRT595-EVK

Last Modified: 2021-02-22 16:59:14Supports RT595 Evaluation Kit

1. Plug it In

Let's take your MIMXRT595-EVK for a test drive! You have the choice of watching the sequence in a short video or following the detailed actions listed below.

1.1 Get Familiar with the Board

MIMXRT595-EVK-1_1

MIMXRT595-EVK-1_1

1.2 Attach the USB Cable

There are three micro-USB connectors on the board. Plug the USB cable into the one labeled Link USB (J40), as is shown in the photo below.

When the board is powered, the RGB LED D19 should flash on and off.

MIMXRT595-EVK-1_2

MIMXRT595-EVK-1_2

1.3 Run the Out-of-Box Demo

Your MIMXRT595-EVK comes loaded with a "LED blinky" demo, explained below, and a demo that exercises the Cortex M33, Fusion F1 DSP and the GPU. This out of the box demo will be shown in an Application Note.

When the board is powered, the RGB LED D19 should flash on and off.

MIMXRT595-EVK-1_3

MIMXRT595-EVK-1_3

2. Get Software

2.1 Jump Start Your Design with the MCUXpresso SDK

Want to learn more about SDK

The MCUXpresso Software Development Kit (SDK) is complimentary and includes full source code under a permissive open-source license for all hardware abstraction and peripheral driver software.

Click below to download a pre-configured SDK release for the MIMXRT595-EVK. Unzip the SDK into a directory path that does not contain any spaces.

MCUXPRESSO-SDK-TN

Get MCUXpresso SDK

You can also use the online SDK Builder  to create a custom SDK package for the MIMXRT595-EVK.

2.2 Install Your Toolchain

Want to learn more about SDK

The MCUXpresso Software Development Kit (SDK) is complimentary and includes full source code under a permissive open-source license for all hardware abstraction and peripheral driver software.

Click below to download a pre-configured SDK release for the MIMXRT595-EVK. Unzip the SDK into a directory path that does not contain any spaces.

MCUXPRESSO-SDK-TN

Get MCUXpresso SDK

You can also use the online SDK Builder  to create a custom SDK package for the MIMXRT595-EVK.

NXP offers a complimentary toolchain called MCUXpresso IDE. Please download MCUXpresso v11.3.0 or above.

MCUXpresso IDE

Get MCUXpresso IDE

Want to use a different toolchain?

Need help choosing

The MCUXpresso SDK includes support for other tools such as IAR , Keil and command-line GCC .

GS Tool Logos

2.3 MCUXpresso Config Tools

The MCUXpresso Config Tool is an integrated suite of configuration tools that guides users in creating new MCUXpresso SDK projects, and also provides pin and clock tools to generate initialization C code for custom board support, It is fully integrated as a part of MCUXpresso IDE, or you can download it as a seperate tool if using different toolchain. MCUXpresso Config Tool v9.0 or above is needed to support the i.MXRT595.

MCUXpresso Config Tools

Get MCUXpresso Config Tools

2.4 LPCScrypt

Drivers for the debugger and virtual COM port also need to be installed. They are part of the LPCScrypt package, which can be download below. The LPC-Link2 circuiit firmaware will also need to be updated to use the J-Link interface. The tutorial below will walk through the steps.

LPCScrypt Tutorial

2.5 Serial Terminal

Many of the MCUXpresso SDK examples applications output data over the MCU UART. Install and configure your preferred terminal software to 115200 baud rate, 8 data bits, no parity and 1 stop bit. To determine the port number of the MIMXRT595-EVK's virtual COM port, open the device manager and look under the "Ports (COM and LPT)" group.

Not sure how to use a terminal application? Try one of these tutorials:

MCUXpresso Terminal, Tera Term Tutorial, PuTTY Tutorial

2.6 J-Link

You will need to download the neccessary J-Link drivers in order to debug the Fusion F1 DSP. Follow the next tutorial to see how to download and install this software.

SEGGER

J-Link Tutorial

2.7 Install Xtensa Xplorer IDE and Tools

To code and debug the DSP on the MIMXRT595-EVK, you will need to download Cadence Tensilica Xplorer. This is the only available development IDE for the DSP core of the MIMXRT595

XTENSA Logo

Xplorer Tutorial

3. Build, Run

3.1 Explore the MCUXpresso SDK Example Code

The MCUXpresso SDK comes with a long list of example applications code. To see what's available, browse to the SDK boards folder of your SDK installation and select MIMXRT595-EVK. (<SDK_Install_Directory>/boards/evkmimxrt595).

To learn more about specific example code, open the readme.txt file in an example's directory.

3.2 Building and Debugging MCUXpresso SDK Examples

If one or more of the demo application or driver examples sounds interesting, you're probably wanting to know how you can build and debug yourself. The Getting Started with SDK guide provides easy, step-by-step instructions on how to configure, build, and debug demos for all toolchains supported by the SDK. Use the guide below to learn how to open, build and debug an example application in MCUXpresso IDE.

Modify a SDK Example

4.1 Clone an Example Project From MCUXpresso SDK

Option A: Use the MCUXpresso IDE to clone an example project.

Option B: Use the MCUXpresso Config Tool to clone an existing MCUXpresso SDK example for use with third party IDEs. Please use MCUXpresso Config Tool v9.0 or above.

4.2 Use the Pin Tool

Now, let's use the Pins tool that is part of the MCUXpresso Config Tool to change the LED that is blinking to a different LED color.

4.3 Use the Clocks Tool

Next use the Clocks tool that is part of the MCUXpresso Config Tool to change the clock settings and change the rate that the LED blinks.

4.4 Success

With the application modified, you will see the MIMXRT595-EVK green RGB LED blinking.

LPCScrypt Tutorial

LPCScrypt Tutorial

LPCScrypt is a command-line based, fast flash, EEPROM, OTP and security programming tool for LPC microcontrollers. It is the recommended tool to program the latest CMSIS-DAP and J-Link firmware.

  1. Download the LPCScrypt tool using the button below, choose your platform (Windows, MAC OC X, Linux). After the download, run the installer. During the installation the DFU and VCOM drivers will be automatically installed for all platforms.

    Download

  2. Configure To update the LPC-Link2 debug circuit firmware, unplug the USB cable on J40 and then put on the DFULink jumper.
    • In the MIMXRT595-EVK, JP1 is the LPCXpresso DFU. Connect JP1 using the jumper.
    • MIMXRT595-EVK Top

      MIMXRT595-EVK Top
    • Reconnect the board to your host computer over the debug link USB connector J40.
  3. Launch LPCScrypt by double-clicking on the “Boot LPCScrypt” file in the LPCScrypt install C:\ProgramData\Microsoft\Windows\Start Menu\Programs\LPCScrypt. LPCSCRYPT-MODAL-2
    • In the command shell, run the JLINK script to install the Jlink debug firmware LPCSCRYPT-MODAL-3
  4. Verify once you select on firmware (in this case J-Link), LPCScrypt command window will show something like below in the console. LPCSCRYPT-MODAL-4
  5. Ready Once programming is complete, disconnect the board from the host. Remove the DFULink jumper, then reconnect the board to the host computer. You should see the probe enumerate on the host's USB system.

MCUXpresso IDE Terminal Tutorial

MCUXpresso IDE Terminal Tutorial

The most recent versions of MCUXpresso IDE count with a terminal emulation application. This tool can be used to display information sent from your NXP development platform's virtual serial port.

  1. Open the MCUXpresso IDE
  2. FRDM-K32L2B3-OPEN-MCU IDE-S2
  3. Launch the MCUXpresso IDE terminal by clicking on the “Open a Terminal” button on the top of the IDE or press “Ctrl + Alt + Shift + T.”
  4. FRDM-K32L2B3-MCU-IDE-TERMINAL-S2
  5. Select Serial Terminal
  6. FRDM-K32L2B3-SELECT-TYPE-S2
  7. Configure the serial port settings (using the LPC-Link2 COM port number) to 115200 baud rate, 8 data bits, no parity and 1 stop bit, then press “OK” button
  8. FRDM-K32L2B3-SERIAL-PORT-S2
  9. Verify that the connection is open. If connected, MCUXpresso IDE will look like the figure below at the Terminal view
  10. FRDM-K32L2B3-VERIFY-S2
  11. 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
  4. TERA-TERM-TURORIAL-1
  5. Configure the serial port settings (using the COM port number identified earlier) to 115200 baud rate, 8 data bits, no parity and 1 stop bit. To do this, go to Setup -> Serial Port and change the settings
  6. Verify that the connection is open. If connected, Tera Term will show something like below in it's title bar
  7. TERA-TERM-TURORIAL-2

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 earlier. Also enter the baud rate, in this case 115200
  5. FRDM-K32L2B3-PUTTY-S2
  6. 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 is not correct, PuTTY will alert you
  7. FRDM-K32L2B3-PUTTY-CERIFYCONN
  8. You're ready to go

SEGGER J-Link Tutorial

  1. Download J-Link software

    Enter to SEGGER download page: Segger.

  2. Expand “J-Link Software and Documentation Pack” section

    SEGGER-JLINK-1

    SEGGER-JLINK-1
  3. Select the software that matches your OS and download the newest version

    SEGGER-JLINK-2

    SEGGER-JLINK-2

    Accept terms and download the software

  4. Execute the .exe file you just downloaded by doing double-click. Follow the setup instructions until the J-Link installation is complete SEGGER-JLINK-3
  5. You're ready to go

Xtensa Xplorer Tutorial

Xtensa Xplorer Tutorial

Cadence® Tensilica® Xplorer is a complete development environment that helps users create application code for high-performance Tensilica® processors. Xplorer is the interface to powerful software development tools such as the XCC compiler, assembler, linker, debugger, code profiler and full set of GUI tools.

Xplorer (including both GUI and command line environment.) is the only available development IDE for the DSP core of MIMXRT500.

  1. Create a profile. This is needed to download the Tensilica Tools. Go to the URL Fusion f1 DSP SDK For RT500 and login. If this is the first time to access, please register first. XTENSA-EXPLORER-IMAGE

    You will receive an email confirmation with the activation link from “Tensilica tools”. Click the activation link to complete the registration.

  2. Install Xtensa Xplorer IDE. Once registered, please login and you will see available materials
    • Download and install “Xtensa Xplorer IDE 8.0.10” for your operating system
    • Download “DSP Configuration” for your operating system. This will be installed later (Step 5) XTENSA-EXPLORER-IMAGE
  3. Download a License Key. To generate the correct license file, you should first identify the appropriate MAC for the computer you plan to run Xtensa tools on. Open a Command Prompt and type:

    Windows:

    XTENSA-EXPLORER-IMAGE

    Linux:

    XTENSA-EXPLORER-IMAGE

    Reload and return to the Tensilica URL: Fusion f1 DSP SDK For RT500 and click on “Get a License Key for RT500 SDK”.

    XTENSA-EXPLORER-IMAGE

    Type your MAC address without "-" or ":" symbols.

    XTENSA-EXPLORER-IMAGE
  4. Install License Key. Once the license has been generated and downloaded, open Xplorer IDE and select on menu Help → Xplorer License Keys → License Options → Install Software Keys. Select the license key file and click "Finish". XTENSA-EXPLORER-IMAGE
  5. Install RT500 DSP Build Configuration. The build configuration can be installed into the IDE using the 'System Overview' panel which is located on the lower left corner by default. If this panel is not visible, it can be toggled using menu item Window → Show View → System Overview XTENSA-EXPLORER-IMAGE

    Search the configuration you downloaded at Step 2.

    XTENSA-EXPLORER-IMAGE
  6. Install Xtensa On Chip Debugger Deamon. The Xtensa On Chip Debugger Deamon (xt-ocd), is a powerful gdb-based debugging tool. It is not installed by default with the Xplorer IDE. A self-extracting executable installer is included with the IDE, it is located at:

    Windows:

    “C:\usr\xtensa\XtDevTools\downloads\RI2019.1\tools\xt-ocd-14.0.1-windows64-installer.exe”

    Linux:

    “~/xtensa/XtDevTools/downloads/RI2019.1/tools/xt-ocd-14.0.1-linux64-installer”

    At this moment xt-ocd supports J-Link and ARM RVI/DSTREAM probes over Serial Wire Debug (SWD) for RT500. xt-ocd installs support for J-Link probes but does not install the required J-Link drivers which must be installed separately. The RT500 requires J-Link software version 6.92 or newer.

  7. Identify the Jlink serial number of your LPC-Link2. Run JLINK commander to check the serial number. It is located at: “C:\Program Files (x86)\SEGGER\JLinkXTENSA-EXPLORER-IMAGE

    Every EVK/LPC-Link2 will have different Jlink S/N.

    XTENSA-EXPLORER-IMAGE

    Edit topology file. xt-ocd is configured with an XML input file 'topology.xml'. The file is located in the Xtensa OCD installation directory at “C:\Program Files (x86)\Tensilica\Xtensa OCD Daemon 14.01”

    You will need to modify this file for your debugger hardware. Using J-link as example, please use this topology.xml file to replace the original file. Or copy one of the examples below

    Please note that you need to replace 'usbser section with your own Jlink serial number (9-digit number obtained on the previous step).

    XTENSA-EXPLORER-IMAGE

    Below is shown another topology.xml example fot ARM RealView ICE (RVI) and DSTREAM debug probes:

    XTENSA-EXPLORER-IMAGE

Design Resources

Additional Resources

Sensors

Explore the world with a full assortment of NXP sensor solutions. From accelerometers, pressure sensors, touch sensors, and many more, NXP has a sensor solution for your project. Find out more at Sensors

NFC

Near Field Communication is a simple, intuitive technology that lets you interact securely with the world around you with a simple touch. Learn more about NXP's NFC solutions at NFC - Near Field Communication

Wi-Fi

Getting Started with NXP Wi-Fi modules using i.MX RT platform - Let's take your Wi-Fi module for a test drive. This guide uses the Wi-Fi modules and i.MX RT platforms

Support

Forums

Connect with other engineers and get expert advice on designing with i.MX processors and MCUXpresso Software and Tools. Join the community discussion in one of our two dedicated communities: i.RT Community  or MCUXpresso Software and Tools Community .