lvgl/lvgl

Display bug

stevenzhang2024 opened this issue · 2 comments

LVGL version

v9.1

What happened?

the ltdc driver is ok.
微信图片_20240517100147

When we port LVGL9.1. Display like this,is the config error or other problems?

微信图片_20240517100418

How to reproduce?

/Color depth: 8 (A8), 16 (RGB565), 24 (RGB888), 32 (XRGB8888)/
#define LV_COLOR_DEPTH 16
/1: Enable system monitor component/
#define LV_USE_SYSMON 1
#define LV_USE_OS LV_OS_FREERTOS

It seems like you are missing color depth conversion, something like "convert_color_depth" function in lvgl/src/extra/libs/png/lv_png.c

Oh ,no. The problem is stm32h7xx cache. SCB_EnableICache();SCB_EnableDCache();SCB->CACR|=1<<2; //FORCE D-Cache