<?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>nrf7002dk - region `FLASH&amp;#39; overflowed</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/101694/nrf7002dk---region-flash-overflowed</link><description>Hi, 
 
 I am trying to create a Wi-Fi application on nrf7002dk using SMP over Bluetooth LE for Firmware Updates, but I get a &amp;quot;region &amp;#39;FLASH&amp;#39; overflowed&amp;quot; error when I try to build the project: 
 
 Is there any option to reduce the project&amp;#39;s size? I have</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 11 Sep 2023 11:49:52 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/101694/nrf7002dk---region-flash-overflowed" /><item><title>RE: nrf7002dk - region `FLASH' overflowed</title><link>https://devzone.nordicsemi.com/thread/445403?ContentTypeID=1</link><pubDate>Mon, 11 Sep 2023 11:49:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:05f389ae-a5c6-4c15-9335-5b9f813e6f1b</guid><dc:creator>Sigurd Hellesvik</dc:creator><description>&lt;p&gt;In your log, I see multiple warnings like this:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;warning: NORDIC_QSPI_NOR (defined at C:/nordicsemi/v2.3.0/nrf/Kconfig.nrf:97,
drivers/flash/Kconfig.nordic_qspi_nor:4) was assigned the value &amp;#39;y&amp;#39; but got the value &amp;#39;n&amp;#39;. See
http://docs.zephyrproject.org/latest/kconfig.html#CONFIG_NORDIC_QSPI_NOR and/or look up
NORDIC_QSPI_NOR in the menuconfig/guiconfig interface. The Application Development Primer, Setting
Configuration Values, and Kconfig - Tips and Best Practices sections of the manual might be helpful
too.
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;I suggest that you look into fixing these first.&lt;/p&gt;
&lt;p&gt;You can do this by running &amp;quot;ninja menuconfig&amp;quot; inside &amp;quot;build/&amp;quot; or inside &amp;quot;build/mcuboot&amp;quot;, depending on which image has the warning.&lt;/p&gt;
[quote user="Candela"]think it has to do with the XIP address warning [/quote]
&lt;p&gt;Do you try to use XIP in your project?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf7002dk - region `FLASH' overflowed</title><link>https://devzone.nordicsemi.com/thread/445362?ContentTypeID=1</link><pubDate>Mon, 11 Sep 2023 10:26:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:68131193-108b-4765-864f-368500096d65</guid><dc:creator>Candela</dc:creator><description>&lt;p&gt;Hi Sigurd,&lt;/p&gt;
&lt;p&gt;Finally, I have achieved to build succesfully the app deleting the partition manager file. Now the app fits on the nRF5340.&lt;/p&gt;
&lt;p&gt;However, I think there is something wrong with the address mapping, because I can&amp;#39;t load any new images by MCUMGR (it used to work before adding the WiFi configurations that caused the overflow), and, if I try to flash the hex file directly into the board, the BLE stops working (due to the hci image i guess...) I think it has to do with the XIP address warning on the last&amp;nbsp;&lt;a href="https://drive.google.com/file/d/1snPl58bBAr41YbHzU0nj4shnWIihD0rV/view?usp=sharing"&gt;build log&lt;/a&gt;&amp;nbsp;I uploaded.&lt;/p&gt;
&lt;p&gt;I have also added the SPI configurations you propose.&lt;/p&gt;
&lt;p&gt;Thank you!&lt;/p&gt;
&lt;p&gt;Candela&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf7002dk - region `FLASH' overflowed</title><link>https://devzone.nordicsemi.com/thread/445304?ContentTypeID=1</link><pubDate>Mon, 11 Sep 2023 07:35:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:26315005-73e4-4688-a755-a4e648a6cafb</guid><dc:creator>Sigurd Hellesvik</dc:creator><description>[quote user="Candela"]Nevertheless, the building process gets stuck into the step &amp;quot;Generating app_test_update.hex&amp;quot; many hours, without finishing the building process at all.[/quote]
&lt;p&gt;I have never seen the build process freeze like that before.&lt;br /&gt;Can you try to delete the build folder and rebuild?&lt;/p&gt;
&lt;p&gt;&amp;quot;CONFIG_NORDIC_QSPI_NOR=y&amp;quot;&lt;/p&gt;
&lt;p&gt;The nRF7002DK uses SPI for external flash, and not SPI: &lt;a href="https://infocenter.nordicsemi.com/topic/ug_nrf7002_dk/UG/nrf7002_DK/hw_external_memory.html?cp=3_0_2_4_5"&gt;https://infocenter.nordicsemi.com/topic/ug_nrf7002_dk/UG/nrf7002_DK/hw_external_memory.html?cp=3_0_2_4_5&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;So you need to use the SPI driver instead.&lt;/p&gt;
&lt;p&gt;Something along these lines:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;CONFIG_NORDIC_QSPI_NOR=n
CONFIG_SPI=y
CONFIG_SPI_NOR=y
CONFIG_SPI_NOR_FLASH_LAYOUT_PAGE_SIZE=4096
&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf7002dk - region `FLASH' overflowed</title><link>https://devzone.nordicsemi.com/thread/444882?ContentTypeID=1</link><pubDate>Thu, 07 Sep 2023 10:47:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bcdaa1d1-127d-4da7-88c8-439fa527b9d1</guid><dc:creator>Candela</dc:creator><description>&lt;p&gt;Hi Sigurd,&lt;/p&gt;
&lt;p&gt;Thank you a lot for your patience. Thanks to adding the overlay, I advanced into the building on the project. Nevertheless, the building process gets stuck into the step &amp;quot;Generating app_test_update.hex&amp;quot; many hours, without finishing the building process at all.&lt;/p&gt;
&lt;p&gt;I&amp;#39;ve got a warning related to the mapping of the XIP partition during the building, I think it can be related. I am attaching the building log&amp;nbsp;&lt;a href="https://drive.google.com/file/d/1snPl58bBAr41YbHzU0nj4shnWIihD0rV/view?usp=sharing"&gt;here&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Thank you for the support,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Candela&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf7002dk - region `FLASH' overflowed</title><link>https://devzone.nordicsemi.com/thread/444733?ContentTypeID=1</link><pubDate>Wed, 06 Sep 2023 13:10:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a31df043-8edd-404a-8058-7ca274d92b18</guid><dc:creator>Sigurd Hellesvik</dc:creator><description>&lt;p&gt;You need to have an mcuboot.overlay, same as you have an oberlay for the board to &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/scripts/partition_manager/partition_manager.html#external-flash-memory-partitions"&gt;enable external flash&lt;/a&gt;.&lt;br /&gt;See &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;this unofficial sample&lt;/a&gt;.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf7002dk - region `FLASH' overflowed</title><link>https://devzone.nordicsemi.com/thread/444627?ContentTypeID=1</link><pubDate>Wed, 06 Sep 2023 07:07:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7d4a2044-c7b6-4080-beeb-cfa25efb23c8</guid><dc:creator>Candela</dc:creator><description>&lt;p&gt;Hi Sigurd,&lt;/p&gt;
&lt;p&gt;Thank you for your answer and for the useful samples. I think I reached to build the app without flash overflow errors, but now, I get a compilation error related to the flash IDs. I think it might be because of using the external flash to store the MCUBOOT_SECONDARY partition. Is there any configuration am I missing?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;prj.conf file:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;# Drivers selection
CONFIG_GPIO=y
CONFIG_SERIAL=y
CONFIG_LOG=y
CONFIG_LOG_DEFAULT_LEVEL=3
CONFIG_WATCHDOG=n
CONFIG_ADC=n
CONFIG_PINCTRL=y
CONFIG_I2C=n
CONFIG_SPI=y
CONFIG_NRFX_SPIM2=y

