<?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>NCS mcuboot chainload failing</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/80808/ncs-mcuboot-chainload-failing</link><description>I have the following pm_static.yml defined for my project (nrf52840 on a custom board, NCS v1.7-branch): 
 
 west build -t partition_manager_report shows this is working as expected. west flash writes the amount of bytes I expect for my combined application</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 20 Oct 2021 11:55:28 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/80808/ncs-mcuboot-chainload-failing" /><item><title>RE: NCS mcuboot chainload failing</title><link>https://devzone.nordicsemi.com/thread/335081?ContentTypeID=1</link><pubDate>Wed, 20 Oct 2021 11:55:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:06e8143d-cb44-427a-91a0-4c47eef4b7d9</guid><dc:creator>Elfving</dc:creator><description>&lt;p&gt;Hey Benjamin!&lt;/p&gt;
&lt;p&gt;I am glad you found the solution to your problem! Yes, that is correct. It needs to compatible with the alignment of the&amp;nbsp;vector table.&lt;/p&gt;
&lt;p&gt;With partition manager &lt;a href="https://github.com/nrfconnect/sdk-mcuboot/blob/master/boot/zephyr/Kconfig#L26"&gt;it is this value that is used.&amp;nbsp;&lt;/a&gt;&amp;nbsp;You can also see it described a bit on &lt;a href="https://developer.arm.com/documentation/dui0552/a/cortex-m3-peripherals/system-control-block/vector-table-offset-register?lang=en"&gt;ARMs developer pages&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Elfving&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NCS mcuboot chainload failing</title><link>https://devzone.nordicsemi.com/thread/334957?ContentTypeID=1</link><pubDate>Tue, 19 Oct 2021 23:57:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:340afcf0-a7f3-437c-b548-bc3d89400e54</guid><dc:creator>Benjamin</dc:creator><description>&lt;p&gt;Upon further investigation into mcuboot&amp;#39;s source, it seems that this padding size is also used for vector table offset (presumably because the interrupt vector table is at the beginning of the image) which must be appropriately aligned. For&amp;nbsp;the nRF52840 the minimum size is thus 0x200.&lt;/p&gt;
&lt;p&gt;Neither the comment &lt;a href="https://github.com/nrfconnect/sdk-mcuboot/blob/master/boot/zephyr/pm.yml#L40-L41"&gt;here&lt;/a&gt; nor the comment for CONFIG_PM_PARTITION_SIZE_MCUBOOT_PAD reference the importance of this partition size.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>