Problems with using the nRF Connect SDK v2.1.2 after upgrading from nRF Connect SDK v.2.0.0 and after having deleted (on my PC) the directory that was created for nRF Connect v2.0.0

I successfully completed all exercises from DevAcademy using nRF Connect SDK v2.0.0 and nRF Connect SDK v2.1.1.

However, when I tried to experiment with DevAcademy Lesson 8: Simple Tracker - I run into difficulties.

Suspecting that I might need to use the latest nRF Connect SDK v2.1.2 , I did install this nRF Connect SDK v2.1.2 and I did delete (on my PC) the folder that was created for nRF Connect SDK v2.0.0., namely C:\Nordic-20\.

But since that time, while I am able to open the VS Code from nRF Connect SDK v2.1.1 and from nRF Connect SDK v2.1.2  - I can see the following error messages (copy attached):

OUTPUT:

2022/11/10, [20:29:29] Unable to resolve configuration with compiler Path: "C:\Nordic-20\toolchain\v2.0.0\Zephyr-SDK\arm-zephyr-eabi\bin\arm-zephyr-eabi-gcc.exe"

As I mentioned above, I did delete (on my PC) the folder "C:\Nordic-20\" after installing on my PC the nRF Connect SDK v2.1.2 in the folder c:\Nordic-212\.

And when I try to: "Add Build Configuration", to one of the applications already listed under Applications, I see the following message below the "Board" field:

"No board found" - as can be seen from the attached screenshot.

How can this problem be overcome, so that I could use the nRF Connect SDK v2.1.1 or v2.1.2 to: "Add Build Configuration" to the existing apps without being told that: "No Board found".

Screenshot 10-November-2022.docx

  • Hello

    It seems like VS Code is looking for your old NCS installation, so you will have to configure it to use your new installation.

    In the NCS tab in VS Code, if you click "Open welcome page", what are your SDK and Toolchain paths under the Quick Setup settings?

    Best regards,

    Einar

  • Hello,

    As per the attached screenshot of the opening page of VS Code, I can not see a TAB: NCS.

    However, under "NRF Connect" I can see "Open welcome page" and when I click on it I can see the "Quick Setup" option.

    I can see the following SDK and Toolchain paths under the "Quick Setup" settings:

    NRF Connect SDK: undefined(c:\Nordic-211)

    nRF Connect Toolchain: Select a value...

    When I choose for the nRF Connect Toolchain the value of 2.1.1 (c:\Nordic-211\toolchains\v2.1.1) , I see the message: "Changes saved".

    However, when I try to "Add Build Configuration" to one of the applications listed under "Applications" in VS Code, I see the message:"No boards found".

    And the message:

    OUTPUT:

    [2022/11/11 18:07:45] Unable to resolve configuration with compilerPath: "C;\Nordic-20\toolchains\v.2.0.0\opt\Zephyr-sdk\arm-zephyr-eabi\bin\arm-zephyr-eabi-gcc.exe"still comes up.

    What should I do to be able to see the various boards under the "Board" and why the above message, highlighted in yellow, keeps coming up?

    Regards,

    JM

    Screenshot 11-11-2022.docx

  • Hi

    Yes "under NRF Connect" is what I meant by the NCS tab (NCS = nRF Connect SDK)

    Did you restart VS Code after setting the toolchain path?

    Did you also set the SDK path?

    It could also be that the project you want to build has the old toolchain configured, so you might want to add your application as a new project after you've updated the toolchain.

    -Einar

  • Hi,

    As per the attached screenshot of the "Quick Setup" for nRF Connect for VS Code,

    I did set the path to nRF SDK as: 2.1.1 (c:\Nordic-211\v2.1.1)

    and the path to nRF Connect Toolchain as: 2.1.1 (c:\Nordic-211\toolchains\v2.1.1).

    I then tried to repeat the Exercise 1-Lesson2 from DevAcademy:Cellular IoT fundamentals, by "adding an existing application" and navigating to: "<install_path>\nrf\samples\nrf9160\at_client", with my install path being: c:\Nordic-211\v2.1.1\nrf\samples\nrf9160\at_client.

    But when I tried to create a build configuration, I saw the following eror message:

    "error: Aborting due to Kconfig warnings"   "FATAL ERROR: command exited with status 1".

    I attach the screenshot of this error message.

    I then tried to add this sample : at_client, as a new project by:

    1. Selecting the option "Create a new application" from the Welcome Page under nRF Connect.

    2. Selecting the application location as: C;\Nordic-211\v2.1.1\nrf\samples\nrf9160\at_client

    But the following message appeared under the"Application Location":

    "Can not create a new application within an existing west workspace".

    I attach a screenshot of the "New Application" page with the above message.

    Also, I am not sure what shall I enter under "Application Template" and under "Apploication Name" on the "New Application" page.

    Can you advise, what shall I do to be able to repeat the Exercise1-Lesson2 from DevAcademy: Cellular IoT fundamentals, after having upgraded my nRF Connect SDK from version v2.0.0 to version v2.1.1 ?

    JM

    Quick setup for nRF Connect for VS Code 14-Nov-2022.docx

    Error Message 14-Nov-2022.docx

    New Application - Page 14-Nov-2022.docx

  • Hi

    Please see lesson 1 in the nRF Connect SDK Fundamentals DevAcademy course for in-depth info on how to create an application.

    "Application Location" is not the location of the source code but where to build your application.

    "Application template" is the location of the sample source code.

    "Application name" is the name of your application, and can be anything you want

    -Einar

Related