<?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>Issue when adding MCUBOOT. Overflow when added but application does not use even 20% of ROM when compiled without</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/105376/issue-when-adding-mcuboot-overflow-when-added-but-application-does-not-use-even-20-of-rom-when-compiled-without</link><description>Hey All, 
 I&amp;#39;m running into a &amp;quot;size&amp;quot; issue when adding MCUBoot to my project. I&amp;#39;m using a NRF5340 and my appliction takes 161960 Bytes when compiled without MCUBoot. When I add MCUBoot it says I&amp;#39;m overflowing my flash by 40140 bytes. 
 Exact message </description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 30 Nov 2023 08:45:15 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/105376/issue-when-adding-mcuboot-overflow-when-added-but-application-does-not-use-even-20-of-rom-when-compiled-without" /><item><title>RE: Issue when adding MCUBOOT. Overflow when added but application does not use even 20% of ROM when compiled without</title><link>https://devzone.nordicsemi.com/thread/458238?ContentTypeID=1</link><pubDate>Thu, 30 Nov 2023 08:45:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:531126b3-b46a-4c07-81a8-cd4c818e70a9</guid><dc:creator>Freezerohmatic</dc:creator><description>&lt;p&gt;oh wheep ye who follow old examples blindly..... I think I&amp;#39;ve found the cause of this issue..&lt;/p&gt;
