<?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>[MCU BOOT] `RAM&amp;#39; overflowed</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/111760/mcu-boot-ram-overflowed</link><description>Hello, 
 
 I&amp;#39;m trying to implement the MCU BOOT in order to introduce the Firmware uptdate but I get the following error: 
 
 I&amp;#39;m trying to reduce the RAM usage but with no succes. 
 
 When I build my program without the MCU BOOT I get this following</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 17 Jun 2024 07:41:34 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/111760/mcu-boot-ram-overflowed" /><item><title>RE: [MCU BOOT] `RAM' overflowed</title><link>https://devzone.nordicsemi.com/thread/489008?ContentTypeID=1</link><pubDate>Mon, 17 Jun 2024 07:41:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b8cfcfad-c0b8-4c89-849e-716609947770</guid><dc:creator>AHaug</dc:creator><description>&lt;p&gt;Oh and I see you just replied with another update! Happy to hear that you resolved it with those configurations, and thank you very much for sharing your progress!&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: [MCU BOOT] `RAM' overflowed</title><link>https://devzone.nordicsemi.com/thread/489006?ContentTypeID=1</link><pubDate>Mon, 17 Jun 2024 07:40:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bb365fc3-1380-49f5-9663-c3f623ff6fef</guid><dc:creator>AHaug</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Apologies for the long response time, I&amp;#39;ve been out of office. I will go through your information today and come back with a response&lt;/p&gt;
&lt;p&gt;What I see immediately is that your static partition is a bit wrong, the &amp;quot;size&amp;quot; part of your littlefs_storage region needs to be aligned with the rest of the parameters for that partition:&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/pastedimage1718610019787v3.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;You will most likely get the flash overflow error again, but could you fix this and see if you do?&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: [MCU BOOT] `RAM' overflowed</title><link>https://devzone.nordicsemi.com/thread/489004?ContentTypeID=1</link><pubDate>Mon, 17 Jun 2024 07:35:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e499e3b1-7b10-4cf8-b7a1-9de74eb6837f</guid><dc:creator>Martdur</dc:creator><description>&lt;p&gt;I managed to make it work the issues was that I have to set the proper configuration for both files:&amp;nbsp;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;In mcuboot.conf&lt;pre class="ui-code" data-mode="text"&gt;CONFIG_HW_CC3XX=n
CONFIG_NRF_CC3XX_PLATFORM=n
CONFIG_NORDIC_QSPI_NOR=n&lt;/pre&gt;&lt;/li&gt;
&lt;li&gt;In the prj.conf&lt;pre class="ui-code" data-mode="text"&gt;CONFIG_BOOTLOADER_MCUBOOT=y
CONFIG_MCUBOOT_IMAGE_VERSION=&amp;quot;0.0.1+0&amp;quot;
CONFIG_TFM_PROFILE_TYPE_MINIMAL=y
CONFIG_IMG_MANAGER=y
CONFIG_PARTITION_MANAGER_ENABLED=y

CONFIG_PM_PARTITION_REGION_LITTLEFS_EXTERNAL=y
CONFIG_PM_PARTITION_SIZE_LITTLEFS=0x7FFFFF
CONFIG_PM_EXTERNAL_FLASH_MCUBOOT_SECONDARY=n

#Flash
CONFIG_FLASH=y
CONFIG_FLASH_MAP=y
CONFIG_FLASH_PAGE_LAYOUT=y
CONFIG_STREAM_FLASH=y

#QSPI External flash
CONFIG_NORDIC_QSPI_NOR=y
CONFIG_NORDIC_QSPI_NOR_FLASH_LAYOUT_PAGE_SIZE=4096

#File system
CONFIG_FILE_SYSTEM=y
CONFIG_FILE_SYSTEM_LITTLEFS=y
CONFIG_SETTINGS=y
CONFIG_SETTINGS_FS=y
CONFIG_FS_LITTLEFS_NUM_FILES=15

CONFIG_PM_PARTITION_REGION_LITTLEFS_EXTERNAL=y
CONFIG_PM_PARTITION_SIZE_LITTLEFS=0x7FFFFF
CONFIG_PM_EXTERNAL_FLASH_MCUBOOT_SECONDARY=n

&lt;/pre&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;What I&amp;#39;ve understand is that&amp;nbsp;&lt;pre class="ui-code" data-mode="text"&gt;CONFIG_NORDIC_QSPI_NOR&lt;/pre&gt;was enable by default in the mcuboot.conf making the partition manager create a partition for the image 2, this will introduce a conflict with the LittleFs image since&amp;nbsp;&lt;pre class="ui-code" data-mode="text"&gt;CONFIG_PM_PARTITION_REGION_LITTLEFS_EXTERNAL=y
CONFIG_PM_PARTITION_SIZE_LITTLEFS=0x7FFFFF&lt;/pre&gt;.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Edit:&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;As discussed above the chosen&amp;nbsp;&amp;nbsp;&lt;pre class="ui-code" data-mode="text"&gt;nordic,pm-ext-flash = &amp;amp;mx25r64;&lt;/pre&gt; has to be set too.&lt;/p&gt;
&lt;p&gt;Thanks for the help.&lt;/p&gt;
&lt;p&gt;Kinds regards.&lt;/p&gt;
&lt;p&gt;Martin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [MCU BOOT] `RAM' overflowed</title><link>https://devzone.nordicsemi.com/thread/488830?ContentTypeID=1</link><pubDate>Fri, 14 Jun 2024 09:43:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:21186ae0-90d9-4321-a62e-b44ac5d82f57</guid><dc:creator>Martdur</dc:creator><description>&lt;p&gt;So I&amp;#39;ve try using a static partition :&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;external_flash:
  address: 0x800000
  region: external_flash
  device: mx25r6435f
  size: 0x0
