Hi there,

I created a new project with Zephyr tools in VSCode for my own code. This was created within my feather/nrf/app directory, where app is newly created.

I now want to change project to a sample again, however, when I invoke Zephyr Tools Change Project, I only see the option of my newly created project, and none of the original projects/samples.

How can I change the search path for these projects?

    Hi @doggylizard

    doggylizard I now want to change project to a sample again

    What do you mean here? You want to change projects?

    doggylizard How can I change the search path for these projects?

    Currently the extension only looks in the main directory where your west.yml is found. So if you’re using nfed then it will only search in nfed. You can either:

    1. Copy the sample you want into the directory that’s active
    2. Re-init using the repository that you want to target. The nRF9160 Feather should work just fine if you checkout NCS directly.

      jaredwolff What do you mean here? You want to change projects?

      By doing Zephyr Tools: Change Project in VSCode. I guess this sets the “active” path for Zephyr Tools to build things for?

      If I copy the a sample from nrf/samples/nrf9160/ into app, West is unable to build it as does not define this extension command. I do this using Zephyr Tools: Build. If I move it a directory higher than app/, then again, Zephyr Tools: Change Project

        doggylizard By doing Zephyr Tools: Change Project in VSCode. I guess this sets the “active” path for Zephyr Tools to build things for?

        Yes!

        doggylizard If I copy the a sample from nrf/samples/nrf9160/ into app, West is unable to build it as does not define this extension command. I do this using Zephyr Tools: Build. If I move it a directory higher than app/, then again, Zephyr Tools: Change Project

        Did you create a project using Zephyr Tools: Create Project? Multiple applications can live in your /app/ folder. I would move the contents of your app folder except for your west.yml into another named folder.

        So your base app directory may look something like this:

        ❯ tree -L 1
        .
        ├── at_client
        ├── http_update
        ├── your_app
        └── west.yml

        Then the Change Project should be able parse and all you to change to the different application. at_client and http_update are just examples of the NCS samples you could bring over and place into your app directory. Also you will need to delete any build folders.

          Terms and Conditions | Privacy Policy