<?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>nRF connect SDK - broken build</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/73385/nrf-connect-sdk---broken-build</link><description>Hi, after a couple of months of inactivity I try to rebuild my Zephyr-based application under nRF Connect SDK, tag 1.3.0. I’m dumb-founded to see this unexpected print hereunder. What’s going on ? Is it anything I did that broke the system ? 
 Thank you</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 22 Apr 2021 10:45:58 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/73385/nrf-connect-sdk---broken-build" /><item><title>RE: nRF connect SDK - broken build</title><link>https://devzone.nordicsemi.com/thread/306290?ContentTypeID=1</link><pubDate>Thu, 22 Apr 2021 10:45:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6bca2a7f-0d3d-4252-92a5-c11bb4f6aa8f</guid><dc:creator>Marte Myrvold</dc:creator><description>&lt;p&gt;Hi Gabriele,&lt;/p&gt;
&lt;p&gt;Great to hear that you figured it out and that it builds correctly now!&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Marte&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF connect SDK - broken build</title><link>https://devzone.nordicsemi.com/thread/306240?ContentTypeID=1</link><pubDate>Thu, 22 Apr 2021 08:09:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:350f1e64-208c-462a-8dc1-84d3b4d6bdfb</guid><dc:creator>Gabriele</dc:creator><description>&lt;p&gt;Hello Marte,&lt;br /&gt;I apologize for the late reply.&lt;br /&gt;MCUBOOT was only one of the problem I have fixed.&lt;/p&gt;
&lt;p&gt;I had to remove from CMakeList.txt the following statement&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;set(mcuboot_CONF_FILE ${CMAKE_CURRENT_SOURCE_DIR}/mcuboot.conf)&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;where the mcuboot.conf content is &amp;quot;CONFIG_MCUBOOT_LOG_LEVEL_OFF=y&amp;quot;&lt;br /&gt;Now the bootloader is correctly built along with parent application.&lt;br /&gt;Gabriele&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF connect SDK - broken build</title><link>https://devzone.nordicsemi.com/thread/305031?ContentTypeID=1</link><pubDate>Thu, 15 Apr 2021 09:49:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5a0cd09c-5971-4a53-a8f5-8aae6311722d</guid><dc:creator>Marte Myrvold</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Do you have &lt;span&gt;CONFIG_BOOTLOADER_MCUBOOT=y&amp;nbsp;&lt;/span&gt;in prj.conf? In order to change configurations, you must also add the configuration to the prj.conf file, as this file is used for the application settings and is merged with a board file (*_defconfig) to set the initial configurations.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Marte&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF connect SDK - broken build</title><link>https://devzone.nordicsemi.com/thread/304286?ContentTypeID=1</link><pubDate>Mon, 12 Apr 2021 13:06:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:06cd42cc-7cd3-492d-a52a-b89248b32c4b</guid><dc:creator>Gabriele</dc:creator><description>&lt;p&gt;Hi,&lt;br /&gt;as requested in that abstruse guide,&lt;br /&gt;I&amp;#39;ve added the following chunck of code to parent application&amp;#39;s&amp;nbsp;CMakeLists.txt&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;if (CONFIG_BOOTLOADER_MCUBOOT)
add_child_image(
NAME mcuboot
SOURCE_DIR ${MCUBOOT_DIR}/boot/zephyr
)
endif()&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;No variation is observed in the build output.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF connect SDK - broken build</title><link>https://devzone.nordicsemi.com/thread/302761?ContentTypeID=1</link><pubDate>Wed, 31 Mar 2021 13:26:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bc5a0424-e9c0-4401-904f-45344d23b98d</guid><dc:creator>Marte Myrvold</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Did you add MCUboot as a child image following&amp;nbsp;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/1.5.0/nrf/ug_multi_image.html#defining-and-enabling-a-child-image"&gt;this guide for defining and enabling a child image&lt;/a&gt;?&lt;/p&gt;
&lt;p&gt;Please note that due to Easter we are short staffed, so response time might be slower. It will be back to normal Tuesday 6th of April.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Marte&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF connect SDK - broken build</title><link>https://devzone.nordicsemi.com/thread/302579?ContentTypeID=1</link><pubDate>Tue, 30 Mar 2021 12:28:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b7e14da6-13f9-4b94-8c46-e926e1b875fa</guid><dc:creator>Gabriele</dc:creator><description>&lt;p&gt;Hello Marte,&lt;br /&gt;Thank you for your advice.&lt;br /&gt;Meanwhile I&amp;#39;ve decided to move NCS ahead, from 1.3.0 to 1.5.0.&lt;br /&gt;The environment variable are now OK.&lt;br /&gt;I can successfully rebuild the Hello World sample application again usign my off-tree board definition.&lt;br /&gt;Unfortunately a Kconfig issue comes when building MCUBoot as a child application.&lt;/p&gt;
&lt;p&gt;In main CMakeList.txt I have this:&lt;br /&gt;set(mcuboot_CONF_FILE&lt;br /&gt; ${CMAKE_CURRENT_SOURCE_DIR}/mcuboot_config_file.conf&lt;br /&gt; )&lt;/p&gt;
&lt;p&gt;In mcuboot_config_file.conf I have only this:&lt;br /&gt;CONFIG_MCUBOOT_LOG_LEVEL_OFF=y&lt;/p&gt;
&lt;p&gt;Then I run:&lt;br /&gt;$ cmake -B build -GNinja -DBOARD_ROOT=&amp;quot;/home/gabriele/qi2m-dev/board-definition&amp;quot; .&lt;/p&gt;
&lt;p&gt;and&amp;nbsp; this is what I get&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;CMake suite maintained and supported by Kitware (kitware.com/cmake).
rm: cannot remove &amp;#39;build&amp;#39;: No such file or directory
Including boilerplate (Zephyr base): /home/gabriele/qi2m-dev/nrf53sdk/ncs/zephyr/cmake/app/boilerplate.cmake
-- Application: /home/gabriele/qi2m-dev/apps/fot
-- Zephyr version: 2.4.99 (/home/gabriele/qi2m-dev/nrf53sdk/ncs/zephyr)
-- Found Python3: /usr/bin/python3.8 (found suitable exact version &amp;quot;3.8.5&amp;quot;) found components: Interpreter 
-- Found west (found suitable version &amp;quot;0.9.99&amp;quot;, minimum required is &amp;quot;0.7.1&amp;quot;)
-- Board: qi2m_nrf5340_cpuapp
-- Cache files will be written to: /home/gabriele/.cache/zephyr
-- Found dtc: /home/gabriele/qi2m-dev/nrf53sdk/zephyr/sdk/bin/dtc (found suitable version &amp;quot;1.6.0&amp;quot;, minimum required is &amp;quot;1.4.6&amp;quot;)
-- Found toolchain: gnuarmemb (/home/gabriele/qi2m-dev/nrf53sdk/sdk/gnu-arm-emb-toolchain)
-- Found BOARD.dts: /home/gabriele/qi2m-dev/board-definition/boards/arm/qi2m_nrf5340/qi2m_nrf5340_cpuapp.dts
-- Found devicetree overlay: src/qi2m.overlay
qi2m_nrf5340_cpuapp.dts.pre.tmp:61.42-73.3: Warning (unique_unit_address_if_enabled): /soc/peripheral@50000000/flash-controller@39000: duplicate unit-address (also used in node /soc/peripheral@50000000/kmu@39000)
qi2m_nrf5340_cpuapp.dts.pre.tmp:348.19-354.3: Warning (unique_unit_address_if_enabled): /soc/peripheral@50000000/clock@5000: duplicate unit-address (also used in node /soc/peripheral@50000000/power@5000)
qi2m_nrf5340_cpuapp.dts.pre.tmp:588.31-589.5: Warning (unique_unit_address_if_enabled): /reserved-memory/image@20000000: duplicate unit-address (also used in node /reserved-memory/image_s@20000000)
  also defined at qi2m_nrf5340_cpuapp.dts.pre.tmp:608.14-610.3
