<?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>nRF52832 b0+mcuboot+app</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/109425/nrf52832-b0-mcuboot-app</link><description>Hi, 
 
 Trying to structure image in the following way: 
 b0 
 mcuboot 1 
 mcuboot 2 
 app 
 
 With the following setup: 
 App prj.conf: 
 ``` 
 
 CONFIG_BOOTLOADER_MCUBOOT =y 
 
 CONFIG_SECURE_BOOT =y 
 CONFIG_SB_SIGNING_KEY_FILE = &amp;quot;nsib_priv.pem&amp;quot; 
</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 17 Apr 2024 12:43:14 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/109425/nrf52832-b0-mcuboot-app" /><item><title>RE: nRF52832 b0+mcuboot+app</title><link>https://devzone.nordicsemi.com/thread/479225?ContentTypeID=1</link><pubDate>Wed, 17 Apr 2024 12:43:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:068774e2-4f0d-48c5-9270-7726839afb1f</guid><dc:creator>AHaug</dc:creator><description>&lt;p&gt;Hi again,&lt;/p&gt;
&lt;p&gt;I found the time to do the work I described for you:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://github.com/aHaugl/samples_for_NCS/tree/main/DFU/serial_recover_nsib/serial_recovery_nsib_52832"&gt;https://github.com/aHaugl/samples_for_NCS/tree/main/DFU/serial_recover_nsib/serial_recovery_nsib_52832&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;To repeat what I described previously and what I did:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;I took the sample in&amp;nbsp;&lt;a href="https://github.com/aHaugl/samples_for_NCS/tree/main/DFU/serial_recover_nsib/serial_recovery_nsib_52840,"&gt;https://github.com/aHaugl/samples_for_NCS/tree/main/DFU/serial_recover_nsib/serial_recovery_nsib_52840,&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/a&gt;which is the same I linked earlier&amp;nbsp;&lt;/li&gt;
&lt;li&gt;Deleted the pm_static.yml&amp;nbsp;&lt;/li&gt;
&lt;li&gt;Built for nrf52dk_nrf52832 with dynamic partitioning&lt;/li&gt;
&lt;li&gt;Opened the generated partitions.yml located in the build folder and copied it to a pm_static.yml&lt;/li&gt;
&lt;li&gt;Calculated how large mcuboot_primary needed to be to to fill the remaining gap after I&amp;#39;ve set the mcuboot_secondary partition size to be equal to the size of MCUboot:&lt;br /&gt;&lt;br /&gt;MCUboot secondary application slot ends at 0x80000 and which means that when matching the size of MCUboot (48kB) it will have to start at 0x74000.&lt;br /&gt;&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;mcuboot_secondary:
  address: 0x74000
  end_address: 0x80000
  placement:
    after:
    - mcuboot_primary
    align:
      start: 0x1000
    align_next: 0x1000
  region: flash_primary
  share_size:
  - mcuboot_primary
  size: 0xc000&lt;/pre&gt;&lt;/li&gt;
&lt;li&gt;This means that Mcuboot_primary (and app image and app) has to end at 0x740000 and the size changes from 0x2ee00&amp;nbsp;to 0x51e00&lt;/li&gt;
&lt;li&gt;Rebuild the firmware with static configuration and you will get something like this&lt;br /&gt;&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;  flash_primary (0x80000 - 512kB):
+--------------------------------------------------+
+---0x0: b0_container (0x8000 - 32kB)--------------+
| 0x0: b0 (0x7000 - 28kB)                          |
| 0x7000: provision (0x1000 - 4kB)                 |
+---0x8000: s0 (0xc200 - 48kB)---------------------+
| 0x8000: s0_pad (0x200 - 512B)                    |
+---0x8200: s0_image (0xc000 - 48kB)---------------+
| 0x8200: mcuboot (0xc000 - 48kB)                  |
+--------------------------------------------------+
| 0x14200: EMPTY_0 (0xe00 - 3kB)                   |
+---0x15000: s1 (0xc200 - 48kB)--------------------+
| 0x15000: s1_pad (0x200 - 512B)                   |
| 0x15200: s1_image (0xc000 - 48kB)                |
+--------------------------------------------------+
| 0x21200: EMPTY_1 (0xe00 - 3kB)                   |
+---0x22000: mcuboot_primary (0x51e00 - 327kB)-----+
| 0x22000: mcuboot_pad (0x200 - 512B)              |
+---0x22200: app_image (0x51e00 - 327kB)-----------+
+---0x22200: mcuboot_primary_app (0x51e00 - 327kB)-+
| 0x22200: app (0x51e00 - 327kB)                   |
+--------------------------------------------------+
| 0x74000: mcuboot_secondary (0xc000 - 48kB)       |
+--------------------------------------------------+

  sram_primary (0x10000 - 64kB):
+-------------------------------------------+
| 0x20000000: sram_primary (0x10000 - 64kB) |
+-------------------------------------------+&lt;/pre&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;It might not be perfect, but it shows what I previously explained and illustrates how you can implement a dual slot secondary bootloader update + single slot application update solution in your firmware for a nRF52832dk&lt;/p&gt;
&lt;p&gt;Let me know if this is enough to keep you going!&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: nRF52832 b0+mcuboot+app</title><link>https://devzone.nordicsemi.com/thread/477337?ContentTypeID=1</link><pubDate>Fri, 05 Apr 2024 13:33:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c7a31352-7452-4930-8ca3-d3d7b000f24f</guid><dc:creator>AHaug</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I understand your frustration. The topic is quite comprehensive. I can see if I am able to provide you with a more detailed sample next week, but I can&amp;#39;t give you any promises other than the resources provided.&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: nRF52832 b0+mcuboot+app</title><link>https://devzone.nordicsemi.com/thread/476854?ContentTypeID=1</link><pubDate>Wed, 03 Apr 2024 11:42:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0cd7b5d5-5cd5-41ec-8006-0c0804184109</guid><dc:creator>Alex D</dc:creator><description>&lt;p&gt;Hi again,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;For the past two days been learning about partitions and how partition manager works, but still can not figure this issue out.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;To be specific again: I need b0, two slots for secondary bootloaders and one more slot for application.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Look, believe it or not but its freaking hard to search through this endless list of various config options and the issue now is exactly to select the right ones, so could you please having experience with this system help me to select the right ones&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52832 b0+mcuboot+app</title><link>https://devzone.nordicsemi.com/thread/475994?ContentTypeID=1</link><pubDate>Tue, 26 Mar 2024 15:55:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f5a3156d-e2c7-4bd1-bb47-907a65d06e26</guid><dc:creator>Alex D</dc:creator><description>&lt;p&gt;Hi, sorry for the late reply - it were holidays.&lt;/p&gt;
&lt;p&gt;Thank you, will try to find solution&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52832 b0+mcuboot+app</title><link>https://devzone.nordicsemi.com/thread/474802?ContentTypeID=1</link><pubDate>Wed, 20 Mar 2024 09:17:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:89f1282c-92ef-4a32-83d3-d0e357738e80</guid><dc:creator>AHaug</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
[quote user="Alex D"]&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/members/ahaug"&gt;AHaug&lt;/a&gt;&amp;nbsp;Hi, any updates?[/quote]
&lt;p&gt;Working day in Norway is weekdays between 8 and 16 &lt;span&gt;Central European Standard Time&lt;/span&gt;, so outside of this window you will have to be patient for a reply&lt;/p&gt;
&lt;p&gt;If possible, it would be nice if you could post logs and code using the insert -&amp;gt; Code function to increase readability&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/2705.pastedimage1710922890206v1.png" alt=" " /&gt;&lt;/p&gt;
[quote user="Alex D"]Tried to build &lt;a href="https://github.com/aHaugl/samples_for_NCS/tree/main/DFU/serial_recovery_nsib"&gt;serial_recovery_nsib&lt;/a&gt; project with nrf52dk_nrf52832 configuration, getting this error:[/quote]
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;As it is stated in the requirements of the unofficial sample I&amp;#39;ve created it is only supported for the nRF52840DK, and no other boards. If you wish to port the board you will have to go through the academy courses in detail as well as the partition manager documentation to learn how static partitioning works. Specially lesson 8 in the academy course I referred to yesterday should be a good resource&amp;nbsp;&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;&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;
&lt;ol&gt;
&lt;li&gt;&lt;a href="https://academy.nordicsemi.com/courses/nrf-connect-sdk-intermediate/lessons/lesson-8-bootloaders-and-dfu-fota/topic/multi-image-builds-and-the-partition-manager/"&gt;https://academy.nordicsemi.com/courses/nrf-connect-sdk-intermediate/lessons/lesson-8-bootloaders-and-dfu-fota/topic/multi-image-builds-and-the-partition-manager/&lt;/a&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;li&gt;Partition manager&amp;nbsp;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/scripts/partition_manager/partition_manager.html"&gt;https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/scripts/partition_manager/partition_manager.html&lt;/a&gt;&amp;nbsp;
&lt;ol&gt;
&lt;li&gt;Static partitioning&amp;nbsp;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/scripts/partition_manager/partition_manager.html#adding-a-static-partition"&gt;https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/scripts/partition_manager/partition_manager.html#adding-a-static-partition&lt;/a&gt;&amp;nbsp;&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;You can compile it for the 52DK, but I give you no guarantee that it works by following the same steps. To do this, you can simply remove the static partition that has been used there and it should compile using the dynamic partitioning instead. The default partition manager report should look like shown below.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Next you can copy the partitioning that has been generated (located in &lt;em&gt;\build\partitions.yml&lt;/em&gt;) and copy the contents into your on pm_static.yml and make the modifications to suit your applications needs. Follow the rules that is written in the partition manager documentation w.r.t locations of partitions, naming conventions and paddings. This is what I did when I created the static partitioning for the 52840DK&lt;/p&gt;
&lt;p&gt;serial_recovery_nsib\build&amp;gt;ninja partition_manager_report&lt;br /&gt;[1/1] cmd.exe /C &amp;quot;cd /D C:\Nordic\SDKs\ncs\my_projects\2.5..._projects/2.5.0/serial_recovery_nsib/build/partitions.yml&amp;quot;&lt;br /&gt; flash_primary (0x80000 - 512kB):&lt;br /&gt;+--------------------------------------------------+&lt;br /&gt;+---0x0: b0_container (0x8000 - 32kB)--------------+&lt;br /&gt;| 0x0: b0 (0x7000 - 28kB) |&lt;br /&gt;| 0x7000: provision (0x1000 - 4kB) |&lt;br /&gt;+---0x8000: s0 (0xc200 - 48kB)---------------------+&lt;br /&gt;| 0x8000: s0_pad (0x200 - 512B) |&lt;br /&gt;+---0x8200: s0_image (0xc000 - 48kB)---------------+&lt;br /&gt;| 0x8200: mcuboot (0xc000 - 48kB) |&lt;br /&gt;+--------------------------------------------------+&lt;br /&gt;| 0x14200: EMPTY_0 (0xe00 - 3kB) |&lt;br /&gt;+---0x15000: s1 (0xc200 - 48kB)--------------------+&lt;br /&gt;| 0x15000: s1_pad (0x200 - 512B) |&lt;br /&gt;| 0x15200: s1_image (0xc000 - 48kB) |&lt;br /&gt;+--------------------------------------------------+&lt;br /&gt;| 0x21200: EMPTY_1 (0xe00 - 3kB) |&lt;br /&gt;+---0x22000: mcuboot_primary (0x2f000 - 188kB)-----+&lt;br /&gt;| 0x22000: mcuboot_pad (0x200 - 512B) |&lt;br /&gt;+---0x22200: app_image (0x2ee00 - 187kB)-----------+&lt;br /&gt;+---0x22200: mcuboot_primary_app (0x2ee00 - 187kB)-+&lt;br /&gt;| 0x22200: app (0x2ee00 - 187kB) |&lt;br /&gt;+--------------------------------------------------+&lt;br /&gt;| 0x51000: mcuboot_secondary (0x2f000 - 188kB) |&lt;br /&gt;+--------------------------------------------------+&lt;/p&gt;
&lt;p&gt;sram_primary (0x10000 - 64kB):&lt;br /&gt;+-------------------------------------------+&lt;br /&gt;| 0x20000000: sram_primary (0x10000 - 64kB) |&lt;br /&gt;+-------------------------------------------+&lt;/p&gt;
&lt;p&gt;I will repeat once more: If you wish to understand how this works, it will require that you read the documentation I&amp;#39;ve sent you and go through the courses properly&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: nRF52832 b0+mcuboot+app</title><link>https://devzone.nordicsemi.com/thread/474779?ContentTypeID=1</link><pubDate>Wed, 20 Mar 2024 07:55:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5a37a2bf-586d-4e85-82f8-0f9901f501fc</guid><dc:creator>Alex D</dc:creator><description>&lt;p&gt;&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/members/ahaug"&gt;AHaug&lt;/a&gt;&amp;nbsp;Hi, any updates?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52832 b0+mcuboot+app</title><link>https://devzone.nordicsemi.com/thread/474708?ContentTypeID=1</link><pubDate>Tue, 19 Mar 2024 16:52:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:328a6225-6011-4b64-8481-52e049df9072</guid><dc:creator>Alex D</dc:creator><description>&lt;p&gt;Getting:&lt;/p&gt;
&lt;p&gt;```&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;FAILED: zephyr/subsys/mgmt/mcumgr/grp/img_mgmt/CMakeFiles/subsys__mgmt__mcumgr__grp__img_mgmt.dir/src/img_mgmt.c.obj

