Mimimizing flash size

Environment

  • MCU/MPU/Board: Renesas RA6M3
  • LVGL version: 9.2.2

Hello,

I am trying to minimize the amount of flash used by LVGL. I use a Renesas RA6M3 processor, but do not use the newest FSP drivers that include LVGL, as this project is older than that newer FSP version.

How do I minimize the flash usage of LVGL as much as possible?
I have already disabled everything in lv_conf.h except for the button and label types.
I have minimized the “simple” theme to only specify the bare minimum (background colors).

My application only consists of two screens with buttons and text, no scrollbars, no images.
However, when I look at the .map file I end up with objects generated for a lot of things that I do not need, things like lv_obj_scroll.o, and software blending.

I have one font that only consists of the characters I use in my application.

Has anybody found a way to get rid of these seemingly superfluous parts of LVGL that I do not use at all?

You can sort the object files by size to see which ones use the most flash. That helps quickly identify what to optimize.

Thank you,

I’ve done that. Some of the worst offenders are the scroll object for instance. But I feel like the scrolling is very deeply connected to the touch screen indev drivers, so perhaps there is not much more to be done here?