-- Generated zephyr.dts: /home/gabriele/qi2m-dev/apps/fot/build/zephyr/zephyr.dts
-- Generated devicetree_unfixed.h: /home/gabriele/qi2m-dev/apps/fot/build/zephyr/include/generated/devicetree_unfixed.h
-- Generated device_extern.h: /home/gabriele/qi2m-dev/apps/fot/build/zephyr/include/generated/device_extern.h
Parsing /home/gabriele/qi2m-dev/apps/fot/Kconfig
Loaded configuration &amp;#39;/home/gabriele/qi2m-dev/board-definition/boards/arm/qi2m_nrf5340/qi2m_nrf5340_cpuapp_defconfig&amp;#39;
Merged configuration &amp;#39;/home/gabriele/qi2m-dev/apps/fot/prj.conf&amp;#39;
Configuration saved to &amp;#39;/home/gabriele/qi2m-dev/apps/fot/build/zephyr/.config&amp;#39;
Kconfig header saved to &amp;#39;/home/gabriele/qi2m-dev/apps/fot/build/zephyr/include/generated/autoconf.h&amp;#39;
-- The C compiler identification is GNU 10.2.1
-- The CXX compiler identification is GNU 10.2.1
-- The ASM compiler identification is GNU
-- Found assembler: /home/gabriele/qi2m-dev/nrf53sdk/sdk/gnu-arm-emb-toolchain/bin/arm-none-eabi-gcc
CMake Warning at /home/gabriele/qi2m-dev/nrf53sdk/ncs/zephyr/CMakeLists.txt:414 (message):
  One or more dts_fixup.h files detected:

  -
  /home/gabriele/qi2m-dev/board-definition/boards/arm/qi2m_nrf5340/dts_fixup.h

  Use of these files is deprecated; use the devicetree.h API instead.

