VS Code extension debugger not working in Ubuntu

Hi,

After all installations the debugger does not work in Ubuntu with the message:

"No toolchain found. Please configure the nRF Connect Toolchain before starting debugging."

Compilation and flashing work smoothly.

some details:

os: Ubuntu 22.04 LTS

ncs 1.9.2

nrf connect for VS code v2023.1.44 

settings in nrf conect VS code:

- nrf connect toolchain path: /opt/gcc-arm-none-eabi-10.3-2021.10/bin

- nrf connect > debugging: Backend ==> nRF debug

Parents
  • Hi,

    Have you referred the Getting Started page for VSCode extension pack? Please go through all 4 topics in the site, as shown below:

    If you have done all these, please let me know in which step the problem arises.

    Best Regards,

    Priyanka

  • I have followed the steps here:
    https://academy.nordicsemi.com/topic/exercise-1-1/

    and as I said, building and flashing the application works fine.
    only for debug I get the message:
    "No toolchain found. Please configure the nRF Connect Toolchain before starting debugging."

  • {
    "platform": {
    "os": "linux",
    "osVersion": "#64-Ubuntu SMP Thu Jan 5 11:43:13 UTC 2023",
    "osKernel": "5.15.0-58-generic",
    "vscode": "1.74.3",
    "electron": "19.1.8",
    "node": "v16.14.2"
    },
    "system": {
    "date": "2023-02-03T13:20:48.078Z",
    "vscodeRoot": "/snap/code/117/usr/share/code/resources/app",
    "nrfConnectForDesktopInstalled": "unknown",
    "vscodeUptime": "68:12:19",
    "osUptime": "72:21:43",
    "cpu": {
    "model": "Intel(R) Core(TM) i7-10510U CPU @ 1.80GHz",
    "speed": "2300 MHz",
    "count": 4
    },
    "memory": {
    "total": "31.02 GB",
    "free": "12.11 GB"
    }
    },
    "workspace": {
    "name": "canary-ep",
    "workspaceFile": null,
    "folders": [
    "/home/dorsadeh/workspace/canary-ep"
    ]
    },
    "extensions": {
    "internal": {
    "nordic-semiconductor.nrf-connect": {
    "version": "2023.1.44",
    "path": "/home/dorsadeh/.vscode/extensions/nordic-semiconductor.nrf-connect-2023.1.44-linux-x64",
    "isActive": true
    },
    "nordic-semiconductor.nrf-terminal": {
    "version": "2022.11.29",
    "path": "/home/dorsadeh/.vscode/extensions/nordic-semiconductor.nrf-terminal-2022.11.29",
    "isActive": true
    },
    "nordic-semiconductor.nrf-devicetree": {
    "version": "2022.11.153",
    "path": "/home/dorsadeh/.vscode/extensions/nordic-semiconductor.nrf-devicetree-2022.11.153",
    "isActive": false
    },
    "nordic-semiconductor.nrf-kconfig": {
    "version": "2022.11.50",
    "path": "/home/dorsadeh/.vscode/extensions/nordic-semiconductor.nrf-kconfig-2022.11.50",
    "isActive": true
    }
    },
    "external": {
    "marus25.cortex-debug": "1.6.10",
    "ms-vscode.cpptools": "1.13.9",
    "ms-vscode.js-debug": "1.74.1",
    "ms-vscode.js-debug-companion": "1.0.18",
    "ms-vscode.vscode-js-profile-table": "1.0.3",
    "alefragnani.Bookmarks": "13.3.1",
    "donjayamanne.githistory": "0.6.19",
    "eamodio.gitlens": "13.2.0",
    "GitHub.vscode-pull-request-github": "0.56.0",
    "golang.go": "0.37.1",
    "luveti.kconfig": "1.0.3",
    "mcu-debug.debug-tracker-vscode": "0.0.13",
    "mcu-debug.memory-view": "0.0.18",
    "mcu-debug.rtos-views": "0.0.4",
    "ms-azuretools.vscode-docker": "1.23.3",
    "ms-python.python": "2022.20.2",
    "ms-python.vscode-pylance": "2023.1.40",
    "ms-toolsai.jupyter": "2022.11.1003412109",
    "ms-toolsai.jupyter-keymap": "1.0.0",
    "ms-toolsai.jupyter-renderers": "1.0.14",
    "ms-vscode.cmake-tools": "1.13.44",
    "ms-vsliveshare.vsliveshare": "1.0.5823",
    "ms-vsliveshare.vsliveshare-audio": "0.1.93",
    "plorefice.devicetree": "0.1.1",
    "redhat.java": "1.14.0",
    "rust-lang.rust": "0.7.9",
    "trond-snekvik.gnu-mapfiles": "1.1.0",
    "twxs.cmake": "0.0.17",
    "VisualStudioExptTeam.vscodeintellicode": "1.2.30",
    "vscjava.vscode-java-debug": "0.48.0",
    "vscjava.vscode-java-dependency": "0.21.1",
    "vscjava.vscode-java-pack": "0.25.7",
    "vscjava.vscode-java-test": "0.37.1",
    "vscjava.vscode-maven": "0.40.4",
    "ZainChen.json": "2.0.2"
    }
    },
    "tools": {},
    "sdks": [],
    "toolchains": [],
    "connectedDevices": [
    {
    "serialNumber": "821005241"
    }
    ],
    "deviceProviders": [
    "nrfjprog"
    ],
    "config": {
    "nordic-semiconductor.nrf-connect": {
    "topdir": "/home/dorsadeh/workspace/ncs",
    "toolchain": {
    "path": "/opt/gcc-arm-none-eabi-10.3-2021.10/bin"
    },
    "ozonePath": "",
    "applications": [
    "${workspaceFolder}/augury_app"
    ],
    "applicationOptions": {},
    "kconfig": {
    "interface": "kconfig",
    "executeInDefaultShell": false
    },
    "welcome": {
    "showOnStartup": true
    },
    "west": {
    "env": {
    "$base": "terminal"
    }
    },
    "boardRoots": [],
    "enableTelemetry": false,
    "taskBindings": {},
    "debugging": {
    "backend": "nRF Debug",
    "flash": true,
    "bindings": {}
    },
    "activeAppFollowActiveEditor": true
    },
    "nordic-semiconductor.nrf-terminal": {
    "terminalMode": "character",
    "scrollBack": 1000
    },
    "marus25.cortex-debug": {
    "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,
    "registerUseNaturalFormat": true,
    "variableUseNaturalFormat": true,
    "dbgServerLogfile": null,
    "showDevDebugOutput": "none"
    }
    },
    "environment": {
    "westExe": "west",
    "westEnv": {
    "ELECTRON_RUN_AS_NODE": "1",
    "ZEPHYR_BASE": "/home/dorsadeh/workspace/ncs/zephyr",
    "GNUARMEMB_TOOLCHAIN_PATH": "/opt/gcc-arm-none-eabi-10.3-2021.10",
    "ZEPHYR_TOOLCHAIN_VARIANT": "gnuarmemb",
    "PYTHONPATH": "/home/dorsadeh/workspace/embedded-tools",
    "USER": "dorsadeh"
    },
    "inherited": {
    "ELECTRON_RUN_AS_NODE": "1",
    "ZEPHYR_BASE": "/home/dorsadeh/workspace/ncs/zephyr",
    "GNUARMEMB_TOOLCHAIN_PATH": "/opt/gcc-arm-none-eabi-10.3-2021.10",
    "ZEPHYR_TOOLCHAIN_VARIANT": "gnuarmemb",
    "PYTHONPATH": "/home/dorsadeh/workspace/embedded-tools",
    "USER": "dorsadeh"
    }
    },
    "terminal": {
    "shell": null,
    "defaultProfile": null
    }
    }

  • Hi,

    It looks like you do not have any Toolchains installed. Please do go through the Getting Started manual, and install the SDK as well as the Toolchains required.

    -Priyanka

  • If I have no toolchains installed, how come I can compile and flash the device?

  • I have discussed internally and they say the same. Have you installed any Toolchains? 

    When you start with a project or application, how is your Quick Setup page?

  • I have the gcc-arm-none-eabi-10.3-2021.10 toolchain 

    when I try to choose it I get the following message

    Again, I'm using ncs 1.9.2 so I can't use the toolchain manager in the nrf connect for desktop

    All was installed manually 

Reply Children
Related