C

Flashing Instructions for NXP boards

Before flashing the demo image onto the NXP board, ensure that the MCUXpresso IDE is installed. For instruction, see the Getting started on NXP page.

For convenience, you can set an environment variable that points to the Redlink tool, which is part of the MCUXpresso IDE.

set REDLINK=%MCUXpressoIDE_PATH%\ide\binaries\crt_emu_cm_redlink

Where, %MCUXpressoIDE_PATH% is an environment variable pointing to the MCUXpresso IDE installation directory.

To flash the NXP board, connect a USB cable to it, open a terminal window and run these following command:

%REDLINK% --flash-load-exec "<PATH_TO_BINARY>\your_binary.elf" -p <PACKAGE_NAME> --ConnectScript <CONNECTION_SCRIPT_NAME> --flash-driver= -x %Qul_DIR%\src\platform\boards\nxp\%BOARD_NAME%\cmake

Where, the values for <PACKAGE_NAME>, <CONNECTION_SCRIPT_NAME>, and <BOARD_NAME>, varies depending on the hardware used. The following table lists the different board-specific values:

PACKAGE_NAMECONNECTION_SCRIPT_NAMEBOARD_NAME
NXP i.MX RT1050MIMXRT1052xxxxBRT1050_connect.scpmimxrt1050-evk-common
NXP i.MX RT1060MIMXRT1062xxxxART1060_connect.scpmimxrt1060-evk-baremetal
NXP i.MX RT1064MIMXRT1064xxxxART1064_connect.scpmimxrt1064-evk-common

Note: The Redlink tool does not support flashing files in hex format. If you see the following error message, you probably tried to flash the wrong file:

Must set -load-base or --area with binary file

Available under certain Qt licenses.
Find out more.