<?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>ncs v2.5.0 linker error when setting CONFIG_BOOTLOADER_MCUBOOT</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/106476/ncs-v2-5-0-linker-error-when-setting-config_bootloader_mcuboot</link><description>Hello, I currently have an app using nRF Connect SDK v2.5.0. To enable FOTA I set CONFIG_NCS_SAMPLE_MCUMGR_BT_OTA_DFU and CONFIG_BOOTLOADER_MCUBOOT in my prj.conf (following the documentation instructions ). 
 After this building the app fails during</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 12 Dec 2023 08:58:49 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/106476/ncs-v2-5-0-linker-error-when-setting-config_bootloader_mcuboot" /><item><title>RE: ncs v2.5.0 linker error when setting CONFIG_BOOTLOADER_MCUBOOT</title><link>https://devzone.nordicsemi.com/thread/459863?ContentTypeID=1</link><pubDate>Tue, 12 Dec 2023 08:58:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:743103fb-9d77-4b69-a0ae-ad1c290dc308</guid><dc:creator>qrasmont</dc:creator><description>&lt;p&gt;I started with the wifi provisioning sample in which I&amp;#39;ve added TWT negotiation based on the twt sample.&lt;/p&gt;
&lt;p&gt;Adding&amp;nbsp;&lt;span&gt;CONFIG_PM_PARTITION_SIZE_MCUBOOT=0x10000 did change the overflow&amp;nbsp;error:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;zephyr/zephyr_pre0.elf section `log_const_area&amp;#39; will not fit in region `FLASH&amp;#39;
.../zephyr_workspace/toolchains/7795df4459/opt/zephyr-sdk/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/12.2.0/../../../../arm-zephyr-eabi/bin/ld.bfd: region `FLASH&amp;#39; overflowed by 142848 bytes&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;However upon doing more research I want to handle simultaneous DFU for the app + net core with external flash. So I&amp;#39;m completely changing my configuration (basing myself on &lt;a href="https://github.com/hellesvik-nordic/samples_for_nrf_connect_sdk/tree/main/bootloader_samples/nrf5340/mcuboot_smp_ble_simultaneous"&gt;this sample&lt;/a&gt;).&lt;br /&gt;&lt;br /&gt;So I&amp;#39;m going to close this topic.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ncs v2.5.0 linker error when setting CONFIG_BOOTLOADER_MCUBOOT</title><link>https://devzone.nordicsemi.com/thread/459785?ContentTypeID=1</link><pubDate>Mon, 11 Dec 2023 21:48:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f2edaa4a-1001-4339-a6c5-c39db7fa9381</guid><dc:creator>Amanda Hsieh</dc:creator><description>[quote user="qrasmont"]child_image refers to the network core of the nrf5340 correct ?[/quote]
&lt;p&gt;Not really.&amp;nbsp;&lt;span&gt;child_image/mcuboot.conf only overwrites the configuration of mcuboot which is run on the app core.&amp;nbsp;child_image/hci_rpmsg.cof would affect&amp;nbsp;hci_rpmsg running on the netcore. See&amp;nbsp;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/config_and_build/multi_image.html#permanent-configuration-changes-to-child-images"&gt;Permanent configuration changes to child images&lt;/a&gt;&amp;nbsp;for more information.&lt;/span&gt;&lt;/p&gt;
[quote user="qrasmont"]Why is this option necessary ?[/quote]
&lt;p&gt;CONFIG_MULTITHREADING=y is required when CONFIG_SPI=y is used in the mcuboot, so you&amp;#39;ll get a lot of undefined references&amp;nbsp;from the nrfx spim driver E.G. &amp;quot;undefined reference to `z_impl_k_sleep&amp;#39;&amp;quot;. It will be enabled automatically if you are using the NCS Bluetooth samples.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Are you using the sample from NCS? If so, which one are you using?&lt;/span&gt;&lt;/p&gt;
[quote user="qrasmont"]&amp;quot;zephyr/zephyr_pre0.elf section `rodata&amp;#39; will not fit in region `FLASH&amp;#39;&amp;quot;[/quote]
&lt;p&gt;Try to set CONFIG_PM_PARTITION_SIZE_MCUBOOT=0x10000 in the&amp;nbsp;child_image/mcuboot.conf to see if it can help or not.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;span&gt;-Amanda H.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ncs v2.5.0 linker error when setting CONFIG_BOOTLOADER_MCUBOOT</title><link>https://devzone.nordicsemi.com/thread/459595?ContentTypeID=1</link><pubDate>Sat, 09 Dec 2023 16:40:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3e33b42d-a5e3-43c3-8652-4f27c2fe82a6</guid><dc:creator>qrasmont</dc:creator><description>&lt;p&gt;Hi Amanda,&lt;br /&gt;&lt;br /&gt;It did resolve&amp;nbsp;the undefined references&amp;nbsp;issue. child_image refers to the network core of the nrf5340 correct ?&lt;br /&gt;Why is this option necessary ?&lt;br /&gt;&lt;br /&gt;However&amp;nbsp;my build sill fails, this time because of a flash layout issue.&lt;/p&gt;
&lt;p&gt;&amp;quot;zephyr/zephyr_pre0.elf section `rodata&amp;#39; will not fit in region `FLASH&amp;#39;&amp;quot;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;Is there more extensive documentation &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/device_guides/working_with_nrf/nrf53/nrf5340.html#fota-updates"&gt;than this&lt;/a&gt; about setting up FOTA on the nrf5340 ?&lt;br /&gt;Working on an nrf52 with the legacy SDK I to setup the&amp;nbsp;bootloader myself to get DFU working so I&amp;#39;m bit confused by just having to set&amp;nbsp;&lt;span&gt;CONFIG_NCS_SAMPLE_MCUMGR_BT_OTA_DFU and CONFIG_BOOTLOADER_MCUBOOT to get everything working.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;Regarding the remaining issue:&lt;br /&gt;&lt;br /&gt;The build memory summary:&lt;br /&gt;&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;Memory region         Used Size  Region Size  %age Used
           FLASH:      181352 B       256 KB     69.18%
             RAM:       59112 B        64 KB     90.20%
           SRAM1:          0 GB        64 KB      0.00%
        IDT_LIST:          0 GB         2 KB      0.00%&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;The generated partition.yml from the build:&lt;br /&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: 0xc200
  end_address: 0x84000
  region: flash_primary
  size: 0x77e00
