This section helps you set up your ConnectCore device to see LVGL in action.
The goal of this section is to have an LVGL demo application running in your device. The application is a slightly modified version of the LVGL Linux Framebuffer example, which runs the Widgets demo.
Follow these steps to get started using the LVGL demo with your ConnectCore 6 SBC.
Requirements
-
A ConnectCore 6 SBC
-
LVDS or HDMI display for the graphical user interface
-
A mouse to work in the graphical user interface
Download the firmware
Download the firmware images from the following location: https://ftp1.digi.com/support/digiembeddedyocto/4.0/r7/images/ccimx6sbc/ccimx6sbc-lvgl-installer.zip
Program the LVGL demo image
Digi recommends you program the images using the Universal Update Utility (UUU) through a USB connection to your development PC.
-
Decompress the zip file in a directory of your choice.
-
Download the latest Universal Update Utility (UUU), a software tool from NXP.
UUU version should be v1.5.11 or higher. -
Place the
uuu
executable in a directory in your PATH, such as/usr/bin
. -
Install
udev
rules to allow any user to runuuu
to access the USB port:$ sudo sh -c "uuu -udev >> /etc/udev/rules.d/70-uuu.rules" $ sudo udevadm control --reload
-
Connect a micro USB cable to your development PC and the other end to the target USB OTG connector.
-
Reset the device by pressing the reset button on the board and immediately press any key in the serial terminal to stop the auto-boot process. The U-Boot bootloader prompt displays:
U-Boot dub-2017.03-r15.1 (Sep 20 2023 - 13:29:45 +0200) CPU: Freescale i.MX6Q rev1.6 at 792MHz CPU: Industrial temperature grade (-40C to 105C) at 38C Reset cause: POR I2C: ready DRAM: 1 GiB MMC: FSL_SDHC: 0, FSL_SDHC: 1 In: serial Out: serial Err: serial Model: Digi International ConnectCore 6 Single Board Computer. ConnectCore 6 SOM variant 0x02: Consumer quad-core 1.2GHz, 4GB eMMC, 1GB DDR3, -20/+70C, Wireless, Bluetooth, Kinetis Board: ConnectCore 6 SBC, version 3, ID 129 Boot device: MMC4 PMIC: DA9063, Device: 0x61, Variant: 0x60, Customer: 0x00, Config: 0x56 flash target is MMC:0 Net: FEC [PRIME] Fastboot: Normal Hit any key to stop autoboot: 0 =>
Information in the console log may vary. -
On the target, in U-Boot, execute the following command:
=> fastboot 0
-
On your development PC, change to the directory where you extracted the ZIP file:
$ cd <zip-folder>
-
To program the demo image, run:
$ ./install_linux_fw_uuu.sh -i dey-image-lvgl
-
Once the firmware is installed, the device boots automatically. The default username is root with no password.
Test the LVGL demo
The LVGL demo is automatically launched on boot.
The application’s scrolling mechanism works as if you’re using a touchscreen, even when you’re using a mouse. To scroll in a specific direction, click and hold anywhere in the application window and move the mouse in the opposite direction while holding the mouse button. |
To build an image with a customized version of the demo, see Customize the LVGL demo.