<?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>section `rodata&amp;#39; will not fit in region `FLASH  bin/ld.exe: region `FLASH&amp;#39; overflowed by 6134 bytes</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/106910/section-rodata-will-not-fit-in-region-flash-bin-ld-exe-region-flash-overflowed-by-6134-bytes</link><description>The project can be compiled and run normally before adding CONFIG_MCUMGR and other configurations。 
 The detailed configurations added are as follows： 
 CONFIG_MCUMGR=y 
 CONFIG_BOOTLOADER_MCUBOOT=y 
 CONFIG_MCUMGR_MGMT_NOTIFICATION_HOOKS=y 
 CONFIG_MCUMGR_CMD_IMG_MGMT</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 02 Jan 2024 09:09:22 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/106910/section-rodata-will-not-fit-in-region-flash-bin-ld-exe-region-flash-overflowed-by-6134-bytes" /><item><title>RE: section `rodata' will not fit in region `FLASH  bin/ld.exe: region `FLASH' overflowed by 6134 bytes</title><link>https://devzone.nordicsemi.com/thread/462212?ContentTypeID=1</link><pubDate>Tue, 02 Jan 2024 09:09:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c2e58f3b-4ebc-4063-ab20-255b09dc7151</guid><dc:creator>Sigurd Hellesvik</dc:creator><description>[quote user="dower"]I&amp;#39;m using an internal flash[/quote]
&lt;p&gt;False.&lt;/p&gt;
&lt;p&gt;From the partitions.yml that you posted, we can see that mcuboot_secondary is in external flash.&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;mcuboot_secondary:
  address: 0x1000000
  device: DT_CHOSEN(nordic_pm_ext_flash)
  end_address: 0x10ec000
  placement:
    align:
      start: 0x4
  region: external_flash
  share_size:
  - mcuboot_primary
  size: 0xec000&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Use &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/kconfig/index.html#CONFIG_PM_EXTERNAL_FLASH_MCUBOOT_SECONDARY"&gt;CONFIG_PM_EXTERNAL_FLASH_MCUBOOT_SECONDARY&lt;/a&gt; if you want to configure this.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: section `rodata' will not fit in region `FLASH  bin/ld.exe: region `FLASH' overflowed by 6134 bytes</title><link>https://devzone.nordicsemi.com/thread/462186?ContentTypeID=1</link><pubDate>Tue, 02 Jan 2024 06:16:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2c2799ac-d44c-46b6-a288-6ff3cba47692</guid><dc:creator>dower</dc:creator><description>&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;EMPTY_0:
  address: 0xfe000
  end_address: 0x100000
  placement:
    after:
    - settings_storage
  region: flash_primary
  size: 0x2000
app:
  address: 0x10200
  end_address: 0xfc000
  region: flash_primary
  size: 0xebe00
external_flash:
  address: 0x0
  end_address: 0x800000
  region: external_flash
  size: 0x800000
littlefs_storage:
  address: 0x0
  device: w25q64
  end_address: 0x800000
  filesystem: littlefs
  placement:
    before:
    - end
  region: external_flash
  size: 0x800000
mcuboot:
  address: 0x0
  end_address: 0x10000
  placement:
    before:
    - mcuboot_primary
  region: flash_primary
  size: 0x10000
mcuboot_pad:
  address: 0x10000
  end_address: 0x10200
  placement:
    align:
      start: 0x4000
    before:
    - mcuboot_primary_app
  region: flash_primary
  size: 0x200
mcuboot_primary:
  address: 0x10000
  end_address: 0xfc000
  orig_span: &amp;amp;id001
  - app
  - mcuboot_pad
  region: flash_primary
  size: 0xec000
  span: *id001
mcuboot_primary_app:
  address: 0x10200
  end_address: 0xfc000
  orig_span: &amp;amp;id002
  - app
  region: flash_primary
  size: 0xebe00
  span: *id002
