zephyrproject-rtos / zephyr

Primary Git Repository for the Zephyr Project. Zephyr is a new generation, scalable, optimized, secure RTOS for multiple hardware architectures.
https://docs.zephyrproject.org
Apache License 2.0
10.02k stars 6.17k forks source link

ESP32S3: After assigning .lvgl_buff to Spiram, it does not display correctly. #74225

Open sam131208 opened 3 weeks ago

sam131208 commented 3 weeks ago

Describe the bug After assigning the LVGL cache(section ".lvgl_buf") to SPIRAM, the display is incorrect.

.ext_ram.bss 0x000000003c000000 0xf000 0x000000003c000000 __ext_ram_bss_start = . *(SORT_BY_ALIGNMENT(.lvgl_buf)) .lvgl_buf 0x000000003c000000 0xf000 modules/lvgl/libmodules__lvgl.a(lvgl.c.obj)

".lvgl_buf" was not assigned to Spiram: IMG_1506

After assigning the ".lvgl_buf" to Spiram: IMG_1507

Expected behavior Regardless of whether the LVGL cache is allocated to spiram or not, the content can be displayed normally.

Environment (please complete the following information):

sam131208 commented 2 weeks ago

Following the method mentioned in #74284, the display is correct when adding *(.lvgl_buf) to the .ext_ram.bss manually.