Having attempted to compile the BME688 sample from HomeSmartMesh/sdk-hsm-thingy53 for our custom nRF9160 board, it failed to compile for us as it uses the SENSOR_DEVICE_DT_INST_DEFINE macro, which as it turns out, was introduced in Zephyr version 3.3.0. Our months-old NCS version was v2.1.0, which on investigation is a fork of Zephyr 3.1.99) which explains why it failed to build.
The Nordic release notes for v2.3.0 say, "The current nRF Connect SDK main branch is based on revision e1e06d05fa of Zephyr.", however despite looking for e1e06d05fa and playing around in Gitlab, I was unable to determine which Zephyr version number this equates to. The release notes also say I need to run `west update` (but didn't say where), so I tried:
- running it in `~/ncs/v2.3.0` causes `west.configuration.MalformedConfig: local configuration file not found`, while
- running it anywhere else gives `FATAL ERROR: no west workspace found from "/home/pasha/ncs/toolchains/v2.3.0"; "west update" requires one.`
I attempted to go ahead anyway and install the most recent NCS v2.3.0 via the `nrfconnect` GUI (Toolchain Manager) to allow us to try compiling the BME688 sample from HomeSmartMesh/sdk-hsm-thingy53 for our nRF9160. This created some files in my home directory, but despite restarting VSCode and attempting to build multiple times in various ways, nothing seemed to work. Here's my ncs folder:
$ cd ~/ncs $ ls * downloads: ncs-toolchain-linux-x86_64-v2.1.0-20220915T105857-67a1888.tar.gz ncs-toolchain-linux-x86_64-v2.3.0-20230302T121949-75e5684.tar.gz toolchains: v2.1.0 v2.3.0 v2.1.0: bootloader mbedtls modules nrf nrfxlib test tools zephyr v2.3.0:
Note, ~/ncs/v2.3.0 is an empty directory with just a single hidden empty `.west` directory in there. I moved all references of v2.1.0 out of the directory, restarted VSCode, even tried `west update` in various places, but again, not working. Here's my ~/ncs folder now:
$ ls * downloads: ncs-toolchain-linux-x86_64-v2.1.0-20220915T105857-67a1888.tar.gz toolchains: v2.1.0 v2.1.0: bootloader mbedtls modules nrf nrfxlib test tools zephyr
Please help!