Must toolchain version match SDK version?

Hi.

For a while I have had some issues with the toolchain when using the nRF connect SDK in visual studio code on windows 10. I believe it was after installing SDK version 2.8.0 that I saw the problems first, although I'm not entirely sure. When I use certain commands I get errors in toolchain versions other than 2.8.0. For instance, if I try to build and flash an application using SDK version 1.9.1 and toolchain 1.9.1 I get the attached output.

First of all, is there a workaround to get this to work? I'm currently flashing manually with nrfjprog from command line.

Secondly, should I be matching toolchain versions and SDK versions in the first place? What is the intended/recommended way to use SDK and toolchain versions? If I try build my application with SDK version 1.9.1 and toolchain version 2.8.0 the application appears to run as expected, even with some improvements: resulting merged.hex file is smaller and more warnings are caught in the build process.

[9/27] Linking CXX executable zephyr\zephyr_pre0.elf
[10/27] Generating dev_handles.c
FAILED: zephyr/dev_handles.c
cmd.exe /C "cd /D C:\...\build_191\zephyr && C:\ncs\v1.9.1\toolchain\opt\bin\python.exe C:/ncs/v1.9.1/zephyr/scripts/gen_handles.py --output-source dev_handles.c --kernel C:/.../build_191/zephyr/zephyr_pre0.elf --zephyr-base C:/ncs/v1.9.1/zephyr --start-symbol __device_start"
Traceback (most recent call last):
  File "C:/ncs/v1.9.1/zephyr/scripts/gen_handles.py", line 37, in <module>
    from elftools.elf.elffile import ELFFile
  File "C:\ncs\toolchains\2d382dcd92\opt\bin\Lib\site-packages\elftools\elf\elffile.py", line 41, in <module>
    from ..dwarf.dwarfinfo import DWARFInfo, DebugSectionDescriptor, DwarfConfig
  File "C:\ncs\toolchains\2d382dcd92\opt\bin\Lib\site-packages\elftools\dwarf\dwarfinfo.py", line 17, in <module>
    from .structs import DWARFStructs
  File "C:\ncs\toolchains\2d382dcd92\opt\bin\Lib\site-packages\elftools\dwarf\structs.py", line 10, in <module>
    from logging.config import valid_ident
  File "<frozen zipimport>", line 259, in load_module
  File "logging\config.py", line 30, in <module>
  File "<frozen zipimport>", line 259, in load_module
  File "logging\handlers.py", line 26, in <module>
  File "<frozen zipimport>", line 259, in load_module
  File "socket.py", line 49, in <module>
ImportError: Module use of python312.dll conflicts with this version of Python.
ninja: build stopped: subcommand failed.
FATAL ERROR: re-build

