Building a Connect SDK v1.9 project

Hello,

I am working on a project which was previously developed by another person, and am struggling to setup the development environment. The project was built on nRF Connect SDK v1.9, and I need to be able to recompile the firmware as-is due to time constraints preventing a migration to v3 at the moment.

After getting past some initial hurdles, I'm currently stuck with a device tree error.

Here is the build output:

west build -b nrf9160dk/nrf9160/ns -d c:\wm2build --  -DOVERLAY_CONFIG="config/overlay-debug.conf" -DCONFIG_MCUBOOT_IMAGE_VERSION=\"0.3.0+1\" -DPM_STATIC_YML_FILE=pm_static_debug.yml
-- west build: generating a build system
Loading Zephyr default modules (Zephyr base (cached)).
-- Application: C:/wm2
-- CMake version: 4.1.0
-- Cache files will be written to: C:/wm2/zephyr/.cache
-- Zephyr version: 4.2.99 (C:/wm2/zephyr)
-- Found west (found suitable version "1.4.0", minimum required is "0.14.0")
-- Board: nrf9160dk, Revision: 0.14.0, qualifiers: nrf9160/ns
-- Found host-tools: zephyr 0.17.0 (C:/zephyr-sdk-0.17.0)
-- Found toolchain: zephyr 0.17.0 (C:/zephyr-sdk-0.17.0)
-- Found BOARD.dts: C:/wm2/zephyr/boards/nordic/nrf9160dk/nrf9160dk_nrf9160_ns.dts
-- Found devicetree overlay: C:/wm2/zephyr/boards/nordic/nrf9160dk/nrf9160dk_nrf9160_ns_0_14_0.overlay
-- Found devicetree overlay: C:/wm2/boards/nrf9160dk_nrf9160_ns.overlay
devicetree error: 'sda-pin' appears in /soc/peripheral@40000000/i2c@a000 in C:/wm2build/zephyr/zephyr.dts.pre, but is not declared in 'properties:' in C:/wm2/zephyr/dts/bindings\i2c\nordic,nrf-twim.yaml
CMake Error at zephyr/cmake/modules/dts.cmake:306 (execute_process):
  execute_process failed command indexes:

    1: "Child return code: 1"

Call Stack (most recent call first):
  zephyr/cmake/modules/zephyr_default.cmake:131 (include)
  zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:66 (include)
  zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:97 (include_boilerplate)
  CMakeLists.txt:17 (find_package)


-- Configuring incomplete, errors occurred!

The error mentions "C:/wm2build/zephyr/zephyr.dts.pre" and "C:/wm2/zephyr/dts/bindings\i2c\nordic,nrf-twim.yaml", but should I even be going in and touching those Zephyr files to begin with? I'm not sure what the proper solution would be for this.

The overall process has been like so:
-git clone ...
-cd ...
-west init
-west update
-run west build

Has anyone seen a similar issue to this, and be able to advise on how I should proceed?

Thank you

Related