&lt;p&gt;At some point I added&amp;nbsp;CONFIG_BOOT_USE_MIN_PARTITION_SIZE=y&amp;nbsp;&lt;/p&gt;
&lt;p&gt;May my days of wasted time be helpful to other fools who are tricked by this simple line....&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thank you Amanda for entertaining my stupidity and sorry for your wasted time&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Issue when adding MCUBOOT. Overflow when added but application does not use even 20% of ROM when compiled without</title><link>https://devzone.nordicsemi.com/thread/458227?ContentTypeID=1</link><pubDate>Thu, 30 Nov 2023 07:20:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6b9808b5-d3a5-4262-a51c-237249408c8a</guid><dc:creator>Freezerohmatic</dc:creator><description>&lt;p&gt;Ah, no sorry, wrong board, that is for the NRF52840. Changed back to&amp;nbsp;&lt;span&gt;0x4000 after changing back to 5340. I think this does confirm that there is something wrong in those board files.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Issue when adding MCUBOOT. Overflow when added but application does not use even 20% of ROM when compiled without</title><link>https://devzone.nordicsemi.com/thread/458221?ContentTypeID=1</link><pubDate>Thu, 30 Nov 2023 07:09:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:300fe437-8af3-4cd7-9613-437ba353020c</guid><dc:creator>Freezerohmatic</dc:creator><description>&lt;p&gt;So I update to 2.4.2 and now get this, using the default board files&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;warning: PM_PARTITION_SIZE_MCUBOOT (defined at&lt;br /&gt;~/v2.4.2/nrf/modules/mcuboot/boot/zephyr/Kconfig:21,&lt;br /&gt;&lt;span&gt;~&lt;/span&gt;/v2.4.2/nrf/modules/mcuboot/boot/zephyr/Kconfig:26,&lt;br /&gt;&lt;span&gt;~&lt;/span&gt;/v2.4.2/nrf/modules/mcuboot/boot/zephyr/Kconfig:32) was assigned the value &amp;#39;0x10000&amp;#39;&lt;br /&gt;but got the value &amp;#39;0x7c00&amp;#39;. See&lt;br /&gt;&lt;a href="http://docs.zephyrproject.org/latest/kconfig.html#CONFIG_PM_PARTITION_SIZE_MCUBOOT"&gt;docs.zephyrproject.org/.../kconfig.html&lt;/a&gt; and/or look up&lt;br /&gt;PM_PARTITION_SIZE_MCUBOOT in the menuconfig/guiconfig interface. The Application Development Primer,&lt;br /&gt;Setting Configuration Values, and Kconfig - Tips and Best Practices sections of the manual might be&lt;br /&gt;helpful too.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Issue when adding MCUBOOT. Overflow when added but application does not use even 20% of ROM when compiled without</title><link>https://devzone.nordicsemi.com/thread/458211?ContentTypeID=1</link><pubDate>Thu, 30 Nov 2023 05:17:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7c307407-c561-4748-a7c3-5407d0d1c366</guid><dc:creator>Freezerohmatic</dc:creator><description>&lt;p&gt;I still have this issue when pointing to the&amp;nbsp;&lt;span&gt;nRF5340DK. I can&amp;#39;t find anything in the boards config file that has 0x4000. I did have to remove&amp;nbsp;mx25r64 from&amp;nbsp;reserved-memory&amp;nbsp;to get things compiling&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;what is the default, I see 3 posabilities? Are you using 2.4.0?&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Issue when adding MCUBOOT. Overflow when added but application does not use even 20% of ROM when compiled without</title><link>https://devzone.nordicsemi.com/thread/457658?ContentTypeID=1</link><pubDate>Mon, 27 Nov 2023 16:33:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:798a781d-a63b-46b0-86bd-da86513db3dd</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Do you have the same issue while building the project for&amp;nbsp;&lt;span&gt;nRF5340DK?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;0x4000 value is not the default for &lt;a href="https://github.com/nrfconnect/sdk-nrf/blob/v2.4.0/modules/mcuboot/boot/zephyr/Kconfig#L21-L36"&gt;PM_PARTITION_SIZE_MCUBOOT&lt;/a&gt;. Do you assign it in the board configuration or somewhere? I have tried to create a nRF5340 custom board, but cannot reproduce the issue.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;-Amanda H.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Issue when adding MCUBOOT. Overflow when added but application does not use even 20% of ROM when compiled without</title><link>https://devzone.nordicsemi.com/thread/457444?ContentTypeID=1</link><pubDate>Mon, 27 Nov 2023 03:58:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:393ba00b-bc3f-483a-adf2-1780e84d3ad5</guid><dc:creator>Freezerohmatic</dc:creator><description>&lt;p&gt;Hi Amanda,&lt;/p&gt;
&lt;p&gt;The log &amp;quot;Warning&amp;quot; is (note I have removed the exact file reference with a ~)&lt;/p&gt;
&lt;p&gt;warning: PM_PARTITION_SIZE_MCUBOOT (defined at&lt;br /&gt;~/v2.4.0/nrf/modules/mcuboot/boot/zephyr/Kconfig:21,&lt;br /&gt;~/v2.4.0/nrf/modules/mcuboot/boot/zephyr/Kconfig:26,&lt;br /&gt;~/v2.4.0/nrf/modules/mcuboot/boot/zephyr/Kconfig:32) was assigned the value &amp;#39;0x10000&amp;#39;&lt;br /&gt;but got the value &amp;#39;0x4000&amp;#39;. See&lt;br /&gt;&lt;a href="http://docs.zephyrproject.org/latest/kconfig.html#CONFIG_PM_PARTITION_SIZE_MCUBOOT"&gt;docs.zephyrproject.org/.../kconfig.html&lt;/a&gt; and/or look up&lt;br /&gt;PM_PARTITION_SIZE_MCUBOOT in the menuconfig/guiconfig interface. The Application Development Primer,&lt;br /&gt;Setting Configuration Values, and Kconfig - Tips and Best Practices sections of the manual might be&lt;br /&gt;helpful too.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Followed with&lt;/p&gt;
&lt;p&gt;~/31f4403e35/opt/zephyr-sdk/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/12.2.0/../../../../arm-zephyr-eabi/bin/ld.bfd.exe: zephyr\zephyr_pre0.elf section `text&amp;#39; will not fit in region `FLASH&amp;#39;&lt;br /&gt;&lt;span&gt;~/&lt;/span&gt;31f4403e35/opt/zephyr-sdk/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/12.2.0/../../../../arm-zephyr-eabi/bin/ld.bfd.exe: region `FLASH&amp;#39; overflowed by 40140 bytes&lt;br /&gt;collect2.exe: error: ld returned 1 exit status&lt;br /&gt;ninja: build stopped: subcommand failed.&lt;/p&gt;
&lt;p&gt;I also tried getting this working with the helloworld example with the same results.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Its a custom board using the&amp;nbsp;&lt;span&gt;nRF5340DK&amp;nbsp;as a starting point&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;NCS 2.4.0&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: Issue when adding MCUBOOT. Overflow when added but application does not use even 20% of ROM when compiled without</title><link>https://devzone.nordicsemi.com/thread/455048?ContentTypeID=1</link><pubDate>Fri, 10 Nov 2023 05:47:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:122b0fab-7b38-45fa-8825-1eea6e73d6fa</guid><dc:creator>Freezerohmatic</dc:creator><description>&lt;p&gt;I&amp;#39;m currently on leave but I&amp;#39;ll try this when I get back to the office.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Issue when adding MCUBOOT. Overflow when added but application does not use even 20% of ROM when compiled without</title><link>https://devzone.nordicsemi.com/thread/454314?ContentTypeID=1</link><pubDate>Mon, 06 Nov 2023 21:47:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9802a51c-b1bc-452b-a2c2-aeac90cc5682</guid><dc:creator>Amanda Hsieh</dc:creator><description>[quote user="Freezerohmatic"]I get an warning saying 0x10000 set but received 0x2000 or something similar to that[/quote]
&lt;p&gt;Can you post the log?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Are you using nRF5340DK or the custom board?&lt;/p&gt;
&lt;p&gt;Which NCS version are you using?&lt;/p&gt;
&lt;p&gt;Please also post the content of prj.conf and mcuboot.conf if it&amp;#39;s possible.&lt;/p&gt;
&lt;p&gt;-Amanda H.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Issue when adding MCUBOOT. Overflow when added but application does not use even 20% of ROM when compiled without</title><link>https://devzone.nordicsemi.com/thread/454292?ContentTypeID=1</link><pubDate>Mon, 06 Nov 2023 18:20:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:49edc38e-a983-4871-8c4e-896c6b8aa211</guid><dc:creator>Freezerohmatic</dc:creator><description>&lt;p&gt;Hi Amanda,&lt;/p&gt;
&lt;p&gt;I did try this, I get an warning saying 0x10000 set but received 0x2000 or something similar to that&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Issue when adding MCUBOOT. Overflow when added but application does not use even 20% of ROM when compiled without</title><link>https://devzone.nordicsemi.com/thread/454274?ContentTypeID=1</link><pubDate>Mon, 06 Nov 2023 15:46:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f0e7fc88-e31f-43b3-8ea1-488ce8eb1f81</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Seems you get a &amp;quot;FLASH overflowed&amp;quot; error from mcuboot, you can try to&amp;nbsp;increase the mcuboot partition, which you can do by making a folder in your project called &amp;quot;child_image&amp;quot; (See&amp;nbsp;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/ug_multi_image.html#child-image-devicetree-overlays"&gt;Multi-image builds&lt;/a&gt;) and place mcuboot.conf there, where you put this line:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;pre class="ui-code" data-mode="text"&gt;CONFIG_PM_PARTITION_SIZE_MCUBOOT=0x10000&lt;/pre&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Please let me know this can help or not. Thanks.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Regards,&lt;br /&gt;Amanda H.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>