<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://devzone.nordicsemi.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Problem building with application west.yml in ncs-v1.5.1</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/77146/problem-building-with-application-west-yml-in-ncs-v1-5-1</link><description>We have developed an application in ncs-1.3.0 where we created a west.yml file for the application that lists nrf, zephyr and other dependent repositories. We have downstream clones of all relevant repos to be able to put our corporate fixes into the</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 16 Jul 2021 10:08:02 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/77146/problem-building-with-application-west-yml-in-ncs-v1-5-1" /><item><title>RE: Problem building with application west.yml in ncs-v1.5.1</title><link>https://devzone.nordicsemi.com/thread/320395?ContentTypeID=1</link><pubDate>Fri, 16 Jul 2021 10:08:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2e357f77-2281-4491-9e85-70d01785dd40</guid><dc:creator>Torsten Rasmussen</dc:creator><description>&lt;p&gt;Hi Jens,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Great that you found the issue&amp;nbsp;&lt;span class="emoticon" data-url="https://devzone.nordicsemi.com/cfs-file/__key/system/emoji/1f642.svg" title="Slight smile"&gt;&amp;#x1f642;&lt;/span&gt;&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;I have inherited the project and it turns out our application repository contained a zephyr folder with a module.yml file.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;and that is perfectly legal, but of course you need to check what that CMakeLists.txt file does.&lt;/p&gt;
&lt;p&gt;I did some examination of the `cmake.log` file. Thanks for that, it was really helpful.&lt;/p&gt;
&lt;p&gt;And when reading that, I notice, as you also have found, that your application repo is also a Zephyr module:&lt;/p&gt;
&lt;pre&gt;# Beginning of your application.&lt;br /&gt;1 .../uma_nrf52840_app/applications/uma/CMakeLists.txt(7): cmake_minimum_required(VERSION 3.13.4 ) &lt;br /&gt;2 .../uma_nrf52840_app/applications/uma/CMakeLists.txt(11): set(BOARD_ROOT .../uma_nrf52840_app/applications/uma/../.. )&lt;br /&gt;....&lt;br /&gt;# Zephyr package is being looked up, good.&lt;br /&gt;14 .../uma_nrf52840_app/applications/uma/CMakeLists.txt(71): find_package(Zephyr REQUIRED HINTS C:/workspace/ncs2/zephyr )&lt;br /&gt;...&lt;br /&gt;# Zephyr modules being processed, in this case your app repo.&lt;br /&gt;238902 .../zephyr/CMakeLists.txt(458): if(NOT .../uma_nrf52840_app STREQUAL ) &lt;br /&gt;238903 .../zephyr/CMakeLists.txt(459): set(ZEPHYR_CURRENT_MODULE_DIR .../uma_nrf52840_app ) &lt;br /&gt;238904 .../zephyr/CMakeLists.txt(460): set(ZEPHYR_CURRENT_CMAKE_DIR .../uma_nrf52840_app ) &lt;br /&gt;238905 .../zephyr/CMakeLists.txt(461): add_subdirectory(.../uma_nrf52840_app .../uma_nrf52840_app/_build_uma_nrf52840_uma_ep2_Debug/modules/uma_nrf52840_app )&lt;br /&gt;238906 .../uma_nrf52840_app/CMakeLists.txt(1): cmake_minimum_required(VERSION 3.13.1 ) &lt;br /&gt;&lt;br /&gt;# whoops, a second find_package(Zephyr ...) that doesn&amp;#39;t look good.&lt;br /&gt;238907 .../uma_nrf52840_app/CMakeLists.txt(2): find_package(Zephyr REQUIRED HINTS C:/workspace/ncs2/zephyr )&lt;br /&gt;&lt;br /&gt;&lt;/pre&gt;
&lt;p&gt;so that seems to be your problem indeed.&lt;/p&gt;
&lt;p&gt;Note, that &lt;code&gt;set(BOARD_ROOT ...)&lt;/code&gt; is not needed, you can specify your module to have a board root and avoid such code in the application CMakeLists.txt.&lt;br /&gt;Just do the following in your module.yml in `&lt;code&gt;uma_nrf52840_app/zephyr/module.yml&lt;/code&gt;&lt;/p&gt;
&lt;pre&gt;build:&lt;br /&gt;&amp;nbsp; settings:&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; board_root: .&lt;/pre&gt;
&lt;p&gt;that will pickup additional boards from `&lt;code&gt;&amp;lt;board_root&amp;gt;/boards&lt;/code&gt;`.&lt;/p&gt;
&lt;p&gt;See more here:&lt;br /&gt;&lt;a href="http://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/zephyr/guides/modules.html#build-settings"&gt;http://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/zephyr/guides/modules.html#build-settings&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;My interpretation is that this caused a circular dependency between the application and zephyr, causing the boilerplate.cmake to be included twice from the same project. Thereof the errors about duplicate targets.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;No, the problem seems to be that the included code contains a second &lt;code&gt;`find_package(Zephyr)`&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards&lt;/p&gt;
&lt;p&gt;Torsten&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problem building with application west.yml in ncs-v1.5.1</title><link>https://devzone.nordicsemi.com/thread/320319?ContentTypeID=1</link><pubDate>Thu, 15 Jul 2021 16:00:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bf4d7335-cda4-4a7f-899a-b86bfd2c48a0</guid><dc:creator>Jens Cameron</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;I believe I have resolved the issue.&lt;/p&gt;
&lt;p&gt;I have inherited the project and it turns out our application repository contained a zephyr folder with a module.yml file.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;My interpretation is that this caused a circular dependency between the application and zephyr, causing the boilerplate.cmake to be included twice from the same project. Thereof the errors about duplicate targets.&lt;/p&gt;
&lt;p&gt;I don&amp;#39;t know if the zephyr folder made any sense in ncs-v1.3.1 or if it was just garbage from some example code.&lt;/p&gt;
&lt;p&gt;You may close this ticket.&lt;/p&gt;
&lt;p&gt;Thanks for your help.&lt;/p&gt;
&lt;p&gt;--Jens&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problem building with application west.yml in ncs-v1.5.1</title><link>https://devzone.nordicsemi.com/thread/319950?ContentTypeID=1</link><pubDate>Wed, 14 Jul 2021 08:22:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fa5c435b-7510-42cc-9e67-8ab4738ae851</guid><dc:creator>Jens Cameron</dc:creator><description>&lt;p&gt;Hi Torsten.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;It appears Chrome eats some &amp;quot;Reply&amp;quot; buttons so I accidentally responded to Heidi instead. Could you have a look?&lt;/p&gt;
&lt;p&gt;Regards&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;--Jens&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problem building with application west.yml in ncs-v1.5.1</title><link>https://devzone.nordicsemi.com/thread/319941?ContentTypeID=1</link><pubDate>Wed, 14 Jul 2021 07:46:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e8ec628e-afac-4724-803d-693bb1e3601b</guid><dc:creator>Jens Cameron</dc:creator><description>&lt;p&gt;Hi Torsten&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thanks fo ryour answer.&lt;/p&gt;
&lt;p&gt;Attached our $/uma_nrf52480_app/west.yml file and cmake.log as you suggested.&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;# The west manifest file (west.yml) for the nRF Connect SDK (NCS).
#
# The per-workspace west configuration file, ncs/.west/config,
# specifies the location of this manifest file like this:
#
#     [manifest]
#     path = nrf
#
# See the west documentation for more information:
#
# https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/zephyr/guides/west/index.html

# This is an application west file but ncs requires west to have nrf as base
# Update this reference to point at a specific ncs version including svep fixes
# nrf-revision: bcbc02cb833105acbb35b9ffc83ad3735fa15342

manifest:
  # This west.yml requires west 0.9 or later, because the &amp;quot;submodules&amp;quot;
  # feature used below was introduced then.
  version: 0.9

  # &amp;quot;remotes&amp;quot; is a list of locations where git repositories are cloned
  # and fetched from.
  remotes:
    # nRF Connect SDK GitHub organization.
    # NCS repositories are hosted here.
    # - name: ncs
      # url-base: https://github.com/nrfconnect
    # # Third-party repository sources:
    # - name: zephyrproject
      # url-base: https://github.com/zephyrproject-rtos
    # - name: throwtheswitch
      # url-base: https://github.com/ThrowTheSwitch
    # - name: armmbed
      # url-base: https://github.com/ARMmbed
    # - name: nanopb
      # url-base: https://github.com/nanopb
    # - name: alexa
      # url-base: https://github.com/alexa
    # - name: nordicsemi
      # url-base: https://github.com/NordicSemiconductor
    - name: svep
      url-base: git@repository.svep.se:1852-08

  # If not otherwise specified, the projects below should be obtained
  # from the ncs remote.
  defaults:
    remote: svep

  # &amp;quot;projects&amp;quot; is a list of git repositories which make up the NCS
  # source code.
  projects:

    # The Zephyr RTOS fork in the NCS, along with the subset of its
    # modules which NCS imports directly.
    #
    # https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/zephyr/introduction/index.html
    # https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/zephyr/guides/modules.html
    - name: nrf
      repo-path: fw-nrfconnect-nrf
      #official repo-path: sdk-nrf
      path: nrf
      revision: bcbc02cb833105acbb35b9ffc83ad3735fa15342 # ncs-v1.5.1-svep
      west-commands: scripts/west-commands.yml
    - name: fw-nrfconnect-zephyr
      path: zephyr
      west-commands: scripts/west-commands.yml
      revision: 484f5a58c9ce60fc06aa464359cfd04b61390bd1 # v2.4.99-ncs2-svep
    - name: cmsis
      revision: 421dcf358fa420e9721a8452c647f0d42af8d68c
      path: modules/hal/cmsis
    - name: segger
      revision: 38c79a447e4a47d413b4e8d34448316a5cece77c
      path: modules/debug/segger
      # remote: zephyrproject
    - name: should_be_modules_dash_crypto_dash_mbedtls # crypto_mbedtls
      path: modules/crypto/mbedtls
      revision: 13cf2e52024a144ecee9f37680681760a85febab
      # remote: zephyrproject
    - name: mcuboot
      repo-path: sdk-mcuboot
      revision: 11aa5f08cf9dd5815f5cf51ecf6e21f9c1ab65e6 # svep-v1.5.1
      path: bootloader/mcuboot
    - name: mcumgr
      repo-path: fw-nrfconnect-mcumgr
      revision: 43845e883ff3a6cdaae22e23f3e60b5fcf78c6ba
      path: modules/lib/mcumgr
    - name: tinycbor
      repo-path: fw-nrfconnect-tinycbor
      path: modules/lib/tinycbor
      revision: 40daca97b478989884bffb5226e9ab73ca54b8c4
      # remote: zephyrproject
    - name: ci-tools
      path: tools/ci-tools
      # remote: zephyrproject
      revision: da9a2df574094f52d87a03f6393928bdc7dce17c
    - name: net-tools
      path: tools/net-tools
      # remote: zephyrproject
      revision: 41132e9220f8bc1223084975350c5e5f3b492afe
    - name: nrfxlib
      repo-path: nrfxlib
      path: nrfxlib
      revision: 3cff48e890b037a0fe2964091702cb1c1bb59926 # v1.5.1
    - name: cmock
      path: test/cmock
      revision: 9d092898ef26ece140d9225e037274b64d4f851e
      # remote: throwtheswitch
    - name: unity
      path: test/cmock/vendor/unity
      revision: 74cde089e65c3435ce9aa87d5c69f4f16b7f6ade
      # remote: throwtheswitch
    - name: mbedtls-nrf
      path: mbedtls
      repo-path: fw-nrfconnect-mbedtls
      revision: 523f0554b6cdc7ace5d360885c3f5bbcc73ec0e8 # mbedtls-2.24.0
      # remote: armmbed
#    - name: civetweb
#      path: modules/lib/civetweb
#      remote: civetweb
#      revision: 99129c5efc907ea613c4b73ccff07581feb58a7a
#    - name: edtt
#      path: tools/edtt
#      remote: zephyrproject
#      revision: dd4dd502ef2fbeced6ef7faaba562a7ddca45632
    - name: fatfs
      path: modules/fs/fatfs
      # remote: zephyrproject
      revision: 1d1fcc725aa1cb3c32f366e0c53d7490d0fe1109
    - name: hal_nordic
      path: modules/hal/nordic
      # remote: zephyrproject
      revision: b96360f2446b772c2495ca49d4137b9b8f4bb2a8 # v1.5.1
    - name: hal_st
      path: modules/hal/st
      # remote: zephyrproject
      revision: b52fdbf4b62439be9fab9bb4bae9690a42d2fb14
    - name: libmetal
      path: modules/hal/libmetal
      # remote: zephyrproject
      revision: 9d4ee2c3cfd5f49861939447990f3b7d7bf9bf94
#    - name: loramac-node
#      path: modules/lib/loramac-node
#      remote: zephyrproject
#      revision: 29e516ec585b1a909af2b5f1c60d83e7d4d563e3
#    - name: lvgl
#      path: modules/lib/gui/lvgl
#      remote: zephyrproject
#      revision: 74fc2e753a997bd71cefa34dd9c56dcb954b42e2
    - name: nrf_hw_models
      path: modules/bsim_hw_models/nrf_hw_models
      # remote: zephyrproject
      revision: a47e326ca772ddd14cc3b9d4ca30a9ab44ecca16
    - name: open-amp
      path: modules/lib/open-amp
      # remote: zephyrproject
      revision: de1b85a13032a2de1d8b6695ae5f800b613e739d
    - name: openthread
      path: modules/lib/openthread
      # remote: zephyrproject
      revision: aad6518ee30d3840411b21437d396f0405e947c3
    - name: littlefs
      path: modules/fs/littlefs
      # remote: zephyrproject
      revision: 9e4498d1c73009acd84bb36036ee5e2869112a6c
    - name: mipi-sys-t
      path: modules/debug/mipi-sys-t
      # remote: zephyrproject
      revision: 75e671550ac1acb502f315fe4952514dc73f7bfb
#    - name: canopennode
#      path: modules/lib/canopennode
# #      remote: zephyrproject
#      revision: 5c6b0566d56264efd4bf23ed58bc7cb8b32fe063
    - name: tinycrypt
      path: modules/crypto/tinycrypt
      # remote: zephyrproject
      revision: 3e9a49d2672ec01435ffbf0d788db6d95ef28de0

  # West-related configuration for the nrf repository.
  self:
    # This repository should be cloned to ncs/nrf.
    path: uma_nrf52840_app
    # This line configures west extensions which are currently only
    # for internal use by NCS maintainers.
    # west-commands: scripts/west-commands.yml
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/cmake.log"&gt;devzone.nordicsemi.com/.../cmake.log&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;You are probably right that there is some misconfig in the mcuboot setup. Al repos are updated (a few of them&amp;nbsp;are one or two commits past the official&amp;nbsp;v1.5.1&amp;nbsp; but nothing I could imagine affects this).&lt;/p&gt;
&lt;p&gt;mcuboot is checked ou tin the folder $/bootloader/mcuboot, just as it is in the $/nrf/west.yml. There is no mcuboot in $/modules. We had to add a prj.conf into th e$/nrf/modules/mcuboot to make it build but other than that we haven&amp;#39;t manipulated anything in $/nrf folder.&lt;/p&gt;
&lt;p&gt;My suspicion with boilerplate included twice is cmake errors like&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;CMake Error at C:/workspace/ncs2/zephyr/cmake/app/boilerplate.cmake:94 (add_custom_target):
  add_custom_target cannot create target &amp;quot;code_data_relocation_target&amp;quot;
  because another target with the same name already exists.  The existing
  target is a custom target created in source directory
  &amp;quot;C:/workspace/ncs2/uma_nrf52840_app/applications/uma&amp;quot;.  See documentation
  for policy CMP0002 for more details.
Call Stack (most recent call first):
  C:/workspace/ncs2/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:24 (include)
  C:/workspace/ncs2/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:40 (include_boilerplate)
  ../../CMakeLists.txt:2 (find_package)
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;but as the project is building when the $/uma_nrf52840_app/west.yml claims that nrf is the &amp;quot;self&amp;quot; repo it is probably irrelevant.&lt;/p&gt;
&lt;p&gt;We use a slightly modified version of the mcuboot main located in $/bootloader/mcuboot/boot/zephyr.&lt;/p&gt;
&lt;p&gt;If I understand you correctly we also need to put something under $/nrf/modules/mcuboot (other than prj.conf), or configure the system to look&amp;nbsp;directly in $/bootloader/mcuboot for files?&lt;/p&gt;
&lt;p&gt;What is puzzeling to me is that the project builds if I change the name in the west file to nrf (and remove the nrf subproject).&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problem building with application west.yml in ncs-v1.5.1</title><link>https://devzone.nordicsemi.com/thread/319608?ContentTypeID=1</link><pubDate>Mon, 12 Jul 2021 13:23:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a047651e-288f-4bef-bb21-a77c59cc4683</guid><dc:creator>Torsten Rasmussen</dc:creator><description>&lt;p&gt;Hi Jens,&lt;br /&gt;&lt;br /&gt;Thanks for your detailed report.&lt;br /&gt;I have not been able to reproduce the error you are facing, so let me first try to provide links / info on how you should be able to achieve what you want.&lt;br /&gt;&lt;br /&gt;Based on your description, I understand it so that your prefered way is to have the application itself as the manifest repo.&lt;br /&gt;That is described here: &lt;a href="http://developer.nordicsemi.com/nRF_Connect_SDK/doc/1.5.1/nrf/dm_adding_code.html#workflow-4-application-as-the-manifest-repository"&gt;developer.nordicsemi.com/.../dm_adding_code.html&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;with a detailed example.&lt;/p&gt;
&lt;p&gt;Could you try to go through that description and verify that you are doing things according to the guide.&lt;br /&gt;&lt;br /&gt;Besides doing so, then let me try to reply some of your earlier questions&amp;nbsp; and observations.&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;Using our custom application/west.yml fails with different error, semms to indicate that boilerplate.cmake is imported twice.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;are your referring to those messages ?&lt;br /&gt;&lt;br /&gt;&lt;code&gt;Including boilerplate (Zephyr base): C:/workspace/ncs2/zephyr/cmake/app/boilerplate.cmake&lt;/code&gt;&lt;br /&gt;&lt;code&gt;....&lt;/code&gt;&lt;br /&gt;&lt;code&gt;=== child image mcuboot -&amp;nbsp; begin ===&lt;/code&gt;&lt;br /&gt;&lt;code&gt;Including boilerplate (Zephyr base): C:/workspace/ncs2/zephyr/cmake/app/boilerplate.cmake&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;then that is expected behavior because each child image is built as an independent NCS / Zephyr application and thus each of them will source the boilerplate code for their own build.&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;Apparently the west file is not only for synchronizing repositories but also part of the build process.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;when west is used for repository management, then the build system will use west to gather a list of projects / repositories handled by west to ensure those repositories are included into the build.&lt;br /&gt;&lt;br /&gt;Each of the repositories returned by west is examined to see if it contains a &lt;code&gt;zephyr/module.yml&lt;/code&gt; file, and if so, the repo is considered a Zephyr module and included in the build.&lt;br /&gt;See more details here: &lt;a href="http://developer.nordicsemi.com/nRF_Connect_SDK/doc/1.5.1/zephyr/guides/modules.html#integrate-modules-in-zephyr-build-system"&gt;developer.nordicsemi.com/.../modules.html&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;&lt;code&gt;C:/workspace/ncs2/zephyr/scripts/kconfig/kconfig.py: C:/workspace/ncs2/uma_nrf52840_app/_build_uma_nrf52840_uma_ep2_Debug/Kconfig/Kconfig.modules:2: Could not open &amp;#39;C:\workspace\ncs2\zephyr\&amp;#39; (in &amp;#39;osource &amp;quot;$(ZEPHYR_MCUBOOT_KCONFIG)&amp;quot;&amp;#39;) (ENOENT: No such file or directory)&lt;/code&gt;&lt;br /&gt;&lt;code&gt;20 CMake Error at C:/workspace/ncs2/zephyr/cmake/kconfig.cmake:262 (message):&lt;/code&gt;&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;This error is puzzling to me.&lt;br /&gt;The presence of ZEPHYR_MCUBOOT_KCONFIG indicates that Mcuboot is found as a Zephyr module, so the repo is present and having a `zephyr/module.yml file, with &lt;code&gt;`kconfig-ext: True`&lt;/code&gt; as content.&lt;/p&gt;
&lt;p&gt;But the `&lt;code&gt;No such file or directory`&lt;/code&gt; indicates that either the repo is not located at the expected location, the `&lt;code&gt;modules/mcuboot/Kconfig&lt;/code&gt;` file is missing in your fork (&lt;a href="https://github.com/nrfconnect/sdk-nrf/blob/v1.5.1/modules/mcuboot/Kconfig)"&gt;github.com/.../Kconfig)&lt;/a&gt;, which I doubt, or that &lt;code&gt;modules/modules.cmake&lt;/code&gt; has not been processed (&lt;a href="https://github.com/nrfconnect/sdk-nrf/blob/v1.5.1/modules/modules.cmake)."&gt;github.com/.../modules.cmake).&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Could you try to re-run CMake with the `--trace-expand` option and attach the output ?&lt;/p&gt;
&lt;pre&gt;cd C:/workspace/ncs2/uma_nrf52840_app/_build_uma_nrf52840_uma_ep2_Debug&lt;br /&gt;cmake --trace-expand . 2&amp;gt; cmake.trace&lt;/pre&gt;
&lt;p&gt;This will provide valuable info on what is actually happening in the system.&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;If we replace the last few lines of west.yml with&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;Just replacing `path: nrf` with `path: app` and not change the folder layout is bound to give unexpected behavior. So let&amp;#39;s try to get your manifest file in a shape where the import of sdk-nrf is actually working.&lt;/p&gt;
&lt;p&gt;Remember, it&amp;#39;s not enough to update just sdk-nrf to 1.5.1&lt;br /&gt;You must also update your mcuboot fork to be based on the version used in 1.5.1, and similar for other repos you have forked.&lt;br /&gt;I assume you have already done so, just trying to make it safe here ;-)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problem building with application west.yml in ncs-v1.5.1</title><link>https://devzone.nordicsemi.com/thread/319303?ContentTypeID=1</link><pubDate>Fri, 09 Jul 2021 08:13:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:76e48136-5141-475c-8a48-fba1c0c0b049</guid><dc:creator>Jens Cameron</dc:creator><description>&lt;p&gt;We are using west vrsoin 0.9 as in the toolchain for ncs-v1.5.1.&lt;br /&gt;Technically we are fetching the contents of&amp;nbsp;&lt;br /&gt;&lt;a href="https://developer.nordicsemi.com/.pc-tools/toolchain/ncs-toolchain-v1.5.1-20210416-96ab6aa.zip"&gt;https://developer.nordicsemi.com/.pc-tools/toolchain/ncs-toolchain-v1.5.1-20210416-96ab6aa.zip&lt;br /&gt;&lt;/a&gt;and unzip these into the Toolchain subfolder.&lt;br /&gt;&lt;br /&gt;We have tried it in a freshly installed HyperV VM so we are pretty sure nothing else in the system clobbers the behaviour.&lt;br /&gt;&lt;br /&gt;The repository related commands &amp;quot;west init -l&amp;quot; and &amp;quot;west update&amp;quot; works without problem. It is in the build proces we get errors.&lt;br /&gt;&lt;br /&gt;It turns out we can use a west file in our application directory as long as it ends with the following lines:&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;  # West-related configuration for the nrf repository.
  self:
    # This repository should be cloned to ncs/nrf.
    path: nrf
    # This line configures west extensions which are currently only
    # for internal use by NCS maintainers.
    west-commands: scripts/west-commands.yml
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;First log lines from build looks like this:&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;  1 bash scripts/nrf_version_check.sh
  2 cmake -B_build_uma_nrf52840_uma_ep2_Debug -GNinja -DBOARD=nrf52840_uma_ep2 -S applications/uma -DCMAKE_BUILD_TYPE=Debug
  3 CMake setup for debug build
  4 Including boilerplate (Zephyr base): C:/workspace/ncs2/zephyr/cmake/app/boilerplate.cmake
  5 -- Application: C:/workspace/ncs2/uma_nrf52840_app/applications/uma
  6 -- Using NCS Toolchain 1.5.1 for building. (C:/workspace/ncs3/toolchain/cmake)
  7 -- Zephyr version: 2.4.99 (C:/workspace/ncs2/zephyr)
  8 -- Found Python3: C:/workspace/ncs3/toolchain/opt/bin/python.exe (found suitable exact version &amp;quot;3.8.2&amp;quot;) found components: Interpreter 
  9 -- Found west (found suitable version &amp;quot;0.9.0&amp;quot;, minimum required is &amp;quot;0.7.1&amp;quot;)
 10 -- Board: nrf52840_uma_ep2
 11 -- Cache files will be written to: C:/workspace/ncs2/zephyr/.cache
 12 -- Found dtc: C:/workspace/ncs3/toolchain/opt/bin/dtc.exe (found suitable version &amp;quot;1.4.7&amp;quot;, minimum required is &amp;quot;1.4.6&amp;quot;)
 13 -- Found toolchain: gnuarmemb (C:/workspace/ncs3/toolchain/opt)
 14 -- Found BOARD.dts: C:/workspace/ncs2/uma_nrf52840_app/boards/arm/nrf52840_uma/nrf52840_uma_ep2.dts
 15 -- Generated zephyr.dts: C:/workspace/ncs2/uma_nrf52840_app/_build_uma_nrf52840_uma_ep2_Debug/zephyr/zephyr.dts
 16 -- Generated devicetree_unfixed.h: C:/workspace/ncs2/uma_nrf52840_app/_build_uma_nrf52840_uma_ep2_Debug/zephyr/include/generated/devicetree_unfixed.h
 17 -- Generated device_extern.h: C:/workspace/ncs2/uma_nrf52840_app/_build_uma_nrf52840_uma_ep2_Debug/zephyr/include/generated/device_extern.h
 18 Parsing C:/workspace/ncs2/uma_nrf52840_app/applications/uma/Kconfig
 19 Loaded configuration &amp;#39;C:/workspace/ncs2/uma_nrf52840_app/boards/arm/nrf52840_uma/nrf52840_uma_ep2_defconfig&amp;#39;
 20 Merged configuration &amp;#39;prj.conf&amp;#39;
 21 Merged configuration &amp;#39;debug.conf&amp;#39;
 22 Configuration saved to &amp;#39;C:/workspace/ncs2/uma_nrf52840_app/_build_uma_nrf52840_uma_ep2_Debug/zephyr/.config&amp;#39;
 23 Kconfig header saved to &amp;#39;C:/workspace/ncs2/uma_nrf52840_app/_build_uma_nrf52840_uma_ep2_Debug/zephyr/include/generated/autoconf.h&amp;#39;
 24 -- The C compiler identification is GNU 9.2.1
 25 -- The CXX compiler identification is GNU 9.2.1
 26 -- The ASM compiler identification is GNU
 27 -- Found assembler: C:/workspace/ncs3/toolchain/opt/bin/arm-none-eabi-gcc.exe
 28 
 29 === child image mcuboot -  begin ===
 30 Including boilerplate (Zephyr base): C:/workspace/ncs2/zephyr/cmake/app/boilerplate.cmake
 31 -- Application: C:/workspace/ncs2/bootloader/mcuboot/boot/zephyr
