Increase LV_MEM_SIZE_KILOBYTES beyond 128KB

Increasing LV_MEM_SIZE_KILOBYTES beyond 128KB

What MCU/Processor/Board and compiler are you using?

ESP23-S3

What LVGL version are you using?

v8.3.1

What do you want to achieve?

I’m wondering if there’s any issue with increasing the value of LV_MEM_SIZE_KILOBYTES beyond its limit of 128 as specified in Kconfig? Obviously I can modify Kconfig to accept a higher value, but are there any hidden caveats of going beyond this limit? E.g. in the case of wanting to have a 180x180 Lottie animation LVGL tries to allocate 180x180x4=129600 bytes, which of course doesn’t work when the limit is at most 128KB.

Thanks :slight_smile:

I think the better solution is to just use the LV_MEM_CUSTOM option instead, and let the regular malloc be used if your system supports it. When I tried increasing LV_MEM_SIZE_KILOBYTES to 256 I ran into an issue with the .bss section (statically allocated variables) becoming too large.