Problem upgrading from NCS 2.1.0 to 2.3.0

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!

Parents
  • Edit: the last ~ncs folder contents in my initial post were incorrect.  Here's how it actually looks:

    $ ls *
    downloads:
    ncs-toolchain-linux-x86_64-v2.3.0-20230302T121949-75e5684.tar.gz
    
    toolchains:
    v2.3.0
    
    v2.3.0:

    where the ~/ncs/v2.3.0 folder is the empty directory with just a single hidden empty `.west` directory in there.

  • Hi aejoe,

    If I've understood you correctly, your original installation was a manual installation, correct? If so, please try the following: Updating a copy of the nRF Connect SDK

    The central difference is that you must run west update from ncs/nrf (but please read the entire section).

    If you've always had an automatic install via the Toolchain Manager, updating should have been smooth and left in a separate directory per NCS version. If something is broken, I would recommend just removing the directory for that NCS version, and updating again.

    Good luck!

    Best regards,

    Raoul

Reply
  • Hi aejoe,

    If I've understood you correctly, your original installation was a manual installation, correct? If so, please try the following: Updating a copy of the nRF Connect SDK

    The central difference is that you must run west update from ncs/nrf (but please read the entire section).

    If you've always had an automatic install via the Toolchain Manager, updating should have been smooth and left in a separate directory per NCS version. If something is broken, I would recommend just removing the directory for that NCS version, and updating again.

    Good luck!

    Best regards,

    Raoul

Children
No Data
Related