LVGL sample does not work with MXChip / AZ3166 (on Mac M1) #61324
-
Describe the bug To Reproduce First for the mxchip to work I had to install Steps to reproduce the behavior:
I have also tried without the DSHIELD param and it compiles successfully and flashing shows a screen that is blue and orange (with missing pixels, but that does not show "Hello World". Expected behavior Impact Logs and console output lvgl % west build -b az3166_iotdevkit . -- -DSHIELD=ssd1306_128x64
-- west build: generating a build system
Loading Zephyr default modules (Zephyr base).
-- Application: /Users/dan.benitah/zephyrproject/zephyr/samples/subsys/display/lvgl
-- CMake version: 3.26.4
-- Found Python3: /Users/dan.benitah/.pyenv/versions/3.10.8/envs/zephyrmxchip/bin/python3.10 (found suitable exact version "3.10.8") found components: Interpreter
-- Cache files will be written to: /Users/dan.benitah/Library/Caches/zephyr
-- Zephyr version: 3.3.99 (/Users/dan.benitah/zephyrproject/zephyr)
-- Found west (found suitable version "1.0.0", minimum required is "0.7.1")
-- Board: az3166_iotdevkit
-- Shield(s): ssd1306_128x64
-- ZEPHYR_TOOLCHAIN_VARIANT not set, trying to locate Zephyr SDK
-- Found host-tools: zephyr 0.15.1 (/Users/dan.benitah/.local/opt/zephyr-sdk-0.15.1)
-- Found toolchain: zephyr 0.15.1 (/Users/dan.benitah/.local/opt/zephyr-sdk-0.15.1)
-- Found Dtc: /opt/homebrew/bin/dtc (found suitable version "1.7.0", minimum required is "1.4.6")
-- Found BOARD.dts: /Users/dan.benitah/zephyrproject/zephyr/boards/arm/az3166_iotdevkit/az3166_iotdevkit.dts
-- Found devicetree overlay: /Users/dan.benitah/zephyrproject/zephyr/boards/shields/ssd1306/ssd1306_128x64.overlay
devicetree error: /Users/dan.benitah/zephyrproject/zephyr/boards/shields/ssd1306/ssd1306_128x64.overlay:13 (column 1): parse error: undefined node label 'arduino_i2c'
-- In: /Users/dan.benitah/zephyrproject/zephyr/samples/subsys/display/lvgl/build/zephyr, command: /Users/dan.benitah/.pyenv/versions/3.10.8/envs/zephyrmxchip/bin/python3.10;/Users/dan.benitah/zephyrproject/zephyr/scripts/dts/gen_defines.py;--dts;/Users/dan.benitah/zephyrproject/zephyr/samples/subsys/display/lvgl/build/zephyr/zephyr.dts.pre;--dtc-flags;'';--bindings-dirs;/Users/dan.benitah/zephyrproject/zephyr/dts/bindings;--header-out;/Users/dan.benitah/zephyrproject/zephyr/samples/subsys/display/lvgl/build/zephyr/include/generated/devicetree_generated.h.new;--dts-out;/Users/dan.benitah/zephyrproject/zephyr/samples/subsys/display/lvgl/build/zephyr/zephyr.dts.new;--edt-pickle-out;/Users/dan.benitah/zephyrproject/zephyr/samples/subsys/display/lvgl/build/zephyr/edt.pickle;--vendor-prefixes;/Users/dan.benitah/zephyrproject/zephyr/dts/bindings/vendor-prefixes.txt
CMake Error at /Users/dan.benitah/zephyrproject/zephyr/cmake/modules/dts.cmake:261 (message):
gen_defines.py failed with return code: 1
Call Stack (most recent call first):
/Users/dan.benitah/zephyrproject/zephyr/cmake/modules/zephyr_default.cmake:115 (include)
/Users/dan.benitah/zephyrproject/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:66 (include)
/Users/dan.benitah/zephyrproject/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:92 (include_boilerplate)
CMakeLists.txt:5 (find_package)
-- Configuring incomplete, errors occurred!
FATAL ERROR: command exited with status 1: /opt/homebrew/bin/cmake -DWEST_PYTHON=/Users/dan.benitah/.pyenv/versions/3.10.8/envs/zephyrmxchip/bin/python3.10 -B/Users/dan.benitah/zephyrproject/zephyr/samples/subsys/display/lvgl/build -GNinja -DBOARD=az3166_iotdevkit -DSHIELD=ssd1306_128x64 -S/Users/dan.benitah/zephyrproject/zephyr/samples/subsys/display/lvgl Environment (please complete the following information):
Additional context |
Beta Was this translation helpful? Give feedback.
Replies: 6 comments 2 replies
-
Hi @danuw! We appreciate you submitting your first issue for our open-source project. 🌟 Even though I'm a bot, I can assure you that the whole community is genuinely grateful for your time and effort. 🤖💙 |
Beta Was this translation helpful? Give feedback.
-
You would have to set LV_COLOR_DEPTH to 1 but IIRC this is probably not enough, and monochrome displays can be painful with LVGL. |
Beta Was this translation helpful? Give feedback.
-
Also you don't need to mess with shields as the Devicetree for the AZ3166 already defines a |
Beta Was this translation helpful? Give feedback.
-
I'm assuming you also found this thread? #51023 (reply in thread). I guess the mentioned |
Beta Was this translation helpful? Give feedback.
-
You cannot use Not a bug. |
Beta Was this translation helpful? Give feedback.
-
Thank you, I have had a go at cfb and it did work. I am sorry I misunderstood where to look. |
Beta Was this translation helpful? Give feedback.
You cannot use
-DSHIELD=ssd1306_128x64
because your board does not provide i2c_arduino nodelabel and already has description for ssd1306 display controller. ssd1306_128x64 shield works fine withsamples/subsys/display/lvgl
.For az3166_iotdevkit you need to provide proper LVGL configuration -DCONFIG_LV_Z_BITS_PER_PIXEL=1 -DCONFIG_LV_COLOR_DEPTH_1=y , e.g.
west build -b az3166_iotdevkit . -- -DCONFIG_LV_Z_BITS_PER_PIXEL=1 -DCONFIG_LV_COLOR_DEPTH_1=y
Not a bug.