littlefs_storage:
  address: 0x00000000
  region: external_flash
  device: mx25r6435f
size: 0x00800000
app:
  address: 0x14000
  end_address: 0x84000
  region: flash_primary
  size: 0x70000
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
  - tfm
  - app
  - mcuboot_pad
  region: flash_primary
  sharers: 0x1
  size: 0x78000
  span: *id001
mcuboot_primary_app:
  address: 0xc200
  end_address: 0x84000
  orig_span: &amp;amp;id002
  - app
  - tfm
  region: flash_primary
  size: 0x77e00
  span: *id002
mcuboot_secondary:
  address: 0x84000
  end_address: 0xfc000
  placement:
    after:
    - mcuboot_primary
    align:
      start: 0x4000
    align_next: 0x4000
mcuboot_sram:
  address: 0x20000000
  end_address: 0x20008000
  orig_span: &amp;amp;id003
  - tfm_sram
  region: sram_primary
  size: 0x8000
  span: *id003
otp:
  address: 0xff8100
  end_address: 0xff83fc
  region: otp
  size: 0x2fc
sram_nonsecure:
  address: 0x20008000
  end_address: 0x20080000
  orig_span: &amp;amp;id004
  - sram_primary
  region: sram_primary
  size: 0x78000
  span: *id004
sram_primary:
  address: 0x20008000
  end_address: 0x20080000
  region: sram_primary
  size: 0x78000
sram_secure:
  address: 0x20000000
  end_address: 0x20008000
  orig_span: &amp;amp;id005
  - tfm_sram
  region: sram_primary
  size: 0x8000
  span: *id005
tfm:
  address: 0xc200
  end_address: 0x14000
  inside:
  - mcuboot_primary_app
  placement:
    before:
    - app
  region: flash_primary
  size: 0x7e00
tfm_nonsecure:
  address: 0x14000
  end_address: 0x84000
  orig_span: &amp;amp;id006
  - app
  region: flash_primary
  size: 0x70000
  span: *id006
tfm_secure:
  address: 0xc000
  end_address: 0x14000
  orig_span: &amp;amp;id007
  - mcuboot_pad
  - tfm
  region: flash_primary
  size: 0x8000
  span: *id007
