<?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 partition setting</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/73563/immutable-bootloader-partition-setting</link><description>Hi, 
 
 I am using nrf Connect SDK v1.5.0 
 The immutable bootloader is located in nrf\samples\bootloader 
 My question is about the partition setting in the pm.yml. 
 
 This is the screen shot from the pm.yml. 
 Why si_image has to be align with end</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 13 Apr 2021 12:48:10 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/73563/immutable-bootloader-partition-setting" /><item><title>RE: Immutable bootloader partition setting</title><link>https://devzone.nordicsemi.com/thread/304546?ContentTypeID=1</link><pubDate>Tue, 13 Apr 2021 12:48:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e9bdf370-369b-4a7e-a631-da7dc786dcba</guid><dc:creator>Didrik Rokhaug</dc:creator><description>&lt;p&gt;I&amp;#39;ve talked to the developers, and they agree that it is sufficient that the pad region is aligned as long as the image region comes directly behind it.&lt;/p&gt;
&lt;p&gt;I will create an internal ticket to have the alignment requirement removed.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Immutable bootloader partition setting</title><link>https://devzone.nordicsemi.com/thread/303881?ContentTypeID=1</link><pubDate>Thu, 08 Apr 2021 23:50:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7199a96c-9f11-45b0-b93f-9e48cc5dd35a</guid><dc:creator>Jasonho</dc:creator><description>&lt;p&gt;Hi Didrik,&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/07585.main.c"&gt;devzone.nordicsemi.com/.../07585.main.c&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;This is the source code of immutable bootloader.&lt;/p&gt;
&lt;p&gt;It only fprotect(disable write) its own flash (b0 slot from 0x0 to 0x8000). It doesn&amp;#39;t disable writing in s0 &amp;amp; s1 slot.&lt;/p&gt;
&lt;p&gt;And same to mcuboot, it only protect its own flash (0x8200 - 0x14200)&amp;nbsp;&lt;/p&gt;
&lt;p&gt;So after 0x14200 is all unprotect area.&lt;/p&gt;
&lt;p&gt;Please correct me if I am wrong here.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/pastedimage1617496927534v6.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;My question is that why s1_image couldn&amp;#39;t be arranged right after the s1_pad (from 0x18200 to 0x28000)?&lt;/p&gt;
&lt;p&gt;Why it needs to be 0x1c000 - 0x28000?&lt;/p&gt;
&lt;p&gt;Why it needs to have empty space in 0x18200 - 0x1c000&lt;/p&gt;
&lt;p&gt;Please find the above image for reference.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;Jason&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Immutable bootloader partition setting</title><link>https://devzone.nordicsemi.com/thread/303838?ContentTypeID=1</link><pubDate>Thu, 08 Apr 2021 15:24:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:545323cc-3f77-4e48-982f-b078f5139ed2</guid><dc:creator>Didrik Rokhaug</dc:creator><description>&lt;p&gt;Hi, and sorry for the late answer.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
[quote user=""]Why si_image has to be align with end:CONFIG_FPROTECT_BLOCK_SIZE?[/quote]
&lt;p&gt;&amp;nbsp;The immutable bootloader disables writing to the flash pages it and its data resides in.&lt;/p&gt;
&lt;p&gt;But, the application must be able to receive and write a new version to flash, the s1 partition must be in unprotected flash.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
[quote user=""]Another question is that what is s0_pad &amp;amp; s1_pad? Are they image header info? Can you link me to any source about this.[/quote]
&lt;p&gt;&amp;nbsp;Yes, they are used to hold information about the FW image in the slot.&lt;/p&gt;
&lt;p&gt;See &lt;a href="https://github.com/nrfconnect/sdk-nrf/blob/master/include/fw_info.h"&gt;https://github.com/nrfconnect/sdk-nrf/blob/master/include/fw_info.h&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Didrik&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>