<?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 doesn&amp;#39;t switch to pending image</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/94979/mcuboot-doesn-t-switch-to-pending-image</link><description>Hello, 
 I&amp;#39;ve a &amp;quot;follow up&amp;quot; issue related to this ticket: 
 In an earlier state of our project, we&amp;#39;ve adopted the smp_svr application as our &amp;quot;DFU&amp;quot;. 
 But during maturation of our project, we developed our own DFU. 
 Now, it happens that we have ~40 assembled</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 21 Dec 2022 12:05:47 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/94979/mcuboot-doesn-t-switch-to-pending-image" /><item><title>RE: McuBoot doesn't switch to pending image</title><link>https://devzone.nordicsemi.com/thread/401694?ContentTypeID=1</link><pubDate>Wed, 21 Dec 2022 12:05:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:157ea7c8-142d-4bfd-95fa-b050fa1e3587</guid><dc:creator>Sigurd Hellesvik</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I am not sure why those would be in different order, but it just might interfere with stuff. Try to change it to be consistent and maybe it will behave differently?&lt;/p&gt;
[quote user=""]Any ideas on how to debug this?[/quote]
&lt;p&gt;MCUboot runs &lt;a href="https://github.com/nrfconnect/sdk-mcuboot/blob/main/boot/zephyr/main.c"&gt;mcuboot/boot/zephyr/main.c&lt;/a&gt;, which in calls do_boot from &lt;a href="https://github.com/nrfconnect/sdk-mcuboot/blob/main/boot/bootutil/src/loader.c"&gt;mcuboot/boot/bootutil/loader.c&lt;/a&gt;.&lt;br /&gt;I suggest that you debug or add prints here to follow what is happening.&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 doesn't switch to pending image</title><link>https://devzone.nordicsemi.com/thread/401339?ContentTypeID=1</link><pubDate>Mon, 19 Dec 2022 16:44:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f6cdeed5-8f53-4b26-b1a7-38ba4aa89181</guid><dc:creator>Vagner Landskron</dc:creator><description>&lt;p&gt;Humm, actually I didn&amp;#39;t put any effort into this, everything is &amp;quot;default&amp;quot;.&lt;/p&gt;
&lt;p&gt;Sure, here it is:&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;smp_svr&lt;/strong&gt; partitions.yml (Nordic&amp;#39;s)&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;app:
  address: 0xc200
  end_address: 0x46000
  region: flash_primary
  size: 0x39e00
mcuboot:
  address: 0x0
  end_address: 0xc000
  placement:
    before:
    - mcuboot_primary
  region: flash_primary
  size: 0xc000
mcuboot_pad:
  address: 0xc000
  end_address: 0xc200
  placement:
    align:
      start: 0x1000
    before:
    - mcuboot_primary_app
  region: flash_primary
  size: 0x200
mcuboot_primary:
  address: 0xc000
  end_address: 0x46000
  orig_span: &amp;amp;id001
  - mcuboot_pad
  - app
  region: flash_primary
  sharers: 0x1
  size: 0x3a000
  span: *id001
mcuboot_primary_app:
  address: 0xc200
  end_address: 0x46000
  orig_span: &amp;amp;id002
  - app
  region: flash_primary
  size: 0x39e00
  span: *id002
mcuboot_secondary:
  address: 0x46000
  end_address: 0x80000
  placement:
    after:
    - mcuboot_primary
    align:
      start: 0x1000
    align_next: 0x1000
  region: flash_primary
  share_size:
  - mcuboot_primary
  size: 0x3a000
sram_primary:
  address: 0x20000000
  end_address: 0x20020000
  region: sram_primary
  size: 0x20000
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;strong&gt;Our DFU&lt;/strong&gt; partitions.yml&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;pre class="ui-code" data-mode="text"&gt;app:
  address: 0xc200
  end_address: 0x46000
  region: flash_primary
  size: 0x39e00
mcuboot:
  address: 0x0
  end_address: 0xc000
  placement:
    before:
    - mcuboot_primary
  region: flash_primary
  size: 0xc000
mcuboot_pad:
  address: 0xc000
  end_address: 0xc200
  placement:
    align:
      start: 0x1000
    before:
    - mcuboot_primary_app
  region: flash_primary
  size: 0x200
mcuboot_primary:
  address: 0xc000
  end_address: 0x46000
  orig_span: &amp;amp;id001
  - app
  - mcuboot_pad
  region: flash_primary
  sharers: 0x1
  size: 0x3a000
  span: *id001
mcuboot_primary_app:
  address: 0xc200
  end_address: 0x46000
  orig_span: &amp;amp;id002
  - app
  region: flash_primary
  size: 0x39e00
  span: *id002
mcuboot_secondary:
  address: 0x46000
  end_address: 0x80000
  placement:
    after:
    - mcuboot_primary
    align:
      start: 0x1000
    align_next: 0x1000
  region: flash_primary
  share_size:
  - mcuboot_primary
  size: 0x3a000
sram_primary:
  address: 0x20000000
  end_address: 0x20020000
  region: sram_primary
  size: 0x20000
&lt;/pre&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;strong&gt;Our Application&lt;/strong&gt; partitions.yml&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;pre class="ui-code" data-mode="text"&gt;app:
  address: 0xc200
  end_address: 0x46000
  region: flash_primary
  size: 0x39e00
mcuboot:
  address: 0x0
  end_address: 0xc000
  placement:
    before:
    - mcuboot_primary
  region: flash_primary
  size: 0xc000
mcuboot_pad:
  address: 0xc000
  end_address: 0xc200
  placement:
    align:
      start: 0x1000
    before:
    - mcuboot_primary_app
  region: flash_primary
  size: 0x200
mcuboot_primary:
  address: 0xc000
  end_address: 0x46000
  orig_span: &amp;amp;id001
  - app
  - mcuboot_pad
  region: flash_primary
  sharers: 0x1
  size: 0x3a000
  span: *id001
mcuboot_primary_app:
  address: 0xc200
  end_address: 0x46000
  orig_span: &amp;amp;id002
  - app
  region: flash_primary
  size: 0x39e00
  span: *id002
mcuboot_secondary:
  address: 0x46000
  end_address: 0x80000
  placement:
    after:
    - mcuboot_primary
    align:
      start: 0x1000
    align_next: 0x1000
  region: flash_primary
  share_size:
  - mcuboot_primary
  size: 0x3a000
sram_primary:
  address: 0x20000000
  end_address: 0x20020000
  region: sram_primary
  size: 0x20000
&lt;/pre&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Between &lt;strong&gt;Our DFU&lt;/strong&gt; and &lt;strong&gt;Our Application&lt;/strong&gt;, there are no differences.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;But between &lt;strong&gt;Our DFU&lt;/strong&gt; and &lt;strong&gt;smp_svr&lt;/strong&gt; there is this small difference, could it be the cause?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&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/pastedimage1671468169978v1.png" alt=" " /&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: McuBoot doesn't switch to pending image</title><link>https://devzone.nordicsemi.com/thread/401315?ContentTypeID=1</link><pubDate>Mon, 19 Dec 2022 15:19:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2dfb48b1-9307-49ce-9e8c-0d5d70c63ec2</guid><dc:creator>Sigurd Hellesvik</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Are your partitions the same size before and after the DFU?&lt;/p&gt;
&lt;p&gt;Can you upload build/partitions.yml from&amp;nbsp; both your old and your new project?&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>