Skip to end of banner
Go to start of banner

Device programming

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this content. View the current version.

Compare with Current View Version History

« Previous Version 2 Next »

NXP Flasher provides the entire programming chain specific to the iMX.RT family via USB interface. Programming can be done in parallel for up to 8 devices using any USB port on the host computer.

To successfully program the devices the following steps need to be followed. Not all of them are necessary which depends on the type of file to be loaded.

  1. The first step is to select a microcontroller model

  2. Connect up to 8 devices to the USB ports and run a scan to identify the paths to the ports where the devices are connected

  3. Add the files to be programmed:

    1. Flashloader

    2. Image (.bin, .s19 or .sb)

    3. Fuses values programmed in OTP

Selecting MCU Model

The first mandatory step is to select the microcontroller you want to program. The variants supplied can be found in the field MPU/MCU/Board Type:

The first step is to select the microcontroller you want to program. The variants supplied can be found in the MPU/MCU/Board Type field. The field is divided into further options (Family. Group and Name) to help you search for a model.

USB HID ports scan and device identification

Connect up to 8 devices to any USB host port on the host computer.

Scanning and identifying are based on searching for USB HID devices with a given VID and PID number. Therefore, it is important to make sure before scanning that you have chosen the right microcontroller model for the USB port.

For scanning devices, the application includes a dedicated window which can be found in Setup -> USB Location

Scanning does not perform on its own. It is up to the user to select one of two options:

  • Automatically scan all devices. The list of detected ports has a random order.

  • Scanning and adding individual devices when the user wants to manually order the ports in the list.

Automatic scanning of all devices

This is a faster method, recommended when the order of the ports in the list is not important in programming. After connecting all devices, check the checkbox "Automatic selection from min Port/Hub to max." Then the "Scan" button will be unlocked, press it and wait until the list completes according to the number of connected devices

Manual Selection

This method should be used if the order of ports in the list is important in programming.

In this method, connect one device at a time and press the "Add one USB" button.

MCU connection checking

After a successful scan, the "Target Device Programming Results" field in the main window is filled with "USB P.H No" according to the list obtained after the scan process. A (blue star) next to USP P.H indicates that the connection is active.

If the device is disconnected, the automatic check will be indicated by the replacing (blue star) by (blue star)

To manually check the connection, check the "Enable" checkboxes and then click the "Connect" button. This option also helps to detect whether the Flashloader is already running on the microcontroller or not.

The example below shows the connection to three of the five selected microcontrollers without Flashloader.

If the Flashloader was previously loaded and running, the connection check result will be indicated by (blue star) in the “Flashloader Init” column.

If the connection fails it will be indicated by (blue star) in the "Final" column

Browsing for programming files

NXP Flasher allows programming of all file types (.bin, .s19, .sb) provided for the iMX.RT family of microcontrollers, including OTP memory. Programming of images and OTP can only be done by connecting to a preprogrammed application called "Flashloader".

Flashloader

It is possible to use the default version of the Flashloader provided with the NXP Flasher or to use your own compilation by providing the file path by using button “Open Flashloader File“.

User defined Flasloader

In order to have a user Flashloader in the programming process, additional settings need to be made in the Setup -> Memory Options window.

In this window you should check the "User" checkbox in “Flashloader Setup“ field and then set the desired addresses:

  • Load Address → Flashloader uploading address (usually RAM),

  • Jump Address → Flashloader startup address,

  • VID → Flashloader USB Vendor ID when flashloader is running,

  • PID → Flashloader USB Product ID when flashloader is running.

To confirm the modification, press the "OK" button.

Image File

MCU configuration and programming depends on the image file type selected: .bin, .s19 or .sb.

Binary Image File

Srecord Image File

Secure Binary File

  • No labels