&lt;/pre&gt;&lt;br /&gt;If we replace the last few lines of west.yml with&amp;nbsp;&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;  # West-related configuration for the nrf repository.
  self:
    # This repository should be cloned to ncs/nrf.
    path: app
    # This line configures west extensions which are currently only
    # for internal use by NCS maintainers.
    west-commands: scripts/west-commands.yml
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;The west commands still work but the build fails. Log in this case becomes:&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt; 1 bash scripts/nrf_version_check.sh
 2 cmake -B_build_uma_nrf52840_uma_ep2_Debug -GNinja -DBOARD=nrf52840_uma_ep2 -S applications/uma -DCMAKE_BUILD_TYPE=Debug
 3 CMake setup for debug build
 4 Including boilerplate (Zephyr base): C:/workspace/ncs2/zephyr/cmake/app/boilerplate.cmake
 5 -- Application: C:/workspace/ncs2/uma_nrf52840_app/applications/uma
 6 -- Using NCS Toolchain 1.5.1 for building. (C:/workspace/ncs3/toolchain/cmake)
 7 -- Zephyr version: 2.4.99 (C:/workspace/ncs2/zephyr)
 8 -- Found Python3: C:/workspace/ncs3/toolchain/opt/bin/python.exe (found suitable exact version &amp;quot;3.8.2&amp;quot;) found components: Interpreter 
 9 -- Found west (found suitable version &amp;quot;0.9.0&amp;quot;, minimum required is &amp;quot;0.7.1&amp;quot;)
