<?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 DIRECT_XIP</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/90995/mcuboot-direct_xip</link><description>Hi, 
 I was able to get the DFU system working by CONFIG_BOOTLOADER_MCUBOOT =y. I notice that the default mcuboot update methode is using the scratch partition. According to the documentation of MCUboot, an alternative is direct-xip mode. The problem</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 18 Aug 2022 07:16:12 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/90995/mcuboot-direct_xip" /><item><title>RE: MCUboot DIRECT_XIP</title><link>https://devzone.nordicsemi.com/thread/382147?ContentTypeID=1</link><pubDate>Thu, 18 Aug 2022 07:16:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f495f2a0-3fdd-49ae-93ed-f914d5c8e356</guid><dc:creator>Sigurd Hellesvik</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Configuration options for our fork of MCUBoot can be found in &lt;a href="https://github.com/nrfconnect/sdk-mcuboot/blob/main/boot/zephyr/Kconfig"&gt;https://github.com/nrfconnect/sdk-mcuboot/blob/main/boot/zephyr/Kconfig&lt;/a&gt;, so have a look for XIP_REVERT in there.&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Sigurd Hellesvik&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MCUboot DIRECT_XIP</title><link>https://devzone.nordicsemi.com/thread/382077?ContentTypeID=1</link><pubDate>Wed, 17 Aug 2022 14:09:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:928d4518-88e8-44b0-83c7-d365a6571d89</guid><dc:creator>BvdP4Celsius</dc:creator><description>&lt;p&gt;Sigurd,&lt;/p&gt;