/home/ab/ncs/v2.6.0/zephyr/subsys/mgmt/mcumgr/grp/img_mgmt/src/img_mgmt.c: In function &amp;#39;img_mgmt_active_slot&amp;#39;:
/home/ab/ncs/v2.6.0/nrf/include/flash_map_pm.h:52:18: error: &amp;#39;PM_PM_PM_mcuboot_secondary_ID_LABEL_OFFSET&amp;#39; undeclared (first use in this function)
&amp;#160;&amp;#160; 52 |&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; UTIL_CAT(PM_, UTIL_CAT(UTIL_CAT(PM_, UTIL_CAT(PM_ID(label), _LABEL)), x))
&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; |&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; ^~~
/home/ab/ncs/v2.6.0/zephyr/include/zephyr/sys/util_internal.h:105:36: note: in definition of macro &amp;#39;UTIL_PRIMITIVE_CAT&amp;#39;
&amp;#160; 105 | #define UTIL_PRIMITIVE_CAT(a, ...) a##__VA_ARGS__
&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; |&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; ^
/home/ab/ncs/v2.6.0/nrf/include/flash_map_pm.h:52:9: note: in expansion of macro &amp;#39;UTIL_CAT&amp;#39;
&amp;#160;&amp;#160; 52 |&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; UTIL_CAT(PM_, UTIL_CAT(UTIL_CAT(PM_, UTIL_CAT(PM_ID(label), _LABEL)), x))
&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; |&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; ^~~~~~~~
/home/ab/ncs/v2.6.0/nrf/include/flash_map_pm.h:55:39: note: in expansion of macro &amp;#39;FIXED_PARTITION_DATA_FIELD&amp;#39;
&amp;#160;&amp;#160; 55 | #define FIXED_PARTITION_OFFSET(label) FIXED_PARTITION_DATA_FIELD(label, _OFFSET)
&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; |&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; ^~~~~~~~~~~~~~~~~~~~~~~~~~
/home/ab/ncs/v2.6.0/zephyr/subsys/mgmt/mcumgr/grp/img_mgmt/src/img_mgmt.c:50:10: note: in expansion of macro &amp;#39;FIXED_PARTITION_OFFSET&amp;#39;
&amp;#160;&amp;#160; 50 |&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; (FIXED_PARTITION_OFFSET(label) == (PM_ADDRESS - PM_ADDRESS_OFFSET))
&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; |&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; ^~~~~~~~~~~~~~~~~~~~~~
/home/ab/ncs/v2.6.0/zephyr/subsys/mgmt/mcumgr/grp/img_mgmt/src/img_mgmt.c:164:13: note: in expansion of macro &amp;#39;FIXED_PARTITION_IS_RUNNING_APP_PARTITION&amp;#39;
&amp;#160; 164 |&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; if (FIXED_PARTITION_IS_RUNNING_APP_PARTITION(slot1_partition)) {
&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; |&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/ab/ncs/v2.6.0/nrf/include/flash_map_pm.h:52:18: note: each undeclared identifier is reported only once for each function it appears in
&amp;#160;&amp;#160; 52 |&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; UTIL_CAT(PM_, UTIL_CAT(UTIL_CAT(PM_, UTIL_CAT(PM_ID(label), _LABEL)), x))
&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; |&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; ^~~
/home/ab/ncs/v2.6.0/zephyr/include/zephyr/sys/util_internal.h:105:36: note: in definition of macro &amp;#39;UTIL_PRIMITIVE_CAT&amp;#39;
&amp;#160; 105 | #define UTIL_PRIMITIVE_CAT(a, ...) a##__VA_ARGS__
&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; |&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; ^
/home/ab/ncs/v2.6.0/nrf/include/flash_map_pm.h:52:9: note: in expansion of macro &amp;#39;UTIL_CAT&amp;#39;
&amp;#160;&amp;#160; 52 |&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; UTIL_CAT(PM_, UTIL_CAT(UTIL_CAT(PM_, UTIL_CAT(PM_ID(label), _LABEL)), x))
&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; |&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; ^~~~~~~~
/home/ab/ncs/v2.6.0/nrf/include/flash_map_pm.h:55:39: note: in expansion of macro &amp;#39;FIXED_PARTITION_DATA_FIELD&amp;#39;
&amp;#160;&amp;#160; 55 | #define FIXED_PARTITION_OFFSET(label) FIXED_PARTITION_DATA_FIELD(label, _OFFSET)
&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; |&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; ^~~~~~~~~~~~~~~~~~~~~~~~~~
/home/ab/ncs/v2.6.0/zephyr/subsys/mgmt/mcumgr/grp/img_mgmt/src/img_mgmt.c:50:10: note: in expansion of macro &amp;#39;FIXED_PARTITION_OFFSET&amp;#39;
&amp;#160;&amp;#160; 50 |&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; (FIXED_PARTITION_OFFSET(label) == (PM_ADDRESS - PM_ADDRESS_OFFSET))
&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; |&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; ^~~~~~~~~~~~~~~~~~~~~~
/home/ab/ncs/v2.6.0/zephyr/subsys/mgmt/mcumgr/grp/img_mgmt/src/img_mgmt.c:164:13: note: in expansion of macro &amp;#39;FIXED_PARTITION_IS_RUNNING_APP_PARTITION&amp;#39;
&amp;#160; 164 |&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; if (FIXED_PARTITION_IS_RUNNING_APP_PARTITION(slot1_partition)) {&lt;/pre&gt;```&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52832 b0+mcuboot+app</title><link>https://devzone.nordicsemi.com/thread/474707?ContentTypeID=1</link><pubDate>Tue, 19 Mar 2024 16:51:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:923a871b-4b94-4780-a6c9-f851a4519d69</guid><dc:creator>Alex D</dc:creator><description>&lt;p&gt;So I tried to modify the pm_static.yml or my case:&lt;/p&gt;
&lt;p&gt;```&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;b0_container:
 address: 0x0
 end_address: 0x8000
 orig_span: &amp;amp;id002
 - b0
 - provision
 region: flash_primary
 size: 0x8000
 span: *id002
b0:
 address: 0x0
 end_address: 0x7000
 placement:
 after:
 - start
 region: flash_primary
 size: 0x7000
provision:
 address: 0x7000
 end_address: 0x8000
 placement:
 after:
 - b0
 align:
 start: 0x1000
 region: flash_primary
 size: 0x1000

s0:
 address: 0x8000
 end_address: 0x14200
 orig_span: &amp;amp;id005
 - s0_pad
 - mcuboot
 region: flash_primary
 size: 0xc200
 span: *id005
s0_pad:
 address: 0x8000
 end_address: 0x8200
 placement:
 after:
 - b0_container
 align:
 start: 0x1000
 region: flash_primary
 share_size:
 - mcuboot_pad
 size: 0x200
s0_image:
 address: 0x8200
 end_address: 0x14200
 orig_span: &amp;amp;id006
 - mcuboot
 region: flash_primary
 size: 0xc000
 span: *id006
mcuboot:
 address: 0x8200
 end_address: 0x14200
 placement:
 before:
 - mcuboot_primary
 region: flash_primary
 sharers: 0x1
 size: 0xc000

EMPTY_0:
 address: 0x14200
 end_address: 0x15000
 placement:
 before:
 - s1_pad
 region: flash_primary
 size: 0xe00

s1:
 address: 0x15000
 end_address: 0x21200
 orig_span: &amp;amp;id007
 - s1_pad
 - s1_image
 region: flash_primary
 size: 0xc200
 span: *id007
s1_pad:
 address: 0x15000
 end_address: 0x15200
 placement:
 after:
 - s0
 align:
 start: 0x1000
 region: flash_primary
 share_size:
 - mcuboot_pad
 size: 0x200
s1_image:
 address: 0x15200
 end_address: 0x21200
 placement:
 after:
 - s1_pad
 - s0
 region: flash_primary
 share_size:
 - mcuboot
 size: 0xc000

EMPTY_1:
 address: 0x21200
 end_address: 0x22000
 placement:
 before:
 - mcuboot_pad
 region: flash_primary
 size: 0xe00

app_image:
 address: 0x22200
 end_address: 0x80000
 orig_span: &amp;amp;id001
 - app
 region: flash_primary
 size: 0x5de00
 span: *id001
mcuboot_pad:
 address: 0x22000
 end_address: 0x22200
 placement:
 align:
 start: 0x1000
 before:
 - mcuboot_primary_app
 region: flash_primary
 sharers: 0x2
 size: 0x200
mcuboot_primary_app:
 address: 0x22200
 end_address: 0x80000
 orig_span: &amp;amp;id004
 - app
 region: flash_primary
 size: 0x5de00
 span: *id004
mcuboot_primary:
 address: 0x22000
 end_address: 0x80000
 orig_span: &amp;amp;id003
 - app
 - mcuboot_pad
 region: flash_primary
 size: 0x5e000
 span: *id003
app:
 address: 0x22200
 end_address: 0x80000
 region: flash_primary
 size: 0x5de00

sram_primary:
 address: 0x20000000
 end_address: 0x20010000
 region: sram_primary
 size: 0x10000
&lt;/pre&gt;&lt;/p&gt;
&lt;div style="background-color:rgba(30, 30, 30, 1);color:rgba(212, 212, 212, 1);font-family:&amp;#39;Droid Sans Mono&amp;#39;, &amp;#39;monospace&amp;#39;, monospace;font-size:14px;font-weight:normal;line-height:19px;white-space:pre;"&gt;
&lt;div&gt;&lt;span style="color:rgba(86, 156, 214, 1);"&gt;&lt;/span&gt;```&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52832 b0+mcuboot+app</title><link>https://devzone.nordicsemi.com/thread/474687?ContentTypeID=1</link><pubDate>Tue, 19 Mar 2024 15:28:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d7297125-463e-4afc-9c5e-b5002c9c426f</guid><dc:creator>Alex D</dc:creator><description>&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/members/ahaug"&gt;AHaug&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I&amp;#39;ve also noticed that `app` and `app_image` sections are commented out...&lt;/p&gt;
&lt;p&gt;Sorry, just starting with nRF Connect SDK&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52832 b0+mcuboot+app</title><link>https://devzone.nordicsemi.com/thread/474685?ContentTypeID=1</link><pubDate>Tue, 19 Mar 2024 15:24:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fc223b67-d4c1-41ab-9b91-72730edbdb0e</guid><dc:creator>Alex D</dc:creator><description>&lt;p&gt;Thank you for the quick response.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Tried to build &lt;a href="https://github.com/aHaugl/samples_for_NCS/tree/main/DFU/serial_recovery_nsib"&gt;serial_recovery_nsib&lt;/a&gt; project with nrf52dk_nrf52832 configuration, getting this error:&lt;/p&gt;
&lt;p&gt;```&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;-- Found partition manager static configuration: ./samples_for_NCS/DFU/serial_recovery_nsib/pm_static.yml
Partition &amp;#39;b0&amp;#39; is not included in the dynamic resolving since it is statically defined.
Partition &amp;#39;b0_container&amp;#39; is not included in the dynamic resolving since it is statically defined.
Partition &amp;#39;mcuboot&amp;#39; is not included in the dynamic resolving since it is statically defined.
Partition &amp;#39;mcuboot_pad&amp;#39; is not included in the dynamic resolving since it is statically defined.
Partition &amp;#39;mcuboot_primary&amp;#39; is not included in the dynamic resolving since it is statically defined.
Partition &amp;#39;mcuboot_primary_app&amp;#39; is not included in the dynamic resolving since it is statically defined.
Partition &amp;#39;mcuboot_secondary&amp;#39; is not included in the dynamic resolving since it is statically defined.
Partition &amp;#39;provision&amp;#39; is not included in the dynamic resolving since it is statically defined.
Partition &amp;#39;s0&amp;#39; is not included in the dynamic resolving since it is statically defined.
Partition &amp;#39;s0_image&amp;#39; is not included in the dynamic resolving since it is statically defined.
Partition &amp;#39;s0_pad&amp;#39; is not included in the dynamic resolving since it is statically defined.
Partition &amp;#39;s1&amp;#39; is not included in the dynamic resolving since it is statically defined.
Partition &amp;#39;s1_image&amp;#39; is not included in the dynamic resolving since it is statically defined.
Partition &amp;#39;s1_pad&amp;#39; is not included in the dynamic resolving since it is statically defined.
Partition manager failed: Incorrect amount of gaps found in static configuration. There must be exactly one gap in the static configuration to support placing the dynamic partitions (such as &amp;#39;app&amp;#39;). Gaps found (2):0x23200-0x80000 0x100000-0xa0000 The most common solution to this problem is to fill the smallest of these gaps with statically defined partition(s) until there is only one gap left. Alternatively re-order the already defined static partitions so that only one gap remains.
Failed to partition region flash_primary, size of region: 524288
Partition Configuration:
EMPTY_0:
&amp;#160; placement:
&amp;#160;&amp;#160;&amp;#160; before:
&amp;#160;&amp;#160;&amp;#160; - s1_pad
&amp;#160; size: 3584
EMPTY_1:
&amp;#160; placement:
&amp;#160;&amp;#160;&amp;#160; before:
&amp;#160;&amp;#160;&amp;#160; - mcuboot_pad
&amp;#160; size: 3584
EMPTY_2:
&amp;#160; placement:
&amp;#160;&amp;#160;&amp;#160; after:
&amp;#160;&amp;#160;&amp;#160; - mcuboot_secondary
&amp;#160; size: 4096
b0:
&amp;#160; placement:
&amp;#160;&amp;#160;&amp;#160; after:
&amp;#160;&amp;#160;&amp;#160; - start
&amp;#160; size: 32768
b0_container:
&amp;#160; size: 36864
mcuboot:
&amp;#160; placement:
&amp;#160;&amp;#160;&amp;#160; before:
&amp;#160;&amp;#160;&amp;#160; - mcuboot_primary
&amp;#160; size: 49152
mcuboot_pad:
&amp;#160; placement:
&amp;#160;&amp;#160;&amp;#160; align:
&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; start: 4096
&amp;#160;&amp;#160;&amp;#160; before:
&amp;#160;&amp;#160;&amp;#160; - mcuboot_primary_app
&amp;#160; size: 512
mcuboot_primary:
&amp;#160; size: 512000
mcuboot_primary_app:
&amp;#160; size: 511488
mcuboot_secondary:
&amp;#160; placement:
&amp;#160;&amp;#160;&amp;#160; after:
&amp;#160;&amp;#160;&amp;#160; - mcuboot_primary
&amp;#160;&amp;#160;&amp;#160; align:
&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; start: 4096
&amp;#160;&amp;#160;&amp;#160; align_next: 4096
&amp;#160; size: 389120
provision:
&amp;#160; placement:
&amp;#160;&amp;#160;&amp;#160; after:
&amp;#160;&amp;#160;&amp;#160; - b0
&amp;#160;&amp;#160;&amp;#160; align:
&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; start: 4096
&amp;#160; size: 4096
s0:
&amp;#160; size: 49664
s0_image:
&amp;#160; size: 49152
s0_pad:
&amp;#160; placement:
&amp;#160;&amp;#160;&amp;#160; after:
&amp;#160;&amp;#160;&amp;#160; - b0_container
&amp;#160;&amp;#160;&amp;#160; align:
&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; start: 4096
&amp;#160; size: 512
s1:
&amp;#160; size: 49664
s1_image:
&amp;#160; placement:
&amp;#160;&amp;#160;&amp;#160; after:
&amp;#160;&amp;#160;&amp;#160; - s1_pad
&amp;#160;&amp;#160;&amp;#160; - s0
&amp;#160; size: 49152
s1_pad:
&amp;#160; placement:
&amp;#160;&amp;#160;&amp;#160; after:
&amp;#160;&amp;#160;&amp;#160; - s0
&amp;#160;&amp;#160;&amp;#160; align:
&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; start: 4096
&amp;#160; size: 512&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;```&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52832 b0+mcuboot+app</title><link>https://devzone.nordicsemi.com/thread/474678?ContentTypeID=1</link><pubDate>Tue, 19 Mar 2024 15:02:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6a457521-47e0-4427-8ac9-2152ad83783f</guid><dc:creator>AHaug</dc:creator><description>&lt;p&gt;Wups, I was a bit too quick when reading your case. I see now what you want. If I remember correct from when I created this sample, I think this one should cover what you&amp;#39;re looking for&amp;nbsp;&lt;a href="https://github.com/aHaugl/samples_for_NCS/tree/main/DFU/serial_recovery_nsib"&gt;https://github.com/aHaugl/samples_for_NCS/tree/main/DFU/serial_recovery_nsib&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;You should be able to configure the static partitioning to fit what you need, and the readme description (albeit a bit rough in the edges) should showcase how to do this. Remember that the secondary MCUBoot partition needs to be atleast as large as the MCUboot (bootloader) partition&lt;/p&gt;
&lt;p&gt;Let me know if you&amp;#39;re able to get it working by following my sample instead&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: nRF52832 b0+mcuboot+app</title><link>https://devzone.nordicsemi.com/thread/474672?ContentTypeID=1</link><pubDate>Tue, 19 Mar 2024 14:55:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b5a16123-6dce-49b4-a956-44a6fa6ce210</guid><dc:creator>Alex D</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Saw the lesson, it covers only simply one-stage scheme, not including b0 first-stage bootloader.&lt;/p&gt;
&lt;p&gt;Author also has an example of how to update bootloader here:&lt;/p&gt;
&lt;p&gt;&lt;a id="" href="https://github.com/hellesvik-nordic/samples_for_nrf_connect_sdk/tree/main/bootloader_samples/updatable_bootloader"&gt;https://github.com/hellesvik-nordic/samples_for_nrf_connect_sdk/tree/main/bootloader_samples/updatable_bootloader&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;but this example implements dual-slot solution, I need dual-slot for bootloader and single-slot for application&lt;/p&gt;
&lt;p&gt;Please help&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52832 b0+mcuboot+app</title><link>https://devzone.nordicsemi.com/thread/474668?ContentTypeID=1</link><pubDate>Tue, 19 Mar 2024 14:50:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:419b81f0-d5fe-4079-9546-ffbe752673f4</guid><dc:creator>AHaug</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I would recommend that you have a look at the bootloader and DFU/FOTA lesson in the new course on our academy pages: &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;. The first exercise there showcases how to do serial recovery. The author of the lesson has also this repository which might be of help w.r.t implementing a single image serial recovery solution for your application&amp;nbsp;&lt;a href="https://github.com/hellesvik-nordic/samples_for_nrf_connect_sdk/tree/main/bootloader_samples/serial_recovery"&gt;https://github.com/hellesvik-nordic/samples_for_nrf_connect_sdk/tree/main/bootloader_samples/serial_recovery&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Do note that if you intend to implement a serial recovery solution you will miss out on some of fallback mechanics that comes with regular FOTA with a secondary application slot&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: nRF52832 b0+mcuboot+app</title><link>https://devzone.nordicsemi.com/thread/474554?ContentTypeID=1</link><pubDate>Tue, 19 Mar 2024 10:29:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e692d3ed-5b62-4d2b-bb3a-c891ce0359ee</guid><dc:creator>Alex D</dc:creator><description>&lt;p&gt;Forget to mention that without `&lt;span&gt;CONFIG_SINGLE_APPLICATION_SLOT=y` everything is building fine, but dual-slot solution is not that i&amp;#39;m looking for. Only interested in serial recovery model cause wanna safe more space for app&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>