CONFIG_REBOOT=y

# Power management
CONFIG_PM=n
 
# Interrupts
CONFIG_DYNAMIC_INTERRUPTS=y
CONFIG_UART_INTERRUPT_DRIVEN=n
CONFIG_IRQ_OFFLOAD=n

# Stacks and heaps
CONFIG_HEAP_MEM_POOL_SIZE=153640
CONFIG_MAIN_STACK_SIZE=2048
CONFIG_SYSTEM_WORKQUEUE_STACK_SIZE=2048
CONFIG_NET_TX_STACK_SIZE=2048
CONFIG_NET_RX_STACK_SIZE=2048
CONFIG_NET_MGMT_EVENT_STACK_SIZE=4096

# Memory protection
CONFIG_THREAD_STACK_INFO=n
CONFIG_THREAD_CUSTOM_DATA=n
CONFIG_FPU=n

# Wi-Fi
CONFIG_WIFI=y
CONFIG_WIFI_NRF700X=y
CONFIG_WPA_SUPP=y

CONFIG_KEY_MGMT_WPA2=y
CONFIG_SSID=&amp;quot;&amp;quot;
CONFIG_PASSWORD=&amp;quot;&amp;quot;

CONFIG_NET_CONFIG_PEER_IPV4_ADDR=&amp;quot;192.168.1.201&amp;quot; 
# Board&amp;#39;s IPv4 Address
CONFIG_NET_DHCPV4=y

