Run an example application
To download and run the application via UUU, perform these steps:
Connect the development platform to your PC via USB cable between the DBG USB connector (J1401) and the PC. It provides console output while using UUU.
Connect the J403 (USB1) connector and the PC. It provides the data path for UUU.
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:
115200 baud rate
No parity
8 data bits
1 stop bit |
|
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-imx93evk.bin-sd (rename to u-boot.bin)
- u-boot-spl.bin-imx93evk-sd (rename to u-boot-spl.bin)
- bl31-imx93.bin (rename to bl31.bin)
- mx93a0-ahab-container.img
- lpddr4_dmem_1d_v202201.bin
- lpddr4_dmem_2d_v202201.bin
- lpddr4_imem_1d_v202201.bin
- lpddr4_imem_2d_v202201.bin
Make flash.bin with imx-mkimage.
make SOC=iMX9 flash_singleboot_m33 (for single boot mode)
or
make SOC=iMX9 flash_lpboot (for low power boot mode)
Power on the board.
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.
|
|
Then, power off the board and change the boot mode to the corresponding one.
For single-boot mode:
when boot device is emmc, then
SW1301[3:0] = 0000
;when boot device is sd, then
SW1301[3:0] = 0010
.
For low-power boot mode:
when boot device is emmc, then
SW1301[3:0] = 1000
;when boot device is sd, then
SW1301[3:0] = 1010
.
Power on the board again.