<?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>RAM overflow migrating from ncs 2.2.0 to v2.4.4</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/115965/ram-overflow-migrating-from-ncs-2-2-0-to-v2-4-4</link><description>Hi, 
 I&amp;#39;m working on a project using MCUboot, TFM, and a network core app. We use MCUboot with an external flash module for OTA firmware updates. 
 Recently, we tried upgrading from ncs v2.2.0 to v2.4.4 but keep hitting a RAM overflow error when compiling</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 02 Dec 2024 16:01:10 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/115965/ram-overflow-migrating-from-ncs-2-2-0-to-v2-4-4" /><item><title>RE: RAM overflow migrating from ncs 2.2.0 to v2.4.4</title><link>https://devzone.nordicsemi.com/thread/513037?ContentTypeID=1</link><pubDate>Mon, 02 Dec 2024 16:01:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:888be034-6996-40b9-b390-93a33d00f8ad</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Happy to hear that. &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;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: RAM overflow migrating from ncs 2.2.0 to v2.4.4</title><link>https://devzone.nordicsemi.com/thread/512753?ContentTypeID=1</link><pubDate>Fri, 29 Nov 2024 12:49:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:693c273f-0885-4053-a912-ee82a3439c0c</guid><dc:creator>hugzy123</dc:creator><description>&lt;p&gt;Thanks, this worked.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: RAM overflow migrating from ncs 2.2.0 to v2.4.4</title><link>https://devzone.nordicsemi.com/thread/509993?ContentTypeID=1</link><pubDate>Mon, 11 Nov 2024 22:22:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:338b373a-c5f4-4358-8463-29413789cf2f</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
[quote user="hugzy123"]Could this be an issue with including the multiprotocol child image?[/quote]
&lt;p&gt;Yes.&lt;/p&gt;
&lt;p&gt;Try to:&lt;br /&gt;Enable&amp;nbsp;CONFIG_ADD_MCUBOOT_MEDIATE_SIM_FLASH_DTS=y in the prj.con for&amp;nbsp;&lt;span&gt;&amp;quot;mcuboot_smp_ble_simultaneous&amp;quot; sample.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Remove the&amp;nbsp;CONFIG_LOG_MINIMAL=y&amp;nbsp;and&amp;nbsp;CONFIG_LOG_MINIMAL=y in the child_image/mcuboot.conf.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Create the child_image/multiprotocol_rpmsg.conf and add the following configs to reduce the size of netcore image:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;pre class="ui-code" data-mode="text"&gt;CONFIG_BT_MAX_CONN=2

# General
CONFIG_DEBUG=n
CONFIG_ASSERT=n
CONFIG_STACK_USAGE=n
CONFIG_THREAD_MONITOR=n
CONFIG_SERIAL=n
CONFIG_CONSOLE=n
CONFIG_PRINTK=n
CONFIG_UART_CONSOLE=n
CONFIG_BOOT_BANNER=n&lt;/pre&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: RAM overflow migrating from ncs 2.2.0 to v2.4.4</title><link>https://devzone.nordicsemi.com/thread/509869?ContentTypeID=1</link><pubDate>Mon, 11 Nov 2024 12:07:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5a522b6d-fc41-44e2-b74e-02b5caf33076</guid><dc:creator>hugzy123</dc:creator><description>&lt;p&gt;When adding the thread config options to the example you provided I get RAM and FLASH sizing issues&amp;nbsp;when compiling the network core (see below).&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;c:/ncs/toolchains/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;

c:/ncs/toolchains/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 `noinit&amp;#39; will not fit in region `RAM&amp;#39;

c:/ncs/toolchains/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 26456 bytes