# TCP
CONFIG_NEWLIB_LIBC=y
CONFIG_NETWORKING=y
CONFIG_POSIX_API=y

CONFIG_NET_IPV4=y
CONFIG_NET_TCP=y
CONFIG_NET_SOCKETS=y
CONFIG_POSIX_CLOCK=y
CONFIG_NET_TCP_WORKQ_STACK_SIZE=1024

# System settings
CONFIG_NEWLIB_LIBC_NANO=n


# Networking
CONFIG_NET_LOG=y
CONFIG_NET_IPV6=n
CONFIG_NET_UDP=y
CONFIG_NET_IF_UNICAST_IPV4_ADDR_COUNT=1
CONFIG_NET_MAX_CONTEXTS=10
CONFIG_NET_CONTEXT_SYNC_RECV=y

CONFIG_NET_PKT_RX_COUNT=16
CONFIG_NET_PKT_TX_COUNT=16
CONFIG_NET_MAX_CONN=10
CONFIG_NET_CONFIG_NEED_IPV4=n 
CONFIG_USERSPACE=n

# Below section is the primary contributor to SRAM and is currently
# tuned for performance, but this will be revisited in the future.
CONFIG_NET_BUF_RX_COUNT=80
CONFIG_NET_BUF_TX_COUNT=80
CONFIG_NET_CONTEXT_NET_PKT_POOL=y
CONFIG_NET_BUF_DATA_SIZE=128
CONFIG_NET_TC_TX_COUNT=0

CONFIG_INIT_STACKS=y
CONFIG_NET_L2_ETHERNET=y
CONFIG_NET_CONFIG_SETTINGS=y
CONFIG_NET_SOCKETS_POLL_MAX=4

# SNTP
CONFIG_SNTP=y

# Generate JSON message
CONFIG_JSON_LIBRARY=y
CONFIG_NEWLIB_LIBC_FLOAT_PRINTF=y
CONFIG_CJSON_LIB=y

# BLE configuration

CONFIG_BT=y
CONFIG_SETTINGS=y
CONFIG_BT_PERIPHERAL=y
CONFIG_BT_GATT_DYNAMIC_DB=y

CONFIG_BT_DEVICE_NAME=&amp;quot;Anchor&amp;quot;

# DFU over BLE
CONFIG_FLASH=y
CONFIG_IMG_MANAGER=y
CONFIG_FLASH_MAP=y

CONFIG_MCUMGR=y
CONFIG_MCUMGR_CMD_IMG_MGMT=y
CONFIG_MCUMGR_CMD_OS_MGMT=y
CONFIG_MCUMGR_SMP_BT=y
CONFIG_MCUMGR_SMP_BT_AUTHEN=n
CONFIG_MCUMGR_SMP_BT_CONN_PARAM_CONTROL=y

