Personal tools

Programming i.MX RT using ZL33PRG

From SomLabs Wiki

Jump to: navigation, search

Programming i.MX RT using ZL33PRG


MCUXpresso

The ZL33PRG programmer is compatible with the CMSIS-DAP interface and is supported by the MCUXpresso IDE LinkServer connection. In order to flash the QSPI memory connected to the iMX RT1052 microcontroller click the arrow near the LinkServer button in the bottom-left part of the MCUXpresso window.

Programming iMX RT using ZL33PRG 1.png

From the drop-down list select the option Debug using LinkServer probes.

Programming iMX RT using ZL33PRG 2.png

The MCUXpresso will now discover all connected probes compatible with the LinkServer (including CMSIS-DAP probes). The results are shown in the new dialog.

Programming iMX RT using ZL33PRG 3.png

Select the discovered probe and click the OK button. The MCUXpresso will flash the binary and start the debugging session. All diagnostic logs are shown in the console window (the consoles can be switched using the Display Selected Console button) and after the flashing is finished, the debug perspective will be opened.

Programming iMX RT using ZL33PRG 4.png

Command line

It is possible to use the ZL33PRG for axf files flashing from the command line. This method requires the crt_emu_cm_redlink tool that is installed together with the MCUXpresso IDE - it can be found in <MCUXpresso installation directory>/ide/binaries.

In order to erase the external QSPI flash the following command can be executed:

./crt_emu_cm_redlink --flash-mass-erase --vendor NXP -p MIMXRT1052xxxxB -x <XML configuration files path> --no-packed

The -x argument needs to contain the path to the XML files with the microcontroller memories configuration. The XML files (MIMXRT1052xxxxB.xml and MIMXRT1052xxxxB_part.xml) are generated by the MCUXpresso IDE in the Debug directory during flashing method described in the previous chapter. The example files can be also download here: MIMXRT1052xxxxB_XML.zip.

To flash the compiled axf file the following command can be executed:

./crt_emu_cm_redlink -g --flash-load-exec  "<AXF file path>" --vendor NXP -p MIMXRT1052xxxxB -x <XML configuration files path> --no-packed
NXP Partner ST Partner Renesas Partner