@jaredwolff , I was able to successfully build and flash samples found in “nfed” folder by following the guide available at https://docs.jaredwolff.com/nrf9160-sdk-setup-linux.html for circuitdojo_feather_nrf9160ns board by using both west and circuitdojo extension however when i try to build and compile a sample from it source code located under “nrf” folder with path nrf/samples/nrf9160/at_client then i get this error of :

CMake Error at /home/musman/Desktop/ZephyrSDK/zephyr/cmake/verify-toolchain.cmake:79 (find_package):
  Could not find a package configuration file provided by "Zephyr-sdk"
  (requested version 0.12) with any of the following names:

    Zephyr-sdkConfig.cmake
    zephyr-sdk-config.cmake

  Add the installation prefix of "Zephyr-sdk" to CMAKE_PREFIX_PATH or set
  "Zephyr-sdk_DIR" to a directory containing one of the above files.  If
  "Zephyr-sdk" provides a separate development package or SDK, be sure it has
  been installed.
Call Stack (most recent call first):
  /home/musman/Desktop/ZephyrSDK/zephyr/cmake/app/boilerplate.cmake:530 (include)
  /home/musman/Desktop/ZephyrSDK/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:24 (include)
  /home/musman/Desktop/ZephyrSDK/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:40 (include_boilerplate)
  CMakeLists.txt:9 (find_package)

-- Configuring incomplete, errors occurred!
FATAL ERROR: command exited with status 1: /home/musman/.zephyrtools/cmake/cmake-3.22.0-linux-x86_64/bin/cmake -DWEST_PYTHON=/home/musman/.zephyrtools/env/bin/python3 -B/home/musman/Desktop/ZephyrSDK/nrf/samples/nrf9160/at_client/build -S/home/musman/Desktop/ZephyrSDK/nrf/samples/nrf9160/at_client -GNinja

What should i do now ? Any help will be highly appreciated.

    musman010 at_client is included in nfed (fyi)

    Maybe you can share how you’re trying to build a sample outside of nfed? It’s hard to tell what’s wrong here.

    I was trying to build the example by using command “west build -b circuitdojo_feather_nrf9160ns” and before i went into the project directory located in /home/musman/Desktop/ZephyrSDK/nrf/samples. Moreover it should be noted that the issue persists even when i try to build the project using circuit dojo extension commands in the command palette of visual studio code.

    Can you guide me or share the link of how to create an application either based on the samples with source code as i see there is no information available at https://docs.jaredwolff.com/nrf9160-sdk-setup-linux.html about how to compile and debug an example with source code rather than with pre compiled binaries.

      Can you guide me or share the link of how to create an application either based on the samples with source code as i see there is no information available at https://docs.jaredwolff.com/nrf9160-sdk-setup-linux.html about how to compile and debug an example with source code rather than with pre compiled binaries.

      If you’re basing your code off of one of the samples, you can copy & rename the sample itself. So for instance, if you’re basing it off of the tracker sample you can copy nfed/samples/tracker to something like nfed/samples/myproject. It’s a quick and dirty way to get started especially if you’re playing around.

      Otherwise I’d recommend using the Zephyr template I put together a while ago.

      Running Zephyr Tools: Init Repo (in VSCode using the Zephyr Tools extension) with https://github.com/circuitdojo/zephyr-template as the address in the directory of your choice. Once you’re in the project directory you can then change the remote to whatever repository you want to use your project in.

      In the terminal in VSCode:

      cd your-project
      git remote rm origin
      git remote add origin https://github.com/youruser/yourproject.git

      You’ll obviously have to set up your own repo before adding it as a new remote.

      I’ll try to get more details on docs.jaredwolff.com. Stay tuned.

      Also, if you do copy and rename an existing sample, you’ll need to run:

      Zephyr Tools: Change Project

      and choose your new project and then run

      Zephyr Tools: Clean

      before you build.

      5 days later

      @jaredwolff, When i download the stuff by Running Zephyr Tools: Init Repo (in VSCode using the Zephyr Tools extension) with https://github.com/circuitdojo/zephyr-template and then try to add my remote repo by
      git remote rm origin
      git remote add origin https://github.com/youruser/yourproject.git
      Afterwards when i try to add app folder using command git add app/ then i get following warning :

      warning: adding embedded git repository: app
      hint: You’ve added another git repository inside your current repository.
      hint: Clones of the outer repository will not contain the contents of
      hint: the embedded repository and will not know how to obtain it.
      hint: If you meant to add a submodule, use:
      hint:
      hint: git submodule add <url> app
      hint:
      hint: If you added this path by mistake, you can remove it from the
      hint: index with:
      hint:
      hint: git rm –cached app
      hint:
      hint: See “git help submodule” for more information.

      Actually I found it was easier to create a new repository from the “Use this template” button on the template page itself:

      You can then init your repo and not worry about having to do anything fancy on the cli.

      git remote add origin https://github.com/youruser/yourproject.git
      Afterwards when i try to add app folder using command git add app/ then i get following warning

      The issue here is that you’re trying to add a folder to a git repo that doesn’t exist. By default your code gets placed in the app folder. This is where your manifest lives, main.c and the hidden git bits. It’s already added. Anything within the directory above (the one with app zephyr etc) is automatically pulled by west. No git initialization necessary.

      Hope that helps! (Check out the video if you haven’t already: https://www.youtube.com/watch?v=QG1KJKKqMIY)

      23 days later

      @jaredwolff, Thanks for your prompt support for now my problem is solved, yes i have just cloned the template and then updated remote accordingly enabling me to push to my git repo.

        Terms and Conditions | Privacy Policy