Regarding the Issue of Frequency Modification for nRF54L15

Hi!
    I'm currently attempting to develop software using the nRF54L15 and NCS v2.9.0 (previously, I used the nRF52840 and NCS v2.9.0). Both development processes are carried out in the VS Code environment.
    However, I've noticed abnormal issues during BLE Mesh debugging. The specific manifestations are as follows:
  1. In the nRF Connect plugin, the nRF54L15 - DK development board often cannot be erased. When I click the "erase board" button, an error occurs. At this time, the chip seems to be in a locked state, and I have to use the "Erase all" function in the "Programmer" software to fix it.
  2. Every time I click the "Debug" button in the nRF Connect plugin, it takes a long time (more than 10 seconds) to enter the debugging interface. Moreover, debugging fails and cannot proceed, which is manifested as follows:
    (1) In VS Code, except for the "Stop" and "Pause" buttons, other debugging buttons are grayed out and ineffective (I think the debugging is already running at this time). After clicking the "Pause" button and then clicking the "Restart" button, subsequent debugging will most likely fail.
    (2) In OZone, when clicking the "Download & Reset Program" button, it will most likely prompt "UsageFault", and only in a few cases can it jump to the debugging interface.
    However, the nRF52840 and nRF52833 development boards work normally. My supplier told me that the reason is "since Bluetooth is used, debugging will disrupt the timing, which in turn leads to hardware failures." But this cannot explain the fact that the same project can be debugged on the nRF52840.
    So I suspect that the debugging failure is caused by the nRF54L15's CPU running too fast (because its default frequency is 128MHz). I want to reduce its frequency to 64MHz, the same as that of the nRF52840. However, I can't find the macro definition (similar to the CONFIG_xxx macro definition) to modify the frequency. But the datasheet shows that the nRF54L15 can be selected between 128MHz and 64MHz. So how can I switch to the 64MHz frequency?
