nRF Connect SDK stucked on "Pristine Build"

Good morning,

After updating the VSCode extension "nRF Connect SDK" to version v2024.12.55, I encountered an issue where the "Build" and "Action" menus do not update after compilation. The extension repeatedly prompts me to perform a "Pristine Build," even though the code compiles successfully. However, I cannot use any of the additional functionalities. To recompile, I must create a new build configuration and start from scratch each time.

When I click the "Pristine Build" button, an error notification appears: "Unable to find SDK."

This issue persists even after downgrading to the previous version, v2024.11.75. In this version, clicking "Pristine Build" triggers a new build, but the compilation process reports that the file compile_commands.json is missing. I've checked and this file is present in the build directory, but maybe the extension search for it in the wrong location. Additionally, after compilation, the situation resets, and I must start over by creating a new configuration, as in the last version.

Even reverting further to v2024.9.31 does not resolve the issue, as the "Action" tab does not display any buttons. Versions older than this fail to function entirely.

I have tested various SDK versions (2.9, 2.6.2, 2.4.2), and the behavior remains the same. The installation of the SDK and toolchain proceeds without any issues, so I suspect the extension may be unable to read the build files due to incorrect path handling.

In the following, the generated support information for the v2024.12.55:

{
  "platform": {
    "os": "win32",
    "osVersion": "Windows 10 Pro",
    "osKernel": "10.0.19045",
    "vscode": "1.96.3",
    "electron": "32.2.6",
    "node": "v20.18.1"
  },
  "system": {
    "date": "2025-01-15T15:56:01.449Z",
    "vscodeRoot": "c:\\Users\\myUser\\AppData\\Local\\Programs\\Microsoft VS Code\\resources\\app",
    "nrfConnectForDesktopInstalled": false,
    "vscodeUptime": "00:03:58",
    "osUptime": "07:27:53",
    "cpu": "Intel(R) Core(TM) i7-1065G7 CPU @ 1.30GHz"
  },
  "workspace": {
    "name": "app",
    "workspaceFile": null,
    "folders": [
      "c:\\Users\\myUser\\Progetti\\contapassi\\sw\\app"
    ]
  },
  "sdks": [
    {
      "version": "v2.9.0",
      "path": "c:\\ncs\\v2.9.0"
    },
    {
      "version": "v2.6.2",
      "path": "c:\\ncs\\v2.6.2"
    },
    {
      "version": "v2.4.2",
      "path": "c:\\ncs\\v2.4.2"
    },
    {
      "version": "v3.1.99",
      "path": "c:\\Users\\myUser\\zephyrproject"
    }
  ],
  "activeBuild": "c:\\Users\\myUser\\Progetti\\contapassi\\sw\\app\\build",
  "apps": [
    {
      "workspace": "c:\\Users\\myUser\\Progetti\\contapassi\\sw\\app",
      "uri": "c:\\Users\\myUser\\Progetti\\contapassi\\sw\\app",
      "buildConfigurations": [
        {
          "id": "c:\\Users\\myUser\\Progetti\\contapassi\\sw\\app\\build",
          "name": "build",
          "boardId": "contapassaggi",
          "type": "Zephyr",
          "isChild": false,
          "isStale": true,
          "taskBindings": {
            "build": [],
            "pristineBuild": [],
            "flash": [],
            "eraseAndFlash": []
          },
          "toolchain": "nRF Connect SDK Toolchain v2.4.2"
        }
      ]
    }
  ],
  "toolchains": [
    {
      "version": "2.9.0",
      "path": "c:\\ncs\\toolchains\\b620d30767"
    },
    {
      "version": "2.8.0",
      "path": "c:\\ncs\\toolchains\\2d382dcd92"
    },
    {
      "version": "2.6.2",
      "path": "c:\\ncs\\toolchains\\cf2149caf2"
    },
    {
      "version": "2.6.0",
      "path": "c:\\ncs\\toolchains\\cf2149caf2"
    },
    {
      "version": "2.4.2",
      "path": "c:\\ncs\\toolchains\\31f4403e35"
    },
    {
      "version": "0.15.0",
      "path": "c:\\Users\\myUser\\zephyr-sdk-0.15.0"
    }
  ],
  "connectedDevices": [],
  "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_V794i\\JLink.exe": "7.94i",
    "C:\\Program Files\\Nordic Semiconductor\\nrf-command-line-tools\\bin\\nrfjprog.exe": "10.24.2",
    "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.2",
      "binPath": "c:\\Users\\myUser\\.vscode\\extensions\\nordic-semiconductor.nrf-connect-2024.12.55-win32-x64\\platform\\nrfutil\\bin\\nrfutil-device",
      "jlinkInfo": {
        "name": "JlinkARM",
        "version": "JLink_V7.94i",
        "versionFormat": "string"
      }
    },
    "nrfutil-toolchain-manager": {
      "version": "0.14.4",
      "binPath": "c:\\Users\\myUser\\.vscode\\extensions\\nordic-semiconductor.nrf-connect-2024.12.55-win32-x64\\platform\\nrfutil\\bin\\nrfutil-toolchain-manager"
    }
  },
  "environment": {
    "westEnv": {
      "HOME": "C:\\Users\\myUser",
      "HOMEDRIVE": "C:",
      "HOMEPATH": "\\Users\\myUser",
      "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\\myUser\\.vscode\\extensions\\nordic-semiconductor.nrf-connect-2024.12.55-win32-x64\\platform\\nrfutil\\lib\\nrfutil-toolchain-manager;C:\\Program Files\\Cubemos\\SkeletonTracking\\bin;C:\\Program Files (x86)\\Common Files\\Oracle\\Java\\javapath;C:\\Windows\\system32;C:\\Windows;C:\\Windows\\System32\\Wbem;C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\;C:\\Windows\\System32\\OpenSSH\\;C:\\Program Files\\NVIDIA Corporation\\NVIDIA NvDLISR;C:\\Program Files (x86)\\PuTTY\\;C:\\Program Files (x86)\\STMicroelectronics\\STM32 ST-LINK Utility\\ST-LINK Utility;C:\\Program Files (x86)\\Vector CANdb++ 3.1\\Exec32;C:\\Program Files\\MediaInfo\\MediaInfo.dll;C:\\Program Files\\Git\\cmd;C:\\Program Files\\Gource\\cmd;C:\\WINDOWS\\system32;C:\\WINDOWS;C:\\WINDOWS\\System32\\Wbem;C:\\WINDOWS\\System32\\WindowsPowerShell\\v1.0\\;C:\\WINDOWS\\System32\\OpenSSH\\;C:\\Program Files\\nodejs\\;C:\\Program Files\\dotnet\\;C;C:\\Program Files (x86)\\IVI Foundation\\IVI\\bin;C:\\Program Files\\IVI Foundation\\IVI\\bin;C:\\Program Files (x86)\\IVI Foundation\\VISA\\WinNT\\Bin\\;C:\\Program Files\\IVI Foundation\\VISA\\Win64\\Bin\\;C:\\Program Files (x86)\\IVI Foundation\\VISA\\WinNT\\Bin;C:\\ProgramData\\chocolatey\\bin;C:\\Program Files\\Docker\\Docker\\resources\\bin;C:\\kotlin-native-prebuilt-windows-x86_64-2.1.0\\bin;C:\\Gradle\\gradle-8.11.1\\bin;C:\\Program Files\\Nordic Semiconductor\\nrf-command-line-tools\\bin\\;C:\\Users\\myUser\\AppData\\Local\\Programs\\Python\\Python312\\Scripts\\;C:\\Users\\myUser\\AppData\\Local\\Programs\\Python\\Python312\\;C:\\Users\\myUser\\AppData\\Local\\Programs\\Python\\Python313\\Scripts\\;C:\\Users\\myUser\\AppData\\Local\\Programs\\Python\\Python313\\;C:\\Users\\myUser\\AppData\\Local\\Microsoft\\WindowsApps;C:\\Users\\myUser\\AppData\\Local\\atom\\bin;C:\\Users\\myUser\\AppData\\Roaming\\npm;C:\\Users\\myUser\\Documents\\Simone Iammarino\\Progetti\\Marcel\\Software\\ffmpeg\\bin;C:\\msys64\\mingw64\\bin;C:\\Program Files\\cmake\\bin;C:\\Users\\myUser\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\bossac\\1.9.1-arduino2;C:\\Users\\myUser\\Progetti\\Scripts;C:\\Program Files\\SEGGER\\JLink;C:\\Users\\myUser\\AppData\\Local\\Programs\\Microsoft VS Code\\bin",
      "ZEPHYR_BASE": "c:\\ncs\\v2.4.2\\C:\\Users\\myUser\\zephyrproject\\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\\myUser",
      "HOMEDRIVE": "C:",
      "HOMEPATH": "\\Users\\myUser",
      "Path": "C:\\Program Files\\Cubemos\\SkeletonTracking\\bin;C:\\Program Files (x86)\\Common Files\\Oracle\\Java\\javapath;C:\\Windows\\system32;C:\\Windows;C:\\Windows\\System32\\Wbem;C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\;C:\\Windows\\System32\\OpenSSH\\;C:\\Program Files\\NVIDIA Corporation\\NVIDIA NvDLISR;C:\\Program Files (x86)\\PuTTY\\;C:\\Program Files (x86)\\STMicroelectronics\\STM32 ST-LINK Utility\\ST-LINK Utility;C:\\Program Files (x86)\\Vector CANdb++ 3.1\\Exec32;C:\\Program Files\\MediaInfo\\MediaInfo.dll;C:\\Program Files\\Git\\cmd;C:\\Program Files\\Gource\\cmd;C:\\WINDOWS\\system32;C:\\WINDOWS;C:\\WINDOWS\\System32\\Wbem;C:\\WINDOWS\\System32\\WindowsPowerShell\\v1.0\\;C:\\WINDOWS\\System32\\OpenSSH\\;C:\\Program Files\\nodejs\\;C:\\Program Files\\dotnet\\;C;C:\\Program Files (x86)\\IVI Foundation\\IVI\\bin;C:\\Program Files\\IVI Foundation\\IVI\\bin;C:\\Program Files (x86)\\IVI Foundation\\VISA\\WinNT\\Bin\\;C:\\Program Files\\IVI Foundation\\VISA\\Win64\\Bin\\;C:\\Program Files (x86)\\IVI Foundation\\VISA\\WinNT\\Bin;C:\\ProgramData\\chocolatey\\bin;C:\\Program Files\\Docker\\Docker\\resources\\bin;C:\\kotlin-native-prebuilt-windows-x86_64-2.1.0\\bin;C:\\Gradle\\gradle-8.11.1\\bin;C:\\Program Files\\Nordic Semiconductor\\nrf-command-line-tools\\bin\\;C:\\Users\\myUser\\AppData\\Local\\Programs\\Python\\Python312\\Scripts\\;C:\\Users\\myUser\\AppData\\Local\\Programs\\Python\\Python312\\;C:\\Users\\myUser\\AppData\\Local\\Programs\\Python\\Python313\\Scripts\\;C:\\Users\\myUser\\AppData\\Local\\Programs\\Python\\Python313\\;C:\\Users\\myUser\\AppData\\Local\\Microsoft\\WindowsApps;C:\\Users\\myUser\\AppData\\Local\\atom\\bin;C:\\Program Files\\MediaInfo\\MediaInfo.dll;C:\\Users\\myUser\\AppData\\Local\\Microsoft\\WindowsApps;C:\\Users\\myUser\\AppData\\Roaming\\npm;C:\\Users\\myUser\\Documents\\Simone Iammarino\\Progetti\\Marcel\\Software\\ffmpeg\\bin;C:\\msys64\\mingw64\\bin;C:\\Program Files\\cmake\\bin;C:\\Users\\myUser\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\bossac\\1.9.1-arduino2;C:\\Users\\myUser\\Progetti\\Scripts;C:\\Program Files\\SEGGER\\JLink;C:\\kotlin-native-prebuilt-windows-x86_64-2.1.0\\bin;C:\\Gradle\\gradle-8.11.1\\bin;C:\\Users\\myUser\\AppData\\Local\\Programs\\Microsoft VS Code\\bin",
      "PATH": "C:\\Program Files\\Cubemos\\SkeletonTracking\\bin;C:\\Program Files (x86)\\Common Files\\Oracle\\Java\\javapath;C:\\Windows\\system32;C:\\Windows;C:\\Windows\\System32\\Wbem;C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\;C:\\Windows\\System32\\OpenSSH\\;C:\\Program Files\\NVIDIA Corporation\\NVIDIA NvDLISR;C:\\Program Files (x86)\\PuTTY\\;C:\\Program Files (x86)\\STMicroelectronics\\STM32 ST-LINK Utility\\ST-LINK Utility;C:\\Program Files (x86)\\Vector CANdb++ 3.1\\Exec32;C:\\Program Files\\MediaInfo\\MediaInfo.dll;C:\\Program Files\\Git\\cmd;C:\\Program Files\\Gource\\cmd;C:\\WINDOWS\\system32;C:\\WINDOWS;C:\\WINDOWS\\System32\\Wbem;C:\\WINDOWS\\System32\\WindowsPowerShell\\v1.0\\;C:\\WINDOWS\\System32\\OpenSSH\\;C:\\Program Files\\nodejs\\;C:\\Program Files\\dotnet\\;C;C:\\Program Files (x86)\\IVI Foundation\\IVI\\bin;C:\\Program Files\\IVI Foundation\\IVI\\bin;C:\\Program Files (x86)\\IVI Foundation\\VISA\\WinNT\\Bin\\;C:\\Program Files\\IVI Foundation\\VISA\\Win64\\Bin\\;C:\\Program Files (x86)\\IVI Foundation\\VISA\\WinNT\\Bin;C:\\ProgramData\\chocolatey\\bin;C:\\Program Files\\Docker\\Docker\\resources\\bin;C:\\kotlin-native-prebuilt-windows-x86_64-2.1.0\\bin;C:\\Gradle\\gradle-8.11.1\\bin;C:\\Program Files\\Nordic Semiconductor\\nrf-command-line-tools\\bin\\;C:\\Users\\myUser\\AppData\\Local\\Programs\\Python\\Python312\\Scripts\\;C:\\Users\\myUser\\AppData\\Local\\Programs\\Python\\Python312\\;C:\\Users\\myUser\\AppData\\Local\\Programs\\Python\\Python313\\Scripts\\;C:\\Users\\myUser\\AppData\\Local\\Programs\\Python\\Python313\\;C:\\Users\\myUser\\AppData\\Local\\Microsoft\\WindowsApps;C:\\Users\\myUser\\AppData\\Local\\atom\\bin;C:\\Program Files\\MediaInfo\\MediaInfo.dll;C:\\Users\\myUser\\AppData\\Local\\Microsoft\\WindowsApps;C:\\Users\\myUser\\AppData\\Roaming\\npm;C:\\Users\\myUser\\Documents\\Simone Iammarino\\Progetti\\Marcel\\Software\\ffmpeg\\bin;C:\\msys64\\mingw64\\bin;C:\\Program Files\\cmake\\bin;C:\\Users\\myUser\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\bossac\\1.9.1-arduino2;C:\\Users\\myUser\\Progetti\\Scripts;C:\\Program Files\\SEGGER\\JLink;C:\\kotlin-native-prebuilt-windows-x86_64-2.1.0\\bin;C:\\Gradle\\gradle-8.11.1\\bin;C:\\Users\\myUser\\AppData\\Local\\Programs\\Microsoft VS Code\\bin"
    }
  },
  "terminal": {
    "defaultProfile": null
  },
  "config": {
    "nordic-semiconductor.nrf-connect": {
      "topdir": "${nrf-connect.sdk:2.4.2}",
      "toolchain": {
        "path": "${nrf-connect.toolchain:2.4.2}"
      },
      "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": "2024.12.55",
        "path": "c:\\Users\\myUser\\.vscode\\extensions\\nordic-semiconductor.nrf-connect-2024.12.55-win32-x64",
        "isActive": true
      },
      "nordic-semiconductor.nrf-terminal": {
        "version": "2024.9.14",
        "path": "c:\\Users\\myUser\\.vscode\\extensions\\nordic-semiconductor.nrf-terminal-2024.9.14",
        "isActive": true
      },
      "nordic-semiconductor.nrf-devicetree": {
        "version": "2024.12.15",
        "path": "c:\\Users\\myUser\\.vscode\\extensions\\nordic-semiconductor.nrf-devicetree-2024.12.15",
        "isActive": true
      },
      "nordic-semiconductor.nrf-kconfig": {
        "version": "2024.12.13",
        "path": "c:\\Users\\myUser\\.vscode\\extensions\\nordic-semiconductor.nrf-kconfig-2024.12.13",
        "isActive": true
      }
    },
    "external": {
      "marus25.cortex-debug": null,
      "ms-vscode.cpptools": "1.22.11",
      "ms-vscode.js-debug": "1.96.0",
      "ms-vscode.js-debug-companion": "1.1.3",
      "ms-vscode.vscode-js-profile-table": "1.0.10",
      "trond-snekvik.gnu-mapfiles": "1.1.0",
      "twxs.cmake": "0.0.17"
    }
  }
}