&lt;p&gt;Is the&amp;nbsp;&lt;span&gt;MCUBOOT_DIRECT_XIP_REVERT supported&amp;nbsp;also? I can not find much info about this &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/mcuboot/design.html"&gt;here&lt;/a&gt;.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MCUboot DIRECT_XIP</title><link>https://devzone.nordicsemi.com/thread/382058?ContentTypeID=1</link><pubDate>Wed, 17 Aug 2022 13:26:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a0696ff4-d5be-4fa3-b4c2-5e79738d1b26</guid><dc:creator>BvdP4Celsius</dc:creator><description>&lt;p&gt;Thanks Sigurd, this seems to do the trick!&lt;/p&gt;
&lt;p&gt;b.t.w., I ignored the error:&lt;/p&gt;
&lt;p&gt;&lt;em&gt;CMake Warning (dev) at ....\build_1\image_preload.cmake:8 (set):&lt;/em&gt;&lt;br /&gt;&lt;em&gt; Syntax error in cmake code at&lt;/em&gt;&lt;br /&gt;&lt;em&gt;....\build_1\image_preload.cmake:8&lt;/em&gt;&lt;br /&gt;&lt;em&gt;when parsing string&lt;/em&gt;&lt;br /&gt;&lt;em&gt;...\toolchains\v2.0.0\opt\bin\python.exe&lt;/em&gt;&lt;br /&gt;&lt;em&gt;Invalid escape sequence \U&lt;/em&gt;&lt;br /&gt;&lt;em&gt;Policy CMP0010 is not set: Bad variable reference syntax is an error. Run&lt;/em&gt;&lt;br /&gt;&lt;em&gt; &amp;quot;cmake --help-policy CMP0010&amp;quot; for policy details. Use the cmake_policy&lt;/em&gt;&lt;br /&gt;&lt;em&gt; command to set the policy and suppress this warning.&lt;/em&gt;&lt;br /&gt;&lt;em&gt;This warning is for project developers. Use -Wno-dev to suppress it.&lt;/em&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MCUboot DIRECT_XIP</title><link>https://devzone.nordicsemi.com/thread/381968?ContentTypeID=1</link><pubDate>Wed, 17 Aug 2022 10:26:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4d7d6a0f-d1bd-4a43-9855-3f93b98fab7a</guid><dc:creator>Sigurd Hellesvik</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
[quote user="BvdP4Celsius"]I added mcuboot.conf as you suggested and added&amp;nbsp;CONFIG_BOOT_BUILD_DIRECT_XIP_VARIANT=y in that file.[/quote]
&lt;p&gt;CONFIG_BOOT_BUILD_DIRECT_XIP_VARIANT is to tell your buildto include extra files in the build/zephyr folder. See &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/2.0.2/mcuboot/readme-ncs.html?highlight=config_boot_build_direct_xip_variant"&gt;Using MCUboot in nRF Connect SDK&lt;/a&gt;: &lt;br /&gt;&amp;quot;&lt;/p&gt;
&lt;p&gt;When you use MCUboot in the execute-in-place (XIP) mode, enable &lt;a title="(in Kconfig reference v&amp;amp;nbsp;)" href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/2.0.2/kconfig/index.html#CONFIG_BOOT_BUILD_DIRECT_XIP_VARIANT"&gt;&lt;code&gt;&lt;span&gt;&lt;span&gt;CONFIG_BOOT_BUILD_DIRECT_XIP_VARIANT&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/a&gt; to let the build system generate an additional set of files for the second application slot. These &lt;code&gt;&lt;span&gt;.hex&lt;/span&gt;&lt;/code&gt; files are identical to the ones listed above, but their names also use the &lt;code&gt;&lt;span&gt;mcuboot_secondary_&lt;/span&gt;&lt;/code&gt; prefix. For example, &lt;code&gt;&lt;span&gt;mcuboot_secondary_app_signed.hex&lt;/span&gt;&lt;/code&gt; is created and placed in the second slot on the target device when the &lt;code&gt;&lt;span&gt;app_signed.hex&lt;/span&gt;&lt;/code&gt; file is placed in the first slot.&lt;br /&gt;&amp;quot;&lt;/p&gt;
[quote user="BvdP4Celsius"]warning: ignoring malformed line &amp;#39;BOOT_DIRECT_XIP=y&amp;#39;[/quote]
&lt;p&gt;Kconfig defines are configured in prj.conf files by adding CONFIG_ to them.&lt;/p&gt;
&lt;p&gt;To make this work:&lt;/p&gt;
&lt;p&gt;prj.conf: CONFIG_BOOT_BUILD_DIRECT_XIP_VARIANT=y&lt;/p&gt;
&lt;p&gt;child_image/mcuboot.conf: CONFIG_BOOT_DIRECT_XIP=y&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Sigurd Hellesvik&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MCUboot DIRECT_XIP</title><link>https://devzone.nordicsemi.com/thread/381958?ContentTypeID=1</link><pubDate>Wed, 17 Aug 2022 09:32:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:436ad61a-ed60-4f24-a14e-e76e661bea0e</guid><dc:creator>BvdP4Celsius</dc:creator><description>&lt;p&gt;Hi Sigurd,&lt;/p&gt;
&lt;p&gt;I am afraid the answer did not solve my issue yet.&lt;/p&gt;
&lt;p&gt;There is a folder child_image in my blinky_slot1_dfu&amp;nbsp; project.&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/0246.project.png" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I added mcuboot.conf as you suggested and added&amp;nbsp;CONFIG_BOOT_BUILD_DIRECT_XIP_VARIANT=y in that file.&lt;br /&gt;This results in errors during the build process.&lt;br /&gt;warning: BOOT_BUILD_DIRECT_XIP_VARIANT (defined at&lt;br /&gt;...\v2.0.0\nrf\modules\mcuboot\Kconfig:26) was assigned the value &amp;#39;y&amp;#39; but got the&lt;br /&gt;value &amp;#39;n&amp;#39;. Check these unsatisfied dependencies: BOOTLOADER_MCUBOOT (=n). See..(dead link..)&lt;br /&gt;(The same warning is shown when setting this in the ./&lt;span&gt;blinky_slot1_dfu /mcuboot/prj.conf file)&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Then replaced the&amp;nbsp;CONFIG_BOOT_BUILD_DIRECT_XIP_VARIANT=y with the&amp;nbsp;BOOT_DIRECT_XIP=y defined in the &lt;a href="https://github.com/nrfconnect/sdk-mcuboot/blob/main/boot/zephyr/Kconfig"&gt;link &lt;/a&gt;you provided. But that was not recognized (warning: ignoring malformed line &amp;#39;BOOT_DIRECT_XIP=y&amp;#39;).&lt;/p&gt;
&lt;p&gt;Any tips how to build the application for use with dirext_xip mode?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MCUboot DIRECT_XIP</title><link>https://devzone.nordicsemi.com/thread/381716?ContentTypeID=1</link><pubDate>Tue, 16 Aug 2022 09:06:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bc53abca-9365-4392-a2bf-5fa8e3399da7</guid><dc:creator>Sigurd Hellesvik</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;To add configuration overlays to the mcuboot child image, add them to &amp;lt;APP&amp;gt;/child_image/mcuboot.conf.&lt;/p&gt;
&lt;p&gt;See &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/2.0.2/nrf/ug_multi_image.html#image-specific-variables"&gt;Multi-image builds&lt;/a&gt;, specifically this:&lt;br /&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1660640640188v2.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;The MCUBoot configurations are not listed in our &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/2.0.2/kconfig/index.html"&gt;Kconfig search&lt;/a&gt;, but you can find them at &lt;a href="https://github.com/nrfconnect/sdk-mcuboot/blob/main/boot/zephyr/Kconfig"&gt;ncs/bootloader/mcuboot/zephyr/Kconfig&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Does this answer your question?&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Sigurd Hellesvik&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>