Parents
  • Hi,

    Is this a completely default DK without anything soldered on or switches flipped? Does this work completely on the nRF52840DK? (I guess it could be the nrfutil or nrfjprog version that is at fault).

    Do you have the newest version of the extension installed?

    Regards,

    Elfving

  • Hi,

    Yes!

    To verify the above issues, I rebuilt the development environment on a new Windows 11 (64-bit) computer, so the software and extensions should be up-to-date. The development board is also an official board purchased from the vendor, completely unmodified. The example program used is "mesh light" (relative path: v2.9.0\nrf\samples\bluetooth\mesh\light), which was compiled and run directly without any changes. The nRF52840DK is indeed working properly for debugging. Now I want to modify the CPU frequency of the nRF54L15-DK to 64MHz to test its functionality. However, I clearly haven't found any relevant macro definitions that can reduce the main frequency from 128MHz to 64MHz.

    Regards,

    Listen

  • listenYes said:
    Now I want to modify the CPU frequency of the nRF54L15-DK to 64MHz to test its functionality. However, I clearly haven't found any relevant macro definitions that can reduce the main frequency from 128MHz to 64MHz.

    I do not think that is what is at fault here, this should be possible with a brand new DK.

    Are you able to debug when flashing any other samples? Do you flash the DK using the onboard debugger?

    Regards,

    Elfving

  • Hi

    Yes!

    I'm using the onboard debugger. I directly connect the data cable to the ports on the development board for debugging and development (the nRF52840DK uses a micro USB, while the nRF54L15DK uses a Type-C USB). If it's a "Hello world" example program, there's no problem at all. I can debug both the 52840 and 54L15 development boards normally, whether in VS Code or Ozone. Meanwhile, I've also found a way to reduce the frequency of the 54L15. After testing, I found that the problem still exists, which indeed has nothing to do with the frequency. However, I've now discovered a new situation when debugging the "mesh light" example program using the 54L15 - DK board. Regarding the second point I mentioned before, "Every time I click the 'Debug' button in the nRF Connect plugin, it takes a long time to enter the debugging interface." After my observation, in fact, it's not a malfunction. It takes more than ten seconds to enter the debugging interface (at this time, only the pause and stop buttons work), and it takes more than thirty seconds or even longer to complete the initialization of the debugging interface (the run and other buttons become effective). Secondly! If I erase the development board in VS Code, directly click "Debug with Ozone", and then click the "Download & Reset Program" button in Ozone, Ozone will pop up a "UsageFault" error and debugging cannot be carried out. If I erase the development board in VS Code, then click the "Flash" button, or click the "Debug" button to enter debugging and then exit, the program will be downloaded to the chip first. Then, if I click "Debug with Ozone" and then click the "Download & Reset Program" button in Ozone, Ozone will become available for debugging. Although the "UsageFault" error still pops up occasionally, it can jump to the main function after resetting, and the "Step over current subroutine" button, "Step into current subroutine" button, and breakpoint operations are all available. So it seems that Ozone can't directly download the program for debugging and needs to download the program through other means first. Also, Ozone debugging is not very stable. If I click the "Resume program execution" button to let it run completely, stopping or pausing at this time will cause a "UsageFault" error. But it can continue to be debugged after resetting. I don't know if such problems are caused by the Bluetooth protocol stack, but they've really brought great trouble to my development. Because when using VS Code, entering the debugging interface is extremely slow, while using Ozone can't ensure stable debugging.

  • Hi,

    listenYes said:
    Regarding the second point I mentioned before, "Every time I click the 'Debug' button in the nRF Connect plugin, it takes a long time to enter the debugging interface.

    I've just tried this with a new 54L15DK. With the device recovered, I'm pressing debug in the VSC actions panel. It then takes about 10s for the flashing to finish (I follow along on the terminal to see what it is working on) and then about 4 for the debug interface to open. I guess how quickly this happens depends on how beefy your computer is, though mine did spend 14s without it really being slow. 30 seems a bit too slow though.

    listenYes said:
    If I erase the development board in VS Code, directly click "Debug with Ozone", and then click the "Download & Reset Program" button in Ozone, Ozone will pop up a "UsageFault" error and debugging cannot be carried out.

    I might be seeing the same thing here, though this is a hardfault.

    Could you make sure that you've updated to the latest version of the NCS extensions, and provide me this support info?

    Regards,

    Elfving

  • Hi,

    Here is my configuration parameters:

    This is the JSON file I obtained:

    // IMPORTANT: The following data can contain sensitive or confidential information about your environment.
    // If you do not want others to see this information, make sure to remove it before sharing the data.
    
    // For help and support, visit Nordic Semiconductor's DevZone at https://devzone.nordicsemi.com/.
    
    {
      "platform": {
        "os": "win32",
        "osVersion": "Windows 10 Pro for Workstations",
        "osKernel": "10.0.19044",
        "vscode": "1.98.2",
        "electron": "34.2.0",
        "node": "v20.18.2"
      },
      "system": {
        "date": "2025-03-29T03:15:31.258Z",
        "vscodeRoot": "c:\\Users\\PC\\AppData\\Local\\Programs\\Microsoft VS Code\\resources\\app",
        "nrfConnectForDesktopInstalled": true,
        "vscodeUptime": "44:12:23",
        "osUptime": "72:17:39",
        "cpu": "12th Gen Intel(R) Core(TM) i5-12400"
      },
      "workspace": {
        "name": "v290 (工作区)",
        "workspaceFile": "e:\\NCS\\v290.code-workspace",
        "folders": [
          "e:\\NCS\\v2.9.0",
          "e:\\NCS\\light"
        ]
      },
      "sdks": [
        {
          "version": "v2.9.0",
          "path": "e:\\NCS\\v2.9.0"
        },
        {
          "version": "v2.5.0",
          "path": "e:\\NCS\\v2.5.0"
        },
        {
          "version": "v3.0.99",
          "path": "e:\\NCS\\v2.0.0"
        }
      ],
      "activeBuild": "e:\\NCS\\light\\build",
      "apps": [
        {
          "workspace": "e:\\NCS\\light",
          "uri": "e:\\NCS\\light",
          "buildConfigurations": [
            {
              "id": "e:\\NCS\\light\\build",
              "name": "build",
              "boardId": "nrf54l15dk/nrf54l15/cpuapp",
              "type": "Sysbuild",
              "isChild": false,
              "isStale": false,
              "taskBindings": {
                "build": [],
                "pristineBuild": [],
                "flash": [],
                "eraseAndFlash": []
              },
              "sdk": "e:\\NCS\\v2.9.0",
              "toolchain": "nRF Connect SDK Toolchain v2.9.0"
            }
          ]
        }
      ],
      "toolchains": [
        {
          "version": "2.9.0",
          "path": "c:\\ncs\\toolchains\\b620d30767"
        },
        {
          "version": "2.5.0",
          "path": "c:\\ncs\\toolchains\\c57af46cb7"
        }
      ],
      "connectedDevices": [
        {
          "serialNumber": "xxxxxxxxxxxx",
          "boardVersion": "PCA10156",
          "deviceFamily": "NRF54L_FAMILY",
          "deviceVersion": "NRF54L15_xxAA_ENGB",
          "jlinkObFirmwareVersion": "J-Link OB-nRF5340-NordicSemi compiled Feb 11 2025 17:15:35",
          "protectionStatus": "NRFDL_PROTECTION_STATUS_NONE"
        }
      ],
      "tools": {
        "C:\\ncs\\toolchains\\b620d30767\\opt\\zephyr-sdk\\arm-zephyr-eabi\\bin\\arm-zephyr-eabi-gcc.exe": "0.17.0",
        "C:\\Program Files\\SEGGER\\JLink_V820\\JLink.exe": "8.20",
        "C:\\Program Files\\Nordic Semiconductor\\nrf-command-line-tools\\bin\\nrfjprog.exe": "10.24.2",
        "C:\\Users\\PC\\AppData\\Roaming\\nrfconnect\\nrfutil-sandboxes\\device\\2.6.4\\bin\\nrfutil.exe": "7.13.0",
        "C:\\ncs\\toolchains\\b620d30767\\cmake": "3.21.0",
        "C:\\ncs\\toolchains\\b620d30767\\opt\\bin\\Scripts\\west.exe": "1.2.0",
        "C:\\ncs\\toolchains\\b620d30767\\opt\\bin\\python.exe": "3.12.4",
        "C:\\ncs\\toolchains\\b620d30767\\opt\\bin\\ninja.exe": "1.10.2",
        "C:\\ncs\\toolchains\\b620d30767\\opt\\bin\\gperf.exe": "3.1",
        "C:\\ncs\\toolchains\\b620d30767\\opt\\bin\\dtc.exe": "1.4.7",
        "C:\\ncs\\toolchains\\b620d30767\\opt\\bin\\gn.exe": "2202",
        "C:\\ncs\\toolchains\\b620d30767\\mingw64\\bin\\git.exe": "2.37.3.windows.1",
        "arm-gdbPath": "c:\\ncs\\toolchains\\b620d30767\\opt\\zephyr-sdk\\arm-zephyr-eabi\\bin\\arm-zephyr-eabi-gdb.exe",
        "riscv-gdbPath": "C:\\ncs\\toolchains\\b620d30767\\opt\\zephyr-sdk\\riscv64-zephyr-elf\\bin\\riscv64-zephyr-elf-gdb.exe"
      },
      "nrfutil": {
        "nrfutil-device": {
          "version": "2.7.9",
          "binPath": "c:\\Users\\PC\\.vscode\\extensions\\nordic-semiconductor.nrf-connect-2025.1.127-win32-x64\\platform\\nrfutil\\bin\\nrfutil-device",
          "jlinkInfo": {
            "description": "This version of SEGGER J-Link is different from the J-Link version that was used to test nrfutil device commands",
            "expectedVersion": {
              "version": "JLink_V7.94i",
              "versionFormat": "string"
            },
            "name": "JlinkARM",
            "version": "JLink_V8.20 ",
            "versionFormat": "string"
          }
        },
        "nrfutil-toolchain-manager": {
          "version": "0.14.4",
          "binPath": "c:\\Users\\PC\\.vscode\\extensions\\nordic-semiconductor.nrf-connect-2025.1.127-win32-x64\\platform\\nrfutil\\bin\\nrfutil-toolchain-manager"
        }
      },
      "environment": {
        "westEnv": {
          "HOME": "C:\\Users\\PC",
          "HOMEDRIVE": "C:",
          "HOMEPATH": "\\Users\\PC",
          "PATH": "C:\\ncs\\toolchains\\b620d30767;C:\\ncs\\toolchains\\b620d30767\\mingw64\\bin;C:\\ncs\\toolchains\\b620d30767\\bin;C:\\ncs\\toolchains\\b620d30767\\opt\\bin;C:\\ncs\\toolchains\\b620d30767\\opt\\bin\\Scripts;C:\\ncs\\toolchains\\b620d30767\\opt\\nanopb\\generator-bin;C:\\ncs\\toolchains\\b620d30767\\opt\\zephyr-sdk\\arm-zephyr-eabi\\bin;C:\\ncs\\toolchains\\b620d30767\\opt\\zephyr-sdk\\riscv64-zephyr-elf\\bin;c:\\Users\\PC\\.vscode\\extensions\\nordic-semiconductor.nrf-connect-2025.1.127-win32-x64\\platform\\nrfutil\\lib\\nrfutil-toolchain-manager;C:\\Windows\\system32;C:\\Windows;C:\\Windows\\System32\\Wbem;C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\;C:\\Program Files\\dotnet\\;C:\\Users\\PC\\AppData\\Local\\Programs\\Python\\Python38;C:\\Users\\PC\\AppData\\Local\\Programs\\Python\\Python38\\Scripts;D:\\nordic_tools\\bin;C:\\Program Files\\Nordic Semiconductor\\nrf-command-line-tools\\bin;E:\\NCS\\toolchains\\v2.5.0\\opt\\bin\\Scripts;E:\\NCS\\toolchains\\v2.5.0\\opt\\bin;E:\\NCS\\toolchains\\v2.9.0\\opt\\bin\\Scripts;E:\\NCS\\toolchains\\v2.9.0\\opt\\bin;C:\\Users\\PC\\AppData\\Roaming\\nrfconnect\\nrfutil-sandboxes\\device\\2.6.4\\bin;C:\\Program Files\\Nordic Semiconductor\\nrf-command-line-tools\\bin\\;C:\\Users\\PC\\AppData\\Local\\Microsoft\\WindowsApps;C:\\Users\\PC\\.dotnet\\tools;C:\\Users\\PC\\AppData\\Local\\Programs\\Microsoft VS Code\\bin",
          "ZEPHYR_BASE": "e:\\NCS\\v2.9.0\\zephyr",
          "ZEPHYR_TOOLCHAIN_VARIANT": "zephyr",
          "ZEPHYR_SDK_INSTALL_DIR": "C:\\ncs\\toolchains\\b620d30767\\opt\\zephyr-sdk",
          "PYTHONPATH": "C:\\ncs\\toolchains\\b620d30767\\opt\\bin;C:\\ncs\\toolchains\\b620d30767\\opt\\bin\\Lib;C:\\ncs\\toolchains\\b620d30767\\opt\\bin\\Lib\\site-packages"
        },
        "inherited": {
          "HOME": "C:\\Users\\PC",
          "HOMEDRIVE": "C:",
          "HOMEPATH": "\\Users\\PC",
          "Path": "C:\\Windows\\system32;C:\\Windows;C:\\Windows\\System32\\Wbem;C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\;C:\\Program Files\\dotnet\\;C:\\Users\\PC\\AppData\\Local\\Programs\\Python\\Python38;C:\\Users\\PC\\AppData\\Local\\Programs\\Python\\Python38\\Scripts;D:\\nordic_tools\\bin;C:\\Program Files\\Nordic Semiconductor\\nrf-command-line-tools\\bin;E:\\NCS\\toolchains\\v2.5.0\\opt\\bin\\Scripts;E:\\NCS\\toolchains\\v2.5.0\\opt\\bin;E:\\NCS\\toolchains\\v2.9.0\\opt\\bin\\Scripts;E:\\NCS\\toolchains\\v2.9.0\\opt\\bin;C:\\Users\\PC\\AppData\\Roaming\\nrfconnect\\nrfutil-sandboxes\\device\\2.6.4\\bin;C:\\Program Files\\Nordic Semiconductor\\nrf-command-line-tools\\bin\\;C:\\Users\\PC\\AppData\\Local\\Microsoft\\WindowsApps;C:\\Users\\PC\\.dotnet\\tools;C:\\Users\\PC\\AppData\\Local\\Programs\\Microsoft VS Code\\bin",
          "PATH": "C:\\Windows\\system32;C:\\Windows;C:\\Windows\\System32\\Wbem;C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\;C:\\Program Files\\dotnet\\;C:\\Users\\PC\\AppData\\Local\\Programs\\Python\\Python38;C:\\Users\\PC\\AppData\\Local\\Programs\\Python\\Python38\\Scripts;D:\\nordic_tools\\bin;C:\\Program Files\\Nordic Semiconductor\\nrf-command-line-tools\\bin;E:\\NCS\\toolchains\\v2.5.0\\opt\\bin\\Scripts;E:\\NCS\\toolchains\\v2.5.0\\opt\\bin;E:\\NCS\\toolchains\\v2.9.0\\opt\\bin\\Scripts;E:\\NCS\\toolchains\\v2.9.0\\opt\\bin;C:\\Users\\PC\\AppData\\Roaming\\nrfconnect\\nrfutil-sandboxes\\device\\2.6.4\\bin;C:\\Program Files\\Nordic Semiconductor\\nrf-command-line-tools\\bin\\;C:\\Users\\PC\\AppData\\Local\\Microsoft\\WindowsApps;C:\\Users\\PC\\.dotnet\\tools;C:\\Users\\PC\\AppData\\Local\\Programs\\Microsoft VS Code\\bin"
        }
      },
      "terminal": {
        "defaultProfile": null
      },
      "config": {
        "nordic-semiconductor.nrf-connect": {
          "topdir": "",
          "toolchain": {
            "path": ""
          },
          "ozonePath": "",
          "applications": [],
          "applicationOptions": {},
          "kconfig": {
            "interface": "kconfig"
          },
          "west": {
            "env": {
              "$base": "terminal"
            }
          },
          "boardRoots": [],
          "taskBindings": {},
          "buildTerminal": {
            "condensedProgress": true
          },
          "debugging": {
            "flash": true,
            "bindings": {},
            "justMyCode": false
          },
          "activeAppFollowActiveEditor": true,
          "flash": {
            "softreset": false,
            "erase": false,
            "recover": false
          },
          "enableTelemetry": true,
          "thirdpartyIntegration": {},
          "toolchainManager": {
            "indexURL": null,
            "installDirectory": null
          },
          "nrfutil": {
            "home": null
          },
          "defaultOpenAction": "ask",
          "terminalProfile": {
            "shell": null
          }
        },
        "nordic-semiconductor.nrf-terminal": {
          "terminalMode": "character"
        }
      },
      "extensions": {
        "internal": {
          "nordic-semiconductor.nrf-connect": {
            "version": "2025.1.127",
            "path": "c:\\Users\\PC\\.vscode\\extensions\\nordic-semiconductor.nrf-connect-2025.1.127-win32-x64",
            "isActive": true
          },
          "nordic-semiconductor.nrf-terminal": {
            "version": "2024.9.14",
            "path": "c:\\Users\\PC\\.vscode\\extensions\\nordic-semiconductor.nrf-terminal-2024.9.14",
            "isActive": true
          },
          "nordic-semiconductor.nrf-devicetree": {
            "version": "2024.12.15",
            "path": "c:\\Users\\PC\\.vscode\\extensions\\nordic-semiconductor.nrf-devicetree-2024.12.15",
            "isActive": true
          },
          "nordic-semiconductor.nrf-kconfig": {
            "version": "2024.12.13",
            "path": "c:\\Users\\PC\\.vscode\\extensions\\nordic-semiconductor.nrf-kconfig-2024.12.13",
            "isActive": true
          }
        },
        "external": {
          "marus25.cortex-debug": null,
          "ms-vscode.cpptools": "1.23.6",
          "ms-vscode.js-debug": "1.97.1",
          "ms-vscode.js-debug-companion": "1.1.3",
          "ms-vscode.vscode-js-profile-table": "1.0.10",
          "MS-CEINTL.vscode-language-pack-zh-hans": "1.98.2025031209",
          "ms-vscode.cmake-tools": "1.20.53",
          "ms-vscode.cpptools-extension-pack": "1.3.1",
          "ms-vscode.cpptools-themes": "2.0.0"
        }
      }
    }

    I've masked some of its content (since this post is public). The masked content is as follows:

    The data of serialNumber:

    Some environment variable paths under environment:

    Some environment variable paths under inherited:

    If you directly click the "Debug with Ozone" button and then click the button in the top-left corner of Ozone (the red-bordered section), it will result in the following HardFault error pop-up:

    If you first click the "Flash" button to download the program to the chip in advance, then click the "Debug with Ozone" button, and finally click any one of the three buttons in the top-left corner of Ozone (the red-bordered section), it will result in the following UsageFault error pop-up:


    However, clicking the reset button occasionally allows debugging to proceed.

