<?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>Clarifications about partitions structure</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/109433/clarifications-about-partitions-structure</link><description>Good morning! 
 I hope you will forgive my trivial question but I am a beginner. I don&amp;#39;t quite understand the partition structure presented in the &amp;quot;NVS&amp;quot; example. Using the devicetree gui I get the following figure: 
 
 I&amp;#39;m developing an application that</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 21 May 2024 12:02:16 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/109433/clarifications-about-partitions-structure" /><item><title>RE: Clarifications about partitions structure</title><link>https://devzone.nordicsemi.com/thread/485099?ContentTypeID=1</link><pubDate>Tue, 21 May 2024 12:02:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:86b83108-d51a-437e-9848-5d69fadb1857</guid><dc:creator>Sigurd Hellesvik</dc:creator><description>&lt;p&gt;If the new question is related to this ticket, take it here.&lt;/p&gt;
&lt;p&gt;If it is relatively different, open a new ticket.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Clarifications about partitions structure</title><link>https://devzone.nordicsemi.com/thread/485085?ContentTypeID=1</link><pubDate>Tue, 21 May 2024 11:46:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7a987f0c-86f3-445a-a7e2-64e8e7dd6b16</guid><dc:creator>TheSpawn74</dc:creator><description>&lt;p&gt;Hi Sigurd!&lt;/p&gt;
&lt;p&gt;Thank you for your help.&lt;/p&gt;
&lt;p&gt;I have another question for you? May I ask? Or do I have to open a new ticket?&lt;/p&gt;
&lt;p&gt;Thank you in advance!&lt;/p&gt;
&lt;p&gt;Cristiano&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Clarifications about partitions structure</title><link>https://devzone.nordicsemi.com/thread/476920?ContentTypeID=1</link><pubDate>Wed, 03 Apr 2024 13:52:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3e3f8fb3-1a52-4c5d-98d5-c7b2e51e62ff</guid><dc:creator>Sigurd Hellesvik</dc:creator><description>&lt;p&gt;In the second case you do not use a bootloader, that is correct.&lt;/p&gt;
&lt;p&gt;I think that TF-M (building with _ns) also enables the partition manager, which is why you still get a partition manager report without MCuboot&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Clarifications about partitions structure</title><link>https://devzone.nordicsemi.com/thread/476818?ContentTypeID=1</link><pubDate>Wed, 03 Apr 2024 10:12:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:01f392c0-f0a9-4a91-9e87-96d9aa99193e</guid><dc:creator>TheSpawn74</dc:creator><description>&lt;p&gt;Hi Sigurd!&lt;/p&gt;
&lt;p&gt;Thank you for your reply.&lt;/p&gt;
&lt;p&gt;I would like to ask you if there a way to better understand the meaning of all the partitions I see in memory report.&lt;/p&gt;
&lt;p&gt;Reading the nRF9160 memory by nRF Programmer with these settings:&lt;/p&gt;
&lt;p&gt;CONFIG_BOOTLOADER_MCUBOOT=y&lt;br /&gt;CONFIG_PM_PARTITION_SIZE_NVS_STORAGE=0x10000&lt;/p&gt;
&lt;p&gt;I see something like this:&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:525px;max-width:328px;" height="525" src="https://devzone.nordicsemi.com/resized-image/__size/656x1050/__key/communityserver-discussions-components-files/4/pastedimage1712138594835v1.png" width="328" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;Instead, with these settings (I guess bootloader is not enabled),&lt;/p&gt;
&lt;p&gt;&lt;span&gt;#CONFIG_BOOTLOADER_MCUBOOT=y&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span&gt;CONFIG_PM_PARTITION_SIZE_NVS_STORAGE=0x10000&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I see this:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:527px;max-width:321px;" height="527" src="https://devzone.nordicsemi.com/resized-image/__size/642x1054/__key/communityserver-discussions-components-files/4/pastedimage1712138691540v2.png" width="321" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;It seems the&amp;nbsp;&lt;span&gt;CONFIG_PM_PARTITION_SIZE_NVS_STORAGE=0x10000 works also with bootloader not enabled. This is the memory report:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;img style="max-height:213px;max-width:513px;" height="213" src="https://devzone.nordicsemi.com/resized-image/__size/1026x426/__key/communityserver-discussions-components-files/4/pastedimage1712138911012v3.png" width="513" alt=" " /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;So, in this second case, I&amp;#39;m not using bootloader... Do you confirm?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Thank you again!&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Cristiano&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Clarifications about partitions structure</title><link>https://devzone.nordicsemi.com/thread/476771?ContentTypeID=1</link><pubDate>Wed, 03 Apr 2024 08:02:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:974c8e1a-ce5d-4c81-83f8-fb1ef22395dc</guid><dc:creator>Sigurd Hellesvik</dc:creator><description>&lt;p&gt;So the nRF Connect SDK has two different ways of doing partitioning:&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;DTS partitioning&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;This is the one used by Zephyr, and is the one you see in the DTS viewer.&lt;br /&gt;This is used whenever the Partition Manager is not used.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Partition Manager partitioning&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;The &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/scripts/partition_manager/partition_manager.html#partition-manager"&gt;Partition Manager&lt;/a&gt; is automatically enabled for some use-cases in the nRF Connect SDK, such as enabling a bootloader. Since you pretty much always want a bootloader in your project, this is the one I recommend defaulting to.&lt;br /&gt;That is also why I enabled the bootloader in my quick-fix, as it is the &amp;quot;most natural&amp;quot; method for enabling the Partiton manager.&lt;br /&gt;With the Partition Manager enabled, the DTS partitioning is ignored, so whatever you see in the DTS viewer is really not used after all. (See, I told you it was more confusing than you thought it would be).&lt;/p&gt;
&lt;p&gt;But now that we know that we only look at Partition Manager partitioning, we can use that. &lt;br /&gt;The Partition Manager dynamically partitions your partitions. So to change the sizes of these, we use Kconfig (prj.conf). To find relevant configuration for this search out &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/kconfig/index.html"&gt;Kconfig search&lt;/a&gt; for CONFIG_PM_PARTITION_SIZE.&lt;/p&gt;
&lt;p&gt;Then as you did you can use Partition Manager Report to see how the partitioning was set in the end.&lt;/p&gt;
[quote user="TheSpawn74"]Is it correct?[/quote]
&lt;p&gt;And yes that looks good to me.&lt;/p&gt;
&lt;p&gt;Bonus: If you enable external flash on your device, you can use CONFIG_PM_PARTITION_REGION_NVS_STORAGE_EXTERNAL to configure the partition to use external flash.&lt;/p&gt;
&lt;p&gt;Did this explanation make sense?&lt;br /&gt;Let me know if anything was unclear&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Clarifications about partitions structure</title><link>https://devzone.nordicsemi.com/thread/476644?ContentTypeID=1</link><pubDate>Tue, 02 Apr 2024 14:23:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1012ae4a-fe75-44fb-9044-8d79099be244</guid><dc:creator>TheSpawn74</dc:creator><description>&lt;p&gt;Hi Sigurd!&lt;/p&gt;
&lt;p&gt;Many thanks for your &amp;quot;on the fly&amp;quot; answer! Obviously it works... &lt;span class="emoticon" data-url="https://devzone.nordicsemi.com/cfs-file/__key/system/emoji/1f642.svg" title="Slight smile"&gt;&amp;#x1f642;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;But, yes, I really need you to try to explain me what happens. Using your settings I successfully set&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;fs&lt;/span&gt;&lt;span&gt;.&lt;/span&gt;&lt;span&gt;sector_count&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;16U&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;and got no error when executing code. Performing a &amp;quot;Memory Report&amp;quot; I got this:&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:443px;max-width:660px;" height="443" src="https://devzone.nordicsemi.com/resized-image/__size/1320x886/__key/communityserver-discussions-components-files/4/pastedimage1712067471549v1.png" width="660" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;Is it correct?&lt;/p&gt;
&lt;p&gt;I probably forgot to say that I&amp;#39;ve started my experiments using &amp;quot;NVS sample&amp;quot;.&lt;/p&gt;
&lt;p&gt;This is my prj.conf file.&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;CONFIG_FLASH=y
CONFIG_FLASH_PAGE_LAYOUT=y