mcuboot:
  address: 0x0
  end_address: 0xc000
  placement:
    before:
    - mcuboot_primary
  region: flash_primary
  size: 0xc000
mcuboot_pad:
  address: 0xc000
  end_address: 0xc200
  placement:
    align:
      start: 0x4000
    before:
    - mcuboot_primary_app
  region: flash_primary
  size: 0x200
mcuboot_primary:
  address: 0xc000
  end_address: 0x84000
  orig_span: &amp;amp;id001
  - mcuboot_pad
  - app
  region: flash_primary
  sharers: 0x1
  size: 0x78000
  span: *id001
mcuboot_primary_app:
  address: 0xc200
  end_address: 0x84000
  orig_span: &amp;amp;id002
  - app
  region: flash_primary
  size: 0x77e00
  span: *id002
mcuboot_secondary:
  address: 0x84000
  end_address: 0xfc000
  placement:
    after:
    - mcuboot_primary
    align:
      start: 0x4000
  region: flash_primary
  share_size:
  - mcuboot_primary
  size: 0x78000
otp:
  address: 0xff8100
  end_address: 0xff83fc
  region: otp
  size: 0x2fc
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: 0x20000000
  end_address: 0x20070000
  region: sram_primary
  size: 0x70000&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ncs v2.5.0 linker error when setting CONFIG_BOOTLOADER_MCUBOOT</title><link>https://devzone.nordicsemi.com/thread/459572?ContentTypeID=1</link><pubDate>Fri, 08 Dec 2023 21:40:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dea784e8-89f0-4249-b47f-c3fbe8db36fa</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Try to create child_image/mcuboot.conf with&amp;nbsp;CONFIG_MULTITHREADING=y to the application.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Amanda H.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>