Reply
  • Hi,

    Here is my configuration parameters:

    This is the JSON file I obtained:

    // IMPORTANT: The following data can contain sensitive or confidential information about your environment.
    // If you do not want others to see this information, make sure to remove it before sharing the data.
    
    // For help and support, visit Nordic Semiconductor's DevZone at https://devzone.nordicsemi.com/.
    
    {
      "platform": {
        "os": "win32",
        "osVersion": "Windows 10 Pro for Workstations",
        "osKernel": "10.0.19044",
        "vscode": "1.98.2",
        "electron": "34.2.0",
        "node": "v20.18.2"
      },
      "system": {
        "date": "2025-03-29T03:15:31.258Z",
        "vscodeRoot": "c:\\Users\\PC\\AppData\\Local\\Programs\\Microsoft VS Code\\resources\\app",
        "nrfConnectForDesktopInstalled": true,
        "vscodeUptime": "44:12:23",
        "osUptime": "72:17:39",
        "cpu": "12th Gen Intel(R) Core(TM) i5-12400"
      },
      "workspace": {
        "name": "v290 (工作区)",
        "workspaceFile": "e:\\NCS\\v290.code-workspace",
        "folders": [
          "e:\\NCS\\v2.9.0",
          "e:\\NCS\\light"
        ]
      },
      "sdks": [
        {
          "version": "v2.9.0",
          "path": "e:\\NCS\\v2.9.0"
        },
        {
          "version": "v2.5.0",
          "path": "e:\\NCS\\v2.5.0"
        },
        {
          "version": "v3.0.99",
          "path": "e:\\NCS\\v2.0.0"
        }
      ],
      "activeBuild": "e:\\NCS\\light\\build",
      "apps": [
        {
          "workspace": "e:\\NCS\\light",
          "uri": "e:\\NCS\\light",
          "buildConfigurations": [
            {
              "id": "e:\\NCS\\light\\build",
              "name": "build",
              "boardId": "nrf54l15dk/nrf54l15/cpuapp",
              "type": "Sysbuild",
              "isChild": false,
              "isStale": false,
              "taskBindings": {
                "build": [],
                "pristineBuild": [],
                "flash": [],
                "eraseAndFlash": []
              },
              "sdk": "e:\\NCS\\v2.9.0",
              "toolchain": "nRF Connect SDK Toolchain v2.9.0"
            }
          ]
        }
      ],
      "toolchains": [
        {
          "version": "2.9.0",
          "path": "c:\\ncs\\toolchains\\b620d30767"
        },
        {
          "version": "2.5.0",
          "path": "c:\\ncs\\toolchains\\c57af46cb7"
        }
      ],
      "connectedDevices": [
        {
          "serialNumber": "xxxxxxxxxxxx",
          "boardVersion": "PCA10156",
          "deviceFamily": "NRF54L_FAMILY",
          "deviceVersion": "NRF54L15_xxAA_ENGB",
          "jlinkObFirmwareVersion": "J-Link OB-nRF5340-NordicSemi compiled Feb 11 2025 17:15:35",
          "protectionStatus": "NRFDL_PROTECTION_STATUS_NONE"
        }
      ],
      "tools": {
        "C:\\ncs\\toolchains\\b620d30767\\opt\\zephyr-sdk\\arm-zephyr-eabi\\bin\\arm-zephyr-eabi-gcc.exe": "0.17.0",
        "C:\\Program Files\\SEGGER\\JLink_V820\\JLink.exe": "8.20",
        "C:\\Program Files\\Nordic Semiconductor\\nrf-command-line-tools\\bin\\nrfjprog.exe": "10.24.2",
        "C:\\Users\\PC\\AppData\\Roaming\\nrfconnect\\nrfutil-sandboxes\\device\\2.6.4\\bin\\nrfutil.exe": "7.13.0",
        "C:\\ncs\\toolchains\\b620d30767\\cmake": "3.21.0",
        "C:\\ncs\\toolchains\\b620d30767\\opt\\bin\\Scripts\\west.exe": "1.2.0",
        "C:\\ncs\\toolchains\\b620d30767\\opt\\bin\\python.exe": "3.12.4",
        "C:\\ncs\\toolchains\\b620d30767\\opt\\bin\\ninja.exe": "1.10.2",
        "C:\\ncs\\toolchains\\b620d30767\\opt\\bin\\gperf.exe": "3.1",
        "C:\\ncs\\toolchains\\b620d30767\\opt\\bin\\dtc.exe": "1.4.7",
        "C:\\ncs\\toolchains\\b620d30767\\opt\\bin\\gn.exe": "2202",
        "C:\\ncs\\toolchains\\b620d30767\\mingw64\\bin\\git.exe": "2.37.3.windows.1",
        "arm-gdbPath": "c:\\ncs\\toolchains\\b620d30767\\opt\\zephyr-sdk\\arm-zephyr-eabi\\bin\\arm-zephyr-eabi-gdb.exe",
        "riscv-gdbPath": "C:\\ncs\\toolchains\\b620d30767\\opt\\zephyr-sdk\\riscv64-zephyr-elf\\bin\\riscv64-zephyr-elf-gdb.exe"
      },
      "nrfutil": {
        "nrfutil-device": {
          "version": "2.7.9",
          "binPath": "c:\\Users\\PC\\.vscode\\extensions\\nordic-semiconductor.nrf-connect-2025.1.127-win32-x64\\platform\\nrfutil\\bin\\nrfutil-device",
          "jlinkInfo": {
            "description": "This version of SEGGER J-Link is different from the J-Link version that was used to test nrfutil device commands",
            "expectedVersion": {
              "version": "JLink_V7.94i",
              "versionFormat": "string"
            },
            "name": "JlinkARM",
            "version": "JLink_V8.20 ",
            "versionFormat": "string"
          }
        },
        "nrfutil-toolchain-manager": {
          "version": "0.14.4",
          "binPath": "c:\\Users\\PC\\.vscode\\extensions\\nordic-semiconductor.nrf-connect-2025.1.127-win32-x64\\platform\\nrfutil\\bin\\nrfutil-toolchain-manager"
        }
      },
      "environment": {
        "westEnv": {
          "HOME": "C:\\Users\\PC",
          "HOMEDRIVE": "C:",
          "HOMEPATH": "\\Users\\PC",
          "PATH": "C:\\ncs\\toolchains\\b620d30767;C:\\ncs\\toolchains\\b620d30767\\mingw64\\bin;C:\\ncs\\toolchains\\b620d30767\\bin;C:\\ncs\\toolchains\\b620d30767\\opt\\bin;C:\\ncs\\toolchains\\b620d30767\\opt\\bin\\Scripts;C:\\ncs\\toolchains\\b620d30767\\opt\\nanopb\\generator-bin;C:\\ncs\\toolchains\\b620d30767\\opt\\zephyr-sdk\\arm-zephyr-eabi\\bin;C:\\ncs\\toolchains\\b620d30767\\opt\\zephyr-sdk\\riscv64-zephyr-elf\\bin;c:\\Users\\PC\\.vscode\\extensions\\nordic-semiconductor.nrf-connect-2025.1.127-win32-x64\\platform\\nrfutil\\lib\\nrfutil-toolchain-manager;C:\\Windows\\system32;C:\\Windows;C:\\Windows\\System32\\Wbem;C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\;C:\\Program Files\\dotnet\\;C:\\Users\\PC\\AppData\\Local\\Programs\\Python\\Python38;C:\\Users\\PC\\AppData\\Local\\Programs\\Python\\Python38\\Scripts;D:\\nordic_tools\\bin;C:\\Program Files\\Nordic Semiconductor\\nrf-command-line-tools\\bin;E:\\NCS\\toolchains\\v2.5.0\\opt\\bin\\Scripts;E:\\NCS\\toolchains\\v2.5.0\\opt\\bin;E:\\NCS\\toolchains\\v2.9.0\\opt\\bin\\Scripts;E:\\NCS\\toolchains\\v2.9.0\\opt\\bin;C:\\Users\\PC\\AppData\\Roaming\\nrfconnect\\nrfutil-sandboxes\\device\\2.6.4\\bin;C:\\Program Files\\Nordic Semiconductor\\nrf-command-line-tools\\bin\\;C:\\Users\\PC\\AppData\\Local\\Microsoft\\WindowsApps;C:\\Users\\PC\\.dotnet\\tools;C:\\Users\\PC\\AppData\\Local\\Programs\\Microsoft VS Code\\bin",
          "ZEPHYR_BASE": "e:\\NCS\\v2.9.0\\zephyr",
          "ZEPHYR_TOOLCHAIN_VARIANT": "zephyr",
          "ZEPHYR_SDK_INSTALL_DIR": "C:\\ncs\\toolchains\\b620d30767\\opt\\zephyr-sdk",
          "PYTHONPATH": "C:\\ncs\\toolchains\\b620d30767\\opt\\bin;C:\\ncs\\toolchains\\b620d30767\\opt\\bin\\Lib;C:\\ncs\\toolchains\\b620d30767\\opt\\bin\\Lib\\site-packages"
        },
        "inherited": {
          "HOME": "C:\\Users\\PC",
          "HOMEDRIVE": "C:",
          "HOMEPATH": "\\Users\\PC",
          "Path": "C:\\Windows\\system32;C:\\Windows;C:\\Windows\\System32\\Wbem;C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\;C:\\Program Files\\dotnet\\;C:\\Users\\PC\\AppData\\Local\\Programs\\Python\\Python38;C:\\Users\\PC\\AppData\\Local\\Programs\\Python\\Python38\\Scripts;D:\\nordic_tools\\bin;C:\\Program Files\\Nordic Semiconductor\\nrf-command-line-tools\\bin;E:\\NCS\\toolchains\\v2.5.0\\opt\\bin\\Scripts;E:\\NCS\\toolchains\\v2.5.0\\opt\\bin;E:\\NCS\\toolchains\\v2.9.0\\opt\\bin\\Scripts;E:\\NCS\\toolchains\\v2.9.0\\opt\\bin;C:\\Users\\PC\\AppData\\Roaming\\nrfconnect\\nrfutil-sandboxes\\device\\2.6.4\\bin;C:\\Program Files\\Nordic Semiconductor\\nrf-command-line-tools\\bin\\;C:\\Users\\PC\\AppData\\Local\\Microsoft\\WindowsApps;C:\\Users\\PC\\.dotnet\\tools;C:\\Users\\PC\\AppData\\Local\\Programs\\Microsoft VS Code\\bin",
          "PATH": "C:\\Windows\\system32;C:\\Windows;C:\\Windows\\System32\\Wbem;C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\;C:\\Program Files\\dotnet\\;C:\\Users\\PC\\AppData\\Local\\Programs\\Python\\Python38;C:\\Users\\PC\\AppData\\Local\\Programs\\Python\\Python38\\Scripts;D:\\nordic_tools\\bin;C:\\Program Files\\Nordic Semiconductor\\nrf-command-line-tools\\bin;E:\\NCS\\toolchains\\v2.5.0\\opt\\bin\\Scripts;E:\\NCS\\toolchains\\v2.5.0\\opt\\bin;E:\\NCS\\toolchains\\v2.9.0\\opt\\bin\\Scripts;E:\\NCS\\toolchains\\v2.9.0\\opt\\bin;C:\\Users\\PC\\AppData\\Roaming\\nrfconnect\\nrfutil-sandboxes\\device\\2.6.4\\bin;C:\\Program Files\\Nordic Semiconductor\\nrf-command-line-tools\\bin\\;C:\\Users\\PC\\AppData\\Local\\Microsoft\\WindowsApps;C:\\Users\\PC\\.dotnet\\tools;C:\\Users\\PC\\AppData\\Local\\Programs\\Microsoft VS Code\\bin"
        }
      },
      "terminal": {
        "defaultProfile": null
      },
      "config": {
        "nordic-semiconductor.nrf-connect": {
          "topdir": "",
          "toolchain": {
            "path": ""
          },
          "ozonePath": "",
          "applications": [],
          "applicationOptions": {},
          "kconfig": {
            "interface": "kconfig"
          },
          "west": {
            "env": {
              "$base": "terminal"
            }
          },
          "boardRoots": [],
          "taskBindings": {},
          "buildTerminal": {
            "condensedProgress": true
          },
          "debugging": {
            "flash": true,
            "bindings": {},
            "justMyCode": false
          },
          "activeAppFollowActiveEditor": true,
          "flash": {
            "softreset": false,
            "erase": false,
            "recover": false
          },
          "enableTelemetry": true,
          "thirdpartyIntegration": {},
          "toolchainManager": {
            "indexURL": null,
            "installDirectory": null
          },
          "nrfutil": {
            "home": null
          },
          "defaultOpenAction": "ask",
          "terminalProfile": {
            "shell": null
          }
        },
        "nordic-semiconductor.nrf-terminal": {
          "terminalMode": "character"
        }
      },
      "extensions": {
        "internal": {
          "nordic-semiconductor.nrf-connect": {
            "version": "2025.1.127",
            "path": "c:\\Users\\PC\\.vscode\\extensions\\nordic-semiconductor.nrf-connect-2025.1.127-win32-x64",
            "isActive": true
          },
          "nordic-semiconductor.nrf-terminal": {
            "version": "2024.9.14",
            "path": "c:\\Users\\PC\\.vscode\\extensions\\nordic-semiconductor.nrf-terminal-2024.9.14",
            "isActive": true
          },
          "nordic-semiconductor.nrf-devicetree": {
            "version": "2024.12.15",
            "path": "c:\\Users\\PC\\.vscode\\extensions\\nordic-semiconductor.nrf-devicetree-2024.12.15",
            "isActive": true
          },
          "nordic-semiconductor.nrf-kconfig": {
            "version": "2024.12.13",
            "path": "c:\\Users\\PC\\.vscode\\extensions\\nordic-semiconductor.nrf-kconfig-2024.12.13",
            "isActive": true
          }
        },
        "external": {
          "marus25.cortex-debug": null,
          "ms-vscode.cpptools": "1.23.6",
          "ms-vscode.js-debug": "1.97.1",
          "ms-vscode.js-debug-companion": "1.1.3",
          "ms-vscode.vscode-js-profile-table": "1.0.10",
          "MS-CEINTL.vscode-language-pack-zh-hans": "1.98.2025031209",
          "ms-vscode.cmake-tools": "1.20.53",
          "ms-vscode.cpptools-extension-pack": "1.3.1",
          "ms-vscode.cpptools-themes": "2.0.0"
        }
      }
    }

    I've masked some of its content (since this post is public). The masked content is as follows:

    The data of serialNumber:

    Some environment variable paths under environment:

    Some environment variable paths under inherited:

    If you directly click the "Debug with Ozone" button and then click the button in the top-left corner of Ozone (the red-bordered section), it will result in the following HardFault error pop-up:

    If you first click the "Flash" button to download the program to the chip in advance, then click the "Debug with Ozone" button, and finally click any one of the three buttons in the top-left corner of Ozone (the red-bordered section), it will result in the following UsageFault error pop-up:


    However, clicking the reset button occasionally allows debugging to proceed.

Children
No Data
Related