LVGL Memory Allocation Issues on ESP32 with esp_lcd
anyone worked with LVGL in ESP IDF?
8 Replies
i am using the
esp_lcd
component, which works, but the MCU raises errors at the lv_display_t* myDisplay = lv_display_create(320,240);
i lowered down the LVGL memory to 10 KB
Have you checked that you have enough memory to allocate that? Perhaps check usage with something like
heap_caps_get_free_size
to see how much is used. You can also consider enabling LV_USE_ASSERT_MEM
in your lv_conf so you can discover what is actually happening with the memoryi have 400 KB available
@te0 LVGL might be running into trouble with the 10KB limit you’ve set. You could try giving it a bit more memory to work with or optimize the buffer settings.
ok thats odd would you be able to do the LVGl configuration to see what ces up?
im such a bastard, i forgot to do
lv_init()
in the beginning