mcuboot_secondary:
  address: 0x1000000
  device: DT_CHOSEN(nordic_pm_ext_flash)
  end_address: 0x10ec000
  placement:
    align:
      start: 0x4
  region: external_flash
  share_size:
  - mcuboot_primary
  size: 0xec000
otp:
  address: 0xff8100
  end_address: 0xff83fc
  region: otp
  size: 0x2fc
pcd_sram:
  address: 0x20000000
  end_address: 0x20002000
  placement:
    after:
    - start
  region: sram_primary
  size: 0x2000
rpmsg_nrf53_sram:
  address: 0x20070000
  end_address: 0x20080000
  placement:
    before:
    - end
  region: sram_primary
  size: 0x10000
settings_storage:
  address: 0xfc000
  end_address: 0xfe000
  placement:
    align:
      start: 0x4000
    before:
    - end
  region: flash_primary
  size: 0x2000
sram_primary:
  address: 0x20002000
  end_address: 0x20070000
  region: sram_primary
  size: 0x6e000
&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: section `rodata' will not fit in region `FLASH  bin/ld.exe: region `FLASH' overflowed by 6134 bytes</title><link>https://devzone.nordicsemi.com/thread/462105?ContentTypeID=1</link><pubDate>Fri, 29 Dec 2023 13:45:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a2891779-4023-46c6-9432-4a1f281e01c1</guid><dc:creator>Sigurd Hellesvik</dc:creator><description>&lt;p&gt;Hmm&lt;/p&gt;
&lt;p&gt;Can you paste all of partitions.yml into Insert-&amp;gt;Code in a reply here?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: section `rodata' will not fit in region `FLASH  bin/ld.exe: region `FLASH' overflowed by 6134 bytes</title><link>https://devzone.nordicsemi.com/thread/462076?ContentTypeID=1</link><pubDate>Fri, 29 Dec 2023 10:26:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:07a2329d-d1f6-4788-8363-1cea75271e67</guid><dc:creator>dower</dc:creator><description>&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1703845399405v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;Seems to have some effect，I set &lt;strong&gt; 256 ，512 but still no jump to APP&lt;br /&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;div style="background-color:#1f1f1f;color:#cccccc;font-family:Consolas, &amp;#39;Courier New&amp;#39;, monospace;font-size:14px;font-weight:normal;line-height:19px;white-space:pre;"&gt;
&lt;div&gt;&lt;span style="color:#569cd6;"&gt;CONFIG_BOOT_MAX_IMG_SECTORS&lt;/span&gt;&lt;span style="color:#cccccc;"&gt;=256 or&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div style="background-color:#1f1f1f;color:#cccccc;font-family:Consolas, &amp;#39;Courier New&amp;#39;, monospace;font-size:14px;font-weight:normal;line-height:19px;white-space:pre;"&gt;
&lt;div&gt;&lt;span style="color:#569cd6;"&gt;CONFIG_BOOT_MAX_IMG_SECTORS&lt;/span&gt;&lt;span style="color:#cccccc;"&gt;=512&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="color:#cccccc;"&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;&lt;strong&gt;&lt;/strong&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: section `rodata' will not fit in region `FLASH  bin/ld.exe: region `FLASH' overflowed by 6134 bytes</title><link>https://devzone.nordicsemi.com/thread/462067?ContentTypeID=1</link><pubDate>Fri, 29 Dec 2023 09:45:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f01c491e-9c6d-4f2c-8a2b-14526b223789</guid><dc:creator>Sigurd Hellesvik</dc:creator><description>&lt;p&gt;Right. In that case try to just set CONFIG_BOOT_MAX_IMG_SECTORS=256 for MCUboot&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: section `rodata' will not fit in region `FLASH  bin/ld.exe: region `FLASH' overflowed by 6134 bytes</title><link>https://devzone.nordicsemi.com/thread/462061?ContentTypeID=1</link><pubDate>Fri, 29 Dec 2023 09:16:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:405b8159-32ba-4d86-9ba7-dbb0c1cf1b2b</guid><dc:creator>dower</dc:creator><description>&lt;p&gt;I&amp;#39;m using an internal flash&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: section `rodata' will not fit in region `FLASH  bin/ld.exe: region `FLASH' overflowed by 6134 bytes</title><link>https://devzone.nordicsemi.com/thread/462060?ContentTypeID=1</link><pubDate>Fri, 29 Dec 2023 09:13:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e4eca64e-a5fa-4cbb-bafd-03d67fc072d3</guid><dc:creator>Sigurd Hellesvik</dc:creator><description>&lt;p&gt;When you use external flash, you must also configure this for MCUboot. &lt;br /&gt;See my &lt;a href="https://github.com/hellesvik-nordic/samples_for_nrf_connect_sdk/tree/main/bootloader_samples/smp/mcuboot_smp_uart_feat_external_flash"&gt;unofficial sample&lt;/a&gt; or the &lt;a href="https://github.com/nrfconnect/sdk-nrf/tree/main/tests/modules/mcuboot/external_flash"&gt;external flash test &lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: section `rodata' will not fit in region `FLASH  bin/ld.exe: region `FLASH' overflowed by 6134 bytes</title><link>https://devzone.nordicsemi.com/thread/462054?ContentTypeID=1</link><pubDate>Fri, 29 Dec 2023 08:52:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bd9a6352-9300-41f7-b091-8dbbceffc3ef</guid><dc:creator>dower</dc:creator><description>&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1703839907456v2.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1703839948054v4.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: section `rodata' will not fit in region `FLASH  bin/ld.exe: region `FLASH' overflowed by 6134 bytes</title><link>https://devzone.nordicsemi.com/thread/462052?ContentTypeID=1</link><pubDate>Fri, 29 Dec 2023 08:49:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7752f14f-b068-4de0-ae20-772d05290d19</guid><dc:creator>Sigurd Hellesvik</dc:creator><description>&lt;p&gt;Try to &lt;a href="https://github.com/hellesvik-nordic/samples_for_nrf_connect_sdk/blob/77d8ce3fe7e1855b02d5d51b68291c20253dc38f/bootloader_samples/smp/mcuboot_smp_uart_feat_external_flash/child_image/mcuboot.conf#L4-L6"&gt;enable logging for MCUboot &lt;/a&gt;as well. Do you see any on the logs then?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: section `rodata' will not fit in region `FLASH  bin/ld.exe: region `FLASH' overflowed by 6134 bytes</title><link>https://devzone.nordicsemi.com/thread/462041?ContentTypeID=1</link><pubDate>Fri, 29 Dec 2023 07:34:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:17f39d7f-a314-4186-9619-007331446fb2</guid><dc:creator>dower</dc:creator><description>&lt;p&gt;Thanks for your answer，butt after setting it up, a&amp;#39;p&amp;#39;p didn&amp;#39;t run.&lt;/p&gt;
&lt;p&gt;The specific settings are as follows：&lt;/p&gt;
&lt;p&gt;1.Prj.con&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1703835214835v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1703835240890v2.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: section `rodata' will not fit in region `FLASH  bin/ld.exe: region `FLASH' overflowed by 6134 bytes</title><link>https://devzone.nordicsemi.com/thread/461791?ContentTypeID=1</link><pubDate>Wed, 27 Dec 2023 12:19:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bf3f79a5-7e64-4aa8-b811-02cd39e8075d</guid><dc:creator>Sigurd Hellesvik</dc:creator><description>&lt;p&gt;In the nRF Connect SDK, enabling MCUboot will enable the &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/2.5.99-dev1/nrf/scripts/partition_manager/partition_manager.html#external-flash-memory-partitions"&gt;Partition Manager&lt;/a&gt;. Use this for partitioning instead.&lt;/p&gt;
&lt;p&gt;To fix your issue, add the following to your project folder: child_image/mcuboot.conf:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;CONFIG_PM_PARTITION_SIZE_MCUBOOT=0x10000&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Or whatever other size you need, but only in steps of 0x1000.&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>