Thank you for your assistance.

Simone

  • Hello Simone, 

    We have seen similar issues with this before and the first thing I would like to test is that you physically delete the build folder from you application. 

    Using several SDK and Toolchains should not be an issue, but how did you install these on your computer? I see that you have vanilla Zephyr installed as well, i.e. c:\\Users\\myUser\\zephyrproject and c:\\Users\\myUser\\zephyr-sdk-0.15.0. 

      "sdks": [
        {
          "version": "v2.9.0",
          "path": "c:\\ncs\\v2.9.0"
        },
        {
          "version": "v2.6.2",
          "path": "c:\\ncs\\v2.6.2"
        },
        {
          "version": "v2.4.2",
          "path": "c:\\ncs\\v2.4.2"
        },
        {
          "version": "v3.1.99",
          "path": "c:\\Users\\myUser\\zephyrproject"
        }
      ],
      
       "toolchains": [
        {
          "version": "2.9.0",
          "path": "c:\\ncs\\toolchains\\b620d30767"
        },
        {
          "version": "2.8.0",
          "path": "c:\\ncs\\toolchains\\2d382dcd92"
        },
        {
          "version": "2.6.2",
          "path": "c:\\ncs\\toolchains\\cf2149caf2"
        },
        {
          "version": "2.6.0",
          "path": "c:\\ncs\\toolchains\\cf2149caf2"
        },
        {
          "version": "2.4.2",
          "path": "c:\\ncs\\toolchains\\31f4403e35"
        },
        {
          "version": "0.15.0",
          "path": "c:\\Users\\myUser\\zephyr-sdk-0.15.0"
        }
      ],

    Not saying that these are the problem, but could you please try to remove these based on this:  "ZEPHYR_BASE": "c:\\ncs\\v2.4.2\\C:\\Users\\myUser\\zephyrproject\\zephyr",

    Thanks!

    Kind regards,
    Øyvind

  • Hi Øyvind,

    All SDK versions were installed using the "Manage SDK" option in the VSCode extension. However, I had previously installed the vanilla version manually via the command line a long time ago.

    If I open a new terminal (by clicking "Start New Terminal" next to the build configuration), modify the ZEPHYR_BASE environment variable to C:\ncs\v2.4.2 (removing the path to the vanilla version), and run the west command for the build (after deleting the build directory for a clean build), I encounter the same result. The build logs show that the paths are correctly resolved, so the issue might be specific to the path handling within the "nRF Connect SDK" extension.

    -- west build: generating a build system
    Loading Zephyr default modules (Zephyr base).
    -- Application: C:/Users/prologic/Progetti/contapassi/sw/app
    -- 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.2/zephyr/.cache
    -- Zephyr version: 3.3.99 (C:/ncs/v2.4.2/zephyr)
    -- Found west (found suitable version "1.0.0", minimum required is "0.7.1")
    -- Board: contapassaggi
    -- 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:/Users/prologic/Progetti/contapassi/sw/app/boards/arm/contapassaggi/contapassaggi.dts
    -- Generated zephyr.dts: C:/Users/prologic/Progetti/contapassi/sw/app/build/zephyr/zephyr.dts
    -- Generated devicetree_generated.h: C:/Users/prologic/Progetti/contapassi/sw/app/build/zephyr/include/generated/devicetree_generated.h
    -- Including generated dts.cmake file: C:/Users/prologic/Progetti/contapassi/sw/app/build/zephyr/dts.cmake

    I have deleted the vanilla Zephyr installation from my system, uninstalled and reinstalled the extension, but the ZEPHYR_BASE variable still contains a concatenated path. Where does the "nRF Connect SDK" extension set this variable?

    Thanks

    Simone

  • Hi Simone, thanks for the patience with this matter. 

    What happens if you delete the build folder under C:/Users/prologic/Progetti/contapassi/sw/app/build/ and then try to build the project in VS Code again? Could you please provide the full build log?

    Or 

    what happens if you right click on the build configuration and build through "edit build configuration"

    Kind regards,
    Øyvind

  • If I delete the build folder and build the project from scratch I encounter the same problem ("build" and "action" tab only shows the button "Pristine Build").

    In the following, the build log.

    Building app
    "west build --build-dir c:/Users/prologic/Progetti/contapassi/sw/app/build c:/Users/prologic/Progetti/contapassi/sw/app --pristine --board contapassaggi -- -DNCS_TOOLCHAIN_VERSION=NONE -DBOARD_ROOT=c:/users/prologic/progetti/contapassi/sw/app"
    -- west build: generating a build system
    Loading Zephyr default modules (Zephyr base).
    -- Application: C:/Users/prologic/Progetti/contapassi/sw/app
    -- 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.2/zephyr/.cache
    -- Zephyr version: 3.3.99 (C:/ncs/v2.4.2/zephyr)
    -- Found west (found suitable version "1.0.0", minimum required is "0.7.1")
    -- Board: contapassaggi
    -- 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:/Users/prologic/Progetti/contapassi/sw/app/boards/arm/contapassaggi/contapassaggi.dts
    -- Generated zephyr.dts: C:/Users/prologic/Progetti/contapassi/sw/app/build/zephyr/zephyr.dts
    -- Generated devicetree_generated.h: C:/Users/prologic/Progetti/contapassi/sw/app/build/zephyr/include/generated/devicetree_generated.h
    -- Including generated dts.cmake file: C:/Users/prologic/Progetti/contapassi/sw/app/build/zephyr/dts.cmake
    
    warning: The choice symbol LOG_MODE_MINIMAL (defined at subsys/logging\Kconfig.mode:28) was selected
    (set =y), but no symbol ended up as the choice selection. See
    http://docs.zephyrproject.org/latest/kconfig.html#CONFIG_LOG_MODE_MINIMAL and/or look up
    LOG_MODE_MINIMAL in the menuconfig/guiconfig interface. The Application Development Primer, Setting
    Configuration Values, and Kconfig - Tips and Best Practices sections of the manual might be helpful
    too.
    
    Parsing C:/ncs/v2.4.2/zephyr/Kconfig
    Loaded configuration 'C:/Users/prologic/Progetti/contapassi/sw/app/boards/arm/contapassaggi/contapassaggi_defconfig'
    Merged configuration 'C:/Users/prologic/Progetti/contapassi/sw/app/prj.conf'
    Configuration saved to 'C:/Users/prologic/Progetti/contapassi/sw/app/build/zephyr/.config'
    Kconfig header saved to 'C:/Users/prologic/Progetti/contapassi/sw/app/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 
    
    === child image mcuboot -  begin ===
    loading initial cache file C:/Users/prologic/Progetti/contapassi/sw/app/build/mcuboot/child_image_preload.cmake
    Loading Zephyr default modules (Zephyr base).
    -- Application: C:/ncs/v2.4.2/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.2/zephyr/.cache
    -- Zephyr version: 3.3.99 (C:/ncs/v2.4.2/zephyr)
    -- Found west (found suitable version "1.0.0", minimum required is "0.7.1")
    -- Board: contapassaggi
    -- 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:/Users/prologic/Progetti/contapassi/sw/app/boards/arm/contapassaggi/contapassaggi.dts
    -- Found devicetree overlay: C:/ncs/v2.4.2/bootloader/mcuboot/boot/zephyr/app.overlay
    -- Generated zephyr.dts: C:/Users/prologic/Progetti/contapassi/sw/app/build/mcuboot/zephyr/zephyr.dts
    -- Generated devicetree_generated.h: C:/Users/prologic/Progetti/contapassi/sw/app/build/mcuboot/zephyr/include/generated/devicetree_generated.h
    -- Including generated dts.cmake file: C:/Users/prologic/Progetti/contapassi/sw/app/build/mcuboot/zephyr/dts.cmake
    
    warning: BOOTLOADER_MCUBOOT (defined at C:/ncs/v2.4.2/nrf/modules/trusted-firmware-m/Kconfig:337,
    Kconfig.mcuboot:13) was assigned the value 'y' but got the value 'n'. Check these unsatisfied
    dependencies: (BUILD_WITH_TFM || !MCUBOOT) (=n). See
    http://docs.zephyrproject.org/latest/kconfig.html#CONFIG_BOOTLOADER_MCUBOOT and/or look up
    BOOTLOADER_MCUBOOT in the menuconfig/guiconfig interface. The Application Development Primer,
    Setting Configuration Values, and Kconfig - Tips and Best Practices sections of the manual might be
    Parsing C:/ncs/v2.4.2/bootloader/mcuboot/boot/zephyr/Kconfig
    Loaded configuration 'C:/Users/prologic/Progetti/contapassi/sw/app/boards/arm/contapassaggi/contapassaggi_defconfig'
    Merged configuration 'C:/ncs/v2.4.2/bootloader/mcuboot/boot/zephyr/prj.conf'
    Merged configuration 'C:/ncs/v2.4.2/nrf/subsys/partition_manager/partition_manager_enabled.conf'
    Merged configuration 'C:/Users/prologic/Progetti/contapassi/sw/app/build/mcuboot/zephyr/misc/generated/extra_kconfig_options.conf'
    Configuration saved to 'C:/Users/prologic/Progetti/contapassi/sw/app/build/mcuboot/zephyr/.config'
    Kconfig header saved to 'C:/Users/prologic/Progetti/contapassi/sw/app/build/mcuboot/zephyr/include/generated/autoconf.h'
    helpful too.
    
    
    warning: MCP7940 (defined at
    C:/Users/prologic/Progetti/contapassi/sw/app/drvmod\drivers\rtc\mcp7940/Kconfig:1) was assigned the
    value 'y' but got the value 'n'. Check these unsatisfied dependencies: I2C (=n). See
    http://docs.zephyrproject.org/latest/kconfig.html#CONFIG_MCP7940 and/or look up MCP7940 in the
    menuconfig/guiconfig interface. The Application Development Primer, Setting Configuration Values,
    and Kconfig - Tips and Best Practices sections of the manual might be helpful too.
    
    -- 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.2/nrf/lib/flash_patch/CMakeLists.txt:8 (message):
      
    
            ----------------------------------------------------------
            --- WARNING: To maintain the integrity of secure boot, ---
            --- enable CONFIG_DISABLE_FLASH_PATCH in production.   ---
            ----------------------------------------------------------
    
    
    CMake Warning at C:/ncs/v2.4.2/zephyr/CMakeLists.txt:839 (message):
      No SOURCES given to Zephyr library: lib__libc__common
    
      Excluding target from build.
    
    
    CMake Warning at C:/ncs/v2.4.2/zephyr/CMakeLists.txt:839 (message):
      No SOURCES given to Zephyr library: drivers__rtc
    
      Excluding target from build.
    
    
    MCUBoot bootloader key file: C:/ncs/v2.4.2/bootloader/mcuboot/root-ec-p256.pem
    -- Configuring done
    -- Generating done
    -- Build files have been written to: C:/Users/prologic/Progetti/contapassi/sw/app/build/mcuboot
    === child image mcuboot -  end ===
    
    CMake Warning at C:/ncs/v2.4.2/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.2/zephyr/CMakeLists.txt:839 (message):
      No SOURCES given to Zephyr library: lib__libc__common
    
      Excluding target from build.
    
    
    CMake Warning at C:/ncs/v2.4.2/zephyr/CMakeLists.txt:839 (message):
      No SOURCES given to Zephyr library: drivers__rtc
    
      Excluding target from build.
    
    
    -- Configuring done
    -- Generating done
    -- Build files have been written to: C:/Users/prologic/Progetti/contapassi/sw/app/build
    -- west build: building application
    [2/350] Generating include/generated/version.h
    -- Zephyr version: 3.3.99 (C:/ncs/v2.4.2/zephyr), build: v3.3.99-ncs1-2
    [1/202] Generating include/generated/version.h
    -- Zephyr version: 3.3.99 (C:/ncs/v2.4.2/zephyr), build: v3.3.99-ncs1-2
    [164/202] Building C object modules/custom_drivers/drivers/flash/sst25vf/CMakeFiles/..__..__..__Users__prologic__Progetti__contapassi__sw__app__drvmod__drivers__flash__sst25vf.dir/sst25vf.c.obj
    C:/Users/prologic/Progetti/contapassi/sw/app/drvmod/drivers/flash/sst25vf/sst25vf.c:237:12: warning: 'sector_erase_64kb' defined but not used [-Wunused-function]
      237 | static int sector_erase_64kb(const struct device *dev, off_t offset) {
          |            ^~~~~~~~~~~~~~~~~
    [192/202] Linking C executable zephyr\zephyr_pre0.elf
    
    [196/202] Linking C executable zephyr\zephyr_pre1.elf
    
    [202/202] Linking C executable zephyr\zephyr.elf
    Memory region         Used Size  Region Size  %age Used
               FLASH:       37992 B        48 KB     77.29%
                 RAM:       24640 B       256 KB      9.40%
            IDT_LIST:          0 GB         2 KB      0.00%
    [28/350] Building C object src/soniclib/CMakeFiles/soniclib_whitney.dir/sensor_fw/ch101/ch101_gppc.c.obj
    In file included from ../src/soniclib/inc/soniclib.h:151,
                     from ../src/soniclib/sensor_fw/ch101/ch101_gppc.c:30:
    ../src/soniclib/sensor_fw/ch101/ch101_gppc.c: In function 'ch101_gppc_set_frequency':
    ../src/soniclib/sensor_fw/ch101/ch101_gppc.c:233:33: warning: format '%lu' expects argument of type 'long unsigned int', but argument 3 has type 'uint32_t' {aka 'unsigned int'} [-Wformat=]
      233 |         DEBUG_DCO_SEARCH(printf("# Port %u, dco0=%lu, dco1=%lu, dcoest=%u, freq=%lu, targ= %lu\n",
          |                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      234 |         dev_ptr->io_index, dcoper[0], dcoper[1], dcoest, freq, target_freq_Hz);)
          |                            ~~~~~~~~~
          |                                  |
          |                                  uint32_t {aka unsigned int}
    ../src/soniclib/sensor_fw/ch101/ch101_gppc.h:70:29: note: in definition of macro 'DEBUG_DCO_SEARCH'
       70 | #define DEBUG_DCO_SEARCH(X) X
          |                             ^
    ../src/soniclib/sensor_fw/ch101/ch101_gppc.c:233:52: note: format string is defined here
      233 |         DEBUG_DCO_SEARCH(printf("# Port %u, dco0=%lu, dco1=%lu, dcoest=%u, freq=%lu, targ= %lu\n",
          |                                                  ~~^
          |                                                    |
          |                                                    long unsigned int
          |                                                  %u
    ../src/soniclib/sensor_fw/ch101/ch101_gppc.c:233:33: warning: format '%lu' expects argument of type 'long unsigned int', but argument 4 has type 'uint32_t' {aka 'unsigned int'} [-Wformat=]
      233 |         DEBUG_DCO_SEARCH(printf("# Port %u, dco0=%lu, dco1=%lu, dcoest=%u, freq=%lu, targ= %lu\n",
          |                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      234 |         dev_ptr->io_index, dcoper[0], dcoper[1], dcoest, freq, target_freq_Hz);)
          |                                       ~~~~~~~~~
          |                                             |
          |                                             uint32_t {aka unsigned int}
    ../src/soniclib/sensor_fw/ch101/ch101_gppc.h:70:29: note: in definition of macro 'DEBUG_DCO_SEARCH'
       70 | #define DEBUG_DCO_SEARCH(X) X
          |                             ^
    ../src/soniclib/sensor_fw/ch101/ch101_gppc.c:233:62: note: format string is defined here
      233 |         DEBUG_DCO_SEARCH(printf("# Port %u, dco0=%lu, dco1=%lu, dcoest=%u, freq=%lu, targ= %lu\n",
          |                                                            ~~^
          |                                                              |
          |                                                              long unsigned int
          |                                                            %u
    ../src/soniclib/sensor_fw/ch101/ch101_gppc.c:233:33: warning: format '%lu' expects argument of type 'long unsigned int', but argument 6 has type 'uint32_t' {aka 'unsigned int'} [-Wformat=]
      233 |         DEBUG_DCO_SEARCH(printf("# Port %u, dco0=%lu, dco1=%lu, dcoest=%u, freq=%lu, targ= %lu\n",
          |                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      234 |         dev_ptr->io_index, dcoper[0], dcoper[1], dcoest, freq, target_freq_Hz);)
          |                                                          ~~~~
          |                                                          |
          |                                                          uint32_t {aka unsigned int}
    ../src/soniclib/sensor_fw/ch101/ch101_gppc.h:70:29: note: in definition of macro 'DEBUG_DCO_SEARCH'
       70 | #define DEBUG_DCO_SEARCH(X) X
          |                             ^
    ../src/soniclib/sensor_fw/ch101/ch101_gppc.c:233:83: note: format string is defined here
      233 |         DEBUG_DCO_SEARCH(printf("# Port %u, dco0=%lu, dco1=%lu, dcoest=%u, freq=%lu, targ= %lu\n",
          |                                                                                 ~~^
          |                                                                                   |
          |                                                                                   long unsigned int
          |                                                                                 %u
    ../src/soniclib/sensor_fw/ch101/ch101_gppc.c:233:33: warning: format '%lu' expects argument of type 'long unsigned int', but argument 7 has type 'uint32_t' {aka 'unsigned int'} [-Wformat=]
      233 |         DEBUG_DCO_SEARCH(printf("# Port %u, dco0=%lu, dco1=%lu, dcoest=%u, freq=%lu, targ= %lu\n",
          |                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      234 |         dev_ptr->io_index, dcoper[0], dcoper[1], dcoest, freq, target_freq_Hz);)
          |                                                                ~~~~~~~~~~~~~~
          |                                                                |
          |                                                                uint32_t {aka unsigned int}
    ../src/soniclib/sensor_fw/ch101/ch101_gppc.h:70:29: note: in definition of macro 'DEBUG_DCO_SEARCH'
       70 | #define DEBUG_DCO_SEARCH(X) X
          |                             ^
    ../src/soniclib/sensor_fw/ch101/ch101_gppc.c:233:94: note: format string is defined here
      233 |         DEBUG_DCO_SEARCH(printf("# Port %u, dco0=%lu, dco1=%lu, dcoest=%u, freq=%lu, targ= %lu\n",
          |                                                                                            ~~^
          |                                                                                              |
          |                                                                                              long unsigned int
          |                                                                                            %u
    ../src/soniclib/sensor_fw/ch101/ch101_gppc.c:239:41: warning: format '%lu' expects argument of type 'long unsigned int', but argument 3 has type 'uint32_t' {aka 'unsigned int'} [-Wformat=]
      239 |                 DEBUG_DCO_SEARCH(printf("# Frequency error above %dHz, searching for better match to %luHz\n",
          |                                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      240 |                 CH101_DCO_SEARCH_THRESHOLD, target_freq_Hz);)
          |                                             ~~~~~~~~~~~~~~
          |                                             |
          |                                             uint32_t {aka unsigned int}
    ../src/soniclib/sensor_fw/ch101/ch101_gppc.h:70:29: note: in definition of macro 'DEBUG_DCO_SEARCH'
       70 | #define DEBUG_DCO_SEARCH(X) X
          |                             ^
    ../src/soniclib/sensor_fw/ch101/ch101_gppc.c:239:104: note: format string is defined here
      239 |                 DEBUG_DCO_SEARCH(printf("# Frequency error above %dHz, searching for better match to %luHz\n",
          |                                                                                                      ~~^
          |                                                                                                        |
          |                                                                                                        long unsigned int
          |                                                                                                      %u
    ../src/soniclib/sensor_fw/ch101/ch101_gppc.c:249:49: warning: format '%lu' expects argument of type 'long unsigned int', but argument 3 has type 'uint32_t' {aka 'unsigned int'} [-Wformat=]
      249 |                         DEBUG_DCO_SEARCH(printf("# dcoest=%u, freq=%lu\n", dcoest + i, freq);)
          |                                                 ^~~~~~~~~~~~~~~~~~~~~~~~~              ~~~~
          |                                                                                        |
          |                                                                                        uint32_t {aka unsigned int}
    ../src/soniclib/sensor_fw/ch101/ch101_gppc.h:70:29: note: in definition of macro 'DEBUG_DCO_SEARCH'
       70 | #define DEBUG_DCO_SEARCH(X) X
          |                             ^
    ../src/soniclib/sensor_fw/ch101/ch101_gppc.c:249:70: note: format string is defined here
      249 |                         DEBUG_DCO_SEARCH(printf("# dcoest=%u, freq=%lu\n", dcoest + i, freq);)
          |                                                                    ~~^
          |                                                                      |
          |                                                                      long unsigned int
          |                                                                    %u
    ../src/soniclib/sensor_fw/ch101/ch101_gppc.c:253:41: warning: format '%lu' expects argument of type 'long unsigned int', but argument 3 has type 'uint32_t' {aka 'unsigned int'} [-Wformat=]
      253 |                 DEBUG_DCO_SEARCH(printf("# Final setting dco=%u, freq=%lu\n", dcoest, freq);)
          |                                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~          ~~~~
          |                                                                                       |
          |                                                                                       uint32_t {aka unsigned int}
    ../src/soniclib/sensor_fw/ch101/ch101_gppc.h:70:29: note: in definition of macro 'DEBUG_DCO_SEARCH'
       70 | #define DEBUG_DCO_SEARCH(X) X
          |                             ^
    ../src/soniclib/sensor_fw/ch101/ch101_gppc.c:253:73: note: format string is defined here
      253 |                 DEBUG_DCO_SEARCH(printf("# Final setting dco=%u, freq=%lu\n", dcoest, freq);)
          |                                                                       ~~^
          |                                                                         |
          |                                                                         long unsigned int
          |                                                                       %u
    [151/350] Building C object CMakeFiles/app.dir/src/main.c.obj
    ../src/main.c:1115:31: warning: 'auth_callback' defined but not used [-Wunused-variable]
     1115 | static struct bt_conn_auth_cb auth_callback;
          |                               ^~~~~~~~~~~~~
    ../src/main.c:869:16: warning: 'bt_char_sampling_intervall_write_cb' defined but not used [-Wunused-function]
      869 | static ssize_t bt_char_sampling_intervall_write_cb(struct bt_conn *conn, const struct bt_gatt_attr *attr, const void *buf, uint16_t len, uint16_t offset, uint8_t flags) {
          |                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    ../src/main.c:858:16: warning: 'bt_char_sampling_intervall_read_cb' defined but not used [-Wunused-function]
      858 | static ssize_t bt_char_sampling_intervall_read_cb(struct bt_conn *conn, const struct bt_gatt_attr *attr, void *buf, uint16_t len, uint16_t offset) {
          |                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    In file included from c:\ncs\toolchains\31f4403e35\opt\zephyr-sdk\arm-zephyr-eabi\arm-zephyr-eabi\sys-include\stdio.h:800,
                     from ../src/main.c:2:
    ../src/main.c: In function 'bt_char_last_passage_read_cb':
    ../src/main.c:906:34: warning: '%d' directive output may be truncated writing between 1 and 11 bytes into a region of size between 10 and 20 [-Wformat-truncation=]
      906 |     snprintf(date, sizeof(date), "%d/%d/%d %d:%d:%d %1d %1d", t->tm_year-100, t->tm_mon+1, t->tm_mday, t->tm_hour, t->tm_min, t->tm_sec, p.direction, p.is_valid);
          |                                  ^~~~~~~~~~~~~~~~~~~~~~~~~~~
    ../src/main.c:906:38: note: format string is defined here
      906 |     snprintf(date, sizeof(date), "%d/%d/%d %d:%d:%d %1d %1d", t->tm_year-100, t->tm_mon+1, t->tm_mday, t->tm_hour, t->tm_min, t->tm_sec, p.direction, p.is_valid);
          |                                      ^~
    ../src/main.c:906:34: note: directive argument in the range [-2147483647, 2147483647]
      906 |     snprintf(date, sizeof(date), "%d/%d/%d %d:%d:%d %1d %1d", t->tm_year-100, t->tm_mon+1, t->tm_mday, t->tm_hour, t->tm_min, t->tm_sec, p.direction, p.is_valid);
          |                                  ^~~~~~~~~~~~~~~~~~~~~~~~~~~
    ../src/main.c:906:34: note: directive argument in the range [0, 255]
    ../src/main.c:906:34: note: directive argument in the range [0, 255]
    ../src/main.c:906:5: note: '__builtin_snprintf' output between 16 and 80 bytes into a destination of size 22
      906 |     snprintf(date, sizeof(date), "%d/%d/%d %d:%d:%d %1d %1d", t->tm_year-100, t->tm_mon+1, t->tm_mday, t->tm_hour, t->tm_min, t->tm_sec, p.direction, p.is_valid);
          |     ^~~~~~~~
    ../src/main.c: In function 'bt_char_valid_samples_read_cb':
    ../src/main.c:883:44: warning: '__builtin_snprintf' output may be truncated before the last format character [-Wformat-truncation=]
      883 |     snprintf(value_str, sizeof(value_str), "%d", *value); // to string
          |                                            ^~~~
    ../src/main.c:883:47: note: format string is defined here
      883 |     snprintf(value_str, sizeof(value_str), "%d", *value); // to string
          |                                               ^
    ../src/main.c:883:5: note: '__builtin_snprintf' output between 2 and 4 bytes into a destination of size 3
      883 |     snprintf(value_str, sizeof(value_str), "%d", *value); // to string
          |     ^~~~~~~~
    ../src/main.c: In function 'bt_char_passage_timeout_read_cb':
    ../src/main.c:841:44: warning: '__builtin_snprintf' output may be truncated before the last format character [-Wformat-truncation=]
      841 |     snprintf(value_str, sizeof(value_str), "%d", *value); // to string
          |                                            ^~~~
    ../src/main.c:841:47: note: format string is defined here
      841 |     snprintf(value_str, sizeof(value_str), "%d", *value); // to string
          |                                               ^
    ../src/main.c:841:5: note: '__builtin_snprintf' output between 2 and 4 bytes into a destination of size 3
      841 |     snprintf(value_str, sizeof(value_str), "%d", *value); // to string
          |     ^~~~~~~~
    ../src/main.c: In function 'bt_char_min_distance_read_cb':
    ../src/main.c:821:44: warning: '__builtin_snprintf' output may be truncated before the last format character [-Wformat-truncation=]
      821 |     snprintf(value_str, sizeof(value_str), "%d", *value); // to string
          |                                            ^~~~
    ../src/main.c:821:47: note: format string is defined here
      821 |     snprintf(value_str, sizeof(value_str), "%d", *value); // to string
          |                                               ^
    ../src/main.c:821:5: note: '__builtin_snprintf' output between 2 and 6 bytes into a destination of size 5
      821 |     snprintf(value_str, sizeof(value_str), "%d", *value); // to string
          |     ^~~~~~~~
    ../src/main.c: In function 'bt_char_max_distance_read_cb':
    ../src/main.c:801:44: warning: '__builtin_snprintf' output may be truncated before the last format character [-Wformat-truncation=]
      801 |     snprintf(value_str, sizeof(value_str), "%d", *value); // to string
          |                                            ^~~~
    ../src/main.c:801:47: note: format string is defined here
      801 |     snprintf(value_str, sizeof(value_str), "%d", *value); // to string
          |                                               ^
    ../src/main.c:801:5: note: '__builtin_snprintf' output between 2 and 6 bytes into a destination of size 5
      801 |     snprintf(value_str, sizeof(value_str), "%d", *value); // to string
          |     ^~~~~~~~
    [177/350] Building C object modules/custom_drivers/drivers/flash/sst25vf/CMakeFiles/..__..__..__Users__prologic__Progetti__contapassi__sw__app__drvmod__drivers__flash__sst25vf.dir/sst25vf.c.obj
    ../drvmod/drivers/flash/sst25vf/sst25vf.c:237:12: warning: 'sector_erase_64kb' defined but not used [-Wunused-function]
      237 | static int sector_erase_64kb(const struct device *dev, off_t offset) {
          |            ^~~~~~~~~~~~~~~~~
    [329/350] Linking C executable zephyr\zephyr_pre0.elf
    
    [333/350] Linking C executable zephyr\zephyr_pre1.elf
    
    [342/350] Linking C executable zephyr\zephyr.elf
    Memory region         Used Size  Region Size  %age Used
               FLASH:      235256 B     499200 B     47.13%
                 RAM:       55608 B       256 KB     21.21%
            IDT_LIST:          0 GB         2 KB      0.00%
    [345/350] Generating ../../zephyr/app_update.bin
    image.py: sign the payload
    [347/350] Generating ../../zephyr/app_signed.hex
    image.py: sign the payload
    [348/350] Generating ../../zephyr/app_test_update.hex
    image.py: sign the payload
    [350/350] Generating zephyr/merged.hex
     *  Terminal will be reused by tasks, press any key to close it. 

    If I edit the build configuration, the build process restart from scratch as before. The problem persist also if the "build after generating configuration" is not checked when editing build configuration.

    Simone

  • Simone, could you please try moving you project to e.g. C:\temp and build from here? I'm wondering if this could be an issue of a too long path. 

    Kind regards,
    Øyvind

Related