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 93 Development Kit.

Requirements

  • A ConnectCore 93 Development Kit

  • LVDS or HDMI display for the graphical user interface

  • A mouse to work in the graphical user interface

Download the firmware

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.

  1. Decompress the zip file in a directory of your choice.

  2. Download the latest Universal Update Utility (UUU), a software tool from NXP.

    UUU version should be v1.5.11 or higher.
  3. Place the uuu executable in a directory in your PATH, such as /usr/bin.

  4. Install udev rules to allow any user to run uuu to access the USB port:

    $ sudo sh -c "uuu -udev >> /etc/udev/rules.d/70-uuu.rules"
    $ sudo udevadm control --reload
  5. Connect a USB type-C cable to your development PC and the other end to the target USB type-C connector.

  6. 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 SPL dub-2023.04-r3.2 (Jan 30 2024 - 10:57:23 +0000)
    SOC: 0xa1009300
    LC: 0x2040010
    PMIC: Over Drive Voltage Mode
    M33 prepare ok
    Normal Boot
    Trying to boot from BOOTROM
    Boot Stage: Primary boot
    image offset 0x0, pagesize 0x200, ivt offset 0x0
    Load image from 0x4f400 by ROM_API
    NOTICE:  BL31: v2.8(release):lf-6.1.55-2.2.0-0-g08e9d4eef226-dirty
    NOTICE:  BL31: Built : 16:47:44, Jan 30 2024
    
    
    U-Boot dub-2023.04-r3.2 (Jan 30 2024 - 10:57:23 +0000)
    
    CPU:   i.MX93(52) rev1.1 1700 MHz (running at 1692 MHz)
    CPU:   Industrial temperature grade (-40C to 105C) at 42C
    Reset cause: POR (0x1)
    DRAM:  992 MiB
    Core:  202 devices, 29 uclasses, devicetree: separate
    MMC:   FSL_SDHC: 0, FSL_SDHC: 1
    In:    serial
    Out:   serial
    Err:   serial
    Model: Digi ConnectCore 93 Development Kit
    ConnectCore 93 SOM variant 0x01: 992 MiB LPDDR4, Wi-Fi, Bluetooth
    Boot:  MMC0
    
    BuildInfo:
      - ELE firmware version 0.1.0-44880904
    
    flash target is MMC:0
    Net:   eth0: ethernet@428a0000 [PRIME]
    Fastboot: Normal
    Normal Boot
    Hit any key to stop autoboot:  0
    => 
    Information in the console log may vary.
  7. On the target, in U-Boot, execute the following command:

    => fastboot 1
  8. On your development PC, change to the directory where you extracted the ZIP file:

    $ cd <zip-folder>
  9. To program the demo image, run:

    $ ./install_linux_fw_uuu.sh -i dey-image-lvgl
  10. 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.

LVGL widgets demo
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.