<?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>Partition Manager Configuration</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/84410/partition-manager-configuration</link><description>Hi, 
 
 I&amp;#39;m working with NRF Connect SDK, and once in a while when I add new configuration options to the prj.conf, I get an error that some region overflowed by X bytes, 
 for example: 
 
 I&amp;#39;m using the nRF52833 board, so it should have around 500K space</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 10 Feb 2022 14:32:56 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/84410/partition-manager-configuration" /><item><title>RE: Partition Manager Configuration</title><link>https://devzone.nordicsemi.com/thread/352383?ContentTypeID=1</link><pubDate>Thu, 10 Feb 2022 14:32:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3233b7fb-2a84-46c4-8098-2b18bf50afd9</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;the build target &amp;quot;partition_manager_report&amp;quot; is a visualization of the generated &amp;quot;my-build-folder/partitions.yml&amp;quot; file.&lt;/p&gt;
&lt;p&gt;You can have a look at this file, and the partition manager documentation to see how it sets up each section of your overall flash.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Partition Manager Configuration</title><link>https://devzone.nordicsemi.com/thread/352340?ContentTypeID=1</link><pubDate>Thu, 10 Feb 2022 13:23:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:60859f12-5d79-40d2-abc1-ae4acb6cf9dd</guid><dc:creator>Vitaliy Freidovich</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;And thanks for your input.&lt;/p&gt;
&lt;p&gt;I don&amp;#39;t see in the documentation description of the&amp;nbsp;&lt;span&gt;partition_manager_report visualisation,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;and now I think that I don&amp;#39;t understand it at all. Can you please explain how one of the reports should be read?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Thanks!&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Partition Manager Configuration</title><link>https://devzone.nordicsemi.com/thread/351767?ContentTypeID=1</link><pubDate>Tue, 08 Feb 2022 11:43:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2e7d1377-937b-44d8-8eae-0fde74dac3fb</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The partition manager is documented here:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/1.8.0/nrf/scripts/partition_manager/partition_manager.html"&gt;https://developer.nordicsemi.com/nRF_Connect_SDK/doc/1.8.0/nrf/scripts/partition_manager/partition_manager.html&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The &amp;quot;partition_manager_report&amp;quot; is a helper for visualizing the layout.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
[quote user="vitaliy-f"]1. Not sure that I follow the calculations - I see in the report you shared that app is 223kB, not 224kB?&lt;br /&gt;Am I reading it in a wrong way?[/quote]
&lt;p&gt;The section itself is 224k, which includes a 512b section at the very beginning.&lt;/p&gt;
[quote user="vitaliy-f"]If I look at it I understand that I should have at least 183kB available for my app,&lt;br /&gt;so why does the partition manager treat it as if there are only 48kB available?[/quote]
&lt;p&gt;You have a different layout than I do, as you have included the immutable bootloader in your project. This means that you have 3 project in total:&lt;/p&gt;
&lt;p&gt;* B0 (immutable bootloader)&lt;/p&gt;
&lt;p&gt;* mcuboot&lt;/p&gt;
&lt;p&gt;* application&lt;/p&gt;
[quote user="vitaliy-f"]If I look at it I understand that I should have at least 183kB available for my app,&lt;br /&gt;so why does the partition manager treat it as if there are only 48kB available?[/quote]
&lt;p&gt;You are misreading the output here. It is the mcuboot slot that is 48 kB, while the application is 184 kB. The last successfully compiled image was mcuboot, while the one that is failing (due to space issue) is your application image. You could for instance try to disable logging and look for other features that is not strictly required in your application, for instance if you have a optimization level set for debug.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Partition Manager Configuration</title><link>https://devzone.nordicsemi.com/thread/351694?ContentTypeID=1</link><pubDate>Tue, 08 Feb 2022 08:18:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5622ea2b-53d0-4853-8a61-8b6b7eafd6ec</guid><dc:creator>Vitaliy Freidovich</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;And thanks for your response.&lt;/p&gt;
&lt;p&gt;1. Not sure that I follow the calculations - I see in the report you shared that app is 223kB, not 224kB?&lt;br /&gt;Am I reading it in a wrong way?&lt;/p&gt;
&lt;p&gt;2.&amp;nbsp;If I understand your claim correctly, you say that I just run out of space.&lt;/p&gt;
&lt;p&gt;Please Take a look at my report:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;flash_primary (0x80000 - 512kB): 
+--------------------------------------------------+
+---0x0: b0_container (0x8000 - 32kB)--------------+
| 0x0: b0 (0x7000 - 28kB)                          |
| 0x7000: provision (0x1000 - 4kB)                 |
+---0x8000: s0 (0xc200 - 48kB)---------------------+
| 0x8000: s0_pad (0x200 - 512B)                    |
+---0x8200: s0_image (0xc000 - 48kB)---------------+
| 0x8200: mcuboot (0xc000 - 48kB)                  |
+--------------------------------------------------+
| 0x14200: EMPTY_0 (0xe00 - 3kB)                   |
+---0x15000: s1 (0xc200 - 48kB)--------------------+
| 0x15000: s1_pad (0x200 - 512B)                   |
| 0x15200: EMPTY_1 (0xe00 - 3kB)                   |
| 0x16000: s1_image (0xc000 - 48kB)                |
+---0x22000: mcuboot_primary (0x2e000 - 184kB)-----+
| 0x22000: mcuboot_pad (0x200 - 512B)              |
+---0x22200: mcuboot_primary_app (0x2de00 - 183kB)-+
+---0x22200: spm_app (0x2de00 - 183kB)-------------+
| 0x22200: app (0x2de00 - 183kB)                   |
+--------------------------------------------------+
| 0x50000: mcuboot_secondary (0x2e000 - 184kB)     |
| 0x7e000: settings_storage (0x2000 - 8kB)         |
+--------------------------------------------------+

  sram_primary (0x20000 - 128kB): 
