HMI Applications¶
There are several ways to explore running HMI applications using the HMI SDK on RZ/G EVK boards.
This page will guide you through:
- Trying the out-of-box Demo Applications
- Building and deploying Sample Applications
After completing these, you can also develop your own HMI applications by referring to the instructions provided in Wiki.
Hardware Setup¶
Necessary Equipment¶
- Please prepare the following required equipment.
Equipment | Requirements | |
|---|---|---|
Included with RZ/G EVK | Target RZ/G EVK Board | |
USB Cable (for serial communication) | Port: Connect to micro USB Type-B (2.0) port on the board | |
USB Power Delivery (PD) AC Adapter & | Port: Connect to the USB Type-C port on the board | |
PC | Storage: a maximum of 450GB of free space on HDD/SSD | |
Micro SD Card & Reader | Type: SDHC | |
HDMI Display & HDMI Cable | Port: Connect to the micro HDMI on the board | |
USB Hub | Used when multiple USB devices are needed. | |
USB Keyboard | Standard: USB HID Compliant | |
USB Mouse | Standard: USB HID Compliant | |
USB Camera | Standard: USB HID Compliant | |
Audio Speaker | Port: 3.5mm mini plug connector | |
Ethernet Cable | Used to connect the board to your host PC or network. | |
Tip
A Windows PC can be used for flashing an SD card and debugging via a serial connection.
For further development and deployment, use a Linux PC.
EVK Peripheral Setup¶
Please set up the necessary equipment referring to the EVK peripheral diagram below.
Tip
- For eSD boot mode, insert the microSD card into the microSD0 on the module board; for QSPI boot mode, insert the microSD card into the microSD1 on the common carrier board.
- If you use a touch-panel HDMI display, in addition to the HDMI cable, a USB cable connected to USB is required to enable touch functionality.
- For Ethernet connection, RZ/G3E support Ethernet 0 and Ethernet 1 .
EVK DIP Switch Setup¶
- eSD Boot Mode
- QSPI Boot Mode
Set DIP switch SW_MODE as follows.
SW_MODE (on Common Carrier Board II)
Notice
Firmware (bootloader) updates are required for QSPI boot modes. Please follow the steps provided in How to Update Firmware (Flash Writer and Bootloaders).
Note
Please refer to How to Boot from a microSD Card in QSPI Boot Mode for details.
Demo Applications¶
This section explains how to run the HMI demo applications and provides detailed introductions for each one.
The HMI SDK Demo Launcher starts automatically when the EVK boots. Currently, it includes the following prebuilt demo applications. If you want to customize them, their source code can be downloaded from the GitHub links listed in the table below.
Type | Demo Applications | Target Device | Source Code URL |
|---|---|---|---|
LVGL | LVGL Benchmark Demo | RZ/G3E | |
LVGL Home Panel Demo | RZ/G3E | ||
Chromium | Chromium Home Panel Demo | RZ/G3E | |
Flutter | Flutter Samples | RZ/G3E |
Please follow the steps below to run the demo applications.
Prepare the necessary equipment and configure the EVK DIP switches by following the instructions in Hardware Setup.
Insert the bootable microSD card into the microSD card slot for eSD boot mode, and then power on the EVK board.
Tip
- Please refer to the EVK Peripheral Setup for the location of the microSD card slot.
- Press and hold the power button (red button, POWER SW) for 1 second to turn on the EVK board, and for 2 seconds to turn it off.
The HMI SDK Demo Launcher launches automatically once the device is fully booted.
Right after boot, you will see the launch window as shown below.
After a few seconds, the HMI SDK Demo Launcher will appear.
Click the corresponding button to try each demo application we provide.Tip
If you want to exit a demo application and return to the HMI SDK Demo Launcher, you can either
* restart your EVK board by press reset button (blue button, SW10) or
* run the following command in your board terminal to relaunch it:Note that this is temporary behavior, and we will improve it in future releases.
Tip
If you want to use the audio output function, open a terminal, and log in as root. This will enable audio output and set default audio volume.
This behavior will be improved in a future release.
For detailed information about logging in the system, see section "5.2 Power on the board and Startup Linux" of "RZ/G3E-EVKIT Linux Start-up Guide" included in RZ/G3E Board Support Package V1.0.0.- LVGL Demo Applications
This demo application is implemented using LVGL, and it includes the following tools for performance testing.
Please click each tool and follow the detailed instructions to try them.
After you finish trying the tools, click the Quit button at the top-right corner to exit.- Chromium Demo Applications
This demo application is implemented using Chromium, and it presents an HTML5 single-page home panel interface.
When you start this demo, you may see the following window. In that case, click 'Don't sign in' button.
Click the buttons or use the sidebar to explore the available functions.
For example, by clicking the Video Player button, you will see the screen shown below.
For example, by clicking the Home Automation button, you will see the screen shown below.
The live camera function is also available. The image below is captured using USB Camera. Please switch the camera display mode using the control on top.
Tip
When you click UI parts repeatedly, the demo may crash. If you encounter this issue many times, change the "VBUS_SEL" rotary switch on the RZ/G3E EVK Carrier Board (RZ SMARC Series Carrier Board II) to the 40W setting (VBUS_SEL = 4). For detailed information about the switch settings, see section "2.3.1 VBUS_SEL – Main Power" of "RZ SMARC Series Carrier Board II User's Manual".
- Flutter Demo Applications
You can try three types of Flutter sample applications to see what features are provided. These samples are open-source software distributed on GitHub.
Sample Applications¶
This section explains how to build, deploy, and run the HMI sample applications, as well as provides detailed introductions for each one.
We have prepared the following sample applications.
Their source code can be downloaded from the GitHub links listed in the table below.
Type | Sample Applications | Target Device | Source Code URL |
|---|---|---|---|
LVGL | LVGL Sample Program for Image Display | RZ/G3E | |
LVGL Sample Program for Audio Playback | RZ/G3E | ||
LVGL Sample Program for Video Playback | RZ/G3E |
The executable binaries are also available in the bin directory of each sample application, so you can run the samples without building them yourself. If you choose to use the binaries, simply download them, skip Step 1, and start from Step 2: Deploy Sample Applications.
Step 1: Build Sample Applications¶
Tip
This step requires a Linux PC (Ubuntu).
Install cross-compilation toolchain.
When Using the HMI SDK Package
If you download the HMI SDK Package and follow the Getting Started setup instructions, you will find the toolchain installer script included in the package. Follow the steps below to install the toolchain for your board.
Target Board
Toolchain Installer Script
Location
RZ/G3E
rz-vlp-glibc-x86_64-core-image-weston-cortexa55-smarc-rzg3e-toolchain-5.0.8.sh
toolchain-installer_rzg3e_hmi-sdk_v3.4.0.0.zip
Unzip the package, and extract the installer.
Navigate to the directory where the HMI SDK Package was extracted.
Then, install the toolchain.
Tip
Please set the directory for installing the toolchain.
The default
<path-to-toolchain>is/opt/rz-vlp/5.0.8, which is used in the instructions below.
If you set the target directory manually, please remember to update the path accordingly in the next step.When Using the HMI SDK Yocto Build Package
If you download the HMI SDK Yocto Build Package, please ensure that you have completed Step 2-10: Create the SDK toolchain in Building the HMI SDK with Yocto. Then follow the steps below to install the toolchain for your board.
Tip
${WORK}refers to the directory you set in Step 2-3. Set environment variables in Building the HMI SDK with Yocto.Target Board
Toolchain Installer Script
Location
RZ/G3E
rz-vlp-glibc-x86_64-core-image-weston-cortexa55-smarc-rzg3e-toolchain-5.0.8.sh
${WORK}/build/tmp/deploy/sdk/
Install the toolchain.
Tip
Please set the directory for installing the toolchain.
The default
<path-to-toolchain>is/opt/rz-vlp/5.0.8, which is used in the instructions below.
If you set the target directory manually, please remember to update the path accordingly in the next step.
Enable cross compiler.
By default:
Get the sample application source code.
Navigate to the directory where you want to store the source code.
Go to the source code working directory.
Tip
Existing
<sample-application-directory>entries are listed in the table below.<sample-application-directory>Description lvgl/lvgl_sample_img_dispLVGL Sample Application for Image Display lvgl/lvgl_sample_audio_playbackLVGL Sample Application for Audio Playback lvgl/lvgl_sample_video_playbackLVGL Sample Application for Video Playback Build sample applications.
The executable binaries for the sample applications are built as follows:
rzg_hmi_sdk/sample_app/<sample-application-directory>/<sample-application-binary>.
Step 2: Deploy Sample Applications¶
Tip
- This step requires a Linux PC (Ubuntu).
- For operations that require entering commands on the EVK board, you can use the on-screen terminal at the top-left corner of the display, or connect remotely using an terminal emulator such as Tera Term.
Option 1. Over Ethernet (using SCP)¶
Connect the EVK board to your Linux PC and boot it.
Connect an Ethernet cable between the EVK’s port and your Linux PC.
Note
Refer to EVK Peripheral Setup for details.
Ethernet 0 and Ethernet 1 are available; either port can be used.
Press and hold the power button (red button) for 1 second to turn on the EVK board.
Check your EVK board’s IP address.
Run the
ipcommand on your EVK board as follows.Tip
For example, if the RZ/G3E board is connected to the local network through the Ethernet 0 port:
root@smarc-rzg3e:~# ip a | grep end 5: end0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group default qlen 1000 inet 192.168.20.99/24 brd 192.168.20.255 scope global end0 6: end1: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc mq state DOWN group default qlen 1000RZ/G3E board's IP address is
192.168.20.99(atend0).Copy the executable binary files and resource files to your EVK board (external SD card storage).
Copy the executable binary files from your Linux PC (Ubuntu) using
scpcommand.Tip
- We recommend copying the file to the
/home/rootdirectory. - Don’t forget to replace
<your-EVK-IP>with your EVK's IP address.
Copy resource files from your Linux PC (Ubuntu) usingscpcommand.Notice
Please make sure the
/usr/share/images/exists on your EVK before using scp.
If it does not exist, create it using the following command:Notice
Please make sure the
/usr/share/sounds/sample/exists on your EVK board before using scp.
If it does not exist, create it using the following command:Tip
Don’t forget to replace
<your-EVK-IP>with your EVK's IP address.- We recommend copying the file to the
Option 2. Over SD Card¶
Insert your SD card into the Linux PC and mount it.
Notice
Make sure to turn off your EVK board before ejecting the SD card.
Press and hold the power button for 2 seconds to turn it off.Copy the executable binary files and resource files to your SD card.
Tip
Follow the instructions in Step 4 in Option 2 to check where your SD card is mounted using the
lsblkcommand.For example, if the SD card is mounted at
/media/user/rootfs.Copy the executable binary files.
Tip
We recommend copying the file to the
/home/rootdirectory.
Copy resource files.Notice
Please make sure the
/usr/share/images/exists on your SD card before copying.
If it does not exist, create it using the following command:Notice
Please make sure the
/usr/share/sounds/sample/exists on your SD card before using scp.
If it does not exist, create it using the following command:Notice
Please make sure the
/usr/share/movies/exists on your SD card before using scp.
If it does not exist, create it using the following command:
Step 3: Run the HMI Sample Applications¶
Prepare the necessary equipment and configure the EVK DIP switches by following the instructions in Hardware Setup.
Insert the bootable microSD card created in Step 2 into the microSD card slot, and then power on the EVK board.
Tip
- Please refer to the EVK Peripheral Setup to locate the microSD card slot based on your selected boot mode.
- Press and hold the power button (red button, SW9) for 1 second to turn on the EVK board, and for 2 seconds to turn it off.
Set execute permission and run the sample applications on your EVK board.
- LVGL Sample Applications
Grant execute permission to the binary files.
Run the executable binary files.
The launched sample application is shown below.
This sample application is implemented using LVGL and can display image files in BMP, JPG, PNG, and GIF formats.Click the button to display the image from the source file.
To exit, simply close the window or press Ctrl+C in the EVK board terminal.
Grant execute permission to the binary files.
Run the executable binary files.
The launched sample application is shown below.
This sample application is implemented using LVGL and can play audio files in mp3, AAC, and WAV formats.Click the button to start, stop, or pause the audio from the source file.
To exit, simply close the window or press Ctrl+C in the EVK board terminal.
Grant execute permission to the binary files.
Run the executable binary files.
The launched sample application is shown below.
This sample application is implemented using LVGL, and it can play movie files in MP4 format.Click the button to start, stop, or pause the video from the source file.
To exit, simply close the window or press Ctrl+C in the EVK board terminal.























