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%\lib\cmake\boards\nxp\<BOARD_NAME>

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:

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

Note: The Redlink tool does not support flashing files in hex format. When it shows an error message like

Available under certain Qt licenses.
Find out more.