Getting Started with the MIMXRT1040-EVK | NXP Semiconductors

Getting Started with the MIMXRT1040-EVK

Last Modified: Jan 16, 2023Supports i.MX RT1040-EVK

1. Plug It In

Video Player is loading.
Current Time 0:00
Duration 1:21
Loaded: 0%
Stream Type LIVE
Remaining Time 1:21
 
1x
  • Chapters
  • descriptions off, selected
  • captions off, selected
  • en (Main), selected

    Let's take your MIMXRT1040-EVK for a test drive. The pictures below show the MIMXRT1040-EVK image.

    1.1 Configure Boot Mode

    The device has four boot modes (one is reserved for NXP use). The boot mode is selected based on the binary value stored in the internal BOOT_MODE register. Switch SW4 is used to select the boot mode on the MIMXRT1040-EVK board.

    To boot from the QSPI flash, make sure SW4 is set to 0010.

    1.2 Attach the USB Cable

    The MIMXRT1040-EVK comes preprogrammed with a demo that will initiate the LED on the board to flash periodically when plugged in. When the board is tilted, the green LED gradually illuminates based on the degree of tilt on the X-axis.

    2. Get Software

    Video Player is loading.
    Current Time 0:00
    Duration 4:01
    Loaded: 0%
    Stream Type LIVE
    Remaining Time 4:01
     
    1x
    • Chapters
    • descriptions off, selected
    • captions off, selected
    • en (Main), selected

      2.1 Jump Start Your Design with the MCUXpresso SDK

      Want to learn about SDK

      The MCUXpresso 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 MIMXRT1040-EVK

      Get MCUXpresso SDK

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

      2.2 Install Your Toolchain

      NXP offers a complimentary toolchain called MCUXpresso IDE.

      Get MCUXpresso IDE

      Want to use a different toolchain?

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

      2.3 PC Configuration

      Many of the example applications output data over the MCU UART so you'll want to make sure that the driver for the board's virtual COM port is installed. Before you run the driver installer, you MUST have the board plugged into your PC.

      Download Driver

      With the serial port driver installed, run your favorite terminal application to view the serial output from the MCU's UART. Configure the terminal to 115200 baud rate, 8 data bits, no parity and 1 stop bit. To determine the port number of the MIMXRT1040-EVK virtual COM port, open the device manager and look under the "Ports" group.

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

      Tera Term Tutorial, PuTTY Tutorial

      3. Build, Run

      Video Player is loading.
      Current Time 0:00
      Duration 3:53
      Loaded: 0%
      Stream Type LIVE
      Remaining Time 3:53
       
      1x
      • Chapters
      • descriptions off, selected
      • captions off, selected
      • en (Main), selected

        3.1 Explore the MCUXpresso SDK Example Code

        The MCUXpresso SDK comes with a long list of example application code. To see what's available, browse to the SDK boards folder of your SDK installation and select your board, the MIMXRT1040-EVK (<sdk_install_directory>/boards/evkMIMXRT1040</sdk_install_directory>) or MIMXRT1040-EVK (<sdk_install_directory>/boards/MIMXRT1040EVK</sdk_install_directory>).

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

        3.2 Build, Run and Debug MCUXpresso SDK Examples

        If one or more of the demo applications or driver examples sounds interesting, you're probably wanting to know how you can build and debug yourself. The getting started with MCUXpresso 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 using MCUXpresso IDE.

        Using a different toolchain?