Having issues trying to use ssd1306 display with the nrf52840dk. When I try to use the lvgl sample code, I cannot make a build configuration (doesn't compile), although if I use the given code and build for a nrf5340, then everything works.
In the steps it also mentioned this portion:
Edit: For nRF52832: Use compatible = "nordic,nrf-twi";
instead of compatible = "nordic,nrf-twim";
also remove the line zephyr,concat-buf-size = <4096>;
which I also tried but was unsuccessful building.
I have looked online and tried to build the code I see in people's github repos but it also doesn't work(build). Maybe sometime with the newer sdk and toolchain? I am using v3.0.2, while most of the examples I see are from 2.8 or prior. My board target is nrf52840dk/nrf52840.
here is the terminal output:
-- Generated zephyr.dts: /home/grammy/nrfProj/test_zephyr_oled/build/test_zephyr_oled/zephyr/zephyr.dts
-- Generated devicetree_generated.h: /home/grammy/nrfProj/test_zephyr_oled/build/test_zephyr_oled/zephyr/include/generated/zephyr/devicetree_generated.h
-- Including generated dts.cmake file: /home/grammy/nrfProj/test_zephyr_oled/build/test_zephyr_oled/zephyr/dts.cmake
/home/grammy/nrfProj/test_zephyr_oled/prj.conf:16: warning: attempt to assign the value 'y' to the undefined symbol LV_MEM_CUSTOM
/home/grammy/nrfProj/test_zephyr_oled/prj.conf:19: warning: attempt to assign the value 'y' to the undefined symbol LV_USE_BTN
/home/grammy/nrfProj/test_zephyr_oled/prj.conf:21: warning: attempt to assign the value 'y' to the undefined symbol LV_USE_IMG
error: Aborting due to Kconfig warnings
Parsing /home/grammy/ncs/v3.0.2/zephyr/Kconfig
Loaded configuration '/home/grammy/ncs/v3.0.2/zephyr/boards/nordic/nrf52840dk/nrf52840dk_nrf52840_defconfig'
Merged configuration '/home/grammy/nrfProj/test_zephyr_oled/prj.conf'
Merged configuration '/home/grammy/nrfProj/test_zephyr_oled/build/test_zephyr_oled/zephyr/.config.sysbuild'
CMake Error at /home/grammy/ncs/v3.0.2/zephyr/cmake/modules/kconfig.cmake:396 (message):
command failed with return code: 1
Call Stack (most recent call first):
/home/grammy/ncs/v3.0.2/nrf/cmake/modules/kconfig.cmake:36 (include)
/home/grammy/ncs/v3.0.2/zephyr/cmake/modules/zephyr_default.cmake:133 (include)
/home/grammy/ncs/v3.0.2/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:66 (include)
/home/grammy/ncs/v3.0.2/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:92 (include_boilerplate)
CMakeLists.txt:3 (find_package)
-- Configuring incomplete, errors occurred!
CMake Error at cmake/modules/sysbuild_extensions.cmake:514 (message):
CMake configure failed for Zephyr project: test_zephyr_oled
Location: /home/grammy/nrfProj/test_zephyr_oled
Call Stack (most recent call first):
cmake/modules/sysbuild_images.cmake:43 (ExternalZephyrProject_Cmake)
cmake/modules/sysbuild_default.cmake:21 (include)
/home/grammy/ncs/v3.0.2/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:75 (include)
/home/grammy/ncs/v3.0.2/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:92 (include_boilerplate)
/home/grammy/ncs/v3.0.2/zephyr/share/sysbuild-package/cmake/SysbuildConfig.cmake:8 (include)
template/CMakeLists.txt:10 (find_package)
-- Configuring incomplete, errors occurred!
See also "/home/grammy/nrfProj/test_zephyr_oled/build/CMakeFiles/CMakeOutput.log".
FATAL ERROR: command exited with status 1: /home/grammy/ncs/toolchains/7cbc0036f4/usr/local/bin/cmake -DWEST_PYTHON=/home/grammy/ncs/toolchains/7cbc0036f4/usr/local/bin/python3.12 -B/home/grammy/nrfProj/test_zephyr_oled/build -GNinja -DBOARD=nrf52840dk/nrf52840 -DCONF_FILE=prj.conf -S/home/grammy/ncs/v3.0.2/zephyr/share/sysbuild -DAPP_DIR:PATH=/home/grammy/nrfProj/test_zephyr_oled