NXP i.MX RT1064 Eval Kit (MIMXRT1064-EVK) Setup Instructions
This topic helps you set up the development environment for NXP's i.MX RT1064.
- MIMXRT1064DVL6A MCU featuring 600MHz ARM® Cortex®-M7 core, 4-MBytes Flash, 1024-kbytes RAM
- 4.3” 480x272 RGB Touch Display
- 256-Mbit SDRAM memory
- 512-Mbit Hyper Flash
- 64-Mbit QSPI Flash
- Socket for SD card
- Ensure that the common NXP prerequisites are met
- Install EVK-MIMXRT1064 SDK 2.7.0 or newer (provided by the Qt online installer)
- Launch Qt Creator and select Tools > Options > Devices > MCU.
- Select one of the targets from the drop-down list for Target supported by the Qt for MCUs SDK:
- Qt for MCUs 1.6 - MIMXRT1064-EVK-BAREMETAL 16bpp
- Qt for MCUs 1.6 - MIMXRT1064-EVK-FREERTOS 16bpp
- In the Requirements section, ensure that the platform-specific requirements are met.
- Select Automatically create kits for all available targets on start to create kits automatically.
Note: You could also manually create/remove kits using Create Kit and Remove Kit.
- Click Apply and restart Qt Creator if you choose to create kits automatically.
Note: The Automatically create kits for all available targets on start option is available from Qt Creator v4.14 onwards. On older versions of Qt Creator, you have to explictly create or remove kits using Create kit or Remove kit.
To get started from the command line, ensure that the following environment variables are set:
Qul_DIRto the Qt for MCUs SDK install path.
<QT_INSTALL_PATH>is the Qt install directory,
<VERSION>is the directory containing the Qt Quick Ultralite version you are using, for example
- Toolchain install path, depending on which toolchain is being used
- For the armgcc toolchain, set
ARMGCC_DIRto the ARM Toolchain install path.
- For the IAR toolchain, set
IAR_ARM_COMPILER_DIRto the IAR Build Tools install path.
- For the armgcc toolchain, set
- Add the CMake and Ninja tools to your system
PATH. If you installed these tools using the Qt online installer, they are installed under
MCUXpressoIDE_PATHto your MCUXpresso IDE installation path.
- Create the
EVK_MIMXRT1064_SDK_PATHenvironment variable and set it to the following path:
<QT_INSTALL_PATH>is the Qt install directory.
Qt Creator provides a build configuration with the kits that you created earlier for the targets. If you are using a command-line setup, configure using the following CMake variables. For more information, see the CMake Manual.
The platform to build must be set to
mimxrt1064-evk-baremetalfor this board.
The supported color depth by this platform is 16-bit.
Note: If this variable is not set, default color depth is used while configuring for the platform.
By default, the asset data for application is copied to SDRAM on application startup. In order to keep resources in external flash, and not load it to RAM on startup, use the QUL_COPY_TO_RAM CMake option with the value
Neverwhen adding assets to the application with qul_add_resource.
The package for
NXP i.MX RT1064 Eval Kit board comes with the following prebuilt demos and examples
You can find it in the
See Flashing Instructions for NXP boards section on how to flash the binaries to the board.
Qt for MCUs provides the source code of several demos and examples. You can modify, build, and flash custom binaries onto the target device.
Source code for supported demos and examples is organized in the following directory structure:
Note: Demos or examples that are highlighted in bold are the only ones supported on this board.
Open the CMake project file for the example you want to build and configure it with the kit you created earlier. Once the project is configured, select Run or press Ctrl+r on your keyboard to build and flash the binary to the target.
The following example builds the
watch demo for this board:
cd %Qul_DIR%\demos\watch mkdir build cd build cmake .. -G "Ninja" -DCMAKE_BUILD_TYPE=Debug -DCMAKE_TOOLCHAIN_FILE=%Qul_DIR%\lib\cmake\Qul\toolchain\armgcc.cmake -DQUL_PLATFORM=MIMXRT1064-EVK-baremetal cmake --build .
Once you have successfully built the
watch demo, you can flash it from the command line:
cmake --build . --target flash_watch
The same procedure applies to any other application.
By default, the output of
printf calls are redirected to a virtual serial port, which is exposed on the host machine via USB.
- For convenience, you can set an environment variable that points to the Redlink tool, which is part of the MCUXpresso IDE.
%MCUXpressoIDE_PATH%is an environment variable pointing to the MCUXpresso IDE installation directory.
- Open a terminal window and run the following command:
%REDLINK% --server :50032 --mi -2 -vc -p MIMXRT1064xxxxA --ConnectScript RT1064_connect.scp --flash-driver= -x %Qul_DIR%\platform\boards\nxp\mimxrt1064-evk-common\cmake
GDB Server is now listening for TCP connections on port,
Note: To change TCP port used by
--server :50032to different value.
arm-none-eabi-gdbin a separate console
- Connect to the target via the gdbserver in the
(gdb) target remote :50032
- The interrupted program does not resume its execution while debugging. It must be restarted using the
mon reset haltcommand.
Available under certain Qt licenses.
Find out more.