<?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>[NRF91] B0 + MCUBOOT (+ SPM + APP) -&amp;gt; updating MCUBoot over fota results in bootloop</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/74431/nrf91-b0-mcuboot-spm-app---updating-mcuboot-over-fota-results-in-bootloop</link><description>After figuring out why MCUBoot wasn&amp;#39;t updating my application ( https://devzone.nordicsemi.com/f/nordic-q-a/74145/nrf91-b0-mcuboot-app---mcuboot-not-actually-updating-app-after-fota) I&amp;#39;m now trying to get B0 to update MCUBoot with fota in my application</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 28 Apr 2021 12:48:32 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/74431/nrf91-b0-mcuboot-spm-app---updating-mcuboot-over-fota-results-in-bootloop" /><item><title>RE: [NRF91] B0 + MCUBOOT (+ SPM + APP) -&gt; updating MCUBoot over fota results in bootloop</title><link>https://devzone.nordicsemi.com/thread/307260?ContentTypeID=1</link><pubDate>Wed, 28 Apr 2021 12:48:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:212f94e9-7e9f-43a1-ae14-75e580ac0878</guid><dc:creator>Simon</dc:creator><description>&lt;p&gt;It seems like this check:&amp;nbsp;&lt;a href="https://github.com/nrfconnect/sdk-nrf/blob/v1.5.0/samples/bootloader/src/main.c#L62"&gt;https://github.com/nrfconnect/sdk-nrf/blob/v1.5.0/samples/bootloader/src/main.c#L62&lt;/a&gt;&amp;nbsp;evaluates to true, which will make the bootloader check S0 first. The bootloader then finds a valid image in S0 and will boot that.&lt;/p&gt;
&lt;p&gt;In your case, either&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;a href="https://github.com/nrfconnect/sdk-nrf/blob/c584ab6b7ddcc6e81fb042ab22adacfab179dd02/include/fw_info.h#L359"&gt;s1_info is set to NULL&lt;/a&gt;, which means the&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;a href="https://github.com/nrfconnect/sdk-nrf/blob/c584ab6b7ddcc6e81fb042ab22adacfab179dd02/include/fw_info.h#L211"&gt;magic value&lt;/a&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;was&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;a href="https://github.com/nrfconnect/sdk-nrf/blob/c584ab6b7ddcc6e81fb042ab22adacfab179dd02/include/fw_info.h#L359"&gt;not found&lt;/a&gt;, or the&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;a href="https://github.com/nrfconnect/sdk-nrf/blob/c584ab6b7ddcc6e81fb042ab22adacfab179dd02/include/fw_info.h#L220"&gt;firmware version&lt;/a&gt;&amp;nbsp;of S0 was greater or equal than the&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;a href="https://github.com/nrfconnect/sdk-nrf/blob/c584ab6b7ddcc6e81fb042ab22adacfab179dd02/include/fw_info.h#L220"&gt;firmware version&lt;/a&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;of S1. Could you add some printk&amp;#39;s and figure out what&amp;#39;s the case?&lt;/p&gt;
&lt;p&gt;I may also be useful to take a look at the file&amp;nbsp;&lt;span&gt;signed_by_mcuboot_and_b0_s1_image_update.bin, e.g. by opening it up in&amp;nbsp;&lt;a href="https://www.hhdsoftware.com/free-hex-editor"&gt;HEX Editor Neo&lt;/a&gt;. The&amp;nbsp;&lt;a href="https://github.com/nrfconnect/sdk-nrf/blob/c584ab6b7ddcc6e81fb042ab22adacfab179dd02/include/fw_info.h#L207-L249"&gt;fw info struct&lt;/a&gt;&amp;nbsp;(which contains the&amp;nbsp;&lt;a href="https://github.com/nrfconnect/sdk-nrf/blob/c584ab6b7ddcc6e81fb042ab22adacfab179dd02/include/fw_info.h#L220"&gt;firmware version&lt;/a&gt;&amp;nbsp;and the&amp;nbsp;&lt;a href="https://github.com/nrfconnect/sdk-nrf/blob/c584ab6b7ddcc6e81fb042ab22adacfab179dd02/include/fw_info.h#L211"&gt;magic value&lt;/a&gt;)&amp;nbsp;should be stored inside the&amp;nbsp;signed_by_mcuboot_and_b0_s1_image_update.bin file at the offset specified by&amp;nbsp;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/1.5.1/kconfig/CONFIG_FW_INFO_OFFSET.html"&gt;CONFIG_FW_INFO_OFFSET&lt;/a&gt;&amp;nbsp;(Take a look at &amp;lt;application&amp;gt;\build\mcuboot\zephyr\.config), to see what&amp;nbsp;CONFIG_FW_INFO_OFFSET&amp;nbsp;is equal to.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;If anything is unclear, please tell me and I will try to elaborate.&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;Simon&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [NRF91] B0 + MCUBOOT (+ SPM + APP) -&gt; updating MCUBoot over fota results in bootloop</title><link>https://devzone.nordicsemi.com/thread/307097?ContentTypeID=1</link><pubDate>Tue, 27 Apr 2021 17:29:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cde7b267-40a6-40e8-9daf-e5a837f6aeb5</guid><dc:creator>Jelmer</dc:creator><description>&lt;p&gt;Thanks Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [NRF91] B0 + MCUBOOT (+ SPM + APP) -&gt; updating MCUBoot over fota results in bootloop</title><link>https://devzone.nordicsemi.com/thread/306989?ContentTypeID=1</link><pubDate>Tue, 27 Apr 2021 11:13:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:da7c5bc4-49e8-4de9-aa6f-9ccacd85018d</guid><dc:creator>Simon</dc:creator><description>&lt;p&gt;Hello Jelmer.&lt;/p&gt;
&lt;p&gt;Sorry for the delay on this, I&amp;#39;ll look into it the next days.&lt;/p&gt;
&lt;p&gt;BR,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>