After installing SDK 2.7 I am unable to get nRF Connect SDK to function in VS Code.

After I installed nRF Connect SDK 2.7 and tried to run the pre-release version of VS Code extension, I am now compleatly unable to make nRF Connect for VS Code function. 

When using the menu to select toolchains, I get nothing to select installed SDK or toolchain. I see an error dispolayed by VS Code "command 'nrf-connect.mangeWestWorkspace' not found" or "command 'nrf-connect.mangeToolchains' not found".

I have uninstalled everything two times (both VS Code extensions (all) and the SDK and reinstalled again. One time from within VS Code extension and one time through the nRF Connect for Desktop Toolchain Manager.

None of the reinstallation have brought my installation back to a functional state.

I am sure it is a simple thing, but I do not know where to look....

Parents
  • Hello,

    Usually, it doesn't take much time (less than 1 minute) to generate support information. Can you try using View --> Command Palette --> Generate Support Information (see my screenshot below)? If that doesn't work, open the developer tools, look at the console, and share the output here. A screenshot would be helpful.

    Kind Regards,

    Abhijith

Reply
  • Hello,

    Usually, it doesn't take much time (less than 1 minute) to generate support information. Can you try using View --> Command Palette --> Generate Support Information (see my screenshot below)? If that doesn't work, open the developer tools, look at the console, and share the output here. A screenshot would be helpful.

    Kind Regards,

    Abhijith

Children
  • It is nearly working now. The Generate Support Information that takes only a few seconds and is functional. The story:

    I uninstalled all nrf tools from VS Code and also other extension related.

    Then I uninstalled VS Code. Rebooting several times between steps.

    I uninstalled all tools from nrf connect for desktop an finally nrf connect for desktop itself.

    I also deleted all nrf / nordic stuff I could find on my computer.

    I reinstalled VS code and strangely enough nrf Connect was available and not uninstalled anymore.... Not functional, only a button saying "Install Toolchain" and the button did not work.

    So back to installing nrf connect for desktop an installed toolchain manager. After that installed toolchain and sdk 2.6.1..

    Hopes are high and I create and application from a sample and the application was able to build for a DK.

    Sadly enough, the last step killed my good mood. When trying to debug the application I got a FATAL ERROR: required program nrfprog not found...... Hope I can solve that tomorrow or later today.

    (I did install command line tools when asked to do so from nrf connect for desktop)

  • After a reboot the programmer also works and I can debug the application... :-)

    Do I dare installing 2.7 ......

  • Well I killed it again. From within VS Code I selected to install toolchain and SDK version v2.7.0.

    I created a new application from a sample, was able to build a prestine build. But then trying to flash to my DK board, I get an error. I think my problems started the same way earlier. When trying to flash the newly successfully build application i get:

    west flash: using runner nrfjprog
    runners.nrfjprog: reset after flashing requested
    runners.nrfjprog: Flashing file: d:\Workspaces\pmi8004i\build_1\zephyr\merged.hex
    [error] [ Client] - Encountered error -102: Command read_device_info executed for 142 milliseconds with result -102
    [error] [ Worker] - An unknown error.
    [error] [ Client] - Encountered error -102: Command read_memory_descriptors executed for 31 milliseconds with result -102
    Failed to read device memories.

    [error] [ Worker] - An unknown error.
    ERROR: JLinkARM DLL reported an error. Try again. If error condition
    ERROR: persists, run the same command again with argument --log, contact Nordic
    ERROR: Semiconductor and provide the generated log.log file to them.
    NOTE: For additional output, try running again with logging enabled (--log).
    NOTE: Any generated log error messages will be displayed.
    FATAL ERROR: command exited with status 33: nrfjprog --program 'd:\Workspaces\pmi8004i\build_1\zephyr\merged.hex' --sectorerase --verify -f NRF91 --snr 960090542

    The terminal process terminated with exit code: 33.
    Terminal will be reused by tasks, press any key to close it.

    And unfortunately after goiing back to 2.6.1 the problem persists.

Related