This topic helps you set up the development environment for NXP's i.MX RT1064.
Use the Qt online installer to install the following prerequisites. You can download the installer from your Qt account .
注意： Ninja is an optional build tool and can be replaced with others like JOM or NMake. It is not needed when using Qt Creator.
注意： MCUXpresso IDE provides the tools for flashing and onboard debugging.
注意： The Qt online installer does not install the MCUXpresso IDE by default. You must select it explicitly from the list of third-party tools and SDKs.
注意： You could also manually create/remove kits using Create Kit and Remove Kit .
注意： 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
ARMGCC_DIRto the ARM Toolchain install path.
IAR_ARM_COMPILER_DIRto the IAR Build Tools install path.
PATH. If you installed these tools using the Qt online installer, they are installed under
MCUXpressoIDE_PATHto your MCUXpresso IDE installation path.
EVK_MIMXRT1064_SDK_PATHenvironment variable and set it to the following path:
是 Qt 安装目录。
Flashing and debugging NXP boards requires the board to have the OpenSDA firmware. If an incorrect firmware is flashed, the tools may fail to establish connection with the device.
To check the firmware, connect your device to your development host and open the provided USB storage device. In the
file, look for the line starting with "USB Interfaces". It has to list "CDC" and "HID". If these are missing, you are probably using an incorrect firmware.
NXP provides the firmware for download . On the download page, select the type of your type of board and download the "Default firmware application, DAPLink". After flashing this to your board by following the instructions from NXP, the CDC and HID interface should be listed.
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 手册 .
The platform to build must be set to
for this board.
The supported color depth by this platform is 16-bit.
注意： 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
CMake option with the value
when adding assets to the application with
The package for
NXP i.MX RT1064 Eval Kit
board comes with the following prebuilt demos and examples
You can find it in the
见 Flashing Instructions for NXP boards section on how to flash the binaries to the 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 运行 or press Ctrl+r on your keyboard to build and flash the binary to the target.
demo for this board:
cd %Qul_DIR%\demos\watch mkdir build cd build cmake .. -G "Ninja" -DCMAKE_BUILD_TYPE=MinSizeRel -DCMAKE_TOOLCHAIN_FILE=%Qul_DIR%\lib\cmake\Qul\toolchain\armgcc.cmake -DQUL_PLATFORM=MIMXRT1064-EVK-baremetal cmake --build .
Once you have successfully built the
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
calls are redirected to a virtual serial port, which is exposed on the host machine via USB.
is an environment variable pointing to the MCUXpresso IDE installation directory.
%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,
To change TCP port used by
to different value.
arm-none-eabi-gdbin a separate console
(gdb) target remote :50032
mon reset halt命令。