10 -- Board: nrf52840_uma_ep2
11 -- Cache files will be written to: C:/workspace/ncs2/zephyr/.cache
12 -- Found dtc: C:/workspace/ncs3/toolchain/opt/bin/dtc.exe (found suitable version &amp;quot;1.4.7&amp;quot;, minimum required is &amp;quot;1.4.6&amp;quot;)
13 -- Found toolchain: gnuarmemb (C:/workspace/ncs3/toolchain/opt)
14 -- Found BOARD.dts: C:/workspace/ncs2/uma_nrf52840_app/boards/arm/nrf52840_uma/nrf52840_uma_ep2.dts
15 -- Generated zephyr.dts: C:/workspace/ncs2/uma_nrf52840_app/_build_uma_nrf52840_uma_ep2_Debug/zephyr/zephyr.dts
16 -- Generated devicetree_unfixed.h: C:/workspace/ncs2/uma_nrf52840_app/_build_uma_nrf52840_uma_ep2_Debug/zephyr/include/generated/devicetree_unfixed.h
17 -- Generated device_extern.h: C:/workspace/ncs2/uma_nrf52840_app/_build_uma_nrf52840_uma_ep2_Debug/zephyr/include/generated/device_extern.h
18 Parsing C:/workspace/ncs2/uma_nrf52840_app/applications/uma/Kconfig
19 C:/workspace/ncs2/zephyr/scripts/kconfig/kconfig.py: C:/workspace/ncs2/uma_nrf52840_app/_build_uma_nrf52840_uma_ep2_Debug/Kconfig/Kconfig.modules:2: Could not open &amp;#39;C:\workspace\ncs2\zephyr\&amp;#39; (in &amp;#39;osource &amp;quot;$(ZEPHYR_MCUBOOT_KCONFIG)&amp;quot;&amp;#39;) (ENOENT: No such file or directory)
20 CMake Error at C:/workspace/ncs2/zephyr/cmake/kconfig.cmake:262 (message):
21   command failed with return code: 1
22 Call Stack (most recent call first):
23   C:/workspace/ncs2/zephyr/cmake/app/boilerplate.cmake:534 (include)
24   C:/workspace/ncs2/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:24 (include)
25   C:/workspace/ncs2/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:35 (include_boilerplate)
26   CMakeLists.txt:71 (find_package)
27 
28 
29 -- Configuring incomplete, errors occurred!
30 make: *** [Makefile:86: uma_nrf52840_uma_ep2_Debug] Error 1
&lt;/pre&gt;&lt;br /&gt;To me it appears that it doesn&amp;#39;t have with hte repositories to do but with some other use of the west file in the build process.&lt;br /&gt;&lt;br /&gt;We can work with a custom west.yml file in the application folder like this but it is error prone to not have repository management for the nrf folder but have to synchronize application and nrf repositories manually.&lt;br /&gt;We will eventually hadnd over the code to our customer that will maintain it and to have repository management streamlined would definitely be an advantage.&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problem building with application west.yml in ncs-v1.5.1</title><link>https://devzone.nordicsemi.com/thread/319223?ContentTypeID=1</link><pubDate>Thu, 08 Jul 2021 14:47:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a1cd04aa-3f19-432d-b0fe-16fc84832dc0</guid><dc:creator>Heidi</dc:creator><description>&lt;p&gt;Hi!&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Which version of west are you using?&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;br /&gt;&lt;em&gt;Please note that due to the summer holidays in Norway, a large portion of the staff are on vacation in the next few weeks and delays are to be expected.&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Heidi&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>