MfgTool

The MfgTool supports i.MX RT BootROM and MCUBOOT-based Flashloader. It can be used in factory production environment. The MfgTool can detect i.MX RT BootROM devices connected to a PC and invokes “blhost” to program the image on target memory devices connected to the i.MX RT device.

The template of MfgTool configuration profile is provided along with this document. It is applicable to most use cases without any modifications.

MfgTool Directory structure

MfgTool organization

  1. In the release package, the mfgtools-rel folder appears in the tools folder along with blhost folder.

  2. The blhost.exe appears in the blhost/win folder and the MfgTools executable “MfgTool2.exe”.

  3. The Profiles folder contains the profile for the supported devices that include an “OS Firmware” folder and player.ini file.

  4. The ucl2.xml file in the OS Firmware folder is the main .xml file that MfgTool processes. It contains the manufacturing process flow for the device. The process includes identification parameters for the device and blhost commands parameter to identify the device connected to the PC host and a set of blhost commands required for updating the image. The ucl2.xml file can be customized to suit custom setup or manufacturing process flow. The folder contains example XML files for user’s reference. An example ucl2.xml is shown below. In general, it defines the supported states and lists.

  5. The “ivt_flashloader.bin” file under the “OS firmware” is the Flashloader released to support image programming.

  6. The “ivt_flashloader_signed.bin” file under the “OS firmware” is the bootable Flashloader image file generated by users for Secure Boot solution in production phase, it can be generated by following Section 4.3.

  7. The “boot_image.sb” file under the “OS firmware” is the wrapped file with command sequences and bootable images generated by the users using the elftosb utility.

  8. The “enable_hab.sb” file under the “OS firmware” is the wrapped file with command sequences that programs Fuses to enable HAB closed mode, which is generated by the users using the elftosb utility.

  9. The play.ini in the “Device” profile folder contains configurable parameters for the manufacturing tool application.

  10. The cfg.ini and UICfg.ini files provide customizable parameters for the look and feel of the tool’s GUI. The cfg.ini in tool’s GUI is used to select “chip”, “platform” and “name” in list. Refer to the example below

    Note: Select appropriate “chip” from Device list, “name” from list in ucl2.xml in Device/OS Firmware folder.

    [profiles]
    chip = MXRT117x
    [platform]
    board =
    [LIST]
    name = MXRT117x-DevBoot
    
  11. UlCfg.ini is used to select the number of instances supported by MfgTool UI. The valid instance range is 1-4.

  12. The MfgTool.log text file is a useful tool to debug failures reported on MfgTool UI. The MfgTool logs the entire command line string which was used to invoke blhost and collects the output response text the blhost puts out on stdout into the MfgTool log file. The log file should be the considered first while troubleshooting.

Parent topic:MfgTool

Preparation before image programming using MfgTool

See Chapter 4, Generate i.MX RT bootable image and Chapter 5, Generate SB file for bootable image programming for more details.

Parent topic:MfgTool

Parent topic:Program bootable image