=== child image mcuboot -  begin ===
Including boilerplate (Zephyr base): /home/gabriele/qi2m-dev/nrf53sdk/ncs/zephyr/cmake/app/boilerplate.cmake
-- Application: /home/gabriele/qi2m-dev/nrf53sdk/ncs/bootloader/mcuboot/boot/zephyr
-- Zephyr version: 2.4.99 (/home/gabriele/qi2m-dev/nrf53sdk/ncs/zephyr)
-- Found Python3: /usr/bin/python3.8 (found suitable exact version &amp;quot;3.8.5&amp;quot;) found components: Interpreter 
-- Found west (found suitable version &amp;quot;0.9.99&amp;quot;, minimum required is &amp;quot;0.7.1&amp;quot;)
-- Board: qi2m_nrf5340_cpuapp
-- Cache files will be written to: /home/gabriele/.cache/zephyr
-- Found dtc: /home/gabriele/qi2m-dev/nrf53sdk/zephyr/sdk/bin/dtc (found suitable version &amp;quot;1.6.0&amp;quot;, minimum required is &amp;quot;1.4.6&amp;quot;)
-- Found toolchain: gnuarmemb (/home/gabriele/qi2m-dev/nrf53sdk/sdk/gnu-arm-emb-toolchain)
-- Found BOARD.dts: /home/gabriele/qi2m-dev/board-definition/boards/arm/qi2m_nrf5340/qi2m_nrf5340_cpuapp.dts
-- Found devicetree overlay: /home/gabriele/qi2m-dev/nrf53sdk/ncs/bootloader/mcuboot/boot/zephyr/dts.overlay
qi2m_nrf5340_cpuapp.dts.pre.tmp:61.42-73.3: Warning (unique_unit_address_if_enabled): /soc/peripheral@50000000/flash-controller@39000: duplicate unit-address (also used in node /soc/peripheral@50000000/kmu@39000)
qi2m_nrf5340_cpuapp.dts.pre.tmp:348.19-354.3: Warning (unique_unit_address_if_enabled): /soc/peripheral@50000000/clock@5000: duplicate unit-address (also used in node /soc/peripheral@50000000/power@5000)
qi2m_nrf5340_cpuapp.dts.pre.tmp:588.31-589.5: Warning (unique_unit_address_if_enabled): /reserved-memory/image@20000000: duplicate unit-address (also used in node /reserved-memory/image_s@20000000)
  also defined at qi2m_nrf5340_cpuapp.dts.pre.tmp:608.14-610.3
-- Generated zephyr.dts: /home/gabriele/qi2m-dev/apps/fot/build/mcuboot/zephyr/zephyr.dts
-- Generated devicetree_unfixed.h: /home/gabriele/qi2m-dev/apps/fot/build/mcuboot/zephyr/include/generated/devicetree_unfixed.h
-- Generated device_extern.h: /home/gabriele/qi2m-dev/apps/fot/build/mcuboot/zephyr/include/generated/device_extern.h
Parsing /home/gabriele/qi2m-dev/nrf53sdk/ncs/bootloader/mcuboot/boot/zephyr/Kconfig
Loaded configuration &amp;#39;/home/gabriele/qi2m-dev/board-definition/boards/arm/qi2m_nrf5340/qi2m_nrf5340_cpuapp_defconfig&amp;#39;
Merged configuration &amp;#39;/home/gabriele/qi2m-dev/apps/fot/mcuboot_config_file.conf&amp;#39;
Merged configuration &amp;#39;/home/gabriele/qi2m-dev/nrf53sdk/ncs/nrf/subsys/partition_manager/partition_manager_enabled.conf&amp;#39;