+--------------------------------------------+
| 0x20000000: sram_primary (0x20000 - 128kB) |
+--------------------------------------------+
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;If I look at it I understand that I should have at least 183kB available for my app,&lt;br /&gt;so why does the partition manager treat it as if there are only 48kB available?&lt;/p&gt;
&lt;p&gt;3. Can you point me to documentation of this report? I&amp;#39;m not sure what numbers are to sum, and which are just headers.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thanks!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Partition Manager Configuration</title><link>https://devzone.nordicsemi.com/thread/351511?ContentTypeID=1</link><pubDate>Mon, 07 Feb 2022 11:52:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e005ab70-1e5d-49d6-b47b-e21770d8880d</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;It looks like you are building a multi-image project, for instance an app + bootloader (mcuboot), which will then partition your flash into bootloader + primary slot + secondary slot.&lt;/p&gt;
&lt;p&gt;Your application image size will effectively be a little under half of the total flash size.&lt;/p&gt;
&lt;p&gt;Here&amp;#39;s an example with hello_world + mcuboot, where I go into the build-folder and write &amp;quot;ninja partition_manager_report&amp;quot;:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;  flash_primary (0x80000 - 512kB): 
+--------------------------------------------------+
| 0x0: mcuboot (0x10000 - 64kB)                    |
+---0x10000: mcuboot_primary (0x38000 - 224kB)-----+
| 0x10000: mcuboot_pad (0x200 - 512B)              |
+---0x10200: mcuboot_primary_app (0x37e00 - 223kB)-+
| 0x10200: app (0x37e00 - 223kB)                   |
+--------------------------------------------------+
| 0x48000: mcuboot_secondary (0x38000 - 224kB)     |
+--------------------------------------------------+

  sram_primary (0x20000 - 128kB): 
+--------------------------------------------+
| 0x20000000: sram_primary (0x20000 - 128kB) |
+--------------------------------------------+
&lt;/pre&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Since the application is dual banked, the total size is now 224k for the application space.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>