nrfutil: Error: Failed to find default toolchain

I'm using nrf SDK v2.4.1, when I use "nrfutil toolchain-manager  list" command I get the below 

However when I try to use command like launch or env, I got the below:

Also from vs code extension, when I try to use the Manage toolchains button, I got the below error

Any Idea how to fix this?

Parents
  • Hello,

    I spoke to the team who develops nrfutil, and they wrote the following:

    ------------------------

    The default version of the nrfutil toolchain should have an asterix in front of it when you use nrfutil toolchain-manager list. The user doesn't have that, so I believe they do not have a default toolchain set. It seems like the nrfutil toolchain version that you install latest is always the default version. If you install a new (or old) version, and then uninstall it, there is no mechanism to set another version to the default version. 

    Two ways of fixing this:

    -When running things like launch or env, you can specify the version of the toolchain to use. E.g. run "nrfutil toolchain-manager launch --ncs-version v2.4.1 --terminal"

    -you can issue to install the already installed toolchain, v2.4.1. It will say that it is already installed, but after this it wil set v2.4.1 as the default version again.

    ------------------------

    Can this be the case, that you installed another version at some point?

    Can you try to run "nrfutil toollchain-manager install --ncs-version v2.4.1", and then "nrfutil toolchain-manager list" to see if it now has an asterix in front of " * v2.4.1"?

    Best regards,

    Edvin

  • Hi,

    When I posted the problem, I had only one toolchain installed, but after I posted the issue I was trying to find a fix by installing different versions.

    I tried the second solution to reinstall the same version. Now I see the asterix right next to v2.4.1

    even after this, I'm still getting the below error, when I try the Manage toolchains button on the UI

    However the "nrfutil toolchain-manager launch --terminal" command now doesn't throw the error, It didn't launch the terminal. When I try west command it fails.

  • Hello,

    How/from where did you install nrfutil.exe, and what version is it? nrfutil --version shold tell you what version it is:

    Can you show a larger portion of the screen when you try to use the UI from VS Code? What nordic extension did you install in VS Code?

    Best regards,

    Edvin

Reply
  • Hello,

    How/from where did you install nrfutil.exe, and what version is it? nrfutil --version shold tell you what version it is:

    Can you show a larger portion of the screen when you try to use the UI from VS Code? What nordic extension did you install in VS Code?

    Best regards,

    Edvin

Children
No Data