c:/ncs/toolchains/31f4403e35/opt/zephyr-sdk/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/12.2.0/../../../../arm-zephyr-eabi/bin/ld.bfd.exe: region `RAM&amp;#39; overflowed by 12284 bytes&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Could this be an issue with including the multiprotocol child image?&lt;/p&gt;
&lt;p&gt;&lt;span style="text-decoration:underline;"&gt;Steps to reproduce issue&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;1. Checkout v2.4.4&amp;nbsp;commit&amp;nbsp;dadbc79f3abc6a2098546885958c3ce9e6286064 of the parent git repository &amp;quot;samples_for_nrf_connect_sdk&amp;quot;.&lt;/p&gt;
&lt;p&gt;2. Add multiprotocol config options to &amp;quot;mcuboot_smp_ble_simultaneous&amp;quot;&lt;br /&gt;prj.conf&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;# Generic networking options
CONFIG_NETWORKING=y
CONFIG_ASSERT=y
CONFIG_ASSERT_NO_COND_INFO=y
# Enable OpenThread features set
CONFIG_OPENTHREAD_NORDIC_LIBRARY_MASTER=y
CONFIG_OPENTHREAD_SOURCES=y
CONFIG_NET_L2_OPENTHREAD=y
CONFIG_ADD_MCUBOOT_MEDIATE_SIM_FLASH_DTS=n #RAM fix&lt;/pre&gt;&lt;br /&gt;child_image/mcuboot.conf&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;CONFIG_MCUBOOT_USE_ALL_AVAILABLE_RAM=y&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;3. Compile &amp;quot;mcuboot_smp_ble_simultaneous&amp;quot; for *nrf5340dk_ns&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: RAM overflow migrating from ncs 2.2.0 to v2.4.4</title><link>https://devzone.nordicsemi.com/thread/509562?ContentTypeID=1</link><pubDate>Thu, 07 Nov 2024 19:49:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b1676edf-0807-4b74-8155-ec0776c31524</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;You can refer to the configs of this unofficial&amp;nbsp;&lt;a title="mcuboot_smp_ble_simultaneous" href="https://github.com/hellesvik-nordic/samples_for_nrf_connect_sdk/tree/main/bootloader_samples/nrf5340/mcuboot_smp_ble_simultaneous"&gt;mcuboot_smp_ble_simultaneous&lt;/a&gt;&amp;nbsp;sample.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: RAM overflow migrating from ncs 2.2.0 to v2.4.4</title><link>https://devzone.nordicsemi.com/thread/509219?ContentTypeID=1</link><pubDate>Wed, 06 Nov 2024 10:41:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9ede34ae-cbea-48fa-958c-2a2b41ea62f9</guid><dc:creator>hugzy123</dc:creator><description>&lt;p&gt;Hi Amanda,&lt;br /&gt;&lt;br /&gt;Thanks for your reply.&lt;br /&gt;&lt;br /&gt;Adding&amp;nbsp;&lt;span&gt;CONFIG_ADD_MCUBOOT_MEDIATE_SIM_FLASH_DTS=n has helped with the RAM overflow issue, however, i&amp;#39;m still having some form of partition issues.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;When I set&amp;nbsp;the config option&amp;nbsp;&lt;/span&gt;CONFIG_UPDATEABLE_IMAGE_NUMBER=2 for setting the ability to upgrade both application and network core, I get the following errors&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;C:/ncs/v2.4.4/bootloader/mcuboot/boot/zephyr/include/sysflash/sysflash.h:52:12: error: &amp;#39;PM_MCUBOOT_SECONDARY_1_ID&amp;#39; undeclared (first use in this function); did you mean &amp;#39;PM_MCUBOOT_SECONDARY_ID&amp;#39;?
   52 |            PM_MCUBOOT_SECONDARY_1_ID: \
      |            ^~~~~~~~~~~~~~~~~~~~~~~~~
C:/ncs/v2.4.4/bootloader/mcuboot/boot/bootutil/src/bootutil_misc.c:161:35: note: in expansion of macro &amp;#39;FLASH_AREA_IMAGE_SECONDARY&amp;#39;
  161 |         flash_area_get_id(fap) == FLASH_AREA_IMAGE_SECONDARY(image_index)) {
      |                                   ^~~~~~~~~~~~~~~~~~~~~~~~~~
C:/ncs/v2.4.4/bootloader/mcuboot/boot/bootutil/src/bootutil_misc.c: In function &amp;#39;boot_find_status&amp;#39;:
C:/ncs/v2.4.4/bootloader/mcuboot/boot/zephyr/include/sysflash/sysflash.h:45:12: error: &amp;#39;PM_MCUBOOT_PRIMARY_1_ID&amp;#39; undeclared (first use in this function); did you mean &amp;#39;PM_MCUBOOT_PRIMARY_ID&amp;#39;?
   45 |            PM_MCUBOOT_PRIMARY_1_ID :         \&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Do you know what could be causing these errors?&lt;/p&gt;
&lt;p&gt;I have managed to recreate the issue on my tfm_hello_world example attached below.&lt;br /&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/8233.tfm_5F00_hello_5F00_world.zip"&gt;devzone.nordicsemi.com/.../8233.tfm_5F00_hello_5F00_world.zip&lt;/a&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: RAM overflow migrating from ncs 2.2.0 to v2.4.4</title><link>https://devzone.nordicsemi.com/thread/508823?ContentTypeID=1</link><pubDate>Fri, 01 Nov 2024 13:51:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8facc6b3-f914-4e6c-a923-72d1a2a16605</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;span dir="ltr"&gt;The overflow is likely in the bootloader because CONFIG_PM_EXTERNAL_FLASH_MCUBOOT_SECONDARY selects the CONFIG_ADD_MCUBOOT_MEDIATE_SIM_FLASH_DTS symbol. Do you see the same if you add CONFIG_ADD_MCUBOOT_MEDIATE_SIM_FLASH_DTS=n to your project configuration? and also enable CONFIG_MCUBOOT_USE_ALL_AVAILABLE_RAM in the child_image/mcuboot.conf if you want to support the netcore updates with TFM.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;span dir="ltr"&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: RAM overflow migrating from ncs 2.2.0 to v2.4.4</title><link>https://devzone.nordicsemi.com/thread/508719?ContentTypeID=1</link><pubDate>Thu, 31 Oct 2024 18:51:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ec38792d-360d-40e1-ac29-a21b1ee0bb7d</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I can reproduce the issue on nRF53DK with QSPI external flash, but still time to investigate the issue.&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>