Installing the nRF Connect SDK Step 4 Get the nRF SDK Connect code step 1 is misleading

The instructions are: On the command line, open the directory ncsThe following steps have one do a west init directly in the directory ncs. But they should say to create a directory below ncs that is identical to the nRFConnectSDK_revision and cd to that directory prior to doing west init and west update. The existing instructions are inconsistent with the diagram below step 6. And inconsistent with every other method you have for setting up a west workspace. Can you fix the documentation? I know it has been this way for many years; always incorrect, AFAICT. Thanks.

Burt Silverman

Parents Reply Children
  • Hi Oyvind,

    This is the page: Installing the nRF Connect SDK. You will see this statement 

    1. On the command line, open the directory ncs. By default, this is one level up from the location where you installed the toolchain. This directory will hold all nRF Connect SDK repositories.

    under major Part 4 Get the NRF Connect SDK Code. That statement does agree with the procedure they specify. HOWEVER, then they show a diagram

    If you used the default locations (C:/ncs on Windows, <home>/ncs on Linux and MacOS), your directory structure now looks similar to this:

    If you used the default locations (C:/ncs on Windows, <home>/ncs on Linux and MacOS), your directory structure now looks similar to this:

    Explain this code
    Copy
    Copy

    ncs
    ├─── toolchains
    │ └─── <toolchain-installation>
    └─── <west-workspace>
    ├─── .west
    ├─── bootloader
    ├─── modules
    ├─── nrf
    ├─── nrfxlib
    ├─── zephyr
    └─── ...

    If I am not mistaken, this is showing ncs/<west-workspace>/{.west},{bootloader},{modules},{nrf}...,{zephyr}

    Where <west-workspace> could be something like v2.8.0. And that is what everybody (most everybody) wants, but the procedure puts all those directories .west...zephyr directly underneath ncs. This is fine until one wants to have more than one west-workspace at the same time, like v2.7.0 and v2.8.0. Then one ends up with a big mess.

    Burt

Related