Disabling unused elements in lv_conf.h does not help very much !
Best way is to do the followings:
1- Pass to the compiler two options:
-ffunction-sections
-fdata-sections
2- Pass to the linker this option:
–gc-sections
The above will result in big drop in flash usage.
I went through this in this forum two weeks ago, and here is the link:
Thank you very much. I have looked at the link. But I just have trouble classifying the numbers given. If I understand it correctly then the best possible usage is 170Kbytes for the flash, which is a lot?
I assumed that 50Kbytes or less should be possible…
In the last post, something is stated with 40Kbytes less, but then we are still over 100Kbytes? Is that correct?
Could it be that an earlier version of LVGL requires less memory?
In addition:
I have no idea where and how to pass the mentioned compiler and linker options with platformio …