tfm_sram:
  address: 0x20000000
  end_address: 0x20008000
  inside:
  - sram_secure
  placement:
    after:
    - start
  region: sram_primary
  size: 0x8000
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;But I get the same error :&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;-- Found partition manager static configuration: C:/Users/dev/dev/BPI/Concentrateur/pm_static.yml
Traceback (most recent call last):
  File &amp;quot;C:/ncs/v2.3.0/nrf/scripts/partition_manager.py&amp;quot;, line 1978, in &amp;lt;module&amp;gt;
    main()
  File &amp;quot;C:/ncs/v2.3.0/nrf/scripts/partition_manager.py&amp;quot;, line 1018, in main
    static_config = load_static_configuration(args, pm_config) if args.static_config else dict()
  File &amp;quot;C:/ncs/v2.3.0/nrf/scripts/partition_manager.py&amp;quot;, line 980, in load_static_configuration
    fix_syntactic_sugar(static_config)
  File &amp;quot;C:/ncs/v2.3.0/nrf/scripts/partition_manager.py&amp;quot;, line 948, in fix_syntactic_sugar
    if &amp;#39;region&amp;#39; not in v:
TypeError: argument of type &amp;#39;int&amp;#39; is not iterable
CMake Error at C:/ncs/v2.3.0/nrf/cmake/partition_manager.cmake:304 (message):
  Partition Manager failed, aborting.  Command:
  C:/ncs/toolchains/v2.3.0/opt/bin/python.exe;C:/ncs/v2.3.0/nrf/scripts/partition_manager.py;--input-files;C:/Users/dev/dev/BPI/Concentrateur/build_release/mcuboot/zephyr/include/generated/pm.yml;C:/Users/dev/dev/BPI/Concentrateur/build_release/mcuboot/modules/nrf/subsys/partition_manager/pm.yml.pcd;C:/Users/dev/dev/BPI/Concentrateur/build_release/zephyr/include/generated/pm.yml;C:/Users/dev/dev/BPI/Concentrateur/build_release/modules/nrf/subsys/partition_manager/pm.yml.file_system;C:/Users/dev/dev/BPI/Concentrateur/build_release/modules/nrf/subsys/partition_manager/pm.yml.rpmsg_nrf53;--regions;sram_primary;otp;flash_primary;external_flash;--output-partitions;C:/Users/dev/dev/BPI/Concentrateur/build_release/partitions.yml;--output-regions;C:/Users/dev/dev/BPI/Concentrateur/build_release/regions.yml;--static-config;C:/Users/dev/dev/BPI/Concentrateur/pm_static.yml;--sram_primary-size;0x80000;--sram_primary-base-address;0x20000000;--sram_primary-placement-strategy;complex;--sram_primary-dynamic-partition;sram_primary;--otp-size;764;--otp-base-address;0xff8100;--otp-placement-strategy;start_to_end;--flash_primary-size;0x100000;--flash_primary-base-address;0x0;--flash_primary-placement-strategy;complex;--flash_primary-device;flash_controller;--flash_primary-default-driver-kconfig;CONFIG_SOC_FLASH_NRF;--external_flash-size;8388608;--external_flash-base-address;0;--external_flash-placement-strategy;start_to_end;--external_flash-device;DT_CHOSEN(nordic_pm_ext_flash);--external_flash-default-driver-kconfig;CONFIG_PM_EXTERNAL_FLASH_HAS_DRIVER
Call Stack (most recent call first):
  C:/ncs/v2.3.0/zephyr/cmake/modules/kernel.cmake:246 (include)
  C:/ncs/v2.3.0/zephyr/cmake/modules/zephyr_default.cmake:117 (include)
  C:/ncs/v2.3.0/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:66 (include)
  C:/ncs/v2.3.0/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:92 (include_boilerplate)
  CMakeLists.txt:5 (find_package)


