Debug option in nRF connect extension(v2023.11.301) in vscode is unable to start a debug session

Hi,

I have recently updated my nrf connect extension in vscode from 2023.2.56 to v2023.11.301.

The debug option in the latest nRF connect extension is not able to start a new debug session. 

A typlical debug action involves flashing the selected build and start the threads i understand. But right after flashing, vscode throws an error as below:

Im assuming my launch.json has something to do with it, below is how it looks like:

    // Use IntelliSense to learn about possible attributes.
    // Hover to view descriptions of existing attributes.
    // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
    "version": "0.2.0",
    "configurations": [
        {
            "cwd": "${workspaceFolder}",
            "executable": "./bin/executable.elf",
            "name": "Debug with JLink",
            "request": "launch",
            "type": "cortex-debug",
            "device": "",
            "runToEntryPoint": "main",
            "showDevDebugOutput": "none",
            "servertype": "jlink"
        },
        {
            "type": "nrf-connect",
            "request": "launch",
            "name": "Launch nRF Connect application",
            "config": ""
        },
 
        {
            "cwd": "${workspaceRoot}",
            "executable": "./bin/executable.elf",
            "name": "Debug with OpenOCD",
            "request": "launch",
            "type": "cortex-debug",
            "servertype": "openocd",
            "configFiles": [],
            "searchDir": [],
            "runToEntryPoint": "main",
            "showDevDebugOutput": "none"
        },
        {
            "cwd": "${workspaceFolder}",
            "executable": "./bin/executable.elf",
            "name": "Debug with JLink",
            "request": "launch",
            "type": "cortex-debug",
            "device": "",
            "runToEntryPoint": "main",
            "showDevDebugOutput": "none",
            "servertype": "jlink"
        },
        {
            "type": "nrf-connect",
            "request": "launch",
            "name": "Launch active build configuration",
            "config": "${activeConfig}",
            "runToEntryPoint": "main"
        }
    ]
}

When i was running the older version 2023.2.56, it would never create a problem with the same launch.json. The debug console would look like:

