Hello All
We are trying to integrate ST7305 driver with NRF connecct SDK and are unable to get the driver to work using the extrnal module method mentioned in the NCS Intermediate course on Nordic dev acadamy. Previously we used to modify the display drive ST77789V to adapt to st7305 in the original SDK directly and made the driver work without any issues. We now want to move to the EXTRA_ZEPHYR_MODULES method.
I am attaching the error below which we get while doing the build. I have also attached the complete zip file of the project. Can someone at nordic look at the cmake and provide with correct Cmake. I have followed the steps provided at this Nordic dev academy link
* Executing task: nRF Connect: Generate config nrf52840dk/nrf52840 for /home/mnj/levelcon/firmware/boards/arm/lvgl_2
Building lvgl_2
west build --build-dir /home/mnj/levelcon/firmware/boards/arm/lvgl_2/build /home/mnj/levelcon/firmware/boards/arm/lvgl_2 --pristine --board nrf52840dk/nrf52840 -- -DNCS_TOOLCHAIN_VERSION=NONE -DEXTRA_DTC_OVERLAY_FILE=nrf52840dk_nrf52840.overlay -DBOARD_ROOT=/home/mnj/levelcon/firmware/boards/arm/lvgl_2
-- west build: generating a build system
Loading Zephyr module(s) (Zephyr base): sysbuild_default
-- Found Python3: /home/mnj/ncs/toolchains/b77d8c1312/usr/local/bin/python3.12 (found suitable version "3.12.4", minimum required is "3.8") found components: Interpreter
-- Cache files will be written to: /home/mnj/.cache/zephyr
-- Found west (found suitable version "1.2.0", minimum required is "0.14.0")
-- Board: nrf52840dk, qualifiers: nrf52840
Parsing /home/mnj/ncs/v2.9.1/zephyr/share/sysbuild/Kconfig
Loaded configuration '/home/mnj/levelcon/firmware/boards/arm/lvgl_2/build/_sysbuild/empty.conf'
Merged configuration '/home/mnj/levelcon/firmware/boards/arm/lvgl_2/build/_sysbuild/empty.conf'
Configuration saved to '/home/mnj/levelcon/firmware/boards/arm/lvgl_2/build/zephyr/.config'
Kconfig header saved to '/home/mnj/levelcon/firmware/boards/arm/lvgl_2/build/_sysbuild/autoconf.h'
--
****************************
* Running CMake for lvgl_2 *
****************************
Loading Zephyr default modules (Zephyr base).
-- Application: /home/mnj/levelcon/firmware/boards/arm/lvgl_2
-- CMake version: 3.21.0
-- Found Python3: /home/mnj/ncs/toolchains/b77d8c1312/usr/local/bin/python (found suitable version "3.12.4", minimum required is "3.8") found components: Interpreter
-- Cache files will be written to: /home/mnj/.cache/zephyr
-- Zephyr version: 3.7.99 (/home/mnj/ncs/v2.9.1/zephyr)
-- Found west (found suitable version "1.2.0", minimum required is "0.14.0")
CMake Error at /home/mnj/ncs/v2.9.1/zephyr/cmake/modules/zephyr_module.cmake:73 (message):
Traceback (most recent call last):
File "/home/mnj/ncs/v2.9.1/zephyr/scripts/zephyr_module.py", line 888, in <module>
main()
File "/home/mnj/ncs/v2.9.1/zephyr/scripts/zephyr_module.py", line 831, in main
modules = parse_modules(args.zephyr_base, None, west_projs,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/mnj/ncs/v2.9.1/zephyr/scripts/zephyr_module.py", line 740, in parse_modules
meta = process_module(project)
^^^^^^^^^^^^^^^^^^^^^^^
File "/home/mnj/ncs/v2.9.1/zephyr/scripts/zephyr_module.py", line 197, in process_module
meta = yaml.load(f.read(), Loader=SafeLoader)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/mnj/ncs/toolchains/b77d8c1312/usr/local/lib/python3.12/site-packages/yaml/__init__.py", line 81, in load
return loader.get_single_data()
^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/mnj/ncs/toolchains/b77d8c1312/usr/local/lib/python3.12/site-packages/yaml/constructor.py", line 49, in get_single_data
node = self.get_single_node()
^^^^^^^^^^^^^^^^^^^^^^
File "yaml/_yaml.pyx", line 673, in yaml._yaml.CParser.get_single_node
File "yaml/_yaml.pyx", line 687, in yaml._yaml.CParser._compose_document
File "yaml/_yaml.pyx", line 731, in yaml._yaml.CParser._compose_node
File "yaml/_yaml.pyx", line 845, in yaml._yaml.CParser._compose_mapping_node
File "yaml/_yaml.pyx", line 731, in yaml._yaml.CParser._compose_node
File "yaml/_yaml.pyx", line 845, in yaml._yaml.CParser._compose_mapping_node
File "yaml/_yaml.pyx", line 694, in yaml._yaml.CParser._compose_node
File "yaml/_yaml.pyx", line 860, in yaml._yaml.CParser._parse_next_event
yaml.scanner.ScannerError: while scanning for the next token
found character that cannot start any token
in "<unicode string>", line 5, column 1
Call Stack (most recent call first):
/home/mnj/ncs/v2.9.1/zephyr/cmake/modules/zephyr_default.cmake:133 (include)
/home/mnj/ncs/v2.9.1/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:66 (include)
/home/mnj/ncs/v2.9.1/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:92 (include_boilerplate)
CMakeLists.txt:7 (find_package)
-- Configuring incomplete, errors occurred!
CMake Error at cmake/modules/sysbuild_extensions.cmake:514 (message):
CMake configure failed for Zephyr project: lvgl_2
Location: /home/mnj/levelcon/firmware/boards/arm/lvgl_2
Call Stack (most recent call first):
cmake/modules/sysbuild_images.cmake:20 (ExternalZephyrProject_Cmake)
cmake/modules/sysbuild_default.cmake:20 (include)
/home/mnj/ncs/v2.9.1/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:75 (include)
/home/mnj/ncs/v2.9.1/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:92 (include_boilerplate)
/home/mnj/ncs/v2.9.1/zephyr/share/sysbuild-package/cmake/SysbuildConfig.cmake:8 (include)
template/CMakeLists.txt:10 (find_package)
-- Configuring incomplete, errors occurred!
See also "/home/mnj/levelcon/firmware/boards/arm/lvgl_2/build/CMakeFiles/CMakeOutput.log".
FATAL ERROR: command exited with status 1: /home/mnj/ncs/toolchains/b77d8c1312/usr/local/bin/cmake -DWEST_PYTHON=/home/mnj/ncs/toolchains/b77d8c1312/usr/local/bin/python3.12 -B/home/mnj/levelcon/firmware/boards/arm/lvgl_2/build -GNinja -DBOARD=nrf52840dk/nrf52840 -DNCS_TOOLCHAIN_VERSION=NONE -DEXTRA_DTC_OVERLAY_FILE=nrf52840dk_nrf52840.overlay -DBOARD_ROOT=/home/mnj/levelcon/firmware/boards/arm/lvgl_2 -S/home/mnj/ncs/v2.9.1/zephyr/share/sysbuild -DAPP_DIR:PATH=/home/mnj/levelcon/firmware/boards/arm/lvgl_2
* The terminal process terminated with exit code: 1.
* Terminal will be reused by tasks, press any key to close it. lvgl_2.zip