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

Requirements

  • A ConnectCore MP25 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:

    NOTICE:  CPU: STM32MP257F?? Rev.B
    NOTICE:  Model: Digi International ConnectCore MP25 Development Kit
    NOTICE:  BL2: v2.8-stm32mp2-beta-r1.0(release):65cda4fe7(65cda4fe)
    NOTICE:  BL2: Built : 08:14:45, Jul 12 2024
    NOTICE:  BL2: Booting BL31
    NOTICE:  BL31: v2.8-stm32mp2-beta-r1.0(release):65cda4fe7(65cda4fe)
    NOTICE:  BL31: Built : 08:14:50, Jul 12 2024
    
    U-Boot 2022.10-stm32mp25-beta-r1-gc5d85ac8567-dirty (Jul 12 2024 - 11:27:03 +0200)
    CPU: STM32MP257F?? Rev.B
    Model: Digi International ConnectCore MP25 Development Kit
    ConnectCore MP25 SOM variant 0x01: 0 Bytes DDR4, Wi-Fi, Bluetooth
      Board version 1
    Boot:  MMC
    DRAM:  1 GiB
    optee optee: OP-TEE: revision 3.19 (e66a2a51)
    Core:  374 devices, 31 uclasses, devicetree: board
    WDT:   Started watchdog with servicing (32s timeout)
    MMC:   STM32 SD/MMC: 0, STM32 SD/MMC: 2
    Loading Environment from MMC... OK
    In:    serial
    Out:   serial
    Err:   serial
    Net:   eth0: eth2@482d0000
    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 0
  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.