Parents
  • Hello,

    Yes. This is actually a bug. I don't recall the details (but I will dig it up if we can't quickly solve this). Can you please try to install v2.9.0 as well? And if the issue doesn't go away, can you uninstall v2.8.0 (and keep v2.9.0)? Does that change anything?

    Best regards,

    Edvin

  • Hi. Thank you for the suggestions, although it didn't seem to change anything.

    I tried to install 2.9.0, after which 2.8.0 and 2.9.0 worked but not 1.9.1 as before. Then, I tried to reboot my computer and ended up with the same result. Next, I uninstalled 2.8.0. As before, 2.9.0 worked but not 1.9.1. Restarted by computer again and still the same result. I installed and uninstalled the toolchain versions with the commands in VSCode.

    After that, I checked my C:/ncs folder to see that 2.8.0 was still there, and I did not find 2.9.0. So I took the extra step to delete 2.8.0 in my file explorer, uninstall 2.9.0 in VSCode, install 2.9.0 in the toolchain manager and restart my computer. Still the same error as far as I can tell.

    On a separate note, I checked my nRF Connect for VS Code extension version (2025.1.127) and found I did not have the april update (which I believe was released today, after my original question?). I see this issue is addressed in this update since it prompts me that support for 1.x.x toolchains is discontinued. It also states "If you are working with the nRF Connect SDK v1.x, select the nRF Connect SDK Toolchain v2.0.0 for your configuration". So I guess the intended strategy is to install toolchain version 2.0.0 and use that for my applications in 1.x.

    So I tried this in nRF Connect for VS Code v2025.4.106, but flashing with toolchian verison 2.0.0 does not work either. Without comparing the errors line by line, the error in 2.0.0 appears to be the same as in 1.9.1.

  • Hi Edvin, 

    I did attempt this, and it unfortunately fails.

    Kieran

  • Which part? Flashing the build folder generated from the command line in VS Code? Or flashing from the command line?

  • Pressing the flash button from vscode fails on the build configuration, despite working in the command prompt where the ZEPHYR_BASE variable was set in.

  • Do any of you have the old nrfutil installed and in your system path on your computer?

    To check, try opening a terminal in windows and type:

    "where nrfutil" (on windows, I believe it is "which nrfutil" on mac/linux):

    Does it return 0, 1 or several paths?

    Also, what does "nrfutil --version" return?

    Also, make sure you are on the latest version of "nrfutil device" using "nrfutil upgrade device":

    Does that make any difference?

    Best regards,

    Edvin

  • Hi.

    I have an older version installed (you can also check my previous nrf-connect-support file for all versions, 7.13.0, device 2.8.8 and sdk-manager 1.2.0).

    so I upgraded with nrfutil self-upgrade (to 8.0.0), followed by nrfutil upgrade device. Closed all VSCode windows and opened the new window. Same error when using the flash command. All new related versions are listed in the new support information.

    Next I tried to run from command line:

    If I open a new terminal with the command "nRF Connect: Create Shell Terminal", and paste the exact same command that fails when pressing the flash button, the build and flash works. Please see attached files for all output.

    // 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",
        "osKernel": "10.0.19045",
        "vscode": "1.100.2",
        "electron": "34.5.1",
        "node": "v20.19.0"
      },
      "system": {
        "date": "2025-06-04T14:17:58.128Z",
        "vscodeRoot": "c:\\Program Files\\Microsoft VS Code\\resources\\app",
        "nrfConnectForDesktopInstalled": true,
        "vscodeUptime": "00:15:42",
        "osUptime": "463:17:34",
        "cpu": "Intel(R) Core(TM) i7-10700T CPU @ 2.00GHz"
      },
      "workspace": {
        "name": "application_update",
        "workspaceFile": null,
        "folders": [
          "c:\\ncs\\v2.4.0\\nrf\\samples\\nrf9160\\http_update\\application_update"
        ]
      },
      "sdks": [
        {
          "version": "v2.9.0",
          "path": "c:\\ncs\\v2.9.0"
        },
        {
          "version": "v2.7.0",
          "path": "c:\\ncs\\v2.7.0"
        },
        {
          "version": "v2.6.1",
          "path": "c:\\ncs\\v2.6.1"
        },
        {
          "version": "v2.5.1",
          "path": "c:\\ncs\\v2.5.1"
        },
        {
          "version": "v2.4.2",
          "path": "c:\\project\\customer"
        },
        {
          "version": "v2.4.0",
          "path": "c:\\ncs\\v2.4.0"
        },
        {
          "version": "v2.3.0",
          "path": "c:\\ncs\\v2.3.0"
        },
        {
          "version": "v2.2.0",
          "path": "c:\\ncs\\v2.2.0"
        },
        {
          "version": "v1.9.1",
          "path": "c:\\ncs\\v1.9.1"
        },
        {
          "version": "v1.5.1",
          "path": "c:\\ncs\\v1.5.1"
        }
      ],
      "activeBuild": "c:\\ncs\\v2.4.0\\nrf\\samples\\nrf9160\\http_update\\application_update\\build",
      "apps": [
        {
          "workspace": "c:\\ncs\\v2.4.0\\nrf\\samples\\nrf9160\\http_update\\application_update",
          "uri": "c:\\ncs\\v2.4.0\\nrf\\samples\\nrf9160\\http_update\\application_update",
          "buildConfigurations": [
            {
              "id": "c:\\ncs\\v2.4.0\\nrf\\samples\\nrf9160\\http_update\\application_update\\build",
              "name": "build",
              "boardId": "nrf9160dk_nrf9160_ns",
              "type": "Zephyr",
              "isChild": false,
              "isStale": false,
              "taskBindings": {
                "build": [],
                "pristineBuild": [],
                "flash": [],
                "eraseAndFlash": []
              },
              "sdk": "c:\\ncs\\v2.4.0",
              "toolchain": "nRF Connect SDK Toolchain v2.4.0"
            }
          ]
        }
      ],
      "toolchains": [
        {
          "version": "2.9.0",
          "path": "c:\\ncs\\toolchains\\b620d30767"
        },
        {
          "version": "2.7.0",
          "path": "c:\\ncs\\toolchains\\ce3b5ff664"
        },
        {
          "version": "2.6.1",
          "path": "c:\\ncs\\toolchains\\cf2149caf2"
        },
        {
          "version": "2.5.1",
          "path": "c:\\ncs\\toolchains\\c57af46cb7"
        },
        {
          "version": "2.4.0",
          "path": "c:\\ncs\\toolchains\\31f4403e35"
        },
        {
          "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"
        }
      ],
      "connectedDevices": [
        {
          "serialNumber": "000602005822"
        }
      ],
      "tools": {
        "C:\\ncs\\toolchains\\31f4403e35\\opt\\zephyr-sdk\\arm-zephyr-eabi\\bin\\arm-zephyr-eabi-gcc.exe": "0.16.0",
        "C:\\Program Files\\SEGGER\\JLink_V840\\JLink.exe": "8.40",
        "C:\\Program Files\\Nordic Semiconductor\\nrf-command-line-tools\\bin\\nrfjprog.exe": "10.24.2",
        "C:\\ncs\\nrfutil\\nrfutil.exe": "8.0.0",
        "C:\\ncs\\toolchains\\31f4403e35\\cmake": "3.20.5",
        "C:\\ncs\\toolchains\\31f4403e35\\opt\\bin\\Scripts\\west.exe": "1.1.0",
        "C:\\ncs\\toolchains\\31f4403e35\\opt\\bin\\python.exe": "3.8.2",
        "C:\\ncs\\toolchains\\31f4403e35\\opt\\bin\\ninja.exe": "1.9.0",
        "C:\\ncs\\toolchains\\31f4403e35\\opt\\bin\\gperf.exe": "3.1",
        "C:\\ncs\\toolchains\\31f4403e35\\opt\\bin\\dtc.exe": "1.4.7",
        "C:\\ncs\\toolchains\\31f4403e35\\opt\\bin\\gn.exe": "2105",
        "C:\\ncs\\toolchains\\31f4403e35\\mingw64\\bin\\git.exe": "2.37.3.windows.1",
        "arm-gdbPath": "c:\\ncs\\toolchains\\31f4403e35\\opt\\zephyr-sdk\\arm-zephyr-eabi\\bin\\arm-zephyr-eabi-gdb.exe",
        "riscv-gdbPath": "not found"
      },
      "nrfutil": {
        "nrfutil-device": {
          "version": "2.8.8",
          "binPath": "c:\\Users\\ErlendEliasIsachsen\\.vscode\\extensions\\nordic-semiconductor.nrf-connect-2025.5.92-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_V8.18",
              "versionFormat": "string"
            },
            "name": "JlinkARM",
            "version": "JLink_V8.40",
            "versionFormat": "string"
          }
        },
        "nrfutil-sdk-manager": {
          "version": "1.3.0",
          "binPath": "c:\\Users\\ErlendEliasIsachsen\\.vscode\\extensions\\nordic-semiconductor.nrf-connect-2025.5.92-win32-x64\\platform\\nrfutil\\bin\\nrfutil-sdk-manager"
        }
      },
      "environment": {
        "westEnv": {
          "HOME": "C:\\SPB_Data",
          "HOMEDRIVE": "C:",
          "HOMEPATH": "\\Users\\ErlendEliasIsachsen",
          "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\\ErlendEliasIsachsen\\.vscode\\extensions\\nordic-semiconductor.nrf-connect-2025.5.92-win32-x64\\platform\\nrfutil\\lib\\nrfutil-sdk-manager;C:\\Program Files (x86)\\NVIDIA Corporation\\PhysX\\Common;C:\\Windows\\system32;C:\\Windows;C:\\Windows\\System32\\Wbem;C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\;C:\\Windows\\System32\\OpenSSH\\;C:\\Program Files\\Microchip\\xc8\\v2.31\\bin;C:\\Program Files\\PuTTY\\;C:\\Program Files\\WinMerge;C:\\Program Files\\dotnet\\;C:\\Program Files\\Wolfram Research\\WolframScript\\;C:\\Program Files (x86)\\Windows Kits\\8.1\\Windows Performance Toolkit\\;C:\\Program Files\\Git\\cmd;C:\\Program Files\\Microsoft VS Code\\bin;C:\\Program Files\\LLVM\\bin;C:\\Program Files\\TortoiseSVN\\bin;C:\\Program Files\\otii;C:\\Program Files\\doxygen\\bin;C:\\Program Files\\Graphviz\\bin;C:\\Program Files\\Nordic Semiconductor\\nrf-command-line-tools\\bin\\;C:\\Program Files\\CMake\\bin;C:\\ncs\\nrfutil;C:\\gnuarmemb\\9_2019-q4-major\\bin;C:\\Users\\ErlendEliasIsachsen\\AppData\\Local\\Microsoft\\WindowsApps;C:\\Users\\ErlendEliasIsachsen\\.dotnet\\tools;C:\\Users\\ErlendEliasIsachsen\\AppData\\Local\\GitHubDesktop\\bin;C:\\Users\\ErlendEliasIsachsen\\AppData\\Local\\Programs\\MiKTeX\\miktex\\bin\\x64\\;",
          "ZEPHYR_BASE": "c:\\ncs\\v2.4.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:\\SPB_Data",
          "HOMEDRIVE": "C:",
          "HOMEPATH": "\\Users\\ErlendEliasIsachsen",
          "Path": "C:\\Program Files (x86)\\NVIDIA Corporation\\PhysX\\Common;C:\\Windows\\system32;C:\\Windows;C:\\Windows\\System32\\Wbem;C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\;C:\\Windows\\System32\\OpenSSH\\;C:\\Program Files\\Microchip\\xc8\\v2.31\\bin;C:\\Program Files\\PuTTY\\;C:\\Program Files\\WinMerge;C:\\Program Files\\dotnet\\;C:\\Program Files\\Wolfram Research\\WolframScript\\;C:\\Program Files (x86)\\Windows Kits\\8.1\\Windows Performance Toolkit\\;C:\\Program Files\\Git\\cmd;C:\\Program Files\\Microsoft VS Code\\bin;C:\\Program Files\\LLVM\\bin;C:\\Program Files\\TortoiseSVN\\bin;C:\\Program Files\\otii;C:\\Program Files\\doxygen\\bin;C:\\Program Files\\Graphviz\\bin;C:\\Program Files\\Nordic Semiconductor\\nrf-command-line-tools\\bin\\;C:\\Program Files\\CMake\\bin;C:\\ncs\\nrfutil;C:\\gnuarmemb\\9_2019-q4-major\\bin;C:\\Users\\ErlendEliasIsachsen\\AppData\\Local\\Microsoft\\WindowsApps;C:\\Users\\ErlendEliasIsachsen\\.dotnet\\tools;C:\\Program Files\\TortoiseSVN\\bin;C:\\Users\\ErlendEliasIsachsen\\AppData\\Local\\GitHubDesktop\\bin;C:\\Users\\ErlendEliasIsachsen\\AppData\\Local\\Programs\\MiKTeX\\miktex\\bin\\x64\\;",
          "PATH": "C:\\Program Files (x86)\\NVIDIA Corporation\\PhysX\\Common;C:\\Windows\\system32;C:\\Windows;C:\\Windows\\System32\\Wbem;C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\;C:\\Windows\\System32\\OpenSSH\\;C:\\Program Files\\Microchip\\xc8\\v2.31\\bin;C:\\Program Files\\PuTTY\\;C:\\Program Files\\WinMerge;C:\\Program Files\\dotnet\\;C:\\Program Files\\Wolfram Research\\WolframScript\\;C:\\Program Files (x86)\\Windows Kits\\8.1\\Windows Performance Toolkit\\;C:\\Program Files\\Git\\cmd;C:\\Program Files\\Microsoft VS Code\\bin;C:\\Program Files\\LLVM\\bin;C:\\Program Files\\TortoiseSVN\\bin;C:\\Program Files\\otii;C:\\Program Files\\doxygen\\bin;C:\\Program Files\\Graphviz\\bin;C:\\Program Files\\Nordic Semiconductor\\nrf-command-line-tools\\bin\\;C:\\Program Files\\CMake\\bin;C:\\ncs\\nrfutil;C:\\gnuarmemb\\9_2019-q4-major\\bin;C:\\Users\\ErlendEliasIsachsen\\AppData\\Local\\Microsoft\\WindowsApps;C:\\Users\\ErlendEliasIsachsen\\.dotnet\\tools;C:\\Program Files\\TortoiseSVN\\bin;C:\\Users\\ErlendEliasIsachsen\\AppData\\Local\\GitHubDesktop\\bin;C:\\Users\\ErlendEliasIsachsen\\AppData\\Local\\Programs\\MiKTeX\\miktex\\bin\\x64\\;"
        }
      },
      "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"
        },
        "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": "2025.5.92",
            "path": "c:\\Users\\ErlendEliasIsachsen\\.vscode\\extensions\\nordic-semiconductor.nrf-connect-2025.5.92-win32-x64",
            "isActive": true
          },
          "nordic-semiconductor.nrf-terminal": {
            "version": "2024.9.14",
            "path": "c:\\Users\\ErlendEliasIsachsen\\.vscode\\extensions\\nordic-semiconductor.nrf-terminal-2024.9.14",
            "isActive": true
          },
          "nordic-semiconductor.nrf-devicetree": {
            "version": "2025.4.22",
            "path": "c:\\Users\\ErlendEliasIsachsen\\.vscode\\extensions\\nordic-semiconductor.nrf-devicetree-2025.4.22",
            "isActive": true
          },
          "nordic-semiconductor.nrf-kconfig": {
            "version": "2025.4.26",
            "path": "c:\\Users\\ErlendEliasIsachsen\\.vscode\\extensions\\nordic-semiconductor.nrf-kconfig-2025.4.26",
            "isActive": true
          }
        },
        "external": {
          "marus25.cortex-debug": "1.12.1",
          "ms-vscode.cpptools": "1.26.1",
          "ms-vscode.js-debug": "1.100.1",
          "ms-vscode.js-debug-companion": "1.1.3",
          "ms-vscode.vscode-js-profile-table": "1.0.10",
          "bbenoist.Doxygen": "1.0.0",
          "cschlosser.doxdocgen": "1.4.0",
          "DotJoshJohnson.xml": "2.5.1",
          "GitHub.copilot": "1.326.0",
          "GitHub.copilot-chat": "0.27.3",
          "joaompinto.vscode-graphviz": "0.0.9",
          "josetr.cmake-language-support-vscode": "0.0.9",
          "KevinRose.vsc-python-indent": "1.21.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",
          "ms-dotnettools.vscode-dotnet-runtime": "2.3.5",
          "ms-python.debugpy": "2025.8.0",
          "ms-python.python": "2025.6.1",
          "ms-python.vscode-pylance": "2025.5.1",
          "ms-vscode-remote.remote-containers": "0.413.0",
          "ms-vscode-remote.remote-ssh": "0.120.0",
          "ms-vscode-remote.remote-ssh-edit": "0.87.0",
          "ms-vscode-remote.remote-wsl": "0.99.0",
          "ms-vscode.cpptools-extension-pack": "1.3.1",
          "ms-vscode.cpptools-themes": "2.0.0",
          "ms-vscode.remote-explorer": "0.5.0",
          "redhat.vscode-xml": "0.29.0",
          "tintinweb.graphviz-interactive-preview": "0.3.5",
          "tomoki1207.pdf": "1.2.2",
          "trond-snekvik.gnu-mapfiles": "1.1.0",
          "xaver.clang-format": "1.9.0"
        }
      }
    }
    
    
    *  Executing task: nRF Connect: Generate config nrf9160dk_nrf9160_ns for c:\ncs\v2.4.0\nrf\samples\nrf9160\http_update\application_update 
    
    Building application_update
    C:\Windows\system32\cmd.exe /d /s /c "west build --build-dir c:/ncs/v2.4.0/nrf/samples/nrf9160/http_update/application_update/build c:/ncs/v2.4.0/nrf/samples/nrf9160/http_update/application_update --pristine --board nrf9160dk_nrf9160_ns -- -DNCS_TOOLCHAIN_VERSION=NONE"
    
    -- west build: generating a build system
    Loading Zephyr default modules (Zephyr base).
    -- Application: C:/ncs/v2.4.0/nrf/samples/nrf9160/http_update/application_update
    -- CMake version: 3.20.5
    -- Found Python3: C:/ncs/toolchains/31f4403e35/opt/bin/python.exe (found suitable exact version "3.8.2") found components: Interpreter 
    -- Cache files will be written to: C:/ncs/v2.4.0/zephyr/.cache
    -- Zephyr version: 3.3.99 (C:/ncs/v2.4.0/zephyr)
    -- Found west (found suitable version "1.1.0", minimum required is "0.7.1")
    -- Board: nrf9160dk_nrf9160_ns, Revision: 0.7.0
    -- Found host-tools: zephyr 0.16.0 (C:/ncs/toolchains/31f4403e35/opt/zephyr-sdk)
    -- Found toolchain: zephyr 0.16.0 (C:/ncs/toolchains/31f4403e35/opt/zephyr-sdk)
    -- Found Dtc: C:/ncs/toolchains/31f4403e35/opt/bin/dtc.exe (found suitable version "1.4.7", minimum required is "1.4.6") 
    -- Found BOARD.dts: C:/ncs/v2.4.0/zephyr/boards/arm/nrf9160dk_nrf9160/nrf9160dk_nrf9160_ns.dts
    -- Generated zephyr.dts: C:/ncs/v2.4.0/nrf/samples/nrf9160/http_update/application_update/build/zephyr/zephyr.dts
    -- Generated devicetree_generated.h: C:/ncs/v2.4.0/nrf/samples/nrf9160/http_update/application_update/build/zephyr/include/generated/devicetree_generated.h
    -- Including generated dts.cmake file: C:/ncs/v2.4.0/nrf/samples/nrf9160/http_update/application_update/build/zephyr/dts.cmake
    Parsing C:/ncs/v2.4.0/nrf/samples/nrf9160/http_update/application_update/Kconfig
    Loaded configuration 'C:/ncs/v2.4.0/zephyr/boards/arm/nrf9160dk_nrf9160/nrf9160dk_nrf9160_ns_defconfig'
    Merged configuration 'C:/ncs/v2.4.0/nrf/samples/nrf9160/http_update/application_update/prj.conf'
    Configuration saved to 'C:/ncs/v2.4.0/nrf/samples/nrf9160/http_update/application_update/build/zephyr/.config'
    Kconfig header saved to 'C:/ncs/v2.4.0/nrf/samples/nrf9160/http_update/application_update/build/zephyr/include/generated/autoconf.h'
    -- Found GnuLd: c:/ncs/toolchains/31f4403e35/opt/zephyr-sdk/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/12.2.0/../../../../arm-zephyr-eabi/bin/ld.bfd.exe (found version "2.38") 
    -- The C compiler identification is GNU 12.2.0
    -- The CXX compiler identification is GNU 12.2.0
    -- The ASM compiler identification is GNU
    -- Found assembler: C:/ncs/toolchains/31f4403e35/opt/zephyr-sdk/arm-zephyr-eabi/bin/arm-zephyr-eabi-gcc.exe
    -- Found Python3: C:/ncs/toolchains/31f4403e35/opt/bin/python.exe (found version "3.8.2") found components: Interpreter 
    Changed board to secure nrf9160dk_nrf9160 (NOT NS)
    
    === child image mcuboot -  begin ===
    loading initial cache file C:/ncs/v2.4.0/nrf/samples/nrf9160/http_update/application_update/build/mcuboot/child_image_preload.cmake
    CMake Warning (dev) at C:/ncs/v2.4.0/nrf/samples/nrf9160/http_update/application_update/build/mcuboot/child_image_preload.cmake:8 (set):
      Syntax error in cmake code at
    
        C:/ncs/v2.4.0/nrf/samples/nrf9160/http_update/application_update/build/mcuboot/child_image_preload.cmake:8
    
      when parsing string
    
        C:\ncs\toolchains\31f4403e35\opt\bin\python.exe
    
      Invalid escape sequence \3
    
      Policy CMP0010 is not set: Bad variable reference syntax is an error.  Run
      "cmake --help-policy CMP0010" for policy details.  Use the cmake_policy
      command to set the policy and suppress this warning.
    This warning is for project developers.  Use -Wno-dev to suppress it.
    
    Loading Zephyr default modules (Zephyr base).
    -- Application: C:/ncs/v2.4.0/bootloader/mcuboot/boot/zephyr
    -- CMake version: 3.20.5
    -- Found Python3: C:/ncs/toolchains/31f4403e35/opt/bin/python.exe (found suitable exact version "3.8.2") found components: Interpreter 
    -- Cache files will be written to: C:/ncs/v2.4.0/zephyr/.cache
    -- Zephyr version: 3.3.99 (C:/ncs/v2.4.0/zephyr)
    -- Found west (found suitable version "1.1.0", minimum required is "0.7.1")
    -- Board: nrf9160dk_nrf9160, Revision: 0.7.0
    -- Found host-tools: zephyr 0.16.0 (C:/ncs/toolchains/31f4403e35/opt/zephyr-sdk)
    -- Found toolchain: zephyr 0.16.0 (C:/ncs/toolchains/31f4403e35/opt/zephyr-sdk)
    -- Found Dtc: C:/ncs/toolchains/31f4403e35/opt/bin/dtc.exe (found suitable version "1.4.7", minimum required is "1.4.6") 
    -- Found BOARD.dts: C:/ncs/v2.4.0/zephyr/boards/arm/nrf9160dk_nrf9160/nrf9160dk_nrf9160.dts
    -- Found devicetree overlay: C:/ncs/v2.4.0/bootloader/mcuboot/boot/zephyr/app.overlay
    -- Generated zephyr.dts: C:/ncs/v2.4.0/nrf/samples/nrf9160/http_update/application_update/build/mcuboot/zephyr/zephyr.dts
    -- Generated devicetree_generated.h: C:/ncs/v2.4.0/nrf/samples/nrf9160/http_update/application_update/build/mcuboot/zephyr/include/generated/devicetree_generated.h
    -- Including generated dts.cmake file: C:/ncs/v2.4.0/nrf/samples/nrf9160/http_update/application_update/build/mcuboot/zephyr/dts.cmake
    Parsing C:/ncs/v2.4.0/bootloader/mcuboot/boot/zephyr/Kconfig
    Loaded configuration 'C:/ncs/v2.4.0/zephyr/boards/arm/nrf9160dk_nrf9160/nrf9160dk_nrf9160_defconfig'
    Merged configuration 'C:/ncs/v2.4.0/bootloader/mcuboot/boot/zephyr/prj.conf'
    Merged configuration 'C:/ncs/v2.4.0/nrf/modules/mcuboot/tfm.conf'
    Merged configuration 'C:/ncs/v2.4.0/nrf/modules/mcuboot/fih_low_enable.conf'
    Merged configuration 'C:/ncs/v2.4.0/nrf/subsys/partition_manager/partition_manager_enabled.conf'
    Merged configuration 'C:/ncs/v2.4.0/nrf/samples/nrf9160/http_update/application_update/build/mcuboot/zephyr/misc/generated/extra_kconfig_options.conf'
    Configuration saved to 'C:/ncs/v2.4.0/nrf/samples/nrf9160/http_update/application_update/build/mcuboot/zephyr/.config'
    Kconfig header saved to 'C:/ncs/v2.4.0/nrf/samples/nrf9160/http_update/application_update/build/mcuboot/zephyr/include/generated/autoconf.h'
    -- Found GnuLd: c:/ncs/toolchains/31f4403e35/opt/zephyr-sdk/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/12.2.0/../../../../arm-zephyr-eabi/bin/ld.bfd.exe (found version "2.38") 
    -- The C compiler identification is GNU 12.2.0
    -- The CXX compiler identification is GNU 12.2.0
    -- The ASM compiler identification is GNU
    -- Found assembler: C:/ncs/toolchains/31f4403e35/opt/zephyr-sdk/arm-zephyr-eabi/bin/arm-zephyr-eabi-gcc.exe
    CMake Warning at C:/ncs/v2.4.0/zephyr/CMakeLists.txt:838 (message):
      No SOURCES given to Zephyr library: lib__libc__common
    
      Excluding target from build.
    
    
    MCUBoot bootloader key file: C:/ncs/v2.4.0/bootloader/mcuboot/root-ec-p256.pem
    -- Configuring done
    -- Generating done
    -- Build files have been written to: C:/ncs/v2.4.0/nrf/samples/nrf9160/http_update/application_update/build/mcuboot
    === child image mcuboot -  end ===
    
    CMake Warning at C:/ncs/v2.4.0/nrf/modules/mcuboot/CMakeLists.txt:310 (message):
      
    
              ---------------------------------------------------------
              --- WARNING: Using default MCUBoot key, it should not ---
              --- be used for production.                           ---
              ---------------------------------------------------------
              
    
    
    
    CMake Warning at C:/ncs/v2.4.0/zephyr/CMakeLists.txt:838 (message):
      No SOURCES given to Zephyr library: lib__libc__common
    
      Excluding target from build.
    
    
    CMake Warning at C:/ncs/v2.4.0/zephyr/CMakeLists.txt:1864 (message):
      __ASSERT() statements are globally ENABLED
    
    
    Dropping partition 'nrf_modem_lib_trace' since its size is 0.
    Dropping partition 'nonsecure_storage' since it is empty.
    -- Configuring done
    -- Generating done
    -- Build files have been written to: C:/ncs/v2.4.0/nrf/samples/nrf9160/http_update/application_update/build
    -- west build: building application
    [1/323] Generating include/generated/version.h
    -- Zephyr version: 3.3.99 (C:/ncs/v2.4.0/zephyr), build: v3.3.99-ncs1
    [1/184] Generating include/generated/version.h
    -- Zephyr version: 3.3.99 (C:/ncs/v2.4.0/zephyr), build: v3.3.99-ncs1
    [174/184] Linking C executable zephyr\zephyr_pre0.elf
    
    [178/184] Linking C executable zephyr\zephyr_pre1.elf
    
    [184/184] Linking C executable zephyr\zephyr.elf
    Memory region         Used Size  Region Size  %age Used
               FLASH:       28598 B        48 KB     58.18%
                 RAM:       16368 B        32 KB     49.95%
            IDT_LIST:          0 GB         2 KB      0.00%
    [7/323] Generating ../../tfm/CMakeCache.txt
    -- Found Git: C:/ncs/toolchains/31f4403e35/mingw64/bin/git.exe (found version "2.37.3.windows.1") 
    -- The C compiler identification is GNU 12.2.0
    -- The ASM compiler identification is GNU
    -- Found assembler: C:/ncs/toolchains/31f4403e35/opt/zephyr-sdk/arm-zephyr-eabi/bin/arm-zephyr-eabi-gcc.exe
    -- Found Python3: C:/ncs/toolchains/31f4403e35/opt/bin/python.exe (found version "3.8.2") found components: Interpreter 
    -- Found Python3: C:/ncs/toolchains/31f4403e35/opt/bin/python.exe (found suitable exact version "3.8.2") found components: Interpreter 
    -- Cache files will be written to: C:/ncs/v2.4.0/zephyr/.cache
    -- Configuring done
    -- Generating done
    -- Build files have been written to: C:/ncs/v2.4.0/nrf/samples/nrf9160/http_update/application_update/build/tfm
    [22/323] Performing install step for 'tfm'
    -- Install configuration: "MinSizeRel"
    [304/323] Linking C executable zephyr\zephyr_pre0.elf
    
    [308/323] Linking C executable zephyr\zephyr_pre1.elf
    
    [314/323] Linking C executable zephyr\zephyr.elf
    Memory region         Used Size  Region Size  %age Used
               FLASH:      127340 B       448 KB     27.76%
                 RAM:       38408 B     211608 B     18.15%
            IDT_LIST:          0 GB         2 KB      0.00%
    [318/323] Generating ../../zephyr/app_update.bin
    image.py: sign the payload
    [319/323] Generating ../../zephyr/app_signed.hex
    image.py: sign the payload
    [321/323] Generating ../../zephyr/app_test_update.hex
    image.py: sign the payload
    [323/323] Generating zephyr/merged.hex
     *  Terminal will be reused by tasks, press any key to close it. 
    
     *  Executing task: nRF Connect: Flash: application_update/build (active) 
    
    Flashing build to remote
    C:\Windows\system32\cmd.exe /d /s /c "west flash -d c:\ncs\v2.4.0\nrf\samples\nrf9160\http_update\application_update\build --dev-id 602005822"
    
    -- west flash: rebuilding
    [0/32] Performing build step for 'tfm'
    ninja: no work to do.
    [1/24] Performing build step for 'mcuboot_subimage'
    ninja: no work to do.
    [3/22] Building C object CMakeFiles/app.dir/src/main.c.obj
    [4/22] Linking C static library app\libapp.a
    [5/22] Linking C executable zephyr\zephyr_pre0.elf
    
    [6/22] Generating dev_handles.c
    FAILED: zephyr/dev_handles.c 
    cmd.exe /C "cd /D C:\ncs\v2.4.0\nrf\samples\nrf9160\http_update\application_update\build\zephyr && C:\ncs\toolchains\31f4403e35\opt\bin\python.exe C:/ncs/v2.4.0/zephyr/scripts/build/gen_handles.py --output-source dev_handles.c --output-graphviz dev_graph.dot --num-dynamic-devices 0 --kernel C:/ncs/v2.4.0/nrf/samples/nrf9160/http_update/application_update/build/zephyr/zephyr_pre0.elf --zephyr-base C:/ncs/v2.4.0/zephyr --start-symbol __device_start"
    Traceback (most recent call last):
      File "C:/ncs/v2.4.0/zephyr/scripts/build/gen_handles.py", line 34, in <module>
        from elf_parser import ZephyrElf
      File "C:\ncs\v2.4.0\zephyr\scripts\build\elf_parser.py", line 12, in <module>
        from elftools.elf.elffile import ELFFile
      File "C:\ncs\toolchains\b620d30767\opt\bin\Lib\site-packages\elftools\elf\elffile.py", line 41, in <module>
        from ..dwarf.dwarfinfo import DWARFInfo, DebugSectionDescriptor, DwarfConfig
      File "C:\ncs\toolchains\b620d30767\opt\bin\Lib\site-packages\elftools\dwarf\dwarfinfo.py", line 17, in <module>
        from .structs import DWARFStructs
      File "C:\ncs\toolchains\b620d30767\opt\bin\Lib\site-packages\elftools\dwarf\structs.py", line 10, in <module>
        from logging.config import valid_ident
      File "<frozen zipimport>", line 259, in load_module
      File "logging\config.py", line 30, in <module>
      File "<frozen zipimport>", line 259, in load_module
      File "logging\handlers.py", line 26, in <module>
      File "<frozen zipimport>", line 259, in load_module
      File "socket.py", line 49, in <module>
    ImportError: Module use of python312.dll conflicts with this version of Python.
    ninja: build stopped: subcommand failed.
    FATAL ERROR: re-build in c:\ncs\v2.4.0\nrf\samples\nrf9160\http_update\application_update\build failed
    
     *  The terminal process terminated with exit code: 1. 
     *  Terminal will be reused by tasks, press any key to close it. 
    
     *  Executing task: nRF Connect: Flash: application_update/build (active) 
    
    Flashing build to remote
    C:\Windows\system32\cmd.exe /d /s /c "west flash -d c:\ncs\v2.4.0\nrf\samples\nrf9160\http_update\application_update\build --dev-id 602005822"
    
    -- west flash: rebuilding
    [0/30] Performing build step for 'tfm'
    ninja: no work to do.
    [1/21] Performing build step for 'mcuboot_subimage'
    ninja: no work to do.
    [3/19] Generating dev_handles.c
    FAILED: zephyr/dev_handles.c 
    cmd.exe /C "cd /D C:\ncs\v2.4.0\nrf\samples\nrf9160\http_update\application_update\build\zephyr && C:\ncs\toolchains\31f4403e35\opt\bin\python.exe C:/ncs/v2.4.0/zephyr/scripts/build/gen_handles.py --output-source dev_handles.c --output-graphviz dev_graph.dot --num-dynamic-devices 0 --kernel C:/ncs/v2.4.0/nrf/samples/nrf9160/http_update/application_update/build/zephyr/zephyr_pre0.elf --zephyr-base C:/ncs/v2.4.0/zephyr --start-symbol __device_start"
    Traceback (most recent call last):
      File "C:/ncs/v2.4.0/zephyr/scripts/build/gen_handles.py", line 34, in <module>
        from elf_parser import ZephyrElf
      File "C:\ncs\v2.4.0\zephyr\scripts\build\elf_parser.py", line 12, in <module>
        from elftools.elf.elffile import ELFFile
      File "C:\ncs\toolchains\b620d30767\opt\bin\Lib\site-packages\elftools\elf\elffile.py", line 41, in <module>
        from ..dwarf.dwarfinfo import DWARFInfo, DebugSectionDescriptor, DwarfConfig
      File "C:\ncs\toolchains\b620d30767\opt\bin\Lib\site-packages\elftools\dwarf\dwarfinfo.py", line 17, in <module>
        from .structs import DWARFStructs
      File "C:\ncs\toolchains\b620d30767\opt\bin\Lib\site-packages\elftools\dwarf\structs.py", line 10, in <module>
        from logging.config import valid_ident
      File "<frozen zipimport>", line 259, in load_module
      File "logging\config.py", line 30, in <module>
      File "<frozen zipimport>", line 259, in load_module
      File "logging\handlers.py", line 26, in <module>
      File "<frozen zipimport>", line 259, in load_module
      File "socket.py", line 49, in <module>
    ImportError: Module use of python312.dll conflicts with this version of Python.
    ninja: build stopped: subcommand failed.
    FATAL ERROR: re-build in c:\ncs\v2.4.0\nrf\samples\nrf9160\http_update\application_update\build failed
    
     *  The terminal process terminated with exit code: 1. 
     *  Terminal will be reused by tasks, press any key to close it.

    PS C:\ncs\v2.4.0\nrf\samples\nrf9160\http_update\application_update> C:\Windows\system32\cmd.exe /d /s /c "west flash -d c:\ncs\v2.4.0\nrf\samples\nrf9160\http_update\application_update\build --dev-id [dev id]"
    -- west flash: rebuilding
    [0/30] Performing build step for 'tfm'
    ninja: no work to do.
    [1/21] Performing build step for 'mcuboot_subimage'
    ninja: no work to do.
    [5/19] Linking C executable zephyr\zephyr_pre1.elf
    
    [10/19] Linking C executable zephyr\zephyr.elf
    Memory region         Used Size  Region Size  %age Used
               FLASH:      127340 B       448 KB     27.76%
                 RAM:       38408 B     211608 B     18.15%
            IDT_LIST:          0 GB         2 KB      0.00%
    [14/19] Generating ../../zephyr/app_update.bin
    image.py: sign the payload
    [15/19] Generating ../../zephyr/app_signed.hex
    image.py: sign the payload
    [17/19] Generating ../../zephyr/app_test_update.hex
    image.py: sign the payload
    [19/19] Generating zephyr/merged.hex
    -- west flash: using runner nrfjprog
    -- runners.nrfjprog: Flashing file: c:\ncs\v2.4.0\nrf\samples\nrf9160\http_update\application_update\build\zephyr\merged.hex
    [ #################### ]   4.955s | Erase file - Done erasing
    [ #################### ]   1.185s | Program file - Done programming
    [ #################### ]   1.186s | Verify file - Done verifying
    Applying pin reset.
    -- runners.nrfjprog: Board with serial number [dev id] flashed successfully.
    PS C:\ncs\v2.4.0\nrf\samples\nrf9160\http_update\application_update> 

Reply
  • Hi.

    I have an older version installed (you can also check my previous nrf-connect-support file for all versions, 7.13.0, device 2.8.8 and sdk-manager 1.2.0).

    so I upgraded with nrfutil self-upgrade (to 8.0.0), followed by nrfutil upgrade device. Closed all VSCode windows and opened the new window. Same error when using the flash command. All new related versions are listed in the new support information.

    Next I tried to run from command line:

    If I open a new terminal with the command "nRF Connect: Create Shell Terminal", and paste the exact same command that fails when pressing the flash button, the build and flash works. Please see attached files for all output.

    // 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",
        "osKernel": "10.0.19045",
        "vscode": "1.100.2",
        "electron": "34.5.1",
        "node": "v20.19.0"
      },
      "system": {
        "date": "2025-06-04T14:17:58.128Z",
        "vscodeRoot": "c:\\Program Files\\Microsoft VS Code\\resources\\app",
        "nrfConnectForDesktopInstalled": true,
        "vscodeUptime": "00:15:42",
        "osUptime": "463:17:34",
        "cpu": "Intel(R) Core(TM) i7-10700T CPU @ 2.00GHz"
      },
      "workspace": {
        "name": "application_update",
        "workspaceFile": null,
        "folders": [
          "c:\\ncs\\v2.4.0\\nrf\\samples\\nrf9160\\http_update\\application_update"
        ]
      },
      "sdks": [
        {
          "version": "v2.9.0",
          "path": "c:\\ncs\\v2.9.0"
        },
        {
          "version": "v2.7.0",
          "path": "c:\\ncs\\v2.7.0"
        },
        {
          "version": "v2.6.1",
          "path": "c:\\ncs\\v2.6.1"
        },
        {
          "version": "v2.5.1",
          "path": "c:\\ncs\\v2.5.1"
        },
        {
          "version": "v2.4.2",
          "path": "c:\\project\\customer"
        },
        {
          "version": "v2.4.0",
          "path": "c:\\ncs\\v2.4.0"
        },
        {
          "version": "v2.3.0",
          "path": "c:\\ncs\\v2.3.0"
        },
        {
          "version": "v2.2.0",
          "path": "c:\\ncs\\v2.2.0"
        },
        {
          "version": "v1.9.1",
          "path": "c:\\ncs\\v1.9.1"
        },
        {
          "version": "v1.5.1",
          "path": "c:\\ncs\\v1.5.1"
        }
      ],
      "activeBuild": "c:\\ncs\\v2.4.0\\nrf\\samples\\nrf9160\\http_update\\application_update\\build",
      "apps": [
        {
          "workspace": "c:\\ncs\\v2.4.0\\nrf\\samples\\nrf9160\\http_update\\application_update",
          "uri": "c:\\ncs\\v2.4.0\\nrf\\samples\\nrf9160\\http_update\\application_update",
          "buildConfigurations": [
            {
              "id": "c:\\ncs\\v2.4.0\\nrf\\samples\\nrf9160\\http_update\\application_update\\build",
              "name": "build",
              "boardId": "nrf9160dk_nrf9160_ns",
              "type": "Zephyr",
              "isChild": false,
              "isStale": false,
              "taskBindings": {
                "build": [],
                "pristineBuild": [],
                "flash": [],
                "eraseAndFlash": []
              },
              "sdk": "c:\\ncs\\v2.4.0",
              "toolchain": "nRF Connect SDK Toolchain v2.4.0"
            }
          ]
        }
      ],
      "toolchains": [
        {
          "version": "2.9.0",
          "path": "c:\\ncs\\toolchains\\b620d30767"
        },
        {
          "version": "2.7.0",
          "path": "c:\\ncs\\toolchains\\ce3b5ff664"
        },
        {
          "version": "2.6.1",
          "path": "c:\\ncs\\toolchains\\cf2149caf2"
        },
        {
          "version": "2.5.1",
          "path": "c:\\ncs\\toolchains\\c57af46cb7"
        },
        {
          "version": "2.4.0",
          "path": "c:\\ncs\\toolchains\\31f4403e35"
        },
        {
          "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"
        }
      ],
      "connectedDevices": [
        {
          "serialNumber": "000602005822"
        }
      ],
      "tools": {
        "C:\\ncs\\toolchains\\31f4403e35\\opt\\zephyr-sdk\\arm-zephyr-eabi\\bin\\arm-zephyr-eabi-gcc.exe": "0.16.0",
        "C:\\Program Files\\SEGGER\\JLink_V840\\JLink.exe": "8.40",
        "C:\\Program Files\\Nordic Semiconductor\\nrf-command-line-tools\\bin\\nrfjprog.exe": "10.24.2",
        "C:\\ncs\\nrfutil\\nrfutil.exe": "8.0.0",
        "C:\\ncs\\toolchains\\31f4403e35\\cmake": "3.20.5",
        "C:\\ncs\\toolchains\\31f4403e35\\opt\\bin\\Scripts\\west.exe": "1.1.0",
        "C:\\ncs\\toolchains\\31f4403e35\\opt\\bin\\python.exe": "3.8.2",
        "C:\\ncs\\toolchains\\31f4403e35\\opt\\bin\\ninja.exe": "1.9.0",
        "C:\\ncs\\toolchains\\31f4403e35\\opt\\bin\\gperf.exe": "3.1",
        "C:\\ncs\\toolchains\\31f4403e35\\opt\\bin\\dtc.exe": "1.4.7",
        "C:\\ncs\\toolchains\\31f4403e35\\opt\\bin\\gn.exe": "2105",
        "C:\\ncs\\toolchains\\31f4403e35\\mingw64\\bin\\git.exe": "2.37.3.windows.1",
        "arm-gdbPath": "c:\\ncs\\toolchains\\31f4403e35\\opt\\zephyr-sdk\\arm-zephyr-eabi\\bin\\arm-zephyr-eabi-gdb.exe",
        "riscv-gdbPath": "not found"
      },
      "nrfutil": {
        "nrfutil-device": {
          "version": "2.8.8",
          "binPath": "c:\\Users\\ErlendEliasIsachsen\\.vscode\\extensions\\nordic-semiconductor.nrf-connect-2025.5.92-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_V8.18",
              "versionFormat": "string"
            },
            "name": "JlinkARM",
            "version": "JLink_V8.40",
            "versionFormat": "string"
          }
        },
        "nrfutil-sdk-manager": {
          "version": "1.3.0",
          "binPath": "c:\\Users\\ErlendEliasIsachsen\\.vscode\\extensions\\nordic-semiconductor.nrf-connect-2025.5.92-win32-x64\\platform\\nrfutil\\bin\\nrfutil-sdk-manager"
        }
      },
      "environment": {
        "westEnv": {
          "HOME": "C:\\SPB_Data",
          "HOMEDRIVE": "C:",
          "HOMEPATH": "\\Users\\ErlendEliasIsachsen",
          "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\\ErlendEliasIsachsen\\.vscode\\extensions\\nordic-semiconductor.nrf-connect-2025.5.92-win32-x64\\platform\\nrfutil\\lib\\nrfutil-sdk-manager;C:\\Program Files (x86)\\NVIDIA Corporation\\PhysX\\Common;C:\\Windows\\system32;C:\\Windows;C:\\Windows\\System32\\Wbem;C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\;C:\\Windows\\System32\\OpenSSH\\;C:\\Program Files\\Microchip\\xc8\\v2.31\\bin;C:\\Program Files\\PuTTY\\;C:\\Program Files\\WinMerge;C:\\Program Files\\dotnet\\;C:\\Program Files\\Wolfram Research\\WolframScript\\;C:\\Program Files (x86)\\Windows Kits\\8.1\\Windows Performance Toolkit\\;C:\\Program Files\\Git\\cmd;C:\\Program Files\\Microsoft VS Code\\bin;C:\\Program Files\\LLVM\\bin;C:\\Program Files\\TortoiseSVN\\bin;C:\\Program Files\\otii;C:\\Program Files\\doxygen\\bin;C:\\Program Files\\Graphviz\\bin;C:\\Program Files\\Nordic Semiconductor\\nrf-command-line-tools\\bin\\;C:\\Program Files\\CMake\\bin;C:\\ncs\\nrfutil;C:\\gnuarmemb\\9_2019-q4-major\\bin;C:\\Users\\ErlendEliasIsachsen\\AppData\\Local\\Microsoft\\WindowsApps;C:\\Users\\ErlendEliasIsachsen\\.dotnet\\tools;C:\\Users\\ErlendEliasIsachsen\\AppData\\Local\\GitHubDesktop\\bin;C:\\Users\\ErlendEliasIsachsen\\AppData\\Local\\Programs\\MiKTeX\\miktex\\bin\\x64\\;",
          "ZEPHYR_BASE": "c:\\ncs\\v2.4.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:\\SPB_Data",
          "HOMEDRIVE": "C:",
          "HOMEPATH": "\\Users\\ErlendEliasIsachsen",
          "Path": "C:\\Program Files (x86)\\NVIDIA Corporation\\PhysX\\Common;C:\\Windows\\system32;C:\\Windows;C:\\Windows\\System32\\Wbem;C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\;C:\\Windows\\System32\\OpenSSH\\;C:\\Program Files\\Microchip\\xc8\\v2.31\\bin;C:\\Program Files\\PuTTY\\;C:\\Program Files\\WinMerge;C:\\Program Files\\dotnet\\;C:\\Program Files\\Wolfram Research\\WolframScript\\;C:\\Program Files (x86)\\Windows Kits\\8.1\\Windows Performance Toolkit\\;C:\\Program Files\\Git\\cmd;C:\\Program Files\\Microsoft VS Code\\bin;C:\\Program Files\\LLVM\\bin;C:\\Program Files\\TortoiseSVN\\bin;C:\\Program Files\\otii;C:\\Program Files\\doxygen\\bin;C:\\Program Files\\Graphviz\\bin;C:\\Program Files\\Nordic Semiconductor\\nrf-command-line-tools\\bin\\;C:\\Program Files\\CMake\\bin;C:\\ncs\\nrfutil;C:\\gnuarmemb\\9_2019-q4-major\\bin;C:\\Users\\ErlendEliasIsachsen\\AppData\\Local\\Microsoft\\WindowsApps;C:\\Users\\ErlendEliasIsachsen\\.dotnet\\tools;C:\\Program Files\\TortoiseSVN\\bin;C:\\Users\\ErlendEliasIsachsen\\AppData\\Local\\GitHubDesktop\\bin;C:\\Users\\ErlendEliasIsachsen\\AppData\\Local\\Programs\\MiKTeX\\miktex\\bin\\x64\\;",
          "PATH": "C:\\Program Files (x86)\\NVIDIA Corporation\\PhysX\\Common;C:\\Windows\\system32;C:\\Windows;C:\\Windows\\System32\\Wbem;C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\;C:\\Windows\\System32\\OpenSSH\\;C:\\Program Files\\Microchip\\xc8\\v2.31\\bin;C:\\Program Files\\PuTTY\\;C:\\Program Files\\WinMerge;C:\\Program Files\\dotnet\\;C:\\Program Files\\Wolfram Research\\WolframScript\\;C:\\Program Files (x86)\\Windows Kits\\8.1\\Windows Performance Toolkit\\;C:\\Program Files\\Git\\cmd;C:\\Program Files\\Microsoft VS Code\\bin;C:\\Program Files\\LLVM\\bin;C:\\Program Files\\TortoiseSVN\\bin;C:\\Program Files\\otii;C:\\Program Files\\doxygen\\bin;C:\\Program Files\\Graphviz\\bin;C:\\Program Files\\Nordic Semiconductor\\nrf-command-line-tools\\bin\\;C:\\Program Files\\CMake\\bin;C:\\ncs\\nrfutil;C:\\gnuarmemb\\9_2019-q4-major\\bin;C:\\Users\\ErlendEliasIsachsen\\AppData\\Local\\Microsoft\\WindowsApps;C:\\Users\\ErlendEliasIsachsen\\.dotnet\\tools;C:\\Program Files\\TortoiseSVN\\bin;C:\\Users\\ErlendEliasIsachsen\\AppData\\Local\\GitHubDesktop\\bin;C:\\Users\\ErlendEliasIsachsen\\AppData\\Local\\Programs\\MiKTeX\\miktex\\bin\\x64\\;"
        }
      },
      "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"
        },
        "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": "2025.5.92",
            "path": "c:\\Users\\ErlendEliasIsachsen\\.vscode\\extensions\\nordic-semiconductor.nrf-connect-2025.5.92-win32-x64",
            "isActive": true
          },
          "nordic-semiconductor.nrf-terminal": {
            "version": "2024.9.14",
            "path": "c:\\Users\\ErlendEliasIsachsen\\.vscode\\extensions\\nordic-semiconductor.nrf-terminal-2024.9.14",
            "isActive": true
          },
          "nordic-semiconductor.nrf-devicetree": {
            "version": "2025.4.22",
            "path": "c:\\Users\\ErlendEliasIsachsen\\.vscode\\extensions\\nordic-semiconductor.nrf-devicetree-2025.4.22",
            "isActive": true
          },
          "nordic-semiconductor.nrf-kconfig": {
            "version": "2025.4.26",
            "path": "c:\\Users\\ErlendEliasIsachsen\\.vscode\\extensions\\nordic-semiconductor.nrf-kconfig-2025.4.26",
            "isActive": true
          }
        },
        "external": {
          "marus25.cortex-debug": "1.12.1",
          "ms-vscode.cpptools": "1.26.1",
          "ms-vscode.js-debug": "1.100.1",
          "ms-vscode.js-debug-companion": "1.1.3",
          "ms-vscode.vscode-js-profile-table": "1.0.10",
          "bbenoist.Doxygen": "1.0.0",
          "cschlosser.doxdocgen": "1.4.0",
          "DotJoshJohnson.xml": "2.5.1",
          "GitHub.copilot": "1.326.0",
          "GitHub.copilot-chat": "0.27.3",
          "joaompinto.vscode-graphviz": "0.0.9",
          "josetr.cmake-language-support-vscode": "0.0.9",
          "KevinRose.vsc-python-indent": "1.21.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",
          "ms-dotnettools.vscode-dotnet-runtime": "2.3.5",
          "ms-python.debugpy": "2025.8.0",
          "ms-python.python": "2025.6.1",
          "ms-python.vscode-pylance": "2025.5.1",
          "ms-vscode-remote.remote-containers": "0.413.0",
          "ms-vscode-remote.remote-ssh": "0.120.0",
          "ms-vscode-remote.remote-ssh-edit": "0.87.0",
          "ms-vscode-remote.remote-wsl": "0.99.0",
          "ms-vscode.cpptools-extension-pack": "1.3.1",
          "ms-vscode.cpptools-themes": "2.0.0",
          "ms-vscode.remote-explorer": "0.5.0",
          "redhat.vscode-xml": "0.29.0",
          "tintinweb.graphviz-interactive-preview": "0.3.5",
          "tomoki1207.pdf": "1.2.2",
          "trond-snekvik.gnu-mapfiles": "1.1.0",
          "xaver.clang-format": "1.9.0"
        }
      }
    }
    
    
    *  Executing task: nRF Connect: Generate config nrf9160dk_nrf9160_ns for c:\ncs\v2.4.0\nrf\samples\nrf9160\http_update\application_update 
    
    Building application_update
    C:\Windows\system32\cmd.exe /d /s /c "west build --build-dir c:/ncs/v2.4.0/nrf/samples/nrf9160/http_update/application_update/build c:/ncs/v2.4.0/nrf/samples/nrf9160/http_update/application_update --pristine --board nrf9160dk_nrf9160_ns -- -DNCS_TOOLCHAIN_VERSION=NONE"
    
    -- west build: generating a build system
    Loading Zephyr default modules (Zephyr base).
    -- Application: C:/ncs/v2.4.0/nrf/samples/nrf9160/http_update/application_update
    -- CMake version: 3.20.5
    -- Found Python3: C:/ncs/toolchains/31f4403e35/opt/bin/python.exe (found suitable exact version "3.8.2") found components: Interpreter 
    -- Cache files will be written to: C:/ncs/v2.4.0/zephyr/.cache
    -- Zephyr version: 3.3.99 (C:/ncs/v2.4.0/zephyr)
    -- Found west (found suitable version "1.1.0", minimum required is "0.7.1")
    -- Board: nrf9160dk_nrf9160_ns, Revision: 0.7.0
    -- Found host-tools: zephyr 0.16.0 (C:/ncs/toolchains/31f4403e35/opt/zephyr-sdk)
    -- Found toolchain: zephyr 0.16.0 (C:/ncs/toolchains/31f4403e35/opt/zephyr-sdk)
    -- Found Dtc: C:/ncs/toolchains/31f4403e35/opt/bin/dtc.exe (found suitable version "1.4.7", minimum required is "1.4.6") 
    -- Found BOARD.dts: C:/ncs/v2.4.0/zephyr/boards/arm/nrf9160dk_nrf9160/nrf9160dk_nrf9160_ns.dts
    -- Generated zephyr.dts: C:/ncs/v2.4.0/nrf/samples/nrf9160/http_update/application_update/build/zephyr/zephyr.dts
    -- Generated devicetree_generated.h: C:/ncs/v2.4.0/nrf/samples/nrf9160/http_update/application_update/build/zephyr/include/generated/devicetree_generated.h
    -- Including generated dts.cmake file: C:/ncs/v2.4.0/nrf/samples/nrf9160/http_update/application_update/build/zephyr/dts.cmake
    Parsing C:/ncs/v2.4.0/nrf/samples/nrf9160/http_update/application_update/Kconfig
    Loaded configuration 'C:/ncs/v2.4.0/zephyr/boards/arm/nrf9160dk_nrf9160/nrf9160dk_nrf9160_ns_defconfig'
    Merged configuration 'C:/ncs/v2.4.0/nrf/samples/nrf9160/http_update/application_update/prj.conf'
    Configuration saved to 'C:/ncs/v2.4.0/nrf/samples/nrf9160/http_update/application_update/build/zephyr/.config'
    Kconfig header saved to 'C:/ncs/v2.4.0/nrf/samples/nrf9160/http_update/application_update/build/zephyr/include/generated/autoconf.h'
    -- Found GnuLd: c:/ncs/toolchains/31f4403e35/opt/zephyr-sdk/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/12.2.0/../../../../arm-zephyr-eabi/bin/ld.bfd.exe (found version "2.38") 
    -- The C compiler identification is GNU 12.2.0
    -- The CXX compiler identification is GNU 12.2.0
    -- The ASM compiler identification is GNU
    -- Found assembler: C:/ncs/toolchains/31f4403e35/opt/zephyr-sdk/arm-zephyr-eabi/bin/arm-zephyr-eabi-gcc.exe
    -- Found Python3: C:/ncs/toolchains/31f4403e35/opt/bin/python.exe (found version "3.8.2") found components: Interpreter 
    Changed board to secure nrf9160dk_nrf9160 (NOT NS)
    
    === child image mcuboot -  begin ===
    loading initial cache file C:/ncs/v2.4.0/nrf/samples/nrf9160/http_update/application_update/build/mcuboot/child_image_preload.cmake
    CMake Warning (dev) at C:/ncs/v2.4.0/nrf/samples/nrf9160/http_update/application_update/build/mcuboot/child_image_preload.cmake:8 (set):
      Syntax error in cmake code at
    
        C:/ncs/v2.4.0/nrf/samples/nrf9160/http_update/application_update/build/mcuboot/child_image_preload.cmake:8
    
      when parsing string
    
        C:\ncs\toolchains\31f4403e35\opt\bin\python.exe
    
      Invalid escape sequence \3
    
      Policy CMP0010 is not set: Bad variable reference syntax is an error.  Run
      "cmake --help-policy CMP0010" for policy details.  Use the cmake_policy
      command to set the policy and suppress this warning.
    This warning is for project developers.  Use -Wno-dev to suppress it.
    
    Loading Zephyr default modules (Zephyr base).
    -- Application: C:/ncs/v2.4.0/bootloader/mcuboot/boot/zephyr
    -- CMake version: 3.20.5
    -- Found Python3: C:/ncs/toolchains/31f4403e35/opt/bin/python.exe (found suitable exact version "3.8.2") found components: Interpreter 
    -- Cache files will be written to: C:/ncs/v2.4.0/zephyr/.cache
    -- Zephyr version: 3.3.99 (C:/ncs/v2.4.0/zephyr)
    -- Found west (found suitable version "1.1.0", minimum required is "0.7.1")
    -- Board: nrf9160dk_nrf9160, Revision: 0.7.0
    -- Found host-tools: zephyr 0.16.0 (C:/ncs/toolchains/31f4403e35/opt/zephyr-sdk)
    -- Found toolchain: zephyr 0.16.0 (C:/ncs/toolchains/31f4403e35/opt/zephyr-sdk)
    -- Found Dtc: C:/ncs/toolchains/31f4403e35/opt/bin/dtc.exe (found suitable version "1.4.7", minimum required is "1.4.6") 
    -- Found BOARD.dts: C:/ncs/v2.4.0/zephyr/boards/arm/nrf9160dk_nrf9160/nrf9160dk_nrf9160.dts
    -- Found devicetree overlay: C:/ncs/v2.4.0/bootloader/mcuboot/boot/zephyr/app.overlay
    -- Generated zephyr.dts: C:/ncs/v2.4.0/nrf/samples/nrf9160/http_update/application_update/build/mcuboot/zephyr/zephyr.dts
    -- Generated devicetree_generated.h: C:/ncs/v2.4.0/nrf/samples/nrf9160/http_update/application_update/build/mcuboot/zephyr/include/generated/devicetree_generated.h
    -- Including generated dts.cmake file: C:/ncs/v2.4.0/nrf/samples/nrf9160/http_update/application_update/build/mcuboot/zephyr/dts.cmake
    Parsing C:/ncs/v2.4.0/bootloader/mcuboot/boot/zephyr/Kconfig
    Loaded configuration 'C:/ncs/v2.4.0/zephyr/boards/arm/nrf9160dk_nrf9160/nrf9160dk_nrf9160_defconfig'
    Merged configuration 'C:/ncs/v2.4.0/bootloader/mcuboot/boot/zephyr/prj.conf'
    Merged configuration 'C:/ncs/v2.4.0/nrf/modules/mcuboot/tfm.conf'
    Merged configuration 'C:/ncs/v2.4.0/nrf/modules/mcuboot/fih_low_enable.conf'
    Merged configuration 'C:/ncs/v2.4.0/nrf/subsys/partition_manager/partition_manager_enabled.conf'
    Merged configuration 'C:/ncs/v2.4.0/nrf/samples/nrf9160/http_update/application_update/build/mcuboot/zephyr/misc/generated/extra_kconfig_options.conf'
    Configuration saved to 'C:/ncs/v2.4.0/nrf/samples/nrf9160/http_update/application_update/build/mcuboot/zephyr/.config'
    Kconfig header saved to 'C:/ncs/v2.4.0/nrf/samples/nrf9160/http_update/application_update/build/mcuboot/zephyr/include/generated/autoconf.h'
    -- Found GnuLd: c:/ncs/toolchains/31f4403e35/opt/zephyr-sdk/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/12.2.0/../../../../arm-zephyr-eabi/bin/ld.bfd.exe (found version "2.38") 
    -- The C compiler identification is GNU 12.2.0
    -- The CXX compiler identification is GNU 12.2.0
    -- The ASM compiler identification is GNU
    -- Found assembler: C:/ncs/toolchains/31f4403e35/opt/zephyr-sdk/arm-zephyr-eabi/bin/arm-zephyr-eabi-gcc.exe
    CMake Warning at C:/ncs/v2.4.0/zephyr/CMakeLists.txt:838 (message):
      No SOURCES given to Zephyr library: lib__libc__common
    
      Excluding target from build.
    
    
    MCUBoot bootloader key file: C:/ncs/v2.4.0/bootloader/mcuboot/root-ec-p256.pem
    -- Configuring done
    -- Generating done
    -- Build files have been written to: C:/ncs/v2.4.0/nrf/samples/nrf9160/http_update/application_update/build/mcuboot
    === child image mcuboot -  end ===
    
    CMake Warning at C:/ncs/v2.4.0/nrf/modules/mcuboot/CMakeLists.txt:310 (message):
      
    
              ---------------------------------------------------------
              --- WARNING: Using default MCUBoot key, it should not ---
              --- be used for production.                           ---
              ---------------------------------------------------------
              
    
    
    
    CMake Warning at C:/ncs/v2.4.0/zephyr/CMakeLists.txt:838 (message):
      No SOURCES given to Zephyr library: lib__libc__common
    
      Excluding target from build.
    
    
    CMake Warning at C:/ncs/v2.4.0/zephyr/CMakeLists.txt:1864 (message):
      __ASSERT() statements are globally ENABLED
    
    
    Dropping partition 'nrf_modem_lib_trace' since its size is 0.
    Dropping partition 'nonsecure_storage' since it is empty.
    -- Configuring done
    -- Generating done
    -- Build files have been written to: C:/ncs/v2.4.0/nrf/samples/nrf9160/http_update/application_update/build
    -- west build: building application
    [1/323] Generating include/generated/version.h
    -- Zephyr version: 3.3.99 (C:/ncs/v2.4.0/zephyr), build: v3.3.99-ncs1
    [1/184] Generating include/generated/version.h
    -- Zephyr version: 3.3.99 (C:/ncs/v2.4.0/zephyr), build: v3.3.99-ncs1
    [174/184] Linking C executable zephyr\zephyr_pre0.elf
    
    [178/184] Linking C executable zephyr\zephyr_pre1.elf
    
    [184/184] Linking C executable zephyr\zephyr.elf
    Memory region         Used Size  Region Size  %age Used
               FLASH:       28598 B        48 KB     58.18%
                 RAM:       16368 B        32 KB     49.95%
            IDT_LIST:          0 GB         2 KB      0.00%
    [7/323] Generating ../../tfm/CMakeCache.txt
    -- Found Git: C:/ncs/toolchains/31f4403e35/mingw64/bin/git.exe (found version "2.37.3.windows.1") 
    -- The C compiler identification is GNU 12.2.0
    -- The ASM compiler identification is GNU
    -- Found assembler: C:/ncs/toolchains/31f4403e35/opt/zephyr-sdk/arm-zephyr-eabi/bin/arm-zephyr-eabi-gcc.exe
    -- Found Python3: C:/ncs/toolchains/31f4403e35/opt/bin/python.exe (found version "3.8.2") found components: Interpreter 
    -- Found Python3: C:/ncs/toolchains/31f4403e35/opt/bin/python.exe (found suitable exact version "3.8.2") found components: Interpreter 
    -- Cache files will be written to: C:/ncs/v2.4.0/zephyr/.cache
    -- Configuring done
    -- Generating done
    -- Build files have been written to: C:/ncs/v2.4.0/nrf/samples/nrf9160/http_update/application_update/build/tfm
    [22/323] Performing install step for 'tfm'
    -- Install configuration: "MinSizeRel"
    [304/323] Linking C executable zephyr\zephyr_pre0.elf
    
    [308/323] Linking C executable zephyr\zephyr_pre1.elf
    
    [314/323] Linking C executable zephyr\zephyr.elf
    Memory region         Used Size  Region Size  %age Used
               FLASH:      127340 B       448 KB     27.76%
                 RAM:       38408 B     211608 B     18.15%
            IDT_LIST:          0 GB         2 KB      0.00%
    [318/323] Generating ../../zephyr/app_update.bin
    image.py: sign the payload
    [319/323] Generating ../../zephyr/app_signed.hex
    image.py: sign the payload
    [321/323] Generating ../../zephyr/app_test_update.hex
    image.py: sign the payload
    [323/323] Generating zephyr/merged.hex
     *  Terminal will be reused by tasks, press any key to close it. 
    
     *  Executing task: nRF Connect: Flash: application_update/build (active) 
    
    Flashing build to remote
    C:\Windows\system32\cmd.exe /d /s /c "west flash -d c:\ncs\v2.4.0\nrf\samples\nrf9160\http_update\application_update\build --dev-id 602005822"
    
    -- west flash: rebuilding
    [0/32] Performing build step for 'tfm'
    ninja: no work to do.
    [1/24] Performing build step for 'mcuboot_subimage'
    ninja: no work to do.
    [3/22] Building C object CMakeFiles/app.dir/src/main.c.obj
    [4/22] Linking C static library app\libapp.a
    [5/22] Linking C executable zephyr\zephyr_pre0.elf
    
    [6/22] Generating dev_handles.c
    FAILED: zephyr/dev_handles.c 
    cmd.exe /C "cd /D C:\ncs\v2.4.0\nrf\samples\nrf9160\http_update\application_update\build\zephyr && C:\ncs\toolchains\31f4403e35\opt\bin\python.exe C:/ncs/v2.4.0/zephyr/scripts/build/gen_handles.py --output-source dev_handles.c --output-graphviz dev_graph.dot --num-dynamic-devices 0 --kernel C:/ncs/v2.4.0/nrf/samples/nrf9160/http_update/application_update/build/zephyr/zephyr_pre0.elf --zephyr-base C:/ncs/v2.4.0/zephyr --start-symbol __device_start"
    Traceback (most recent call last):
      File "C:/ncs/v2.4.0/zephyr/scripts/build/gen_handles.py", line 34, in <module>
        from elf_parser import ZephyrElf
      File "C:\ncs\v2.4.0\zephyr\scripts\build\elf_parser.py", line 12, in <module>
        from elftools.elf.elffile import ELFFile
      File "C:\ncs\toolchains\b620d30767\opt\bin\Lib\site-packages\elftools\elf\elffile.py", line 41, in <module>
        from ..dwarf.dwarfinfo import DWARFInfo, DebugSectionDescriptor, DwarfConfig
      File "C:\ncs\toolchains\b620d30767\opt\bin\Lib\site-packages\elftools\dwarf\dwarfinfo.py", line 17, in <module>
        from .structs import DWARFStructs
      File "C:\ncs\toolchains\b620d30767\opt\bin\Lib\site-packages\elftools\dwarf\structs.py", line 10, in <module>
        from logging.config import valid_ident
      File "<frozen zipimport>", line 259, in load_module
      File "logging\config.py", line 30, in <module>
      File "<frozen zipimport>", line 259, in load_module
      File "logging\handlers.py", line 26, in <module>
      File "<frozen zipimport>", line 259, in load_module
      File "socket.py", line 49, in <module>
    ImportError: Module use of python312.dll conflicts with this version of Python.
    ninja: build stopped: subcommand failed.
    FATAL ERROR: re-build in c:\ncs\v2.4.0\nrf\samples\nrf9160\http_update\application_update\build failed
    
     *  The terminal process terminated with exit code: 1. 
     *  Terminal will be reused by tasks, press any key to close it. 
    
     *  Executing task: nRF Connect: Flash: application_update/build (active) 
    
    Flashing build to remote
    C:\Windows\system32\cmd.exe /d /s /c "west flash -d c:\ncs\v2.4.0\nrf\samples\nrf9160\http_update\application_update\build --dev-id 602005822"
    
    -- west flash: rebuilding
    [0/30] Performing build step for 'tfm'
    ninja: no work to do.
    [1/21] Performing build step for 'mcuboot_subimage'
    ninja: no work to do.
    [3/19] Generating dev_handles.c
    FAILED: zephyr/dev_handles.c 
    cmd.exe /C "cd /D C:\ncs\v2.4.0\nrf\samples\nrf9160\http_update\application_update\build\zephyr && C:\ncs\toolchains\31f4403e35\opt\bin\python.exe C:/ncs/v2.4.0/zephyr/scripts/build/gen_handles.py --output-source dev_handles.c --output-graphviz dev_graph.dot --num-dynamic-devices 0 --kernel C:/ncs/v2.4.0/nrf/samples/nrf9160/http_update/application_update/build/zephyr/zephyr_pre0.elf --zephyr-base C:/ncs/v2.4.0/zephyr --start-symbol __device_start"
    Traceback (most recent call last):
      File "C:/ncs/v2.4.0/zephyr/scripts/build/gen_handles.py", line 34, in <module>
        from elf_parser import ZephyrElf
      File "C:\ncs\v2.4.0\zephyr\scripts\build\elf_parser.py", line 12, in <module>
        from elftools.elf.elffile import ELFFile
      File "C:\ncs\toolchains\b620d30767\opt\bin\Lib\site-packages\elftools\elf\elffile.py", line 41, in <module>
        from ..dwarf.dwarfinfo import DWARFInfo, DebugSectionDescriptor, DwarfConfig
      File "C:\ncs\toolchains\b620d30767\opt\bin\Lib\site-packages\elftools\dwarf\dwarfinfo.py", line 17, in <module>
        from .structs import DWARFStructs
      File "C:\ncs\toolchains\b620d30767\opt\bin\Lib\site-packages\elftools\dwarf\structs.py", line 10, in <module>
        from logging.config import valid_ident
      File "<frozen zipimport>", line 259, in load_module
      File "logging\config.py", line 30, in <module>
      File "<frozen zipimport>", line 259, in load_module
      File "logging\handlers.py", line 26, in <module>
      File "<frozen zipimport>", line 259, in load_module
      File "socket.py", line 49, in <module>
    ImportError: Module use of python312.dll conflicts with this version of Python.
    ninja: build stopped: subcommand failed.
    FATAL ERROR: re-build in c:\ncs\v2.4.0\nrf\samples\nrf9160\http_update\application_update\build failed
    
     *  The terminal process terminated with exit code: 1. 
     *  Terminal will be reused by tasks, press any key to close it.

    PS C:\ncs\v2.4.0\nrf\samples\nrf9160\http_update\application_update> C:\Windows\system32\cmd.exe /d /s /c "west flash -d c:\ncs\v2.4.0\nrf\samples\nrf9160\http_update\application_update\build --dev-id [dev id]"
    -- west flash: rebuilding
    [0/30] Performing build step for 'tfm'
    ninja: no work to do.
    [1/21] Performing build step for 'mcuboot_subimage'
    ninja: no work to do.
    [5/19] Linking C executable zephyr\zephyr_pre1.elf
    
    [10/19] Linking C executable zephyr\zephyr.elf
    Memory region         Used Size  Region Size  %age Used
               FLASH:      127340 B       448 KB     27.76%
                 RAM:       38408 B     211608 B     18.15%
            IDT_LIST:          0 GB         2 KB      0.00%
    [14/19] Generating ../../zephyr/app_update.bin
    image.py: sign the payload
    [15/19] Generating ../../zephyr/app_signed.hex
    image.py: sign the payload
    [17/19] Generating ../../zephyr/app_test_update.hex
    image.py: sign the payload
    [19/19] Generating zephyr/merged.hex
    -- west flash: using runner nrfjprog
    -- runners.nrfjprog: Flashing file: c:\ncs\v2.4.0\nrf\samples\nrf9160\http_update\application_update\build\zephyr\merged.hex
    [ #################### ]   4.955s | Erase file - Done erasing
    [ #################### ]   1.185s | Program file - Done programming
    [ #################### ]   1.186s | Verify file - Done verifying
    Applying pin reset.
    -- runners.nrfjprog: Board with serial number [dev id] flashed successfully.
    PS C:\ncs\v2.4.0\nrf\samples\nrf9160\http_update\application_update> 

Children
No Data
Related