<?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>Immutable bootloader + MCUBoot. External Flash. Update fails into bootloop.</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/74490/immutable-bootloader-mcuboot-external-flash-update-fails-into-bootloop</link><description>I have application with functional configuration MCUBoot + (Spm + application). Now i&amp;#39;m trying to add immutable bootloader which works. However when i attempt to update te immutable bootlaoder using dfu_target_mcuboot. The update fails. Resulting into</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 27 Apr 2021 14:03:28 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/74490/immutable-bootloader-mcuboot-external-flash-update-fails-into-bootloop" /><item><title>RE: Immutable bootloader + MCUBoot. External Flash. Update fails into bootloop.</title><link>https://devzone.nordicsemi.com/thread/307059?ContentTypeID=1</link><pubDate>Tue, 27 Apr 2021 14:03:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5165f4a7-193e-4e9f-9250-7a0d0b6df4f7</guid><dc:creator>Carl Richard</dc:creator><description>&lt;p&gt;Glad that you figured it out! While I&amp;#39;m not entirely sure of your intended behavior I suggest reading up on the &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/ug_bootloader.html?highlight=secure%20boot#upgradable-bootloader"&gt;Secure bootloader chain documentation&lt;/a&gt;&amp;nbsp;which has some information about upgradable bootloaders. Including that you should enable the &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/kconfig/CONFIG_BUILD_S1_VARIANT.html#cmdoption-arg-CONFIG_BUILD_S1_VARIANT"&gt;CONFIG_BUILD_S1_VARIANT&lt;/a&gt;&amp;nbsp;Kconfig to a variant of the image for both slots, as upgrading the bootloader requires an image that is placed in a partition that&amp;#39;s not in use.&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Carl Richard&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Immutable bootloader + MCUBoot. Update fails into bootloop.</title><link>https://devzone.nordicsemi.com/thread/307046?ContentTypeID=1</link><pubDate>Tue, 27 Apr 2021 13:16:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d54c471c-db5f-426d-95fc-82eb765adfd9</guid><dc:creator>optical</dc:creator><description>&lt;p&gt;I can confirm that the image indeed started to be swapped to correct location after i changed the direct memory access to flash_area_read.&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Immutable bootloader + MCUBoot. Update fails into bootloop.</title><link>https://devzone.nordicsemi.com/thread/307025?ContentTypeID=1</link><pubDate>Tue, 27 Apr 2021 12:32:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8ec98df6-7a2b-4698-b953-bcac45ab12fb</guid><dc:creator>optical</dc:creator><description>&lt;p&gt;Is it possible that mcuboot nrf-noup commit does not take into account mcuboot_secondary inside external flash. I believe that the issue is in these lines inside mcuboot:&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;    const struct flash_area *secondary_fa =
        BOOT_IMG_AREA(state, BOOT_SECONDARY_SLOT);
    struct image_header *hdr = (struct image_header *)secondary_fa-&amp;gt;fa_off;&lt;/pre&gt;&lt;br /&gt;These lines are using the fa_off set directly as pointer to image_header which is of course not there of the secondary_fa is located in external memory.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Immutable bootloader + MCUBoot. Update fails into bootloop.</title><link>https://devzone.nordicsemi.com/thread/307015?ContentTypeID=1</link><pubDate>Tue, 27 Apr 2021 12:13:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:698646b9-d21b-4db3-87b6-ca21d3fada13</guid><dc:creator>optical</dc:creator><description>&lt;p&gt;My most worrying concern is that how is it possible to upload image inside the secondary partition which then corrupts the primary even when mcuboot does the &lt;strong&gt;revert&lt;/strong&gt; operation making the device &lt;strong&gt;essentially bricked.&lt;br /&gt;&lt;br /&gt;&lt;/strong&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Immutable bootloader + MCUBoot. Update fails into bootloop.</title><link>https://devzone.nordicsemi.com/thread/306985?ContentTypeID=1</link><pubDate>Tue, 27 Apr 2021 11:06:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:be7bb657-505a-48e8-ad79-b58fd755e0de</guid><dc:creator>optical</dc:creator><description>&lt;p&gt;I have added logging inside the mcuboot to show me where the application is beeing swapped. The s1 image is beeing swapped to the&amp;nbsp;mcuboot_primary partition which corrupts the mcuboot_pad. Which then leads to mcuboot crasing with BUS FAULT.&amp;nbsp;&lt;br /&gt;Am i missing some KConfig option so the MCUBoot detects correctly the place where the S1 image should be swapped ?&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Immutable bootloader + MCUBoot. Update fails into bootloop.</title><link>https://devzone.nordicsemi.com/thread/306971?ContentTypeID=1</link><pubDate>Tue, 27 Apr 2021 10:21:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:affd5bb6-7aaa-40df-b8a1-f3f1b6bb166c</guid><dc:creator>optical</dc:creator><description>&lt;p&gt;Note that the same behavior is present when the&amp;nbsp;signed_by_mcuboot_and_b0_s1_image_update.bin image is uploaded directly using mcumgr img subsystem.&lt;br /&gt;Which points to issue inside the MCUBoot swaping functionality it self not the dfu_target.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>