JLinkGDBServerCL: SEGGER J-Link GDB Server V7.88j Command Line Version
JLinkGDBServerCL: 
JLinkGDBServerCL: JLinkARM.dll V7.88j (DLL compiled Jun 28 2023 13:39:15)
JLinkGDBServerCL: 
JLinkGDBServerCL: -----GDB Server start settings-----
JLinkGDBServerCL: GDBInit file:                  none
JLinkGDBServerCL: GDB Server Listening port:     54682
JLinkGDBServerCL: SWO raw output listening port: 2332
JLinkGDBServerCL: Terminal I/O port:             2333
JLinkGDBServerCL: Accept remote connection:      localhost only
JLinkGDBServerCL: Generate logfile:              off
JLinkGDBServerCL: Verify download:               off
JLinkGDBServerCL: Init regs on start:            off
JLinkGDBServerCL: Silent mode:                   on
JLinkGDBServerCL: Single run mode:               on
JLinkGDBServerCL: Target connection timeout:     0 ms
JLinkGDBServerCL: ------J-Link related settings------
JLinkGDBServerCL: J-Link Host interface:         USB
JLinkGDBServerCL: J-Link script:                 none
JLinkGDBServerCL: J-Link settings file:          none
JLinkGDBServerCL: ------Target related settings------
JLinkGDBServerCL: Target device:                 nRF9160_xxAA
JLinkGDBServerCL: Target device parameters:      none
JLinkGDBServerCL: Target interface:              SWD
JLinkGDBServerCL: Target interface speed:        12000kHz
JLinkGDBServerCL: Target endian:                 little
JLinkGDBServerCL: 
=thread-group-added,id="i1"
=cmd-param-changed,param="pagination",value="off"
sys_dlist_is_empty (list=0x2001782c) at C:/ncs/v1.9.0/zephyr/include/sys/dlist.h:532
532		if (!sys_dlist_is_empty(list)) {
[New Remote target]

Thread 2 hit Breakpoint 1, main () at ../src/main.c:40
40	{

Tools and versions:

- NCS -> V2.0.0 
- nRF Connect for Desktop -> v4.3.0 
- Toolchain Manager -> v1.2.4
- nRF Command Line Tools -> 10.23.2 
- jLink -> 7.88l
- VS Code extension -> v2023.11.301

Thanks

Vamsi

Parents Reply Children
  • Hi Vamsi,

    Can you provide support information from the VS Code extension?

    1. Open the command palette (Ctrl + Shift + P or View > Command Palette).
    2. Write "nRF Connect: Generate support information" and press enter.
    3. Copy the entire support information output.
    4. Upload it here using Insert > Code or upload a .txt file with Insert > Image/video/file.

    Make sure to remove confidential information you do not want to be shared in a public case.

    Best regards,
    Marte

  • Hi Marte,

    Generated output:

    [13:23:04] Update available https://nsscprodmedia.blob.core.windows.net/prod/software-and-other-downloads/desktop-software/nrf-command-line-tools/sw/versions-10-x-x/10-23-2/nrf-command-line-tools-10.23.2-x64.exe
    [13:23:05] =========== Toolchain validation report for nRF Connect SDK Toolchain v2.0.0 ===========
    📦 Using the nRF Connect SDK v2.0.0 at c:\ncs\v2.0.0
    No issues were detected with the toolchain.
    IMPORTANT: The data below could contain sensitive or confidential information about your environment.
    If you do not wish this to be seen by others, please make sure to remove it before sharing.
    
    For help and support, visit the Nordic DevZone at https://devzone.nordicsemi.com/.
    
    {
      "platform": {
        "os": "win32",
        "osVersion": "Windows 10 Pro",
        "osKernel": "10.0.22000",
        "vscode": "1.85.1",
        "electron": "25.9.7",
        "node": "v18.15.0"
      },
      "system": {
        "date": "2024-01-04T17:59:18.312Z",
        "vscodeRoot": "c:\\Users\\VamsiChennabathni\\AppData\\Local\\Programs\\Microsoft VS Code\\resources\\app",
        "nrfConnectForDesktopInstalled": true,
        "vscodeUptime": "20:36:55",
        "osUptime": "20:38:05",
        "cpu": "11th Gen Intel(R) Core(TM) i7-1165G7 @ 2.80GHz"
      },
      "workspace": {
        "name": "Untitled (Workspace)",
        "workspaceFile": "1703187413671",
        "folders": [
          "c:\\Users\\VamsiChennabathni\\Work\\levaware_gen3"
        ]
      },
      "sdks": [
        {
          "version": "v2.3.0",
          "path": "c:\\ncs\\v2.3.0"
        },
        {
          "version": "v2.2.0",
          "path": "c:\\ncs\\v2.2.0"
        },
        {
          "version": "v2.0.0",
          "path": "c:\\ncs\\v2.0.0"
        },
        {
          "version": "v1.9.0",
          "path": "c:\\ncs\\v1.9.0"
        },
        {
          "version": "v1.5.0",
          "path": "c:\\ncs\\v1.5.0"
        }
      ],
      "activeBuild": "c:\\Users\\VamsiChennabathni\\Work\\levaware_gen3\\build",
      "apps": [
        {
          "workspace": "c:\\Users\\VamsiChennabathni\\Work\\levaware_gen3",
          "uri": "c:\\Users\\VamsiChennabathni\\Work\\levaware_gen3",
          "buildConfigurations": [
            {
              "id": "c:\\Users\\VamsiChennabathni\\Work\\levaware_gen3\\build",
              "name": "build",
              "boardId": "thunder_nrf9160_ns",
              "type": "Zephyr",
              "isChild": false,
              "isStale": false,
              "taskBindings": {
                "build": [],
                "pristineBuild": [],
                "flash": [],
                "eraseAndFlash": []
              }
            }
          ]
        }
      ],
      "topdir": "c:\\ncs\\v2.0.0",
      "workspaceState": "freestanding-ready",
      "toolchains": [
        {
          "version": "2.3.0",
          "path": "c:\\ncs\\toolchains\\v2.3.0"
        },
        {
          "version": "2.2.0",
          "path": "c:\\ncs\\toolchains\\v2.2.0"
        },
        {
          "version": "2.0.0",
          "path": "c:\\ncs\\toolchains\\v2.0.0"
        },
        {
          "version": "1.9.0",
          "path": "c:\\ncs\\v1.9.0\\toolchain"
        },
        {
          "version": "1.5.0",
          "path": "c:\\ncs\\v1.5.0\\toolchain"
        }
      ],
      "connectedDevices": [],
      "deviceProvider": "nrfjprog",
      "tools": {
        "C:\\ncs\\toolchains\\v2.0.0\\opt\\zephyr-sdk\\arm-zephyr-eabi\\bin\\arm-zephyr-eabi-gcc.exe": "0.14.1",
        "C:\\Program Files\\SEGGER\\JLink\\JLink.exe": "7.88j",
        "C:\\Program Files (x86)\\Nordic Semiconductor\\nrf-command-line-tools\\bin\\nrfjprog.exe": "10.17.3",
        "nrfutil": "Not found",
        "C:\\ncs\\toolchains\\v2.0.0\\opt\\bin\\cmake.exe": "3.20.5",
        "C:\\ncs\\toolchains\\v2.0.0\\opt\\bin\\Scripts\\west.exe": "0.13.1",
        "C:\\ncs\\toolchains\\v2.0.0\\opt\\bin\\python.exe": "3.8.2",
        "C:\\ncs\\toolchains\\v2.0.0\\opt\\bin\\ninja.exe": "1.9.0",
        "C:\\ncs\\toolchains\\v2.0.0\\opt\\bin\\gperf.exe": "3.1",
        "C:\\ncs\\toolchains\\v2.0.0\\opt\\bin\\dtc.exe": "1.4.7",
        "C:\\ncs\\toolchains\\v2.0.0\\opt\\bin\\gn.exe": "2039",
        "C:\\ncs\\toolchains\\v2.0.0\\mingw64\\bin\\git.exe": "2.26.2.windows.1",
        "gdbPath": "c:\\ncs\\toolchains\\v2.0.0\\opt\\zephyr-sdk\\arm-zephyr-eabi\\bin\\arm-zephyr-eabi-gdb-no-py.exe"
      },
      "nrfutil": {
        "nrfutil-device": {
          "version": "2.0.0",
          "binPath": "c:\\Users\\VamsiChennabathni\\.vscode\\extensions\\nordic-semiconductor.nrf-connect-2023.11.301-win32-x64\\platform\\nrfutil\\bin\\nrfutil-device"
        },
        "nrfutil-toolchain-manager": {
          "version": "0.14.1",
          "binPath": "c:\\Users\\VamsiChennabathni\\.vscode\\extensions\\nordic-semiconductor.nrf-connect-2023.11.301-win32-x64\\platform\\nrfutil\\bin\\nrfutil-toolchain-manager"
        }
      },
      "environment": {
        "westEnv": {
          "ELECTRON_RUN_AS_NODE": "1",
          "HOME": "C:\\Users\\VamsiChennabathni",
          "HOMEDRIVE": "C:",
          "HOMEPATH": "\\Users\\VamsiChennabathni",
          "PATH": "C:\\ncs\\toolchains\\v2.0.0;C:\\ncs\\toolchains\\v2.0.0\\mingw64\\bin;C:\\ncs\\toolchains\\v2.0.0\\bin;C:\\ncs\\toolchains\\v2.0.0\\opt\\bin;C:\\ncs\\toolchains\\v2.0.0\\opt\\bin\\Scripts;C:\\ncs\\toolchains\\v2.0.0\\nanopb\\generator-bin;C:\\ncs\\toolchains\\v2.0.0\\opt\\zephyr-sdk\\arm-zephyr-eabi\\bin;c:\\Users\\VamsiChennabathni\\.vscode\\extensions\\nordic-semiconductor.nrf-connect-2023.11.301-win32-x64\\platform\\nrfutil\\lib\\nrfutil-toolchain-manager;C:\\Program Files (x86)\\Common Files\\Oracle\\Java\\javapath;C:\\python310\\Scripts\\;C:\\python310\\;C:\\Scripts\\;C:\\;C:\\Windows\\system32;C:\\Windows;C:\\Windows\\System32\\Wbem;C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\;C:\\Windows\\System32\\OpenSSH\\;C:\\Program Files\\Git\\cmd;C:\\Users\\BradTrehan\\AppData\\Roaming\\nvm;C:\\Program Files\\nodejs;C:\\Program Files\\Docker\\Docker\\resources\\bin;C:\\ProgramData\\DockerDesktop\\version-bin;C:\\Program Files (x86)\\Nordic Semiconductor\\nrf-command-line-tools\\bin\\;C:\\MinGW\\bin;C:\\Program Files\\CMake\\bin;C:\\Program Files\\Microsoft SQL Server\\150\\Tools\\Binn\\;C:\\Program Files\\Microsoft SQL Server\\Client SDK\\ODBC\\170\\Tools\\Binn\\;C:\\Program Files\\dotnet\\;C:\\ProgramData\\chocolatey\\bin;C:\\python310\\Lib\\site-packages;C:\\Users\\VamsiChennabathni\\AppData\\Local\\Programs\\Microsoft VS Code\\bin;C:\\python310\\;C:\\Users\\VamsiChennabathni\\.dotnet\\tools;C:\\python310\\Lib\\site-packages;C:\\python310\\Scripts\\;C:\\Users\\VamsiChennabathni\\AppData\\Local\\GitHubDesktop\\bin",
          "ZEPHYR_BASE": "c:\\ncs\\v2.0.0\\zephyr",
          "ZEPHYR_TOOLCHAIN_VARIANT": "zephyr",
          "ZEPHYR_SDK_INSTALL_DIR": "C:\\ncs\\toolchains\\v2.0.0\\opt\\zephyr-sdk",
          "PYTHONPATH": "C:\\ncs\\toolchains\\v2.0.0\\opt\\bin;C:\\ncs\\toolchains\\v2.0.0\\opt\\bin\\Lib;C:\\ncs\\toolchains\\v2.0.0\\opt\\bin\\Lib\\site-packages"
        },
        "inherited": {
          "ELECTRON_RUN_AS_NODE": "1",
          "HOME": "C:\\Users\\VamsiChennabathni",
          "HOMEDRIVE": "C:",
          "HOMEPATH": "\\Users\\VamsiChennabathni",
          "Path": "C:\\Program Files (x86)\\Common Files\\Oracle\\Java\\javapath;C:\\python310\\Scripts\\;C:\\python310\\;C:\\Scripts\\;C:\\;C:\\Windows\\system32;C:\\Windows;C:\\Windows\\System32\\Wbem;C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\;C:\\Windows\\System32\\OpenSSH\\;C:\\Program Files\\Git\\cmd;C:\\Users\\BradTrehan\\AppData\\Roaming\\nvm;C:\\Program Files\\nodejs;C:\\Program Files\\Docker\\Docker\\resources\\bin;C:\\ProgramData\\DockerDesktop\\version-bin;C:\\Program Files (x86)\\Nordic Semiconductor\\nrf-command-line-tools\\bin\\;C:\\MinGW\\bin;C:\\Program Files\\CMake\\bin;C:\\Program Files\\Microsoft SQL Server\\150\\Tools\\Binn\\;C:\\Program Files\\Microsoft SQL Server\\Client SDK\\ODBC\\170\\Tools\\Binn\\;C:\\Program Files\\dotnet\\;C:\\ProgramData\\chocolatey\\bin;C:\\python310\\Lib\\site-packages;C:\\Users\\VamsiChennabathni\\AppData\\Local\\Programs\\Microsoft VS Code\\bin;C:\\python310\\;C:\\Users\\VamsiChennabathni\\.dotnet\\tools;C:\\python310\\Lib\\site-packages;C:\\python310\\Scripts\\;C:\\Users\\VamsiChennabathni\\AppData\\Local\\GitHubDesktop\\bin",
          "PATH": "C:\\Program Files (x86)\\Common Files\\Oracle\\Java\\javapath;C:\\python310\\Scripts\\;C:\\python310\\;C:\\Scripts\\;C:\\;C:\\Windows\\system32;C:\\Windows;C:\\Windows\\System32\\Wbem;C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\;C:\\Windows\\System32\\OpenSSH\\;C:\\Program Files\\Git\\cmd;C:\\Users\\BradTrehan\\AppData\\Roaming\\nvm;C:\\Program Files\\nodejs;C:\\Program Files\\Docker\\Docker\\resources\\bin;C:\\ProgramData\\DockerDesktop\\version-bin;C:\\Program Files (x86)\\Nordic Semiconductor\\nrf-command-line-tools\\bin\\;C:\\MinGW\\bin;C:\\Program Files\\CMake\\bin;C:\\Program Files\\Microsoft SQL Server\\150\\Tools\\Binn\\;C:\\Program Files\\Microsoft SQL Server\\Client SDK\\ODBC\\170\\Tools\\Binn\\;C:\\Program Files\\dotnet\\;C:\\ProgramData\\chocolatey\\bin;C:\\python310\\Lib\\site-packages;C:\\Users\\VamsiChennabathni\\AppData\\Local\\Programs\\Microsoft VS Code\\bin;C:\\python310\\;C:\\Users\\VamsiChennabathni\\.dotnet\\tools;C:\\python310\\Lib\\site-packages;C:\\python310\\Scripts\\;C:\\Users\\VamsiChennabathni\\AppData\\Local\\GitHubDesktop\\bin"
        },
        "toolchainPath": "c:\\ncs\\toolchains\\v2.0.0",
        "toolchainBinPath": "c:\\ncs\\toolchains\\v2.0.0\\opt\\zephyr-sdk\\arm-zephyr-eabi\\bin",
        "toolchainVersion": "2.0.0"
      },
      "terminal": {
        "defaultProfile": null
      },
      "config": {
        "nordic-semiconductor.nrf-connect": {
          "topdir": "${nrf-connect.sdk:2.0.0}",
          "toolchain": {
            "path": "${nrf-connect.toolchain:2.0.0}"
          },
          "ozonePath": "",
          "applications": [
            "${workspaceFolder}"
          ],
          "applicationOptions": {},
          "kconfig": {
            "interface": "kconfig"
          },
          "west": {
            "env": {
              "$base": "terminal"
            }
          },
          "boardRoots": [],
          "taskBindings": {},
          "debugging": {
            "flash": true,
            "bindings": {},
            "justMyCode": true
          },
          "activeAppFollowActiveEditor": true,
          "deviceProvider": "nrfjprog",
          "flash": {
            "softreset": false,
            "erase": false,
            "recover": false
          },
          "enableTelemetry": true,
          "thirdpartyIntegration": {},
          "toolchainManager": {
            "indexURL": null,
            "installDirectory": null
          },
          "nrfutil": {
            "home": null
          },
          "defaultOpenAction": "ask",
          "welcome": {
            "showOnStartup": true
          }
        },
        "nordic-semiconductor.nrf-terminal": {
          "terminalMode": "character"
        },
        "marus25.cortex-debug": {
          "variableUseNaturalFormat": true,
          "liveWatchRefreshRate": "300",
          "armToolchainPath": null,
          "armToolchainPrefix": "arm-none-eabi",
          "gdbPath": null,
          "objdumpPath": null,
          "JLinkGDBServerPath": null,
          "openocdPath": null,
          "pyocdPath": null,
          "PEGDBServerPath": null,
          "stutilPath": null,
          "stlinkPath": null,
          "stm32cubeprogrammer": null,
          "enableTelemetry": true,
          "dbgServerLogfile": null
        }
      },
      "extensions": {
        "internal": {
          "nordic-semiconductor.nrf-connect": {
            "version": "2023.11.301",
            "path": "c:\\Users\\VamsiChennabathni\\.vscode\\extensions\\nordic-semiconductor.nrf-connect-2023.11.301-win32-x64",
            "isActive": true
          },
          "nordic-semiconductor.nrf-terminal": {
            "version": "2023.10.17",
            "path": "c:\\Users\\VamsiChennabathni\\.vscode\\extensions\\nordic-semiconductor.nrf-terminal-2023.10.17",
            "isActive": true
          },
          "nordic-semiconductor.nrf-devicetree": {
            "version": "2023.11.120",
            "path": "c:\\Users\\VamsiChennabathni\\.vscode\\extensions\\nordic-semiconductor.nrf-devicetree-2023.11.120",
            "isActive": true
          },
          "nordic-semiconductor.nrf-kconfig": {
            "version": "2023.11.64",
            "path": "c:\\Users\\VamsiChennabathni\\.vscode\\extensions\\nordic-semiconductor.nrf-kconfig-2023.11.64",
            "isActive": true
          }
        },
        "external": {
          "marus25.cortex-debug": "1.12.1",
          "ms-vscode.cpptools": "1.18.5",
          "ms-vscode.js-debug": "1.85.0",
          "ms-vscode.js-debug-companion": "1.1.2",
          "ms-vscode.vscode-js-profile-table": "1.0.8",
          "amazonwebservices.aws-toolkit-vscode": "2.4.0",
          "batisteo.vscode-django": "1.15.0",
          "circuitdojo.zephyr-tools": "0.1.33",
          "coolchyni.beyond-debug": "0.9.15",
          "donjayamanne.python-environment-manager": "1.2.4",
          "donjayamanne.python-extension-pack": "1.7.0",
          "eamodio.gitlens": "14.6.1",
          "formulahendry.code-runner": "0.12.1",
          "franneck94.c-cpp-runner": "9.4.0",
          "genieai.chatgpt-vscode": "0.0.10",
          "kaysonwu.cpptask": "0.0.1",
          "KevinRose.vsc-python-indent": "1.18.0",
          "mcu-debug.debug-tracker-vscode": "0.0.15",
          "mcu-debug.memory-view": "0.0.25",
          "mcu-debug.peripheral-viewer": "1.4.6",
          "mcu-debug.rtos-views": "0.0.7",
          "mhutchie.git-graph": "1.30.0",
          "ms-dotnettools.csharp": "2.14.8",
          "ms-dotnettools.vscode-dotnet-runtime": "2.0.0",
          "ms-python.isort": "2023.10.1",
          "ms-python.python": "2023.22.1",
          "ms-python.vscode-pylance": "2023.12.1",
          "ms-toolsai.jupyter": "2023.11.1003402403",
          "ms-toolsai.jupyter-keymap": "1.1.2",
          "ms-toolsai.jupyter-renderers": "1.0.17",
          "ms-toolsai.vscode-jupyter-cell-tags": "0.1.8",
          "ms-toolsai.vscode-jupyter-slideshow": "0.1.5",
          "ms-vscode-remote.remote-wsl": "0.81.8",
          "ms-vscode.cpptools-extension-pack": "1.3.0",
          "ms-vscode.cpptools-themes": "2.0.0",
          "ms-vscode.hexeditor": "1.9.12",
          "njpwerner.autodocstring": "0.6.1",
          "platformio.platformio-ide": "3.3.2",
          "trond-snekvik.gnu-mapfiles": "1.1.0",
          "twxs.cmake": "0.0.17",
          "vadimcn.vscode-lldb": "1.10.0",
          "VisualStudioExptTeam.intellicode-api-usage-examples": "0.2.8",
          "VisualStudioExptTeam.vscodeintellicode": "1.2.30",
          "wayou.vscode-todo-highlight": "1.0.5",
          "wholroyd.jinja": "0.0.8"
        }
      }
    }
    
    

    Thanks

    Vamsi

  • Hi Vamsi,

    Thank you! I have provided the support information to the developers. I will let you know when I get a response.

    Best regards,
    Marte

  • Hi Vamsi,

    The developers are aware of the issue. The workaround for now is to downgrade to v2023.11.24.

    Best regards,
    Marte

Related