Zephyr 4.1 Graphics Example

I’ve been following Shawn Hymel’s excellent series on Getting Started with Zephyr.

I tried out the 10_demo_display using Zephyr 3.7 and Zephyr 4.0 and it works properly with both of those. If I try running it under Zephyr 4.1 then I get a mangled display.

I made the following changes:

Changed apps/10_demo_display/boards/esp32s3_devkitc.overlay

    mipi-mode = <MIPI_DBI_MODE_SPI_4WIRE>;

to

    mipi-mode = "MIPI_DBI_MODE_SPI_4WIRE";

Changed the definition of rect_points in src/main.c from lv_point_t to lv_point_precise_t (this eliminated a compiler warning).

Removed CONFIG_LV_MEM_CUSTOM=y from prj.conf (this is a non-existent KConfig option and it complains under 4.1)

Changed CONFIG_LV_Z_MEM_POOL_SIZE=8192 to CONFIG_LV_Z_MEM_POOL_SIZE=58368

I used the same value from the LVGL samples.

Picture of the display using Zephyr 3.7 & 4.0
Google Photos

Picture of the display using Zephyr 4.1
Google Photos

I can’t figure out how (or if) you can edit a post, so my question is does anybody know what it takes to make the example work under Zephyr 4.1?

Hello @dhylands

Welcome to the TechForum

I have reached out to our group to see if anyone might have a solution to this problem.

1 Like

Hi @dhylands Zephyr is a moving target, please add a note on 4.1.x here: GitHub · Where software is built

This looks like a clock or timing issue. So something changed between 4.0/4.1

Regards,

Thanks - I created Trying to get LCD working with Zephyr 4.1.0 · Issue #13 · ShawnHymel/introduction-to-zephyr · GitHub