-- Configuring incomplete, errors occurred!&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [MCU BOOT] `RAM' overflowed</title><link>https://devzone.nordicsemi.com/thread/488692?ContentTypeID=1</link><pubDate>Thu, 13 Jun 2024 13:35:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2ba55272-7e8d-46f6-b238-63825d6cc268</guid><dc:creator>Martdur</dc:creator><description>&lt;p&gt;I&amp;#39;m not using any overlay since I use my custom board files.&lt;/p&gt;
&lt;p&gt;And yes I use QSPI external flash feature.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;#File system on external flash
CONFIG_PM_OVERRIDE_EXTERNAL_DRIVER_CHECK=y
CONFIG_PM_PARTITION_REGION_LITTLEFS_EXTERNAL=y
CONFIG_FCB=y
CONFIG_PM_PARTITION_REGION_SETTINGS_STORAGE_EXTERNAL=n
CONFIG_PM_PARTITION_SIZE_LITTLEFS=0x00800000&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Edit:&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;Since I want to use QSPI external flash I think I need to put&amp;nbsp;&lt;pre class="ui-code" data-mode="text"&gt;        nordic,pm-ext-flash = &amp;amp;mx25r64;&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;But I need to defined the PM behavior for this flash otherwise it use it as a image space and then I get&amp;nbsp;&lt;pre class="ui-code" data-mode="text"&gt;c:/ncs/toolchains/v2.3.0/opt/zephyr-sdk/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/12.1.0/../../../../arm-zephyr-eabi/bin/ld.exe: zephyr\zephyr_pre0.elf section `rodata&amp;#39; will not fit in region `FLASH&amp;#39;
c:/ncs/toolchains/v2.3.0/opt/zephyr-sdk/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/12.1.0/../../../../arm-zephyr-eabi/bin/ld.exe: region `FLASH&amp;#39; overflowed by 4988 bytes
collect2.exe: error: ld returned 1 exit status
ninja: build stopped: subcommand failed.&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Do you have a Idea how can I do so ?&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [MCU BOOT] `RAM' overflowed</title><link>https://devzone.nordicsemi.com/thread/488691?ContentTypeID=1</link><pubDate>Thu, 13 Jun 2024 13:30:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c2f11a96-2517-4156-9367-37a185996b6c</guid><dc:creator>Martdur</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I&amp;#39;ve finally succeed to build the hello world samples with my board:&lt;/p&gt;
&lt;p&gt;The use of&amp;nbsp;&lt;pre class="ui-code" data-mode="text"&gt;nordic,pm-ext-flash = &amp;amp;mx25r64;&lt;/pre&gt;&amp;nbsp;and&amp;nbsp;&lt;pre class="ui-code" data-mode="text"&gt;&amp;amp;mx25r64 {
    partitions {
        compatible = &amp;quot;fixed-partitions&amp;quot;;
        #address-cells = &amp;lt;1&amp;gt;;
        #size-cells = &amp;lt;1&amp;gt;;

        lfs1_part: partition@0 {
            label = &amp;quot;lfs1&amp;quot;;
            reg = &amp;lt;0x00000000 0x00800000&amp;gt;;
        };
    };
};&lt;/pre&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;make the partition manager doing unwanted partitioning.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;If found out that I have to clean &amp;quot;by hand&amp;quot; my build configuration and build folder when playing with those parameters.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;But back to my project where after applying the patch explained above I get new errors see :&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;=== child image mcuboot -  end ===

CMake Warning at C:/ncs/v2.3.0/nrf/modules/mcuboot/CMakeLists.txt:286 (message):
  

          ---------------------------------------------------------
          --- WARNING: Using default MCUBoot key, it should not ---
          --- be used for production.                           ---
          ---------------------------------------------------------
          



