nRF Connect for VS Code commands are not found after restarting VS Code

I have been using VS Code and nRF Connect extensions for over 1 year.  I run on a Mac Mini computer with Apple M2 processor.  I recently updated the macOS to Sequoia Version 15.1.1.  However, this specific problem began when I updated VS Code to version 1.96.  Here is the information about the current version I am running:

Version: 1.96.1 (Universal)
Commit: 42b266171e51a016313f47d0c48aca9295b9cbb2
Date: 2024-12-17T17:50:05.206Z
Electron: 32.2.6
ElectronBuildId: 10629634
Chromium: 128.0.6613.186
Node.js: 20.18.1
V8: 12.8.374.38-electron.0
OS: Darwin arm64 24.1.0

Here is what I see.  After starting up the VS Code, I switch to the NRF CONNECT extension.  I see the tabs on the left side completely blank.  Here is a snapshot of what I see:

I try clicking on the Generate Support Icon, and I get an error that this command is not found.

I can get past this error with the following steps:

1.  Remove all the build directories from the Folder that I have open

2.  Close down VS Code completely

3.  Start VS Code again

After doing these steps, I get back to having access to NRF CONNECT commands.

Parents
  • Have you tried asking the AI, I've found it to be pretty good at finding similar questions and suggesting answers?

    Based on the information provided in the knowledge sources, I can offer some insights and potential solutions to your issue with the nRF Connect extension for VS Code on your Mac Mini with Apple M2 processor.

    Several users have reported similar issues with the nRF Connect extension not loading properly or getting stuck. Here are some suggestions based on the experiences shared in the forum discussions:

    1. Update nRF Connect for Desktop:
    One user reported that updating nRF Connect for Desktop resolved a similar issue. Make sure you have the latest version installed. [Forum discussion](devzone.nordicsemi.com/.../connected-devices-pane-missing-entirely-from-nrf-connect-extension-window-in-vs-code-on-windows-11)

    2. Reinstall the extension:
    Some users found success by uninstalling and reinstalling the nRF Connect extension. You might want to try this approach. [Forum discussion](devzone.nordicsemi.com/.../nrf-connect-no-devices-found-in-vs-code)

    3. Check for conflicts with other extensions:
    One user mentioned that there might be conflicts with other extensions, particularly the ESPIDF extension. You could try disabling other extensions temporarily to see if it resolves the issue. [Forum discussion](devzone.nordicsemi.com/.../vs-code-extension-endless-loading)

    4. Verify nrfutil and nrfjprog installation:
    Ensure that nrfutil and nrfjprog are properly installed and accessible in your system path. You can check this by running `nrfutil --version` and `nrfjprog --version` in the terminal. [Forum discussion](devzone.nordicsemi.com/.../nrf9160-sip-not-shown-in-connected-devices-in-vs-code-with-nrf-connect-extension)

    5. Try opening VS Code through Toolchain Manager:
    Some users found success by opening VS Code through the Toolchain Manager in nRF Connect for Desktop. [Forum discussion](devzone.nordicsemi.com/.../nrf-connect-for-vs-code-on-macos-problem-m1---loading-bar-gets-stuck)

    If none of these solutions work, you might want to consider a complete reinstallation of the nRF Connect SDK, VS Code, and all related extensions, as suggested by a Nordic Semiconductor representative in one of the forum discussions.

    It's worth noting that your workaround of removing build directories and restarting VS Code is unique and not mentioned in the provided knowledge sources. If the problem persists after trying the above solutions, it would be advisable to report this specific issue to Nordic Semiconductor's support team, as it might be related to the recent VS Code update or the macOS Sequoia version you're using.

  • Mike,

    Thanks for the suggestions.  Sorry for the delay in my response to your post.  Hopefully you were able to have a good holiday season. 

    I have been trying the various suggestions.   They started out being promising.   The first obvious issue was that the nRF Connect for Desktop required a download of an entirely new version.  The warning was that the previously installed version (macOS for Intel processors) would not necessarily be stable with the native M2 processor. I recently updated the macOS version to Sequoia 15.1.1 as well as the VS Code software.  I am not sure if one of these updates may have precipitated this warning (for some reason I have tended to think that the macOS update to be the main culprit).  I have wondered if other code needs to be updated to the Apple native processor versions.  However, I tried all 5 suggestions you gave and I still have the same issue.  I have always chosen the Apple native code options when they were provided to me.   I was about to try reinstalling the VS Code itself when I noticed something that may be helpful.

    First let me clarify that VS Code works fine with the loaded application until I "Close the Folder" and open another application or when I restart VS Code.  After restarting the main application I am working on, then I get the blank CONNECT tabs.  I started noticing some interesting behaviors as I switched to different applications and earlier versions of our application.

    For example, if I switch from our main application to a Matter Template sample that I have experimented with, the CONNECT tabs come up just fine for the Template sample, but they are blank when I switch back to our main application.  This made me think about about some earlier versions of our application.  So I tried a couple of earlier versions of our application and here are the results (when switching to these versions):

    SDK version                   Board configuration            Build System                      CONNECT tabs

    v2.5.2                             overlay of nrf52840dk         Build system default           all available -- i.e., works fine

    v2.6.99-cs2                    hardware model v1             Build system default            all available -- i.e., works fine

    v2.7.0                             hardware model v2             Use sysbuild.                      blank -- i.e. the problem described above

    For the hardware model v1, I have the following sub-directories  and files in my application directory: 

     boards/arm/nrf52840_puzl_detect/
            Kconfig.board                               nrf52840_puzl_detect.dts
            Kconfig.defconfig                         nrf52840_puzl_detect.yaml
            board.cmake                                nrf52840_puzl_detect_defconfig       

    For the hardware model v2, I have these files in this following sub-directory:

       boards/puzl_detect/P0050/
              Kconfig.P0050                           P0050.dts board.cmake
              Kconfig.defconfig                      P0050.yaml board.yml
             P0050-pinctrl.dtsi                       P0050_defconfig     

    Best Regards,

    Gene 

