Thread Viewer Empty during Debug

Hello,

I am practicing the intermediate Nordic Academy online course, and I have a problem of the thread viewer.

I have enabled debug, I did everything strictly according to the training materials. 

However, I could not make the thread info to display.

6523.inter_less1_exer1.zip

The project is attached here with the build. I really tried everything I could, but none of them worked. I tried using different boards as well, and there was no difference.

Can anyone help me to see if there is anything I overlooked? 

Thank you very much in advance!

  • A possible cause for the issue you see is if you have another debug session already running.
    Can you make sure that you are running only one debug session when opening the thread monitor?
    (Including RTT logging)

  • Hi Sigurd,

    Thank you and sorry for my late reply.

    I re-installed everything SDK, toolchain , and still, it does not work. I am very sure I am running only one debug. And I have no RTT running, not even serial communication. 

    I am not sure if I understood "Generate support information", could you elaborate it in details, please?

    Looking forward to your reply.

  • wj_takumi said:
    Thank you and sorry for my late reply.

    No worries, and thanks a lot for helping us debug this issue!

    wj_takumi said:
    I am not sure if I understood "Generate support information", could you elaborate it in details, please?

    As a workaround:

    Try to use "Debug with Ozone". I think Ozone has functionality similar to the Thread Viewer

  • 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 devzone.nordicsemi.com/.

    {
      "platform": {
        "os": "win32",
        "osVersion": "Windows 11 Pro",
        "osKernel": "10.0.22631",
        "vscode": "1.90.0",
        "electron": "29.4.0",
        "node": "v20.9.0"
      },
      "system": {
        "date": "2024-06-11T20:47:47.435Z",
        "vscodeRoot": "d:\\Program Files\\Microsoft VS Code\\resources\\app",
        "nrfConnectForDesktopInstalled": true,
        "vscodeUptime": "00:03:53",
        "osUptime": "00:15:03",
        "cpu": "12th Gen Intel(R) Core(TM) i7-1255U"
      },
      "workspace": {
        "name": "inter_less1_exer1_solution",
        "workspaceFile": null,
        "folders": [
          "d:\\nordic\\inter\\inter_less1_exer1_solution"
        ]
      },
      "sdks": [
        {
          "version": "v2.7.0-rc1",
          "path": "d:\\ncs\\v2.7.0-rc1"
        }
      ],
      "activeBuild": "d:\\nordic\\inter\\inter_less1_exer1_solution\\build",
      "apps": [
        {
          "workspace": "d:\\nordic\\inter\\inter_less1_exer1_solution",
          "uri": "d:\\nordic\\inter\\inter_less1_exer1_solution",
          "buildConfigurations": [
            {
              "id": "d:\\nordic\\inter\\inter_less1_exer1_solution\\build",
              "name": "build",
              "boardId": "nrf52dk_nrf52832",
              "type": "Zephyr",
              "isChild": false,
              "isStale": false,
              "taskBindings": {
                "build": [],
                "pristineBuild": [],
                "flash": [],
                "eraseAndFlash": []
              }
            }
          ]
        }
      ],
      "topdir": "d:\\ncs\\v2.7.0-rc1",
      "workspaceState": "freestanding-ready",
      "toolchains": [
        {
          "version": "2.6.1",
          "path": "d:\\ncs\\toolchains\\cf2149caf2"
        }
      ],
      "connectedDevices": [],
      "deviceProvider": "nrfutil",
      "tools": {
        "D:\\ncs\\toolchains\\cf2149caf2\\opt\\zephyr-sdk\\arm-zephyr-eabi\\bin\\arm-zephyr-eabi-gcc.exe": "0.16.5",
        "d:\\Program Files\\SEGGER\\JLink\\JLink.exe": "7.96",
        "D:\\Program Files\\Nordic Semiconductor\\nrf-command-line-tools\\bin\\nrfjprog.exe": "10.24.0",
        "nrfutil": "Not found",
        "D:\\ncs\\toolchains\\cf2149caf2\\opt\\bin\\cmake.exe": "3.21.0",
        "D:\\ncs\\toolchains\\cf2149caf2\\opt\\bin\\Scripts\\west.exe": "1.2.0",
        "D:\\ncs\\toolchains\\cf2149caf2\\opt\\bin\\python.exe": "3.9.13",
        "D:\\ncs\\toolchains\\cf2149caf2\\opt\\bin\\ninja.exe": "1.10.2",
        "D:\\ncs\\toolchains\\cf2149caf2\\opt\\bin\\gperf.exe": "3.1",
        "D:\\ncs\\toolchains\\cf2149caf2\\opt\\bin\\dtc.exe": "1.4.7",
        "D:\\ncs\\toolchains\\cf2149caf2\\opt\\bin\\gn.exe": "2154",
        "D:\\ncs\\toolchains\\cf2149caf2\\mingw64\\bin\\git.exe": "2.37.3.windows.1",
        "gdbPath": "d:\\ncs\\toolchains\\cf2149caf2\\opt\\zephyr-sdk\\arm-zephyr-eabi\\bin\\arm-zephyr-eabi-gdb.exe"
      },
      "nrfutil": {
        "nrfutil-device": {
          "version": "2.0.0",
          "binPath": "c:\\Users\\Weinan Ji\\.vscode\\extensions\\nordic-semiconductor.nrf-connect-2024.3.25-win32-x64\\platform\\nrfutil\\bin\\nrfutil-device"
        },
        "nrfutil-toolchain-manager": {
          "version": "0.14.1",
          "binPath": "c:\\Users\\Weinan Ji\\.vscode\\extensions\\nordic-semiconductor.nrf-connect-2024.3.25-win32-x64\\platform\\nrfutil\\bin\\nrfutil-toolchain-manager"
        }
      },
      "environment": {
        "westEnv": {
          "ELECTRON_RUN_AS_NODE": "1",
          "HOME": "C:\\Users\\Weinan Ji",
          "HOMEDRIVE": "C:",
          "HOMEPATH": "\\Users\\Weinan Ji",
          "PATH": "D:\\ncs\\toolchains\\cf2149caf2;D:\\ncs\\toolchains\\cf2149caf2\\mingw64\\bin;D:\\ncs\\toolchains\\cf2149caf2\\bin;D:\\ncs\\toolchains\\cf2149caf2\\opt\\bin;D:\\ncs\\toolchains\\cf2149caf2\\opt\\bin\\Scripts;D:\\ncs\\toolchains\\cf2149caf2\\opt\\nanopb\\generator-bin;D:\\ncs\\toolchains\\cf2149caf2\\opt\\zephyr-sdk\\aarch64-zephyr-elf\\bin;D:\\ncs\\toolchains\\cf2149caf2\\opt\\zephyr-sdk\\x86_64-zephyr-elf\\bin;D:\\ncs\\toolchains\\cf2149caf2\\opt\\zephyr-sdk\\arm-zephyr-eabi\\bin;D:\\ncs\\toolchains\\cf2149caf2\\opt\\zephyr-sdk\\riscv64-zephyr-elf\\bin;c:\\Users\\Weinan Ji\\.vscode\\extensions\\nordic-semiconductor.nrf-connect-2024.3.25-win32-x64\\platform\\nrfutil\\lib\\nrfutil-toolchain-manager;C:\\Program Files (x86)\\STMicroelectronics\\stlink_server;D:\\Program Files\\STMicroelectronics\\STM32CubeCLT_1.15.1;D:\\Program Files\\STMicroelectronics\\STM32CubeCLT_1.15.1\\CMake\\bin;D:\\Program Files\\STMicroelectronics\\STM32CubeCLT_1.15.1\\Ninja\\bin;D:\\Program Files\\STMicroelectronics\\STM32CubeCLT_1.15.1\\GNU-tools-for-STM32\\bin;D:\\Program Files\\STMicroelectronics\\STM32CubeCLT_1.15.1\\STLink-gdb-server\\bin;D:\\Program Files\\STMicroelectronics\\STM32CubeCLT_1.15.1\\STM32CubeProgrammer\\bin;D:\\Program Files\\Python\\Scripts\\;D:\\Program Files\\Python\\;C:\\Windows\\system32;C:\\Windows;C:\\Windows\\System32\\Wbem;C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\;C:\\Windows\\System32\\OpenSSH\\;D:\\Program Files\\Microsoft VS Code\\bin;d:\\Program Files\\Git\\cmd;D:\\Program Files\\Nordic Semiconductor\\nrf-command-line-tools\\bin\\;D:\\Program Files\\SEGGER\\JLink;C:\\Program Files (x86)\\IVI Foundation\\VISA\\WinNT\\Bin\\;C:\\Program Files\\IVI Foundation\\VISA\\Win64\\Bin\\;C:\\Program Files (x86)\\IVI Foundation\\VISA\\WinNT\\Bin;C:\\Users\\Weinan Ji\\AppData\\Local\\Microsoft\\WindowsApps;C:\\Users\\Weinan Ji\\AppData\\Local\\GitHubDesktop\\bin",
          "ZEPHYR_BASE": "d:\\ncs\\v2.7.0-rc1\\zephyr",
          "ZEPHYR_TOOLCHAIN_VARIANT": "zephyr",
          "ZEPHYR_SDK_INSTALL_DIR": "D:\\ncs\\toolchains\\cf2149caf2\\opt\\zephyr-sdk",
          "PYTHONPATH": "D:\\ncs\\toolchains\\cf2149caf2\\opt\\bin;D:\\ncs\\toolchains\\cf2149caf2\\opt\\bin\\Lib;D:\\ncs\\toolchains\\cf2149caf2\\opt\\bin\\Lib\\site-packages"
        },
        "inherited": {
          "ELECTRON_RUN_AS_NODE": "1",
          "HOME": "C:\\Users\\Weinan Ji",
          "HOMEDRIVE": "C:",
          "HOMEPATH": "\\Users\\Weinan Ji",
          "Path": "C:\\Program Files (x86)\\STMicroelectronics\\stlink_server;D:\\Program Files\\STMicroelectronics\\STM32CubeCLT_1.15.1;D:\\Program Files\\STMicroelectronics\\STM32CubeCLT_1.15.1\\CMake\\bin;D:\\Program Files\\STMicroelectronics\\STM32CubeCLT_1.15.1\\Ninja\\bin;D:\\Program Files\\STMicroelectronics\\STM32CubeCLT_1.15.1\\GNU-tools-for-STM32\\bin;D:\\Program Files\\STMicroelectronics\\STM32CubeCLT_1.15.1\\STLink-gdb-server\\bin;D:\\Program Files\\STMicroelectronics\\STM32CubeCLT_1.15.1\\STM32CubeProgrammer\\bin;D:\\Program Files\\Python\\Scripts\\;D:\\Program Files\\Python\\;C:\\Windows\\system32;C:\\Windows;C:\\Windows\\System32\\Wbem;C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\;C:\\Windows\\System32\\OpenSSH\\;D:\\Program Files\\Microsoft VS Code\\bin;d:\\Program Files\\Git\\cmd;D:\\Program Files\\Nordic Semiconductor\\nrf-command-line-tools\\bin\\;D:\\Program Files\\SEGGER\\JLink;C:\\Program Files (x86)\\IVI Foundation\\VISA\\WinNT\\Bin\\;C:\\Program Files\\IVI Foundation\\VISA\\Win64\\Bin\\;C:\\Program Files (x86)\\IVI Foundation\\VISA\\WinNT\\Bin;C:\\Users\\Weinan Ji\\AppData\\Local\\Microsoft\\WindowsApps;C:\\Users\\Weinan Ji\\AppData\\Local\\GitHubDesktop\\bin",
          "PATH": "C:\\Program Files (x86)\\STMicroelectronics\\stlink_server;D:\\Program Files\\STMicroelectronics\\STM32CubeCLT_1.15.1;D:\\Program Files\\STMicroelectronics\\STM32CubeCLT_1.15.1\\CMake\\bin;D:\\Program Files\\STMicroelectronics\\STM32CubeCLT_1.15.1\\Ninja\\bin;D:\\Program Files\\STMicroelectronics\\STM32CubeCLT_1.15.1\\GNU-tools-for-STM32\\bin;D:\\Program Files\\STMicroelectronics\\STM32CubeCLT_1.15.1\\STLink-gdb-server\\bin;D:\\Program Files\\STMicroelectronics\\STM32CubeCLT_1.15.1\\STM32CubeProgrammer\\bin;D:\\Program Files\\Python\\Scripts\\;D:\\Program Files\\Python\\;C:\\Windows\\system32;C:\\Windows;C:\\Windows\\System32\\Wbem;C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\;C:\\Windows\\System32\\OpenSSH\\;D:\\Program Files\\Microsoft VS Code\\bin;d:\\Program Files\\Git\\cmd;D:\\Program Files\\Nordic Semiconductor\\nrf-command-line-tools\\bin\\;D:\\Program Files\\SEGGER\\JLink;C:\\Program Files (x86)\\IVI Foundation\\VISA\\WinNT\\Bin\\;C:\\Program Files\\IVI Foundation\\VISA\\Win64\\Bin\\;C:\\Program Files (x86)\\IVI Foundation\\VISA\\WinNT\\Bin;C:\\Users\\Weinan Ji\\AppData\\Local\\Microsoft\\WindowsApps;C:\\Users\\Weinan Ji\\AppData\\Local\\GitHubDesktop\\bin"
        },
        "toolchainPath": "d:\\ncs\\toolchains\\cf2149caf2",
        "toolchainBinPath": "d:\\ncs\\toolchains\\cf2149caf2\\opt\\zephyr-sdk\\arm-zephyr-eabi\\bin",
        "toolchainVersion": "2.6.1"
      },
      "terminal": {
        "defaultProfile": null
      },
      "config": {
        "nordic-semiconductor.nrf-connect": {
          "topdir": "${nrf-connect.sdk:2.7.0-rc1}",
          "toolchain": {
            "path": "${nrf-connect.toolchain:2.6.1}"
          },
          "ozonePath": "",
          "applications": [],
          "applicationOptions": {},
          "kconfig": {
            "interface": "kconfig"
          },
          "west": {
            "env": {
              "$base": "terminal"
            }
          },
          "boardRoots": [],
          "taskBindings": {},
          "buildTerminal": {
            "condensedProgress": true
          },
          "debugging": {
            "flash": true,
            "bindings": {},
            "justMyCode": true
          },
          "activeAppFollowActiveEditor": true,
          "deviceProvider": "",
          "flash": {
            "softreset": false,
            "erase": false,
            "recover": false
          },
          "enableTelemetry": false,
          "thirdpartyIntegration": {},
          "toolchainManager": {
            "indexURL": null,
            "installDirectory": null
          },
          "nrfutil": {
            "home": null
          },
          "defaultOpenAction": "ask"
        },
        "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": "2024.3.25",
            "path": "c:\\Users\\Weinan Ji\\.vscode\\extensions\\nordic-semiconductor.nrf-connect-2024.3.25-win32-x64",
            "isActive": true
          },
          "nordic-semiconductor.nrf-terminal": {
            "version": "2024.3.15",
            "path": "c:\\Users\\Weinan Ji\\.vscode\\extensions\\nordic-semiconductor.nrf-terminal-2024.3.15",
            "isActive": true
          },
          "nordic-semiconductor.nrf-devicetree": {
            "version": "2024.3.78",
            "path": "c:\\Users\\Weinan Ji\\.vscode\\extensions\\nordic-semiconductor.nrf-devicetree-2024.3.78",
            "isActive": true
          },
          "nordic-semiconductor.nrf-kconfig": {
            "version": "2024.3.21",
            "path": "c:\\Users\\Weinan Ji\\.vscode\\extensions\\nordic-semiconductor.nrf-kconfig-2024.3.21",
            "isActive": true
          }
        },
        "external": {
          "marus25.cortex-debug": "1.12.1",
          "ms-vscode.cpptools": "1.20.5",
          "ms-vscode.js-debug": "1.90.0",
          "ms-vscode.js-debug-companion": "1.1.2",
          "ms-vscode.vscode-js-profile-table": "1.0.9",
          "dan-c-underwood.arm": "1.7.4",
          "GitHub.vscode-pull-request-github": "0.88.1",
          "jeff-hykin.better-cpp-syntax": "1.17.2",
          "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",
          "ms-vscode.cmake-tools": "1.18.42",
          "ms-vscode.cpptools-extension-pack": "1.3.0",
          "ms-vscode.cpptools-themes": "2.0.0",
          "ms-vscode.hexeditor": "1.10.0",
          "ms-vscode.makefile-tools": "0.9.10",
          "ms-vscode.vscode-serial-monitor": "0.11.0",
          "STMicroelectronics.stm32-vscode-extension": "2.0.1",
          "trond-snekvik.gnu-mapfiles": "1.1.0",
          "twxs.cmake": "0.0.17",
          "ZixuanWang.linkerscript": "1.0.4"
        }
      }
    }


  • Hi Sigurd,

    Today I tried installing everything on a different PC, which worked flawlessly.
    I compared and found that after pressing the debug button, the other PC started from the first line of the main function. However, this PC with issues displaying the thread info, started at __enable_irq(void), seen below.

    Could this give some hints on trouble shooting?

Related