SMARC EVK of RZ/G2L, RZ/G2LC, RZ/G2UL, RZ/V2L, and RZ/Five
Start-up Guide
R01US0556EJ0102 Rev.1.02
Page 14 of 37
Jun. 17, 2022
1.4
Writing Bootloader
For the boot operation, two boot loader files need to be written to the target board. Corresponding bootloader files and
specified address information are depending on each target board as described in
Table 4
.
“XLS2” command of Flash Writer is used to write boot loader binary files. This command receives binary data from the
serial port and writes the data to a specified address of the Flash ROM with information where the data should be
loaded on the address of the main memory.
For example, this part describes how to write boot loader files in the case of RZ/V2L Evaluation Board Kit PMIC
version.:
>
XLS2
===== Qspi writing of RZ/G2 Board Command =============
Load Program to Spiflash
Writes to any of SPI address.
Micron : MT25QU512
Program Top Address & Qspi Save Address
===== Please Input Program Top Address ============
Please Input :
H'11E00
===== Please Input Qspi Save Address ===
Please Input :
H'00000
Work RAM(H'50000000-H'53FFFFFF) Clear....
please send ! ('.' & CR stop load)
Send the data of “bl2_bp-smarc-rzv2l_pmic.srec” from terminal software after the message “please send !” is shown.
After successfully download the binary, messages like below are shown on the terminal.
SPI Data Clear(H'FF) Check :H'00000000-0000FFFF Erasing..Erase Completed
SAVE SPI-FLASH.......
======= Qspi Save Information =================
SpiFlashMemory Stat Address : H'00000000
SpiFlashMemory End Address : H'00009A80
===========================================================
SPI Data Clear(H'FF) Check : H'00000000-0000FFFF,Clear OK?(y/n)
In case a message to prompt to clear data like above, please enter “y”.
Next, write another loader file by using XLS2 command again.
>
XLS2
===== Qspi writing of RZ/G2 Board Command =============
Load Program to Spiflash
Writes to any of SPI address.
Micron : MT25QU512
Program Top Address & Qspi Save Address
===== Please Input Program Top Address ============
Please Input :
H'00000
===== Please Input Qspi Save Address ===
Please Input :
H'1D200
Work RAM(H'50000000-H'53FFFFFF) Clear....
please send ! ('.' & CR stop load)