SDAA158 December   2025 MSPM33C321A

 

  1.   1
  2.   Abstract
  3.   Trademarks
  4. 1Overview
    1. 1.1 LVGL Project Setup
    2. 1.2 Configuration
    3. 1.3 Initialization
    4. 1.4 LVGL Output
    5. 1.5 LVGL Input
    6. 1.6 LVGL Update
  5. 2LVGL Example
    1. 2.1 Hardware Connections
    2. 2.2 Software
    3. 2.3 LVGL Example Summary
  6. 3Summary
  7. 4Revision History

LVGL Project Setup

LVGL has been integrated into the M33 SDK, however, the library must be linked into the project. The following steps can be followed to perform this linking:

  • Right click on the project and select "Add Files/Folders..."
  • In the "Add Files/Folders" window, select the "+" sign to add the LVGL library
  • From the "Select files/folders" window, change the dropdown from "Select files to add" to "Select folders to link"
  • Then select the base path of the SDK LVGL library by clicking on the "..." icon near "Path".
    • The SDK LVGL library is located at "C:\ti\mspm33_sdk_XX\source\third_party\lvgl" where "XX" is the latest SDK version.
  • Click "Ok" on the "Select files/folders" window
  • Finally, click "Ok" on the "Add Files/Folders" window
  • The SDK LVGL library should now be included in the project
The library has the most basic configuration and no low level drivers. To configure the library for a specific application and add low level drivers for a specific display, five files must be added to the project and adjusted:
  • lv_conf.h: The main configuration file for LVGL
  • lv_port_disp.h: The header file for the LVGL display driver
  • lv_port_disp.c: The source file for the LVGL display driver
  • lv_port_indev.h: The header file for the LVGL input device driver
  • lv_port_indev.c: The source file for the LVGL input device driver