.. _setting_up_dk: Setting up the SDK ################## .. contents:: :local: :depth: 2 See the compatibility between the versions of Amazon Sidewalk and the nRF Connect SDK by referring to the :ref:`compatibility_matrix`. Once confirmed, follow the `Installing the nRF Connect SDK`_ instructions. .. _dk_building_sample_app: Downloading the Sidewalk repository *********************************** The Sidewalk distribution model supports the following download methods. Choose the right download method depending on the version of sdk-sidewalk that you are using. * If you are using ``v2.5.0`` or later releases of sdk-sidewalk and sdk-nrf, follow the steps in :ref:`dk_building_app_in_nrf_manifest`. * If you are using the sdk-sidewalk ``v1.14.5-dev1`` release (with sdk-nrf ``v2.4.1``), or earlier versions, follow the steps in :ref:`dk_building_app_with_manifest`. .. _dk_building_app_in_nrf_manifest: Sidewalk as an nRF Connect SDK repository ----------------------------------------- Follow these steps to download the Sidewalk application for the nRF Connect SDK: 1. Open a terminal window. Your directory structure should look as follows: .. code-block:: console . |___ .west |___ bootloader |___ modules |___ nrf |___ nrfxlib |___ zephyr |___ ... #. If you have worked with the Sidewalk application in a previous distribution model (as a manifest repository), check the manifest file. Make sure the manifest path points to :file:`west.yml` inside the :file:`nrf` directory: .. code-block:: console $ west manifest --path /path-to-ncs-folder/nrf/west.yml In case your manifest path points to a different file, use the following command: .. code-block:: console $ west config manifest.path nrf #. Enable the Sidewalk group filter for west. .. code-block:: console $ west config manifest.group-filter "+sidewalk" Check for Sidewalk presence in west: .. code-block:: console $ west list sidewalk sidewalk sidewalk https://github.com/nrfconnect/sdk-sidewalk #. Update all repositories: .. code-block:: console $ west update Depending on your connection, the update might take some time. #. Install Python requirements for Sidewalk. .. code-block:: console $ pip install -r sidewalk/requirements.txt .. _dk_building_app_with_manifest: Sidewalk as an application with manifest repository --------------------------------------------------- Follow these steps to download the Sidewalk application for the nRF Connect SDK: 1. Open a terminal window. Your directory structure should look as follows: .. code-block:: console . |___ .west |___ bootloader |___ modules |___ nrf |___ nrfxlib |___ zephyr |___ ... #. Clone the Sidewalk application repository from the `sdk-sidewalk repository`_ to the nRF Connect SDK folder and name it ``sidewalk``: .. code-block:: console $ git clone --branch https://github.com/nrfconnect/sdk-sidewalk.git sidewalk For example: .. code-block:: console $ git clone --branch v1.14.4 https://github.com/nrfconnect/sdk-sidewalk.git sidewalk #. Install Python requirements for Sidewalk. .. code-block:: console $ pip install -r sidewalk/requirements.txt #. Set the Sidewalk application manifest and update. a. Check the current manifest path: .. code-block:: console $ west manifest --path /path-to-ncs-folder/nrf/west.yml #. Set the manifest path to the Sidewalk repository: .. code-block:: console $ west config manifest.path sidewalk #. Update all repositories: .. code-block:: console $ west update Depending on your connection, the update might take some time. #. Verify the new manifest path: .. code-block:: console $ west manifest --path /path-to-ncs-folder/sidewalk/west.yml Extracting nRF Command Line Tools ********************************* To download the nRF Command Line, go to the `nRF command line tools`_ page. .. include:: ../ncs_links.rst .. _sdk-sidewalk repository: https://github.com/nrfconnect/sdk-sidewalk .. _nRF Command Line Tools: https://www.nordicsemi.com/Software-and-Tools/Development-Tools/nRF-Command-Line-Tools/Download#infotabs .. _Installing the nRF Connect SDK: https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/installation/install_ncs.html