Run an example application

To download and run the application via UUU, perform these steps:

  1. Connect the development platform to your PC via USB cable between the DBG USB connector (J26) and the PC. It provides console output while using UUU.

  2. Connect the J7 (USB1) connector and the PC. It provides the data path for UUU.

  3. Open the terminal application on the PC, such as PuTTY or TeraTerm, and connect to the debug COM port (to determine the COM port number, see How to determine COM port). Configure the terminal with these settings:

    1. 115200 baud rate

    2. No parity

    3. 8 data bits

    4. 1 stop bit |

|

  1. Get the boot images and the imx-mkimage source repository from corresponding Linux BSP release. The boot images required to be put into imx-mkimage/i.MX9 are:

    - u-boot-imx93-14x14-lpddr4x-evk.bin-sd (rename to u-boot.bin)

    - u-boot-spl.bin-imx93-14x14-lpddr4x-evk-sd (rename to u-boot-spl.bin)

    - bl31-imx93.bin (rename to bl31.bin)

    - mx93a1-ahab-container.img

    - lpddr4_dmem_1d_v202201.bin

    - lpddr4_dmem_2d_v202201.bin

    - lpddr4_imem_1d_v202201.bin

    - lpddr4_imem_2d_v202201.bin

  2. Copy binary generated by IAR build into imx-mkimage/i.MX9, and rename it to m33_image.bin.

  3. Make flash.bin with imx-mkimage.

    make SOC=iMX9 REV=A1 flash_singleboot_m33 (for single boot mode)

    or

    make SOC=iMX9 REV=A1 flash_lpboot (for low power boot mode)

  4. Power on the board.

  5. Type the UUU command to the flash image.

    uuu -b emmc flash.bin (for single boot on eMMC)

    uuu -b sd flash.bin (for single boot on SD)

    For low power boot, a single boot flash.bin is needed besides the target flash.bin.

    uuu -b emmc <singleboot flash.bin> flash.bin (for lowpower boot on eMMC)

    uuu -b sd <singleboot flash.bin> flash.bin (for lowpower boot on SD)

    The UUU puts the platform into fast boot mode and automatically flashes the target bootloader to emmc/sd. The command line and fast boot console is as shown in Figure 2.

    |

|

  1. Then, power off the board and change the boot mode to the corresponding one.

    • For single-boot mode:

      • when boot device is emmc, then SW5[1:4] = 0100;

      • when boot device is sd, then SW5[1:4] = 0010.

    • For low-power boot mode:

      • when boot device is emmc, then SW5[1:4] = 0001;

      • when boot device is sd, then SW5[1:4] = 0101.

  2. Power on the board again.

Parent topic:Program flash.bin to SD/eMMC with UUU