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

Parents Reply Children
  • 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

  • Hi

    I did see Lesson1 in the nRF Connect SDK Fundamentals DevAcademy course for in-depth info on how to create an application.

    However, when I tried to re-do the Exercise 2 from Lesson 1 from the nRF Connect SDK Fundamentals DevAcademy course - I was unable to even create  a build of the sample "blinky".

    I followed the required exercise steps, namely:

    1. I did create a folder that would hold this exercise, namely: c:\Nordic-nRF5340-dk\Myapps

    2. In VS Code, I clicked on the nRF Connect Extension. In the "Welcome View" I clicked on "Create a new application"

    3. In the "New Application" wiew, I selected:

    3.1  Application type: Freestanding

    3.2  nRF Connect SDK:  2.1.1 ;  nRF Toolchain:  2.1.2

    3.3  Application location: c:\Nordic-nRF5340-dk\Myapps

    3.4  Application template:  zephyr/samples/basic/blinky

    3.5  Application name:  my_blinky

    And I cliked on "Create Application".

    However, when I tried to create a build of this sample, I saw the following error messages:

    "error: Aborting due to Kconfig warnings" ; "FATAL ERROR: command exited with status 1".                    I attach a screenshot of these eror messages.

    I noticed that I was getting a message : "Invalid Python executive", as soon as I opened the VS Code, and I wonder if this is not a part of the problem that I am experiencing. I attach a screenshot of this message: "Invalid Python executive".

    I used to see this message in the past but I used to just click on "continue..." button located at the bottom of the message and then the message: "Last synced" used to change to "Last synced: now".

    But now, when I click on this "configure..." button, I see at the top of the screen that:

    1. Kconfig: Python (Not synced)

    2. Kconfig: Python - 1 setting found.

    3. Location of Python executable. Python 3 is required to use nRF Kconfig. If no location is specified, then the PATH of the current workspace is used.

    I attach a screenshot with the message: " Kconfig Python Not Synced".

    I then clicked on the "gear" icon and I selected "Sync This Setting" option.

    However, the message displayed at the top of the page still showed:

    "Kconfig: Python (Not synced). Last synced:1 wk ago".

    What shall I do to be able to create a build of a sample like: "blinky" ?

    JM

    Error Message 15-Nov-2022.docx

    Invalid Python Executive - message 15-Nov-2022.docx

    Kconfif Python Not Synced.docx

Related