CONFIG_NVS=y
CONFIG_LOG=y
CONFIG_LOG_MODE_IMMEDIATE=y
CONFIG_NVS_LOG_LEVEL_DBG=y
CONFIG_REBOOT=y
CONFIG_MPU_ALLOW_FLASH_WRITE=y

CONFIG_BOOTLOADER_MCUBOOT=y
CONFIG_PM_PARTITION_SIZE_NVS_STORAGE=0x10000&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Thank you againg for your patience and help.&lt;/p&gt;
&lt;p&gt;Regards!&lt;/p&gt;
&lt;p&gt;Cristiano&lt;/p&gt;
&lt;div id="gtx-trans" style="left:4px;position:absolute;top:654px;"&gt;
&lt;div class="gtx-trans-icon"&gt;&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Clarifications about partitions structure</title><link>https://devzone.nordicsemi.com/thread/476596?ContentTypeID=1</link><pubDate>Tue, 02 Apr 2024 13:12:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e3d7a262-0c24-4912-9a82-81aa9b336674</guid><dc:creator>Sigurd Hellesvik</dc:creator><description>&lt;p&gt;I will write a&amp;nbsp; more in-depth explanation on this, but it will take&amp;nbsp; some time as I am just back from our Easter vacation.&lt;/p&gt;
&lt;p&gt;For the quick and unexplained answer first, try to set the following in your prj.conf:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;CONFIG_BOOTLOADER_MCUBOOT=y
CONFIG_NVS=y
CONFIG_PM_PARTITION_SIZE_NVS_STORAGE=0x10000&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Clarifications about partitions structure</title><link>https://devzone.nordicsemi.com/thread/476304?ContentTypeID=1</link><pubDate>Thu, 28 Mar 2024 15:54:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:10b6caa8-4745-46ee-8b96-80a66088a842</guid><dc:creator>TheSpawn74</dc:creator><description>&lt;p&gt;Hi Sigurg!&lt;/p&gt;
&lt;p&gt;Thank you for your help! Unfortunately, despite I read the documentation you suggested, I&amp;#39;m still not able to enlarge my storage space. In devicetree visual editor I tried to increase storage space from 32kb to 64kb in my overlay file.&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:526px;max-width:272px;" height="526" src="https://devzone.nordicsemi.com/resized-image/__size/544x1052/__key/communityserver-discussions-components-files/4/pastedimage1711640751292v1.png" width="272" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;I also get this error:&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:243px;max-width:687px;" alt=" " height="243" src="https://devzone.nordicsemi.com/resized-image/__size/1374x486/__key/communityserver-discussions-components-files/4/pastedimage1711640812307v2.png" width="687" /&gt;&lt;/p&gt;
&lt;p&gt;I anyway saved it.&lt;/p&gt;
&lt;p&gt;If I try to use more than 8 pages in my code:&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:200px;max-width:250px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/500x400/__key/communityserver-discussions-components-files/4/pastedimage1711641072721v4.png" /&gt;&lt;/p&gt;
&lt;p&gt;I obviously get and error when executing my code:&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:600px;max-width:600px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/1200x1200/__key/communityserver-discussions-components-files/4/pastedimage1711641153554v5.png" /&gt;&lt;/p&gt;
&lt;p&gt;Probably I didn&amp;#39;t understand...&lt;/p&gt;
&lt;p&gt;Can you please help me again? Thank you in advance!&lt;/p&gt;
&lt;p&gt;Cristiano&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Clarifications about partitions structure</title><link>https://devzone.nordicsemi.com/thread/474937?ContentTypeID=1</link><pubDate>Wed, 20 Mar 2024 15:08:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fbf49b34-ab5e-4def-84a1-2d1f27d731ff</guid><dc:creator>Sigurd Hellesvik</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
[quote user=""]&lt;span&gt;Excuse me but I tried to read the documentation but I&amp;#39;m very confused.&lt;/span&gt;[/quote]
&lt;p&gt;Then you have come to the right place!&lt;br /&gt;Minus: I can inform you that this is even more confusing than what you think. &lt;br /&gt;Plus: We have resources and DevZone to help you guide you through this.&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;First, read through &lt;a href="https://academy.nordicsemi.com/courses/nrf-connect-sdk-intermediate/lessons/lesson-8-bootloaders-and-dfu-fota/topic/multi-image-builds-and-the-partition-manager/"&gt;This lesson&lt;/a&gt;, and specifically the partitioning information.&lt;/p&gt;
&lt;p&gt;Then let me know if this is still unclear and I will continue the explanation from there.&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>