CONFIG_NORDIC_QSPI_NOR=y
#CONFIG_NORDIC_QSPI_NOR_FLASH_LAYOUT_PAGE_SIZE=4096
#CONFIG_NORDIC_QSPI_NOR_STACK_WRITE_BUFFER_SIZE=16
CONFIG_BOOTLOADER_MCUBOOT=y
#CONFIG_MCUBOOT_IMG_MANAGER=y


# Size optimizations
CONFIG_SIZE_OPTIMIZATIONS=y
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;mcuboot.conf file:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;CONFIG_NORDIC_QSPI_NOR=y
CONFIG_BOOT_MAX_IMG_SECTORS=256
CONFIG_PM_PARTITION_SIZE_MCUBOOT=0x10000
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Build log on&amp;nbsp;&lt;a href="https://drive.google.com/file/d/1sPIqjqSGVmCDDjqjsPUvIlhcDd9Fy8Fd/view?usp=sharing"&gt;this link&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thank you,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Candela&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf7002dk - region `FLASH' overflowed</title><link>https://devzone.nordicsemi.com/thread/444305?ContentTypeID=1</link><pubDate>Mon, 04 Sep 2023 11:47:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e61a477c-c52c-4e49-8ca7-babf14ffe5b8</guid><dc:creator>Sigurd Hellesvik</dc:creator><description>[quote user="Candela"]child_image/mcuboot.conf file:[/quote]
&lt;p&gt;From &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/config_and_build/multi_image.html"&gt;Multi Image builds docs&lt;/a&gt;, you only need to name it like this, and the build system will automatically find it.&lt;br /&gt;So no need to make changes to CMakeLists.txt&lt;/p&gt;
&lt;p&gt;When adding CONFIG_BOOTLOADER_MCUBOOT to your project configuration, ncs/bootloader/mcuboot/boot/zephyr/ will automatically be added as your bootloader child image.&lt;/p&gt;
[quote user="Candela"]&lt;p&gt;Taking a look into the post you link, I&amp;nbsp;think&amp;nbsp;I would need to add the child image using Zephyr modules, probably because of the use of a multicore architecture of nrf5340 microprocessor.&lt;/p&gt;
&lt;p&gt;I&amp;#39;ve checked the&amp;nbsp;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/samples/multicore/hello_world/README.html"&gt;multicore sample&lt;/a&gt;&amp;nbsp;for nrf5340, where Zephyr modules are used to add a different configuration to the CPUNET core, but it is still not clear to me how to use them to add MCUBOOT configurations. Where can I find more info about it?&lt;/p&gt;[/quote]
&lt;p&gt;For now, we use the multi image build system instead of the coming Sysbuild feature in Zephyr.&lt;br /&gt;From my knowledge, the nRF Connect SDK does not have full sysbuild support for MCUboot yet. Until that happens, I recommend that you do not use Zephyr modules for this.&lt;/p&gt;
&lt;p&gt;Instead, do it in the multi-image way. See for example &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;this example&lt;/a&gt; on how to configure child images.&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><item><title>RE: nrf7002dk - region `FLASH' overflowed</title><link>https://devzone.nordicsemi.com/thread/444301?ContentTypeID=1</link><pubDate>Mon, 04 Sep 2023 11:36:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:158a83ac-3f1b-4f48-8274-6808b8f9be24</guid><dc:creator>Candela</dc:creator><description>&lt;p&gt;Hi Sigurd,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I have tried your proposal, but I am&amp;nbsp;still facing&amp;nbsp;some issues.&amp;nbsp;My setup is as follows:&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/pastedimage1693826474006v2.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;child_image/mcuboot.conf file:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;CONFIG_PM_PARITITON_SIZE_MCUBOOT=0x10000&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;CMakeLists.txt file:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;cmake_minimum_required(VERSION 3.20.0)

