VSCode nRFConnect SDK 1.7.0 nRF5340DK Issues

It is great to see VSCode support for NCS.  I believe I have installed everything per the documentation and videos.  I have:

  • nRF Connect v3.7.1
  • Toolchain Manager v0.10.0
  • nRF Connect SDK v1.7.0
  • Visual Studio Code Version: 1.61.0
  • nRF5340-DK

I'm seeing a few issues:

1) I've installed VSCode and can run it from the terminal using 'code' and run from the Mac dock.  However, from nRF Connect when I click the "Open VS Code" button I get the error "Install VS Code". 

2) I've created an application from an example.  When I try to launch the debugger using the bottom bar in VSCode I get the error "Unable to find GDB in default search path and /opt/nordic/ncs/v1.7.0/toolchain/bin/lldb."

3) If I use the "Run and Debug" button on the left side of VSCode I get the error "Could not find the task 'nRF Connect: Build active configuration'."  If I pick "Debug Anyway" the debugger does start.

4) The "Call Stack" view does not seem to be thread aware.  I only see the currently active threads call stack.

5) I'm seeing this CMake warning:

CMake Warning at /opt/nordic/ncs/v1.7.0/zephyr/CMakeLists.txt:1640 (message):

The CMake build type was set to 'Debug', but the optimization flag was set to '-Os'.
This may be intentional and the warning can be turned off by setting the CMake variable 'NO_BUILD_TYPE_WARNING'

6) At the bottom of VSCode is says "No active kit".  What does that mean?

Parents
  • Hi!

    I suspect you don't have the VScode extension installed which would be the root cause of most of the issues you describe. There are several ways to install the extension, the simplest is to search for it in VSCode's extension browser.

    I will take issue 1 to the nRF Connect SW team to see if they have any suggestions.

    In the mean time, please run the "Generate support information" command in the command palette and copy the output data from the "output" terminal to this ticket.

    Best regards,

    Heidi

Reply
  • Hi!

    I suspect you don't have the VScode extension installed which would be the root cause of most of the issues you describe. There are several ways to install the extension, the simplest is to search for it in VSCode's extension browser.

    I will take issue 1 to the nRF Connect SW team to see if they have any suggestions.

    In the mean time, please run the "Generate support information" command in the command palette and copy the output data from the "output" terminal to this ticket.

    Best regards,

    Heidi

Children
Related