Problem building sample apps in VS Code for nRF5340

Hi,

I'm trying to build the peripheral_lbs sample app for the nRF5340 using VS Code and I cannot get past the build configuration stage. Any assistance would be appreciated:

$ echo $ZEPHYR_BASE
/opt/nordic/ncs/v1.7.1/zephyr

The project was set up as a standalone project per video instructions.

Regards,

AC

Parents
  • This is strange. Starting again this morning, booting up the Mac, opening up the VS Code etc. and I can now create a configuration as shown in the image.  However, building the application fails with:

    -- Zephyr version: 2.6.99 (/Users/skajam66/Projects/Nordic/zephyr), build: v2.6.99-ncs1-1
    -- Found Python3: /Users/skajam66/.pyenv/shims/python3.9 (found suitable exact version "3.9.1") found components: Interpreter 
    -- Found west (found suitable version "0.8.0", minimum required is "0.7.1")
    CMake Error at /Users/skajam66/Projects/Nordic/zephyr/cmake/zephyr_module.cmake:61 (message):
      Traceback (most recent call last):
    
        File "/Users/skajam66/Projects/Nordic/zephyr/scripts/zephyr_module.py", line 386, in <module>
          main()
        File "/Users/skajam66/Projects/Nordic/zephyr/scripts/zephyr_module.py", line 360, in main
          modules = parse_modules(args.zephyr_base, args.modules, args.extra_modules)
        File "/Users/skajam66/Projects/Nordic/zephyr/scripts/zephyr_module.py", line 258, in parse_modules
          manifest = Manifest.from_file()
        File "/Users/skajam66/.pyenv/versions/3.9.1/lib/python3.9/site-packages/west/manifest.py", line 977, in from_file
          return Manifest(**kwargs)
        File "/Users/skajam66/.pyenv/versions/3.9.1/lib/python3.9/site-packages/west/manifest.py", line 1156, in __init__
          self._load(source_data['manifest'],
        File "/Users/skajam66/.pyenv/versions/3.9.1/lib/python3.9/site-packages/west/manifest.py", line 1367, in _load
          self._load_projects(manifest, url_bases, defaults, ctx)
        File "/Users/skajam66/.pyenv/versions/3.9.1/lib/python3.9/site-packages/west/manifest.py", line 1580, in _load_projects
          self._import_from_project(project, imp, ctx)
        File "/Users/skajam66/.pyenv/versions/3.9.1/lib/python3.9/site-packages/west/manifest.py", line 1692, in _import_from_project
          self._import_path_from_project(project, _WEST_YML, ctx)
        File "/Users/skajam66/.pyenv/versions/3.9.1/lib/python3.9/site-packages/west/manifest.py", line 1723, in _import_path_from_project
          validate(data)
        File "/Users/skajam66/.pyenv/versions/3.9.1/lib/python3.9/site-packages/west/manifest.py", line 363, in validate
          raise ManifestVersionError(min_version_str)
    
      west.manifest.ManifestVersionError: ('0.10', None)
    
    Call Stack (most recent call first):
      /Users/skajam66/Projects/Nordic/zephyr/cmake/app/boilerplate.cmake:182 (include)
      /Users/skajam66/Projects/Nordic/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:24 (include)
      /Users/skajam66/Projects/Nordic/ze/Users/skajam66/Projects/Nordic/peripheral_lbs/build/phyr/share/zephyr-package/cmake/ZephyrConfig.cmake:35 (include_boilerplate)
      /Users/skajam66/Projects/Nordic/peripheral_lbs/build/CMakeLists.txt:8 (find_package)
    
    
    -- Configuring incomplete, errors occurred!
    CMake Error at /Users/skajam66/Projects/Nordic/nrf/cmake/multi_image.cmake:301 (message):
      CMake generation for spm failed, aborting.  Command: 1
    Call Stack (most recent call first):
      /Users/skajam66/Projects/Nordic/nrf/cmake/multi_image.cmake:68 (add_child_image_from_source)
      /Users/skajam66/Projects/Nordic/nrf/samples/CMakeLists.txt:58 (add_child_image)
    
    
    -- Configuring incomplete, errors occurred!
    See also "/Users/skajam66/Projects/Nordic/peripheral_lbs/build/CMakeFiles/CMakeOutput.log".
    See also "/Users/skajam66/Projects/Nordic/peripheral_lbs/build/CMakeFiles/CMakeError.log".
    FATAL ERROR: command exited with status 1: /opt/nordic/ncs/v1.7.1/toolchain/bin/cmake -DWEST_PYTHON=/opt/nordic/ncs/v1.7.1/toolchain/opt/[email protected]/bin/python3.9 -B/Users/skajam66/Projects/Nordic/peripheral_lbs/build -S/Users/skajam66/Projects/Nordic/peripheral_lbs -GNinja -DBOARD=nrf5340dk_nrf5340_cpuapp_ns -DCMAKE_EXPORT_COMPILE_COMMANDS:BOOL=On -DNCS_TOOLCHAIN_VERSION:STRING=NONE '-DBOARD_ROOT:STRING=/Users/skajam66/Projects/Nordic/peripheral_lbs;/Users/skajam66/Projects/Nordic/peripheral_lbs_w'
    The terminal process terminated with exit code: 1.

    I have pyenv installed on the Mac and the python active version is 3.9.1.  I have had a previous version of SES configured and working (about a year ago) - I did try to clean that out as best as possible but there might be stuff left behind.

    Regards,

    skajam66

Reply
  • This is strange. Starting again this morning, booting up the Mac, opening up the VS Code etc. and I can now create a configuration as shown in the image.  However, building the application fails with:

    -- Zephyr version: 2.6.99 (/Users/skajam66/Projects/Nordic/zephyr), build: v2.6.99-ncs1-1
    -- Found Python3: /Users/skajam66/.pyenv/shims/python3.9 (found suitable exact version "3.9.1") found components: Interpreter 
    -- Found west (found suitable version "0.8.0", minimum required is "0.7.1")
    CMake Error at /Users/skajam66/Projects/Nordic/zephyr/cmake/zephyr_module.cmake:61 (message):
      Traceback (most recent call last):
    
        File "/Users/skajam66/Projects/Nordic/zephyr/scripts/zephyr_module.py", line 386, in <module>
          main()
        File "/Users/skajam66/Projects/Nordic/zephyr/scripts/zephyr_module.py", line 360, in main
          modules = parse_modules(args.zephyr_base, args.modules, args.extra_modules)
        File "/Users/skajam66/Projects/Nordic/zephyr/scripts/zephyr_module.py", line 258, in parse_modules
          manifest = Manifest.from_file()
        File "/Users/skajam66/.pyenv/versions/3.9.1/lib/python3.9/site-packages/west/manifest.py", line 977, in from_file
          return Manifest(**kwargs)
        File "/Users/skajam66/.pyenv/versions/3.9.1/lib/python3.9/site-packages/west/manifest.py", line 1156, in __init__
          self._load(source_data['manifest'],
        File "/Users/skajam66/.pyenv/versions/3.9.1/lib/python3.9/site-packages/west/manifest.py", line 1367, in _load
          self._load_projects(manifest, url_bases, defaults, ctx)
        File "/Users/skajam66/.pyenv/versions/3.9.1/lib/python3.9/site-packages/west/manifest.py", line 1580, in _load_projects
          self._import_from_project(project, imp, ctx)
        File "/Users/skajam66/.pyenv/versions/3.9.1/lib/python3.9/site-packages/west/manifest.py", line 1692, in _import_from_project
          self._import_path_from_project(project, _WEST_YML, ctx)
        File "/Users/skajam66/.pyenv/versions/3.9.1/lib/python3.9/site-packages/west/manifest.py", line 1723, in _import_path_from_project
          validate(data)
        File "/Users/skajam66/.pyenv/versions/3.9.1/lib/python3.9/site-packages/west/manifest.py", line 363, in validate
          raise ManifestVersionError(min_version_str)
    
      west.manifest.ManifestVersionError: ('0.10', None)
    
    Call Stack (most recent call first):
      /Users/skajam66/Projects/Nordic/zephyr/cmake/app/boilerplate.cmake:182 (include)
      /Users/skajam66/Projects/Nordic/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:24 (include)
      /Users/skajam66/Projects/Nordic/ze/Users/skajam66/Projects/Nordic/peripheral_lbs/build/phyr/share/zephyr-package/cmake/ZephyrConfig.cmake:35 (include_boilerplate)
      /Users/skajam66/Projects/Nordic/peripheral_lbs/build/CMakeLists.txt:8 (find_package)
    
    
    -- Configuring incomplete, errors occurred!
    CMake Error at /Users/skajam66/Projects/Nordic/nrf/cmake/multi_image.cmake:301 (message):
      CMake generation for spm failed, aborting.  Command: 1
    Call Stack (most recent call first):
      /Users/skajam66/Projects/Nordic/nrf/cmake/multi_image.cmake:68 (add_child_image_from_source)
      /Users/skajam66/Projects/Nordic/nrf/samples/CMakeLists.txt:58 (add_child_image)
    
    
    -- Configuring incomplete, errors occurred!
    See also "/Users/skajam66/Projects/Nordic/peripheral_lbs/build/CMakeFiles/CMakeOutput.log".
    See also "/Users/skajam66/Projects/Nordic/peripheral_lbs/build/CMakeFiles/CMakeError.log".
    FATAL ERROR: command exited with status 1: /opt/nordic/ncs/v1.7.1/toolchain/bin/cmake -DWEST_PYTHON=/opt/nordic/ncs/v1.7.1/toolchain/opt/[email protected]/bin/python3.9 -B/Users/skajam66/Projects/Nordic/peripheral_lbs/build -S/Users/skajam66/Projects/Nordic/peripheral_lbs -GNinja -DBOARD=nrf5340dk_nrf5340_cpuapp_ns -DCMAKE_EXPORT_COMPILE_COMMANDS:BOOL=On -DNCS_TOOLCHAIN_VERSION:STRING=NONE '-DBOARD_ROOT:STRING=/Users/skajam66/Projects/Nordic/peripheral_lbs;/Users/skajam66/Projects/Nordic/peripheral_lbs_w'
    The terminal process terminated with exit code: 1.

    I have pyenv installed on the Mac and the python active version is 3.9.1.  I have had a previous version of SES configured and working (about a year ago) - I did try to clean that out as best as possible but there might be stuff left behind.

    Regards,

    skajam66

Children
Related