set(PM_STATIC_YML_FILE ${CMAKE_CURRENT_SOURCE_DIR}/pm.yml)

find_package(Zephyr REQUIRED HINTS $ENV{ZEPHYR_BASE})

project(blinky)

add_child_image(
    NAME mcuboot
    SOURCE_DIR ${CMAKE_CURRENT_LIST_DIR}/child_image
    DOMAIN CPUNET
    )
    
...
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Doing so, I get the following building error, related to the PM_PARTITION_SIZE_MCUBOOT symbol:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;C:/nordicsemi/Project_Workspace_Realease/Rel/Project_dfu/child_image/mcuboot.conf:1: warning: attempt to assign the value &amp;#39;0x10000&amp;#39; to the undefined symbol PM_PARITITON_SIZE_MCUBOOT

error: Aborting due to Kconfig warnings
Parsing C:/nordicsemi/v2.3.0/bootloader/mcuboot/boot/zephyr/Kconfig
Loaded configuration &amp;#39;C:/nordicsemi/v2.3.0/nrf/boards/arm/nrf7002dk_nrf5340/nrf7002dk_nrf5340_cpuapp_defconfig&amp;#39;
Merged configuration &amp;#39;C:/nordicsemi/v2.3.0/bootloader/mcuboot/boot/zephyr/prj.conf&amp;#39;
Merged configuration &amp;#39;C:/nordicsemi/v2.3.0/nrf/subsys/pcd/pcd.conf&amp;#39;
Merged configuration &amp;#39;C:/nordicsemi/v2.3.0/nrf/subsys/bootloader/bl_override/override_external_mcuboot.conf&amp;#39;
Merged configuration &amp;#39;C:/nordicsemi/v2.3.0/nrf/subsys/partition_manager/ext_flash_mcuboot_secondary.conf&amp;#39;
Merged configuration &amp;#39;C:/nordicsemi/v2.3.0/nrf/subsys/partition_manager/partition_manager_enabled.conf&amp;#39;
Merged configuration &amp;#39;C:/nordicsemi/Project_Workspace_Realease/Rel/Project_dfu/child_image/mcuboot.conf&amp;#39;
Merged configuration &amp;#39;C:/nordicsemi/Project_Workspace_Realease/Rel/Project_dfu/build/mcuboot/zephyr/misc/generated/extra_kconfig_options.conf&amp;#39;

CMake Error at C:/nordicsemi/v2.3.0/zephyr/cmake/modules/kconfig.cmake:328 (message):
  command failed with return code: 1
Call Stack (most recent call first):
  C:/nordicsemi/v2.3.0/nrf/cmake/modules/kconfig.cmake:29 (include)
  C:/nordicsemi/v2.3.0/zephyr/cmake/modules/zephyr_default.cmake:108 (include)
  C:/nordicsemi/v2.3.0/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:66 (include)
  C:/nordicsemi/v2.3.0/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:92 (include_boilerplate)
  CMakeLists.txt:44 (find_package)


-- Configuring incomplete, errors occurred!
CMake Error at C:/nordicsemi/v2.3.0/nrf/cmake/multi_image.cmake:433 (message):
  CMake generation for mcuboot failed, aborting.  Command: 1
Call Stack (most recent call first):
  C:/nordicsemi/v2.3.0/nrf/cmake/multi_image.cmake:163 (add_child_image_from_source)
  C:/nordicsemi/v2.3.0/nrf/modules/mcuboot/CMakeLists.txt:234 (add_child_image)