warning: The choice symbol MCUBOOT_LOG_LEVEL_OFF (defined at
subsys/logging/Kconfig.template.log_config:8) was selected (set =y), but no symbol ended up as the
choice selection. See
http://docs.zephyrproject.org/latest/reference/kconfig/CONFIG_MCUBOOT_LOG_LEVEL_OFF.html and/or look
up MCUBOOT_LOG_LEVEL_OFF 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.


warning: FLASH_MAP (defined at subsys/storage/flash_map/Kconfig:10) has direct dependencies FLASH_HAS_DRIVER_ENABLED with value n, but is currently being y-selected by the following symbols:
 - MCUBOOT_DEVICE_SETTINGS (defined at /home/gabriele/qi2m-dev/nrf53sdk/ncs/bootloader/mcuboot/boot/zephyr/Kconfig:563), with value y, direct dependencies y (value: y)

error: Aborting due to Kconfig warnings

CMake Error at /home/gabriele/qi2m-dev/nrf53sdk/ncs/zephyr/cmake/kconfig.cmake:262 (message):
  command failed with return code: 1
Call Stack (most recent call first):
  /home/gabriele/qi2m-dev/nrf53sdk/ncs/zephyr/cmake/app/boilerplate.cmake:534 (include)
  /home/gabriele/qi2m-dev/nrf53sdk/ncs/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:24 (include)
  /home/gabriele/qi2m-dev/nrf53sdk/ncs/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:35 (include_boilerplate)
  CMakeLists.txt:44 (find_package)

-- Configuring incomplete, errors occurred!
CMake Error at /home/gabriele/qi2m-dev/nrf53sdk/ncs/nrf/cmake/multi_image.cmake:287 (message):
  CMake generation for mcuboot failed, aborting.  Command: 1
Call Stack (most recent call first):
  /home/gabriele/qi2m-dev/nrf53sdk/ncs/nrf/cmake/multi_image.cmake:84 (add_child_image_from_source)
  /home/gabriele/qi2m-dev/nrf53sdk/ncs/nrf/modules/mcuboot/CMakeLists.txt:112 (add_child_image)

-- Configuring incomplete, errors occurred!
See also &amp;quot;/home/gabriele/qi2m-dev/apps/fot/build/CMakeFiles/CMakeOutput.log&amp;quot;.&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF connect SDK - broken build</title><link>https://devzone.nordicsemi.com/thread/302573?ContentTypeID=1</link><pubDate>Tue, 30 Mar 2021 12:14:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ba3506cc-95e2-4b4a-94ae-579e9e5c1f58</guid><dc:creator>Marte Myrvold</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;West is unable to find your toolchain, as ZEPHYR_TOOLCHAIN_VARIANT is not set. Please make sure your&amp;nbsp;build environment is&amp;nbsp;set up correctly. You can see how to do this in the guide for&amp;nbsp;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/1.3.0/nrf/gs_installing.html"&gt;installing NCS manually&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;span&gt;ZEPHYR_TOOLCHAIN_VARIANT&amp;nbsp;should point to&amp;nbsp;where&amp;nbsp;GNU Arm Embedded Toolchain is located.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;To set this use the following commands (assuming that you have installed the toolchain to&amp;nbsp;~/gnuarmemb):&lt;/span&gt;&lt;/p&gt;
&lt;pre&gt;export ZEPHYR_TOOLCHAIN_VARIANT=gnuarmemb
export GNUARMEMB_TOOLCHAIN_PATH=&amp;quot;~/gnuarmemb&amp;quot;&lt;/pre&gt;
&lt;p&gt;&lt;span&gt;To set the environment variables, navigate to the ncs folder and enter the following command:&lt;/span&gt;&lt;/p&gt;
&lt;pre&gt;&lt;span&gt;source&lt;/span&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;span&gt;zephyr/zephyr-env.sh&lt;/span&gt;&lt;/pre&gt;
&lt;p&gt;&lt;span&gt;You will have to run this to set the environment variables every time you open a new terminal window, unless you set them persistently, which you can do by defining them in the&amp;nbsp;~/.zephyrrc file.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Best regards,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Marte&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>