Reply
  • Mike,

    Thanks for the suggestions.  Sorry for the delay in my response to your post.  Hopefully you were able to have a good holiday season. 

    I have been trying the various suggestions.   They started out being promising.   The first obvious issue was that the nRF Connect for Desktop required a download of an entirely new version.  The warning was that the previously installed version (macOS for Intel processors) would not necessarily be stable with the native M2 processor. I recently updated the macOS version to Sequoia 15.1.1 as well as the VS Code software.  I am not sure if one of these updates may have precipitated this warning (for some reason I have tended to think that the macOS update to be the main culprit).  I have wondered if other code needs to be updated to the Apple native processor versions.  However, I tried all 5 suggestions you gave and I still have the same issue.  I have always chosen the Apple native code options when they were provided to me.   I was about to try reinstalling the VS Code itself when I noticed something that may be helpful.

    First let me clarify that VS Code works fine with the loaded application until I "Close the Folder" and open another application or when I restart VS Code.  After restarting the main application I am working on, then I get the blank CONNECT tabs.  I started noticing some interesting behaviors as I switched to different applications and earlier versions of our application.

    For example, if I switch from our main application to a Matter Template sample that I have experimented with, the CONNECT tabs come up just fine for the Template sample, but they are blank when I switch back to our main application.  This made me think about about some earlier versions of our application.  So I tried a couple of earlier versions of our application and here are the results (when switching to these versions):

    SDK version                   Board configuration            Build System                      CONNECT tabs

    v2.5.2                             overlay of nrf52840dk         Build system default           all available -- i.e., works fine

    v2.6.99-cs2                    hardware model v1             Build system default            all available -- i.e., works fine

    v2.7.0                             hardware model v2             Use sysbuild.                      blank -- i.e. the problem described above

    For the hardware model v1, I have the following sub-directories  and files in my application directory: 

     boards/arm/nrf52840_puzl_detect/
            Kconfig.board                               nrf52840_puzl_detect.dts
            Kconfig.defconfig                         nrf52840_puzl_detect.yaml
            board.cmake                                nrf52840_puzl_detect_defconfig       

    For the hardware model v2, I have these files in this following sub-directory:

       boards/puzl_detect/P0050/
              Kconfig.P0050                           P0050.dts board.cmake
              Kconfig.defconfig                      P0050.yaml board.yml
             P0050-pinctrl.dtsi                       P0050_defconfig     

    Best Regards,

    Gene 

Children
No Data
Related