<?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>MCUBoot configuration fails</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/80394/mcuboot-configuration-fails</link><description>Using SEGGER embedded studio for ARM (Nordic Edition) v5.60. using Project-&amp;gt; Configure nRF Connect SDK Project Fails in configuring MCUBoot in Zephyr. 
 No Documentation on HOW TO USE!</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 12 Oct 2021 09:17:53 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/80394/mcuboot-configuration-fails" /><item><title>RE: MCUBoot configuration fails</title><link>https://devzone.nordicsemi.com/thread/333678?ContentTypeID=1</link><pubDate>Tue, 12 Oct 2021 09:17:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ec719478-5f55-4814-8ba5-a06eea24416f</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;This fails because of other things regardless of the state of&amp;nbsp; CONFIG_BOOTLOADER_MCUBOOT=y when I test with NCS 1.7.0. Which NCS version is this supposed to work with? I also see references to GAZELL_* configs which are not part of the SDK. Can you explain the environment that you use with this?&lt;/p&gt;
&lt;p&gt;(Independent of the issue with getting your sample to run, as it fails regardless of how I try, I suggest you consider if SES is what you want to use going forward. Building from the command line or using the recently released&lt;a href="https://www.nordicsemi.com/Products/Development-tools/nRF-Connect-for-VS-Code"&gt; VS Code plugin&lt;/a&gt; typically gives you a better experience and less problems).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MCUBoot configuration fails</title><link>https://devzone.nordicsemi.com/thread/333619?ContentTypeID=1</link><pubDate>Tue, 12 Oct 2021 05:44:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e4b70d9d-59d5-452e-b956-05fc8edf4016</guid><dc:creator>MikeSix</dc:creator><description>&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/device.tar.gz"&gt;devzone.nordicsemi.com/.../device.tar.gz&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Here is a project I just tried.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MCUBoot configuration fails</title><link>https://devzone.nordicsemi.com/thread/333383?ContentTypeID=1</link><pubDate>Mon, 11 Oct 2021 07:04:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:24d478b6-edd4-44dd-a4ec-5500e2f19ef2</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
[quote user="MikeSix"]No , that does not work. This is the error log...[/quote]
&lt;p&gt;Can you explain exactly what you did? And perhaps even better if it is possible to reproduce this by modifying a sample project so that I can reproduce on my side? Adding the MCUBoot configuration in prj.conf and opening the project in SES (from File -&amp;gt; Open nRF Connect DK Project...) should work and does on my side.&amp;nbsp;&lt;/p&gt;
[quote user="MikeSix"]you must be able run &amp;#39;Configure nRF Connect Project&amp;#39; otherwise you will have a bad ZEPHYR build.[/quote]
&lt;p&gt;I did not understand that. Can you elaborate? (Generally, using&amp;nbsp;Configure nRF Connect Project (or menuconfig/guiconfig for that matter) is mostly relevant for experimenting. To make changes persistent after cleaning the build folder you need to make the changes in prj.conf or similar, and not within the build folder.)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MCUBoot configuration fails</title><link>https://devzone.nordicsemi.com/thread/333313?ContentTypeID=1</link><pubDate>Fri, 08 Oct 2021 17:13:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8aff4d40-7671-4102-9b29-8bb21f521ea7</guid><dc:creator>MikeSix</dc:creator><description>&lt;p&gt;all of the errors suggest the solution is lacking proper cmake directions. And you must be able run &amp;#39;Configure nRF Connect Project&amp;#39; otherwise you will have a bad ZEPHYR build.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MCUBoot configuration fails</title><link>https://devzone.nordicsemi.com/thread/333302?ContentTypeID=1</link><pubDate>Fri, 08 Oct 2021 15:08:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bb575e77-f7b8-454f-b592-3843db6f3731</guid><dc:creator>MikeSix</dc:creator><description>&lt;p&gt;No , that does not work. This is the error log...&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Creating solution host.emProject&lt;br /&gt;&amp;nbsp; /usr/bin/cmake -GNinja -DBOARD=nrf52840dk_nrf52840 -DBOARD_DIR=/home/mykeb/ncs/zephyr/boards/arm/nrf52840dk_nrf52840 -B/home/mykeb/ncs/nrf/samples/gazell/gzp_dynamic_pairing/host/build_mcuboot_nrf52840 -S/home/mykeb/ncs/nrf/samples/gazell/gzp_dynamic_pairing/host -DZEPHYR_TOOLCHAIN_VARIANT=gnuarmemb -DGNUARMEMB_TOOLCHAIN_PATH=/home/mykeb/gnuarmemb -DPYTHON_EXECUTABLE=python3 -DCMAKE_MAKE_PROGRAM=/usr/bin/ninja -DDTC=/usr/bin/dtc -DEXTRA_KCONFIG_TARGETS=menuconfig_ses -DEXTRA_KCONFIG_TARGET_COMMAND_FOR_menuconfig_ses=/home/mykeb/arm_segger_embedded_studio_v560_linux_x64_nordic/html/configure_nordic_project_menuconfig.py&lt;br /&gt;&amp;nbsp; -- Application: /home/mykeb/ncs/nrf/samples/gazell/gzp_dynamic_pairing/host&lt;br /&gt;&amp;nbsp; -- Zephyr version: 2.6.0-rc1 (/home/mykeb/ncs/zephyr), build: v2.6.0-rc1-ncs1-4-g69e3ad6255f2&lt;br /&gt;&amp;nbsp; -- Found Python3: /usr/bin/python3.8 (found suitable exact version &amp;quot;3.8.10&amp;quot;) found components: Interpreter &lt;br /&gt;&amp;nbsp; -- Found west (found suitable version &amp;quot;0.11.1&amp;quot;, minimum required is &amp;quot;0.7.1&amp;quot;)&lt;br /&gt;&amp;nbsp; -- Board: nrf52840dk_nrf52840&lt;br /&gt;&amp;nbsp; -- Cache files will be written to: /home/mykeb/.cache/zephyr&lt;br /&gt;&amp;nbsp; -- Found dtc: /usr/bin/dtc (found suitable version &amp;quot;1.5.0&amp;quot;, minimum required is &amp;quot;1.4.6&amp;quot;)&lt;br /&gt;&amp;nbsp; -- Found toolchain: gnuarmemb (/home/mykeb/gnuarmemb)&lt;br /&gt;&amp;nbsp; -- Found BOARD.dts: /home/mykeb/ncs/zephyr/boards/arm/nrf52840dk_nrf52840/nrf52840dk_nrf52840.dts&lt;br /&gt;&amp;nbsp; -- Generated zephyr.dts: /home/mykeb/ncs/nrf/samples/gazell/gzp_dynamic_pairing/host/build_mcuboot_nrf52840/zephyr/zephyr.dts&lt;br /&gt;&amp;nbsp; -- Generated devicetree_unfixed.h: /home/mykeb/ncs/nrf/samples/gazell/gzp_dynamic_pairing/host/build_mcuboot_nrf52840/zephyr/include/generated/devicetree_unfixed.h&lt;br /&gt;&amp;nbsp; -- Generated device_extern.h: /home/mykeb/ncs/nrf/samples/gazell/gzp_dynamic_pairing/host/build_mcuboot_nrf52840/zephyr/include/generated/device_extern.h&lt;br /&gt;&amp;nbsp; Parsing /home/mykeb/ncs/zephyr/Kconfig&lt;br /&gt;&amp;nbsp; Loaded configuration &amp;#39;/home/mykeb/ncs/zephyr/boards/arm/nrf52840dk_nrf52840/nrf52840dk_nrf52840_defconfig&amp;#39;&lt;br /&gt;&amp;nbsp; Merged configuration &amp;#39;/home/mykeb/ncs/nrf/samples/gazell/gzp_dynamic_pairing/host/prj.conf&amp;#39;&lt;br /&gt;&amp;nbsp; Configuration saved to &amp;#39;/home/mykeb/ncs/nrf/samples/gazell/gzp_dynamic_pairing/host/build_mcuboot_nrf52840/zephyr/.config&amp;#39;&lt;br /&gt;&amp;nbsp; Kconfig header saved to &amp;#39;/home/mykeb/ncs/nrf/samples/gazell/gzp_dynamic_pairing/host/build_mcuboot_nrf52840/zephyr/include/generated/autoconf.h&amp;#39;&lt;br /&gt;&amp;nbsp; -- The C compiler identification is GNU 9.2.1&lt;br /&gt;&amp;nbsp; -- The CXX compiler identification is GNU 9.2.1&lt;br /&gt;&amp;nbsp; -- The ASM compiler identification is GNU&lt;br /&gt;&amp;nbsp; -- Found assembler: /home/mykeb/gnuarmemb/bin/arm-none-eabi-gcc&lt;br /&gt;&amp;nbsp; -- Application: /home/mykeb/ncs/bootloader/mcuboot/boot/zephyr&lt;br /&gt;&amp;nbsp; -- Zephyr version: 2.6.0-rc1 (/home/mykeb/ncs/zephyr), build: v2.6.0-rc1-ncs1-4-g69e3ad6255f2&lt;br /&gt;&amp;nbsp; -- Found west (found suitable version &amp;quot;0.11.1&amp;quot;, minimum required is &amp;quot;0.7.1&amp;quot;)&lt;br /&gt;&amp;nbsp; -- Configuring incomplete, errors occurred!&lt;br /&gt;&amp;nbsp; -- Configuring incomplete, errors occurred!&lt;br /&gt;&amp;nbsp; See also &amp;quot;/home/mykeb/ncs/nrf/samples/gazell/gzp_dynamic_pairing/host/build_mcuboot_nrf52840/CMakeFiles/CMakeOutput.log&amp;quot;.&lt;br /&gt;&amp;nbsp; See also &amp;quot;/home/mykeb/ncs/nrf/samples/gazell/gzp_dynamic_pairing/host/build_mcuboot_nrf52840/CMakeFiles/CMakeError.log&amp;quot;.&lt;br /&gt;&amp;nbsp; Including boilerplate (Zephyr base): /home/mykeb/ncs/zephyr/cmake/app/boilerplate.cmake&lt;br /&gt;&amp;nbsp; CMake Deprecation Warning at /home/mykeb/ncs/zephyr/cmake/app/boilerplate.cmake:37 (cmake_policy):&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; The OLD behavior for policy CMP0079 will be removed from a future version&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; of CMake.&lt;br /&gt;&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; The cmake-policies(7) manual explains that the OLD behaviors of all&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; policies are deprecated and that a policy should be set to OLD only under&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; specific short-term circumstances.&amp;nbsp; Projects should be ported to the NEW&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; behavior and not rely on setting a policy to OLD.&lt;br /&gt;&amp;nbsp; Call Stack (most recent call first):&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; /home/mykeb/ncs/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:24 (include)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; /home/mykeb/ncs/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:35 (include_boilerplate)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; CMakeLists.txt:8 (find_package)&lt;br /&gt;&amp;nbsp; &lt;br /&gt;&amp;nbsp; &lt;br /&gt;&amp;nbsp; &lt;br /&gt;&amp;nbsp; === child image mcuboot -&amp;nbsp; begin ===&lt;br /&gt;&amp;nbsp; Including boilerplate (Zephyr base (cached)): /home/mykeb/ncs/zephyr/cmake/app/boilerplate.cmake&lt;br /&gt;&amp;nbsp; CMake Deprecation Warning at /home/mykeb/ncs/zephyr/cmake/app/boilerplate.cmake:37 (cmake_policy):&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; The OLD behavior for policy CMP0079 will be removed from a future version&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; of CMake.&lt;br /&gt;&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; The cmake-policies(7) manual explains that the OLD behaviors of all&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; policies are deprecated and that a policy should be set to OLD only under&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; specific short-term circumstances.&amp;nbsp; Projects should be ported to the NEW&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; behavior and not rely on setting a policy to OLD.&lt;br /&gt;&amp;nbsp; Call Stack (most recent call first):&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; /home/mykeb/ncs/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:24 (include)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; /home/mykeb/ncs/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:40 (include_boilerplate)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; CMakeLists.txt:44 (find_package)&lt;br /&gt;&amp;nbsp; &lt;br /&gt;&amp;nbsp; &lt;br /&gt;&amp;nbsp; CMake Error at /home/mykeb/ncs/zephyr/cmake/app/boilerplate.cmake:186 (message):&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Source directory equals build directory.&amp;nbsp; In-source builds are not&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; supported.&amp;nbsp; Please specify a build directory, e.g.&amp;nbsp; cmake -Bbuild -H.&lt;br /&gt;&amp;nbsp; Call Stack (most recent call first):&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; /home/mykeb/ncs/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:24 (include)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; /home/mykeb/ncs/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:40 (include_boilerplate)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; CMakeLists.txt:44 (find_package)&lt;br /&gt;&amp;nbsp; &lt;br /&gt;&amp;nbsp; &lt;br /&gt;&amp;nbsp; CMake Error at /home/mykeb/ncs/nrf/cmake/multi_image.cmake:303 (message):&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; CMake generation for mcuboot failed, aborting.&amp;nbsp; Command: 1&lt;br /&gt;&amp;nbsp; Call Stack (most recent call first):&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; /home/mykeb/ncs/nrf/cmake/multi_image.cmake:84 (add_child_image_from_source)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; /home/mykeb/ncs/nrf/modules/mcuboot/CMakeLists.txt:112 (add_child_image)&lt;br /&gt;&amp;nbsp; &lt;br /&gt;&amp;nbsp; &lt;br /&gt;&amp;nbsp; &lt;br /&gt;&amp;nbsp; error: cmake failed&lt;br /&gt;&amp;nbsp; create_nordic_project.py failed (1)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MCUBoot configuration fails</title><link>https://devzone.nordicsemi.com/thread/333216?ContentTypeID=1</link><pubDate>Fri, 08 Oct 2021 09:26:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dcee251d-cc95-4149-99f3-783b0fef01aa</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Aha, I see the same. This works if you set&amp;nbsp;CONFIG_BOOTLOADER_MCUBOOT=y in prj.conf instead of setting it via&amp;nbsp;Configure nRF Connect SDK Project&amp;#39;, and that is anyway where you need to set it for this to be persistent after you clean the build folder. So that should be an OK workaround. I have not been able to clarify why this fails though, but it seems there is a problem adding sub-images via SES like this.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MCUBoot configuration fails</title><link>https://devzone.nordicsemi.com/thread/333128?ContentTypeID=1</link><pubDate>Thu, 07 Oct 2021 18:29:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6c2e6e5a-4eba-4f04-8c32-2e4935aabb16</guid><dc:creator>MikeSix</dc:creator><description>&lt;p&gt;In the SEGGER embedded studio goto the tab &amp;#39;Project&amp;#39;&amp;nbsp; then goto the tab &amp;#39;Configure nRF Connect SDK Project&amp;#39;. It will open up a window and populate the window from the &amp;quot;&amp;lt;project&amp;gt; / &amp;lt;build&amp;gt; / zephyr / .config &amp;quot; file.&lt;/p&gt;
&lt;p&gt;If you look &amp;#39;Available Modules&amp;#39; you will see mcuboot is available. Scroll down and expand &amp;#39;Boot Options&amp;#39; click the &amp;#39;MCUboot bootloader support&amp;#39;. the variable &amp;#39;Path to the mcuboot signing key file&amp;#39; is set to my &amp;lt;project&amp;gt;/src, which has a mykey.pem file I manually generated from &amp;#39;bootloader/mcuboot/scripts/imgtool.py &amp;#39;. The variable field &amp;#39;Extra arguments to pass to imgtool&amp;#39; is left blank(since just did it by hand).&lt;/p&gt;
&lt;p&gt;Then click the box &amp;#39;Configure&amp;#39;.&lt;/p&gt;
&lt;p&gt;SWIRLS around and the RED banner &amp;quot; Cannot Configure project &amp;quot;&amp;nbsp; create_nordic_project.py failed (1). Then click OK on the error banner.&lt;/p&gt;
&lt;p&gt;Go back to the tab &amp;#39;Project&amp;#39;&amp;nbsp; then goto the tab &amp;#39;Configure nRF Connect SDK Project&amp;#39;. The window comes up blank. And MCUboot project is not in my solution.&lt;/p&gt;
&lt;p&gt;I am attaching .config and .config.old.&lt;/p&gt;
&lt;p&gt;Do You Need Screenshots?&lt;/p&gt;
&lt;p&gt;Do you need error logs? and where would they be found?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MCUBoot configuration fails</title><link>https://devzone.nordicsemi.com/thread/333008?ContentTypeID=1</link><pubDate>Thu, 07 Oct 2021 11:28:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e00e2d70-326c-4602-b47c-8a2455d2b0b7</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;You do not write exactly what you have done and how it fails. Can you elaborate?&lt;/p&gt;
&lt;p&gt;Regarding documentation it is a bit scattered. Perhaps the best starting point is the &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/zephyr/samples/subsys/mgmt/mcumgr/smp_svr/README.html"&gt;SMP Server Sample&lt;/a&gt;. Essentially the only thing you need to chagne in your application to add MCUBoot is to set&amp;nbsp;CONFIG_BOOTLOADER_MCUBOOT=y. However, you also typically need more additions to add support for mcumgr in your application, to handle the transport of the new image etc. This is demonstrated in the SMP Server Sample.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>