-- Build type:  
-- Host:    Windows/AMD64
-- Target:  Generic/arm
-- libmetal version: 1.3.0 (C:/Users/dev/dev/BPI/Concentrateur)
-- Machine: arm
-- open-amp version: 1.3.0 (C:/ncs/v2.3.0/modules/lib/open-amp/open-amp)
-- Host:    Windows/AMD64
-- Target:  Generic/arm
-- Machine: arm
-- C_FLAGS :  -Wall -Wextra
Partition manager failed: The current configuration is invalid because it requires app&amp;#39;s size to be less than 0.Unable to fulfill alignment requirement automatically.
Please re-size the configured partition sizes to get a valid configuration.
If you are not able to get a valid configuration either re-evaluate th e
alignment requirements, or use &amp;#39;static configuration&amp;#39; (see docs) to specify the
 partitioning. Note that aligning more than one partition which shares size
 with the dynamic partition (e.g. &amp;#39;app&amp;#39;)  is not supported.
Failed to partition region flash_primary, size of region: 1048576
Partition Configuration:
littlefs_storage:
  placement:
    align:
      start: 16384
    before:
    - end
  size: 8388608
mcuboot:
  placement:
    before:
    - mcuboot_primary
  size: 49152
mcuboot_pad:
  placement:
    align:
      start: 16384
    before:
    - mcuboot_primary_app
  size: 512
mcuboot_secondary:
  placement:
    after:
    - mcuboot_primary
    align:
      start: 16384
  size: -3694592
tfm:
  placement:
    before:
    - app
  size: 32256

CMake Error at C:/ncs/v2.3.0/nrf/cmake/partition_manager.cmake:304 (message):
  Partition Manager failed, aborting.  Command:
  C:/ncs/toolchains/v2.3.0/opt/bin/python.exe;C:/ncs/v2.3.0/nrf/scripts/partition_manager.py;--input-files;C:/Users/dev/dev/BPI/Concentrateur/build_release/mcuboot/zephyr/include/generated/pm.yml;C:/Users/dev/dev/BPI/Concentrateur/build_release/mcuboot/modules/nrf/subsys/partition_manager/pm.yml.pcd;C:/Users/dev/dev/BPI/Concentrateur/build_release/zephyr/include/generated/pm.yml;C:/Users/dev/dev/BPI/Concentrateur/build_release/modules/nrf/subsys/partition_manager/pm.yml.file_system;C:/Users/dev/dev/BPI/Concentrateur/build_release/modules/nrf/subsys/partition_manager/pm.yml.rpmsg_nrf53;C:/Users/dev/dev/BPI/Concentrateur/build_release/modules/nrf/subsys/partition_manager/pm.yml.tfm;C:/Users/dev/dev/BPI/Concentrateur/build_release/modules/nrf/subsys/partition_manager/pm.yml.trustzone;C:/Users/dev/dev/BPI/Concentrateur/build_release/modules/nrf/subsys/partition_manager/pm.yml.mcuboot;--regions;sram_primary;otp;flash_primary;--output-partitions;C:/Users/dev/dev/BPI/Concentrateur/build_release/partitions.yml;--output-regions;C:/Users/dev/dev/BPI/Concentrateur/build_release/regions.yml;--sram_primary-size;0x80000;--sram_primary-base-address;0x20000000;--sram_primary-placement-strategy;complex;--sram_primary-dynamic-partition;sram_primary;--otp-size;764;--otp-base-address;0xff8100;--otp-placement-strategy;start_to_end;--flash_primary-size;0x100000;--flash_primary-base-address;0x0;--flash_primary-placement-strategy;complex;--flash_primary-device;flash_controller;--flash_primary-default-driver-kconfig;CONFIG_SOC_FLASH_NRF
Call Stack (most recent call first):
  C:/ncs/v2.3.0/zephyr/cmake/modules/kernel.cmake:246 (include)
  C:/ncs/v2.3.0/zephyr/cmake/modules/zephyr_default.cmake:117 (include)
  C:/ncs/v2.3.0/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:66 (include)
  C:/ncs/v2.3.0/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:97 (include_boilerplate)
  CMakeLists.txt:5 (find_package)


-- Configuring incomplete, errors occurred!
See also &amp;quot;C:/Users/dev/dev/BPI/Concentrateur/build_release/CMakeFiles/CMakeOutput.log&amp;quot;.
See also &amp;quot;C:/Users/dev/dev/BPI/Concentrateur/build_release/CMakeFiles/CMakeError.log&amp;quot;.
ninja: error: rebuilding &amp;#39;build.ninja&amp;#39;: subcommand failed
FAILED: build.ninja 
C:\ncs\toolchains\v2.3.0\opt\bin\cmake.exe --regenerate-during-build -SC:\Users\dev\dev\BPI\Concentrateur -BC:\Users\dev\dev\BPI\Concentrateur\build_release
FATAL ERROR: command exited with status 1: &amp;#39;C:\ncs\toolchains\v2.3.0\opt\bin\cmake.EXE&amp;#39; --build &amp;#39;c:\Users\dev\dev\BPI\Concentrateur\build_release&amp;#39;

 *  The terminal process terminated with exit code: 1. 
 *  Terminal will be reused by tasks, press any key to close it. &lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [MCU BOOT] `RAM' overflowed</title><link>https://devzone.nordicsemi.com/thread/488687?ContentTypeID=1</link><pubDate>Thu, 13 Jun 2024 13:17:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c012be55-0725-4a7c-9876-c006758c0dee</guid><dc:creator>AHaug</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Are you using the same pfj.conf and overlay for these two bords? It seems to me that the nrf5340dk variant does not use it&amp;#39;s external flash, leading me to believe that it has not been configured for the DK.&lt;/p&gt;
&lt;p&gt;Could you share any prj.conf and overlay files for the firmware you used for the DK?&lt;/p&gt;
&lt;p&gt;And are you using QSPI or SPI for external flash purposes?&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: [MCU BOOT] `RAM' overflowed</title><link>https://devzone.nordicsemi.com/thread/488625?ContentTypeID=1</link><pubDate>Thu, 13 Jun 2024 09:19:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:10d817e7-e832-4c84-ad23-075e6adf235b</guid><dc:creator>Martdur</dc:creator><description>&lt;p&gt;Hello Andreas,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Sorry for the late response and thanks you for all the information.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I&amp;#39;ve been through the bootloader&amp;nbsp;lessons, I&amp;#39;ve tested the hello_world sample with bootloader and get the same error with my custom board.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;It seems that the partition manager is not well configurate, for my custom board.&lt;/p&gt;
&lt;p&gt;Note that it build well with for the nrf5340dk and that I use the&amp;nbsp;&lt;span&gt;nrf5340dk&amp;nbsp;board file as example for my custom board.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Using the Memory report I&amp;#39;ve seen that there is some difference between the two.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;nrf5340dk :&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/6708.nrf5340dk.PNG" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;custom board :&amp;nbsp;&amp;nbsp;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/customBoard.PNG_2D00_640x480.png" /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Is there a yml file or conf that I&amp;#39;ve missed ?&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [MCU BOOT] `RAM' overflowed</title><link>https://devzone.nordicsemi.com/thread/487779?ContentTypeID=1</link><pubDate>Thu, 06 Jun 2024 14:36:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0ea3661d-dd5b-4319-afe8-e67e6a5d2254</guid><dc:creator>AHaug</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Apologies for the long response time. The case were in between a couple of engineers before it came upon my desk.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;So first of I&amp;#39;m a bit curious as to what causes a RAM overflow of 240kB? What is the difference between the MCUboot and non-MCUboot versions?&lt;/p&gt;
&lt;p&gt;Have you seen&amp;nbsp;&lt;a href="https://academy.nordicsemi.com/courses/nrf-connect-sdk-intermediate/lessons/lesson-8-bootloaders-and-dfu-fota/"&gt;https://academy.nordicsemi.com/courses/nrf-connect-sdk-intermediate/lessons/lesson-8-bootloaders-and-dfu-fota/?&lt;/a&gt;&amp;nbsp;I would recommend that you go through this w.r.t adding MCUboot and DFU support for your device&lt;/p&gt;
&lt;p&gt;My current best guess at what is wrong is that you&amp;#39;ve defined the SRAM wrongly in your partitioning, maybe the region overlaps with the a secure area&lt;/p&gt;
[quote user=""]I&amp;#39;m not quite sur to understand the use of secure and non secure partition for flash and RAM.[/quote]
&lt;p&gt;Not necessarily an answer that completely addresses your uncertainty, but anyways this is the differences between the build types:&lt;/p&gt;
&lt;p&gt;A secure build (nrf5340dk_nrf9160 or nrf5340dk/nrf5340/cpuapp for example) means that the application is inherently trusted and runs in the Secure Processing Environment (SPE). This means that everything in your application is trusted and there is no Security by Separation. This can be a security hazard if the user application is buggy or compromised as it can easily access sensitive data such as passwords stored in the flash memory.&lt;/p&gt;
&lt;p&gt;A non-secure build (nrf5340dk_nrf9160_ns or nrf5340dk/nrf5340/cpuapp/ns for example) means that the application runs in the Non-Secure Processing Environment (NSPE). In this case, two images are created: the application firmware and the Trusted Firmware M (TF-M). The TF-M runs in the Secure Processing Environment (SPE) and provides the security services needed by the application firmware. This separation ensures that security-sensitive data is in a secure processing environment and access to it is heavily restricted. The TF-M governs the access of the user application to the flash memory and handles security-related tasks, adding an extra layer of security through this separation.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://academy.nordicsemi.com/courses/nrf-connect-sdk-fundamentals/lessons/lesson-3-elements-of-an-nrf-connect-sdk-application/topic/configuration-files/#multi-image-build"&gt;https://academy.nordicsemi.com/courses/nrf-connect-sdk-fundamentals/lessons/lesson-3-elements-of-an-nrf-connect-sdk-application/topic/configuration-files/#multi-image-build&lt;/a&gt;&amp;nbsp;does also go into this&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I would recommend that you go through atleast those two lessons in these two courses and then return if you have any follow up questions. I believe that most of your uncertainties may be answered by doing so&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: [MCU BOOT] `RAM' overflowed</title><link>https://devzone.nordicsemi.com/thread/487069?ContentTypeID=1</link><pubDate>Mon, 03 Jun 2024 09:59:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d46d4fbe-b764-48dd-82bb-2b707283f674</guid><dc:creator>Martdur</dc:creator><description>&lt;p&gt;When not using the /ns (no &lt;span&gt;TF-M)&amp;nbsp;&lt;/span&gt;board file I can successfully build with the following output :&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;[29/29] Linking C executable zephyr\zephyr.elf
Memory region         Used Size  Region Size  %age Used
           FLASH:       23142 B      34176 B     67.71%
             RAM:        3464 B        64 KB      5.29%
           SRAM1:          0 GB        64 KB      0.00%
        IDT_LIST:          0 GB         2 KB      0.00%
[10/26] Linking C executable zephyr\zephyr_pre0.elf
...
[20/24] Linking C executable zephyr\zephyr.elf
Memory region         Used Size  Region Size  %age Used
           FLASH:      187452 B       222 KB     82.46%
             RAM:       51044 B        64 KB     77.89%
           SRAM1:          0 GB        64 KB      0.00%
        IDT_LIST:          0 GB         2 KB      0.00%
[21/24] Generating zephyr/app.hex
...
[347/356] Linking CXX executable zephyr\zephyr.elf
Memory region         Used Size  Region Size  %age Used
           FLASH:      201016 B     523776 B     38.38%
             RAM:       89248 B       440 KB     19.81%
        IDT_LIST:          0 GB         2 KB      0.00%
[348/356] Generating zephyr/mcuboot_primary.hex&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;I was already using&amp;nbsp;&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;pre class="ui-code" data-mode="text"&gt;CONFIG_TFM_PROFILE_TYPE_MINIMAL=y&lt;/pre&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;in the previous configuration.&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>