-- Configuring incomplete, errors occurred!
See also &amp;quot;C:/nordicsemi/Project_Workspace_Realease/Rel/Project_dfu/build/CMakeFiles/CMakeOutput.log&amp;quot;.
See also &amp;quot;C:/nordicsemi/Project_Workspace_Realease/Rel/Project_dfu/build/CMakeFiles/CMakeError.log&amp;quot;.
FATAL ERROR: command exited with status 1: &amp;#39;C:\nordicsemi\toolchains\v2.3.0\opt\bin\cmake.EXE&amp;#39; &amp;#39;-DWEST_PYTHON=C:\nordicsemi\toolchains\v2.3.0\opt\bin\python.exe&amp;#39; &amp;#39;-Bc:\nordicsemi\Project_Workspace_Realease\Rel\Project_dfu\build&amp;#39; -GNinja -DBOARD=nrf7002dk_nrf5340_cpuapp -DNCS_TOOLCHAIN_VERSION:STRING=NONE -DCONF_FILE:STRING=c:/nordicsemi/Project_Workspace_Realease/Rel/Project_dfu/prj.conf &amp;#39;-Sc:\nordicsemi\Project_Workspace_Realease\Rel\Project_dfu&amp;#39;&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Taking a look into the post you link, I&amp;nbsp;think&amp;nbsp;I would need to add the child image using Zephyr modules, probably because of the use of a multicore architecture of nrf5340 microprocessor.&lt;/p&gt;
&lt;p&gt;I&amp;#39;ve checked the&amp;nbsp;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/samples/multicore/hello_world/README.html"&gt;multicore sample&lt;/a&gt;&amp;nbsp;for nrf5340, where Zephyr modules are used to add a different configuration to the CPUNET core, but it is still not clear to me how to use them to add MCUBOOT configurations. Where can I find more info about it?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Candela&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf7002dk - region `FLASH' overflowed</title><link>https://devzone.nordicsemi.com/thread/444063?ContentTypeID=1</link><pubDate>Fri, 01 Sep 2023 11:25:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:382b98d1-afb4-4331-93ec-c8af46cf70c9</guid><dc:creator>Sigurd Hellesvik</dc:creator><description>&lt;p&gt;I suspect that this error could be related to MCUboot.&lt;br /&gt;Try to create the folder &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/config_and_build/multi_image.html#child-image-devicetree-modification"&gt;child_image&lt;/a&gt; in your project, and put this in child_image/mcuboot.conf:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;CONFIG_PM_PARITITON_SIZE_MCUBOOT=0x10000&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf7002dk - region `FLASH' overflowed</title><link>https://devzone.nordicsemi.com/thread/443918?ContentTypeID=1</link><pubDate>Thu, 31 Aug 2023 12:40:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5cf783bc-6dfb-47e3-b0ac-b090cc2c89d5</guid><dc:creator>Candela</dc:creator><description>&lt;p&gt;Sure! Find the complete log on&amp;nbsp;&lt;a title="Flash overflow build log" href="https://drive.google.com/file/d/1_01F6r8_XXjwXZqdR-403uz3Z9LdR_7G/view?usp=sharing"&gt;this link&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf7002dk - region `FLASH' overflowed</title><link>https://devzone.nordicsemi.com/thread/443915?ContentTypeID=1</link><pubDate>Thu, 31 Aug 2023 12:30:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9fabdb64-a99f-4197-b876-89293826b2ce</guid><dc:creator>Sigurd Hellesvik</dc:creator><description>[quote user="Candela"] but I still have no enough space for the bootloader and the application on the primary flash.[/quote]
&lt;p&gt;Can you post the build log showing this?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf7002dk - region `FLASH' overflowed</title><link>https://devzone.nordicsemi.com/thread/443906?ContentTypeID=1</link><pubDate>Thu, 31 Aug 2023 12:09:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:85f33800-8a84-4ba3-8fcc-45f1adbe7122</guid><dc:creator>Candela</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I followed your recommendations, optimizing flash usage and using an external flash, and I got to reduce significativelly the flash usage. Nevertheless, I still have questions on how to add the mcuboot child image on the external flash. By now, I have used the partition manager to set the mcuboot_secondary region into the external flash, but I still have no enough space for the bootloader and the application on the primary flash. Do I need to move any other region to the external flash?&lt;/p&gt;
&lt;p&gt;I am attaching the output&amp;nbsp;partition manager report.&lt;pre class="ui-code" data-mode="text"&gt;  external_flash (0x800000 - 8192kB):
+---------------------------------------------+
| 0x0: mcuboot_secondary (0xf4000 - 976kB)    |
| 0xf4000: external_flash (0x70c000 - 7216kB) |
+---------------------------------------------+

  flash_primary (0x100000 - 1024kB):
+-------------------------------------------------+
| 0x0: mcuboot (0xc000 - 48kB)                    |
+---0xc000: mcuboot_primary (0xf4000 - 976kB)-----+
| 0xc000: mcuboot_pad (0x200 - 512B)              |
+---0xc200: mcuboot_primary_app (0xf3e00 - 975kB)-+
| 0xc200: app (0xf3e00 - 975kB)                   |
+-------------------------------------------------+

  otp (0x2fc - 764B):
+------------------------------+
| 0xff8100: otp (0x2fc - 764B) |
+------------------------------+

  sram_primary (0x80000 - 512kB):
+-----------------------------------------------+
| 0x20000000: pcd_sram (0x2000 - 8kB)           |
| 0x20002000: sram_primary (0x6e000 - 440kB)    |
| 0x20070000: rpmsg_nrf53_sram (0x10000 - 64kB) |
+-----------------------------------------------+

 CPUNET flash_primary (0x40000 - 256kB):
+--------------------------------------------+
+---0x1000000: b0n_container (0x8800 - 34kB)-+
| 0x1000000: b0n (0x8580 - 33kB)             |
| 0x1008580: provision (0x280 - 640B)        |
+---0x1008800: app (0x37800 - 222kB)---------+
| 0x1008800: hci_rpmsg (0x37800 - 222kB)     |
+--------------------------------------------+

 CPUNET sram_primary (0x10000 - 64kB):
+-------------------------------------------+
| 0x21000000: sram_primary (0x10000 - 64kB) |
+-------------------------------------------+&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thanks!&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Candela&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf7002dk - region `FLASH' overflowed</title><link>https://devzone.nordicsemi.com/thread/436906?ContentTypeID=1</link><pubDate>Tue, 18 Jul 2023 08:00:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d04ad719-9819-415f-abb6-92ca1d727b37</guid><dc:creator>Sigurd Hellesvik</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Enabling an SMP Server will split your available flash into two, effectively reducing available flash by half.&lt;br /&gt;This is likely why you experience flash limitation errors.&lt;/p&gt;
&lt;p&gt;To solve this, you got two options:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Reduce/optimize flash usage. See &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/test_and_optimize/optimizing/memory.html"&gt;Memory footprint optimization&lt;/a&gt;, and disable features you do not need.&lt;/li&gt;
&lt;li&gt;Add external flash. See &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/scripts/partition_manager/partition_manager.html#external-flash-memory-partitions"&gt;External flash memory partitions&lt;/a&gt;. Remember to add this for the mcuboot child image as well&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;Regards,&lt;br /&gt;Sigurd Hellesvik&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf7002dk - region `FLASH' overflowed</title><link>https://devzone.nordicsemi.com/thread/436884?ContentTypeID=1</link><pubDate>Tue, 18 Jul 2023 06:33:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5528d762-04fe-40ae-86b8-fae7fb863d9e</guid><dc:creator>Candela</dc:creator><description>&lt;p&gt;Hi Sigurd,&lt;/p&gt;
&lt;p&gt;I&amp;#39;m attaching the complete build log with the Flash overflowed error, you can find it on&amp;nbsp;&lt;a title="Flash overflowed log" href="https://drive.google.com/file/d/1DzrgTpjWD6ycpGO8iUn3vY53uIw_YSjg/view?usp=sharing"&gt;this link&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;On the other hand, yes, I can reproduce the issue adding these three configurations to the smp_svr sample:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;CONFIG_WIFI=y
CONFIG_WIFI_NRF700X=y
CONFIG_WPA_SUPP=y&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Candela&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf7002dk - region `FLASH' overflowed</title><link>https://devzone.nordicsemi.com/thread/436404?ContentTypeID=1</link><pubDate>Fri, 14 Jul 2023 08:29:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:853bdc8d-bba0-4d89-8b63-208a8787369f</guid><dc:creator>Sigurd Hellesvik</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I will continue to help with this case.&lt;/p&gt;
&lt;p&gt;Can you upload your full build log as a .txt file?&lt;/p&gt;
&lt;p&gt;Are you able to reproduce the issue if you add MCUboot to any of our samples?&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><item><title>RE: nrf7002dk - region `FLASH' overflowed</title><link>https://devzone.nordicsemi.com/thread/436179?ContentTypeID=1</link><pubDate>Thu, 13 Jul 2023 08:37:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b0169e93-6c51-4349-958f-46a2e400ba78</guid><dc:creator>AHaug</dc:creator><description>&lt;p&gt;Hi Candela,&lt;/p&gt;
&lt;p&gt;Thank you for providing this information. Just a heads up that I will be out of office for the few weeks, but this case will be handled by my colleague while I&amp;#39;m out of office. You will hear from them shortly w.r.t. what to do next!&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;br /&gt;Andreas&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf7002dk - region `FLASH' overflowed</title><link>https://devzone.nordicsemi.com/thread/435996?ContentTypeID=1</link><pubDate>Wed, 12 Jul 2023 13:20:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f507e0cf-6887-4bb5-a83b-bea54a12bc5c</guid><dc:creator>Candela</dc:creator><description>&lt;p&gt;Hi Andreas,&lt;/p&gt;
&lt;p&gt;After following the proposals on the blog to reduce the footprint, and adding some settings from the nRF Machine learning sample, I still have&amp;nbsp;the same problem...&lt;/p&gt;
&lt;p&gt;I&amp;#39;m attaching the Memory reports of my project before enabling the Bootloader configuration. Once I add it, I get the Flash overflowed.&lt;/p&gt;
&lt;p&gt;ROM Memory report:&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/Captura-de-pantalla-2023_2D00_07_2D00_12-151630.png" /&gt;&lt;/p&gt;
&lt;p&gt;RAM Memory report:&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/Captura-de-pantalla-2023_2D00_07_2D00_12-151857.png" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Partitions Memory report:&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/Captura-de-pantalla-2023_2D00_07_2D00_12-151406.png" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Candela&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf7002dk - region `FLASH' overflowed</title><link>https://devzone.nordicsemi.com/thread/435484?ContentTypeID=1</link><pubDate>Mon, 10 Jul 2023 12:07:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4c89b699-5ea3-47f4-835c-ea8d13a8ab8a</guid><dc:creator>AHaug</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;A few general thoughts and tips is the following&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;First steps would be to disable debug, which you&amp;#39;ve mentioned and logging.&lt;/li&gt;
&lt;li&gt;The second step is to investigate&amp;nbsp;&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/nordic/nordic-blog/b/blog/posts/debunking-misconceptions-a-technical-analysis-of-nrf5-sdk-and-nrf-connect-sdk"&gt;Debunking misconceptions: A technical analysis of nRF5 SDK and nRF Connect SDK&lt;/a&gt;&amp;nbsp;to see if there are anything you can use from this blog in your project to reduce its footprint&lt;/li&gt;
&lt;li&gt;The third thing is to have a look at&amp;nbsp;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/applications/machine_learning/README.html#nrf-machine-learning-app"&gt;the nRF Machine learning sample&lt;/a&gt;&amp;nbsp;to see how this application has optimized MCUboot w.r.t. memory&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&amp;nbsp;Could you also provide me with a memory report of your project? Either use the built in extension in VS Code or navigate to &amp;#39;&lt;em&gt;&amp;lt;application location&amp;gt;/build&amp;#39;&lt;/em&gt; in command line and use &amp;#39;&lt;em&gt;nrfjprog partition_manager_report`&lt;/em&gt;?&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;br /&gt;Andreas&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>