<?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>Multi image configuration with mcuboot doubt</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/83011/multi-image-configuration-with-mcuboot-doubt</link><description>Hi! I&amp;#39;m working with nRF52833 in a laird dev kit and I&amp;#39;m having problems understanding the multi-image build configuration on nrf Connect SDK with zephyr. 
 Our project concept is the following: 
 Having mcuboot on top, and 2 more bootable images. 
 The</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 02 May 2022 21:22:37 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/83011/multi-image-configuration-with-mcuboot-doubt" /><item><title>RE: Multi image configuration with mcuboot doubt</title><link>https://devzone.nordicsemi.com/thread/365854?ContentTypeID=1</link><pubDate>Mon, 02 May 2022 21:22:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7e57f31c-8d1c-4ef0-8fa5-8d2d18809400</guid><dc:creator>Simon</dc:creator><description>[quote user="pau_vilanova"]&lt;p&gt;But, mcuboot is not writing the image to slot 1 like the smp server example, instead is writing it directly to slot 0 and overwriting the application.&lt;/p&gt;
&lt;p&gt;In doing so, I cannot test it, and mcuboot is not swapping, just writing new image and booting it. Am I doing something wrong?&lt;/p&gt;[/quote]
&lt;p&gt;Hello and sorry for the delay, I have been gone for the last two months. I think this is the intention. If you perform the dfu through the application, you need two slots in order to have a fallback in case the new update bricks your product. However, if you perform the update through mcuboot, a corrupted firmware update is not an issue, because mcuboot is the fallback (can just perform new update with noncorrupt image).&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Multi image configuration with mcuboot doubt</title><link>https://devzone.nordicsemi.com/thread/356218?ContentTypeID=1</link><pubDate>Fri, 04 Mar 2022 09:23:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:24518bd2-4234-4234-aa5f-6bb6ae87ae59</guid><dc:creator>pau_vilanova</dc:creator><description>&lt;p&gt;Could the problems you&amp;#39;re facing be related to the -n option of mcumgr?&lt;/p&gt;
&lt;p&gt;the documentation says that -n option is only supported when working inside mcuboot with dfu serial.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://docs.zephyrproject.org/latest/guides/device_mgmt/mcumgr.html"&gt;https://docs.zephyrproject.org/latest/guides/device_mgmt/mcumgr.html&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1646385731411v1.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Multi image configuration with mcuboot doubt</title><link>https://devzone.nordicsemi.com/thread/356210?ContentTypeID=1</link><pubDate>Fri, 04 Mar 2022 09:06:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7fd44e11-ff20-4b3e-b1a3-bf771eb85146</guid><dc:creator>pau_vilanova</dc:creator><description>&lt;p&gt;Hi Simon,&lt;/p&gt;
&lt;p&gt;Sorry for the lateness, my work had been shifted, and I couldn&amp;#39;t spend time on that.&lt;/p&gt;
&lt;p&gt;What I discovered so far:&lt;/p&gt;
&lt;p&gt;Mcuboot is meant to boot always a fix location, so I realized that having mcuboot to boot image 1 or 2 is not viable. A DFU in different slots could be possible but again, it requires modifying mcuboot source code in order to modify the fixed image offset.&lt;/p&gt;
&lt;p&gt;I discovered that mcuboot has dfu capabilities too, so instead of having another image to do the dfu process apart from the client image, I&amp;#39;m trying to make the mcuboot update directly to the client image. In doing so, the dfu functionality is not inside the client application, and that was what I was looking for.&lt;/p&gt;
&lt;p&gt;But in this process I have some doubts.&lt;/p&gt;
&lt;p&gt;I have the following mcuboot configuration:&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1646384263123v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;That enables me to upload a client image successfully:&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1646384772947v3.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;But, mcuboot is not writing the image to slot 1 like the smp server example, instead is writing it directly to slot 0 and overwriting the application.&lt;/p&gt;
&lt;p&gt;In doing so, I cannot test it, and mcuboot is not swapping, just writing new image and booting it. Am I doing something wrong?&lt;/p&gt;
&lt;p&gt;Is mcumgr the commands that I need to use to upload new images in mcuboot serial configuration?&lt;/p&gt;
&lt;p&gt;mcuboot serial only contemplates usb and uart, is it possible to make it work with ble?&lt;/p&gt;
&lt;p&gt;Is mcuboot really working with mcumgr when I enable mcuboot_serial?&lt;/p&gt;
&lt;p&gt;The only &amp;quot;documentation&amp;quot; that I found is in its Kconfig file &lt;a href="https://github.com/nrfconnect/sdk-mcuboot/blob/v1.7.99-ncs-branch/boot/zephyr/Kconfig"&gt;https://github.com/nrfconnect/sdk-mcuboot/blob/v1.7.99-ncs-branch/boot/zephyr/Kconfig&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Multi image configuration with mcuboot doubt</title><link>https://devzone.nordicsemi.com/thread/350723?ContentTypeID=1</link><pubDate>Tue, 01 Feb 2022 15:15:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:749f495d-b51b-4146-8329-e11716151ae0</guid><dc:creator>Simon</dc:creator><description>&lt;p&gt;Hello, have you gotten any progress? I&amp;#39;ve not been able to get it fully working yet, but I&amp;#39;ll share my temporary progress.&lt;/p&gt;
&lt;p&gt;I still have some problems withmcuboot not being able to validate&amp;nbsp;mcuboot_primary_1 (getting&amp;nbsp; W: Failed reading image headers; Image=1&lt;br /&gt;E: Unable to find bootable image). I tried to add a custom sample and add it as as a child image (placed into mcuboot_primary) to the mutli_image_dfu sample, but it is not able to validate it.&lt;/p&gt;
&lt;p&gt;Here is the multi_img_dfu sample (only tested on nRF52840 DK):&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/multi_5F00_img_5F00_dfu_5F00_v3.zip"&gt;devzone.nordicsemi.com/.../multi_5F00_img_5F00_dfu_5F00_v3.zip&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Here is a diff of the nrf, after modifying it to support a custom child image:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://github.com/nrfconnect/sdk-nrf/compare/nrfconnect:cfedfdf...simon-iversen:fcfc6ef"&gt;https://github.com/nrfconnect/sdk-nrf/compare/nrfconnect:cfedfdf...simon-iversen:fcfc6ef&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Multi image configuration with mcuboot doubt</title><link>https://devzone.nordicsemi.com/thread/349630?ContentTypeID=1</link><pubDate>Tue, 25 Jan 2022 17:34:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e95abd9d-18b7-4f25-a459-63a2ffc837e4</guid><dc:creator>Simon</dc:creator><description>&lt;p&gt;&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/5226.multi_5F00_img_5F00_dfu_5F00_833_5F00_v2.zip"&gt;devzone.nordicsemi.com/.../5226.multi_5F00_img_5F00_dfu_5F00_833_5F00_v2.zip&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;I did some testing, and I was able to perfomr multi image DFU using the sample above and an nRF52840DK (don&amp;#39;t have an nRF52833 DK at the moment). I enabled serial dfu support following&amp;nbsp;&lt;span&gt;&lt;a href="https://devzone.nordicsemi.com/guides/nrf-connect-sdk-guides/b/software/posts/ncs-dfu#modify_hello_world"&gt;Modify the Hello World sample&lt;/a&gt;&amp;nbsp;and performed a DFU following&amp;nbsp;&lt;/span&gt;&lt;span&gt;&lt;a href="https://devzone.nordicsemi.com/guides/nrf-connect-sdk-guides/b/software/posts/ncs-dfu#serial_testing"&gt;Testing&lt;/a&gt;. The only difference I did was to append &amp;quot;-n 1&amp;quot; when running the upload command:&lt;/span&gt;&lt;/p&gt;
&lt;pre&gt;&lt;span&gt;mcumgr --conntype serial --connstring &amp;quot;COM5,baud=115200&amp;quot; image upload &lt;strong&gt;-n 1&lt;/strong&gt; -e app_update.bin&lt;/span&gt;&lt;/pre&gt;
&lt;p&gt;&lt;span&gt;I then confirmed using the &lt;a href="https://infocenter.nordicsemi.com/index.jsp?topic=%2Fug_nc_programmer%2FUG%2Fnrf_connect_programmer%2Fncp_introduction.html"&gt;Programmer app&lt;/a&gt; that the new uploaded images was successfully put into&amp;nbsp;&lt;/span&gt;mcuboot_secondary_1 (Clien APP slot 1).&amp;nbsp;&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;&lt;span&gt;The next step now is to be able to swap the image in&amp;nbsp;mcuboot_secondary_1&amp;nbsp;into&amp;nbsp;&lt;/span&gt;&lt;/span&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;mcuboot_primary_1 using mcuboot.&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Multi image configuration with mcuboot doubt</title><link>https://devzone.nordicsemi.com/thread/348306?ContentTypeID=1</link><pubDate>Tue, 18 Jan 2022 13:54:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:15ebd001-29c5-4f88-a0bf-1049cffc6ce8</guid><dc:creator>Simon</dc:creator><description>&lt;p&gt;I looked into this, and it seems like you don&amp;#39;t need to do any modifications to the mcumgr libraries.&lt;/p&gt;
&lt;p&gt;If you issue an image upload command,&amp;nbsp;&lt;a href="https://github.com/zephyrproject-rtos/mcumgr/blob/657deb658e317ac2a5302675154b21f2666d5ec9/cmd/img_mgmt/src/img_mgmt.c#L401"&gt;&lt;span&gt;img_mgmt_upload() will run and set .image to 0&lt;/span&gt;&lt;/a&gt;&amp;nbsp;and next &lt;a href="https://github.com/zephyrproject-rtos/mcumgr/blob/657deb658e317ac2a5302675154b21f2666d5ec9/cmd/img_mgmt/src/img_mgmt.c#L456"&gt;img_mgmt_impl_upload_inspect()&lt;/a&gt;--&amp;gt;&lt;a href="https://github.com/zephyrproject-rtos/mcumgr/blob/657deb658e317ac2a5302675154b21f2666d5ec9/cmd/img_mgmt/port/zephyr/src/zephyr_img_mgmt.c#L568"&gt;img_mgmt_get_unused_slot_area_id()&lt;/a&gt;&amp;nbsp;will run&amp;nbsp;and since image was set to 0, it will run&amp;nbsp;&lt;a href="https://github.com/zephyrproject-rtos/mcumgr/blob/657deb658e317ac2a5302675154b21f2666d5ec9/cmd/img_mgmt/port/zephyr/src/zephyr_img_mgmt.c#L210"&gt;&lt;span&gt;zephyr_img_mgmt_flash_area_id(1)&lt;/span&gt;&lt;/a&gt;, which run &lt;a href="https://github.com/zephyrproject-rtos/mcumgr/blob/657deb658e317ac2a5302675154b21f2666d5ec9/cmd/img_mgmt/port/zephyr/src/zephyr_img_mgmt.c#L133"&gt;FLASH_AREA_ID(image_1)&lt;/a&gt;, which&amp;nbsp;&lt;a href="https://github.com/nrfconnect/sdk-nrf/blob/a9330627f952d0532706acb24a313ca8a02a0a88/include/flash_map_pm.h#L15"&gt;will make it use mcuboot_secondary&lt;/a&gt;&amp;nbsp;(DFU APP slot 1).&lt;/p&gt;
&lt;p&gt;To make it use &lt;a href="https://github.com/nrfconnect/sdk-nrf/blob/a9330627f952d0532706acb24a313ca8a02a0a88/include/flash_map_pm.h#L19"&gt;mcuboot_secondary_1&lt;/a&gt; (Client APP slot 1, which I defined in the pm_static.yml file), you need to make it &lt;a href="https://github.com/zephyrproject-rtos/mcumgr/blob/657deb658e317ac2a5302675154b21f2666d5ec9/cmd/img_mgmt/port/zephyr/src/zephyr_img_mgmt.c#L144"&gt;select image_3&lt;/a&gt;, and for that you&amp;#39;ll have to run&amp;nbsp;&lt;a href="https://github.com/zephyrproject-rtos/mcumgr/blob/657deb658e317ac2a5302675154b21f2666d5ec9/cmd/img_mgmt/port/zephyr/src/zephyr_img_mgmt.c#L213"&gt;&lt;span&gt;zephyr_img_mgmt_flash_area_id&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;3&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/a&gt;&amp;nbsp;and for that to happen, you need to set&amp;nbsp;&lt;a href="https://github.com/zephyrproject-rtos/mcumgr/blob/657deb658e317ac2a5302675154b21f2666d5ec9/cmd/img_mgmt/port/zephyr/src/zephyr_img_mgmt.c#L212"&gt;image to 1&lt;/a&gt;&amp;nbsp;in&amp;nbsp;&lt;a href="https://github.com/zephyrproject-rtos/mcumgr/blob/657deb658e317ac2a5302675154b21f2666d5ec9/cmd/img_mgmt/src/img_mgmt.c#L401"&gt;img_mgmt_upload()&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;One way of going about this, is to use the -n flag, to set the image to&amp;nbsp;1 when running the mcumgr image upload command, see &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/1.8.0/zephyr/guides/device_mgmt/mcumgr.html#image-management"&gt;mcumgr--&amp;gt;image management&lt;/a&gt;:&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x40/__key/communityserver-discussions-components-files/4/1157.pastedimage1642513826872v1.png" /&gt;&lt;/p&gt;
&lt;p&gt;Then I think &lt;a href="https://github.com/zephyrproject-rtos/mcumgr/blob/657deb658e317ac2a5302675154b21f2666d5ec9/cmd/img_mgmt/src/img_mgmt.c#L450"&gt;cbor_read_object()&lt;/a&gt; will override the old image value and set it to 1, and the new image will be stored in mcuboot_secondary_1.&lt;/p&gt;
&lt;p&gt;I have not gotten time to test this, but I&amp;#39;ll try it out in the next days.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Multi image configuration with mcuboot doubt</title><link>https://devzone.nordicsemi.com/thread/347581?ContentTypeID=1</link><pubDate>Thu, 13 Jan 2022 12:42:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3ab0965c-2d1a-4088-9204-5306283cd739</guid><dc:creator>Simon</dc:creator><description>&lt;p&gt;&lt;strong&gt;UPDATE 21.01.2022: Added strikethrough to some information I provided, after figuring this is not the best way to go about this. See &lt;a href="https://devzone.nordicsemi.com/support-private/support/281610#permalink=724982"&gt;later reply&lt;/a&gt; for more details.&lt;/strong&gt;&lt;/p&gt;
&lt;hr /&gt;
&lt;p&gt;Hello, I will share my temporary progress. The project attached below is built using NCS v1.8.0 and the nRF52833dk_nrf52833&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/2705.multi_5F00_img_5F00_dfu_5F00_833.zip"&gt;devzone.nordicsemi.com/.../2705.multi_5F00_img_5F00_dfu_5F00_833.zip&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;I created a pm_static.yml file that would allocate space for the mcuboot_primary_1 (client APP slot 0) mcuboot_secondary_1 (client APP slot 1) partitions. Here is the result from running&amp;nbsp;ninja partition_manager_report in the build folder:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;  flash_primary (0x80000 - 512kB):
+-------------------------------------------------+
| 0x0: mcuboot (0xc000 - 48kB)                    |
+---0xc000: mcuboot_primary (0x39000 - 228kB)-----+
| 0xc000: mcuboot_pad (0x200 - 512B)              |
+---0xc200: mcuboot_primary_app (0x38e00 - 227kB)-+
| 0xc200: app (0x38e00 - 227kB)                   |
+-------------------------------------------------+
| 0x45000: mcuboot_secondary (0x39000 - 228kB)    |
| 0x7e000: mcuboot_primary_1 (0x1000 - 4kB)       |
| 0x7f000: mcuboot_secondary_1 (0x1000 - 4kB)     |
+-------------------------------------------------+

  sram_primary (0x20000 - 128kB):
+--------------------------------------------+
| 0x20000000: sram_primary (0x20000 - 128kB) |
+--------------------------------------------+&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="text-decoration:underline;"&gt;What todo next:&lt;/span&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;span style="text-decoration:line-through;"&gt;Modify the mcumgr libraries such that they will look at the magic value stored in the start of app_update.bin and if the value is equal to e.g. 0x96f31111, it will place the update into &amp;quot;Client APP slot 1&amp;quot; (mcuboot_secondary_1), otherwise if the value is 0x96f3b83d (magic value for normal mcuboot updates, see &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/1.8.0/mcuboot/design.html#image-format"&gt;MCUboot--&amp;gt;Image Format&lt;/a&gt;) put it into &amp;quot;DFU app slot 1&amp;quot; (mcuboot_secondary)&lt;/span&gt;
&lt;ul&gt;
&lt;li&gt;&lt;span style="text-decoration:line-through;"&gt;Then, if you want to update the client APP, you would need to modify the app_update.bin file and swap&amp;nbsp;0x96f31111 with the default value&amp;nbsp;0x96f3b83d&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;Modify the size of&amp;nbsp;&lt;span&gt;mcuboot_primary_1&amp;nbsp;and&amp;nbsp;mcuboot_secondary_1&amp;nbsp;according to the size of client APP&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Multi image configuration with mcuboot doubt</title><link>https://devzone.nordicsemi.com/thread/347528?ContentTypeID=1</link><pubDate>Thu, 13 Jan 2022 08:31:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b1cc89bf-8556-4285-ba92-d76c4ae22920</guid><dc:creator>Simon</dc:creator><description>[quote user="pau_vilanova"]Who decides the size of my application? Because the smp example size is 0x37000, knowing this, I cannot fit any more images in my build because the primary and secondary partitions of smp server already occupies all flash.[/quote]
&lt;p&gt;Actually you don&amp;#39;t need to set the size of the application partition. First the Partition Manager will go through all the pm.yml files from all child images and the partitions from the pm_static.yml file if present, then it will set the sizes and addresses of those and lastly it will set the size of the main application dynamically (if not set in pm_static.yml). The less size the child images occupy, the more size the main application partition will occupy, and vice versa. By the way there is a difference between how much memory is allocated to the application and how much memory it actually uses. Even though&amp;nbsp;230kB is allocated for your application, it may only occupy 100kB. You can use the &lt;a href="https://infocenter.nordicsemi.com/index.jsp?topic=%2Fug_nc_programmer%2FUG%2Fnrf_connect_programmer%2Fncp_introduction.html"&gt;Programmer app&lt;/a&gt; to see how much memory your application actually uses.&lt;/p&gt;
[quote user="pau_vilanova"]Moreover, if I wanted to configure a simple hello world as a child image to another project, what would be the steps to follow in partition manager and in the hello world itself?[/quote]
&lt;p&gt;I&amp;#39;ll look into this.&lt;/p&gt;
[quote user="pau_vilanova"]If you could try to set up the example that would be great![/quote]
&lt;p&gt;I will try to do this. I will keep you updated on the progress&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Multi image configuration with mcuboot doubt</title><link>https://devzone.nordicsemi.com/thread/346862?ContentTypeID=1</link><pubDate>Mon, 10 Jan 2022 09:31:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7a69fadd-d950-484f-a9f3-b2b4e5b1c989</guid><dc:creator>pau_vilanova</dc:creator><description>&lt;p&gt;Hi Simon,&lt;/p&gt;
&lt;p&gt;Thanks for all the information.&lt;/p&gt;
&lt;p&gt;I&amp;#39;ve read about partition manager in order to understand how multi image works and I have more doubts.&lt;/p&gt;
&lt;p&gt;I&amp;#39;m trying to modify the partitions in the smp server example but I don&amp;#39;t know how to shrink the app size, because in partitions.yml the mcuboot + the smp server app is occupying all the flash size.&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1641805496358v2.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;Who decides the size of my application? Because the smp example size is 0x37000, knowing this, I cannot fit any more images in my build because the primary and secondary partitions of smp server already occupies all flash.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Moreover, if I wanted to configure a simple hello world as a child image to another project, what would be the steps to follow in partition manager and in the hello world itself?&lt;/p&gt;
&lt;p&gt;If you could try to set up the example that would be great!&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Multi image configuration with mcuboot doubt</title><link>https://devzone.nordicsemi.com/thread/345640?ContentTypeID=1</link><pubDate>Mon, 03 Jan 2022 11:43:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:187a755b-4e08-4bcd-ac52-794b59aaea34</guid><dc:creator>Simon</dc:creator><description>&lt;p&gt;Have you made any progress here?&lt;/p&gt;
[quote user=""]- Do I need to modify the flash-map stated in &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/mcuboot/design.html#flash-map"&gt;https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/mcuboot/design.html#flash-map&lt;/a&gt; for multi-image? If so, where is it located in my project?[/quote]
&lt;p&gt;No, you should not modify those. Instead use the Partition Manager and Kconfigs (.conf files).&lt;/p&gt;
[quote user=""]-Is hello world + mcuboot a multi image build? If so, is mcuboot build in the project as a child? Why I don&amp;#39;t find in cmakelists.txt mcuboot child enable and definition as stated in &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/ug_multi_image.html#defining-and-enabling-a-child-image"&gt;https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/ug_multi_image.html#defining-and-enabling-a-child-image&lt;/a&gt; ?[/quote]
&lt;p&gt;Yes, hello_world+mcuboot is a multi image build. You need to look at hello_world/build/mcuboot. If you have enabled mcuboot all the mcuboot-related that is generated will be placed there.&lt;/p&gt;
[quote user=""]-The smp server example writes the image received in the slot 1 of the current image, is it possible to make it modify the slot 1 of other images? If not, what&amp;#39;s the correct approach to my flash structure proposal?[/quote]
&lt;p&gt;Could you take a look at the machine learning&amp;nbsp;sample and the configs I linked to and see if you&amp;#39;re able to get this to work? If not please get back to me and I will to put off some time and try set up a working example using the nRF52833&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Multi image configuration with mcuboot doubt</title><link>https://devzone.nordicsemi.com/thread/344843?ContentTypeID=1</link><pubDate>Wed, 22 Dec 2021 16:48:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0e920e30-92e6-4f04-9da9-db792ad3d4d0</guid><dc:creator>Simon</dc:creator><description>&lt;p&gt;Be aware that the Partition Manager is used to partition the flash if your application includes child images, check out this ticket for more details:&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/82821/after-enabling-mcuboot-in-ncs-external-flash-doesn-t-get-picked-up-by-littlefs/344014#344014"&gt;https://devzone.nordicsemi.com/f/nordic-q-a/82821/after-enabling-mcuboot-in-ncs-external-flash-doesn-t-get-picked-up-by-littlefs/344014#344014&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;It seems like what you&amp;#39;re trying to do is possible. I can see that there are many samples in NCS that enables multi image DFU. For example the machine learning sample:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="https://github.com/nrfconnect/sdk-nrf/blob/f6c8598b0a5009e73e9f89c7eaad8495d733a93e/applications/machine_learning/configuration/nrf5340dk_nrf5340_cpuapp/prj.conf#L160"&gt;Enable CONFIG_UPDATEABLE_IMAGE_NUMBER&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://github.com/nrfconnect/sdk-nrf/blob/v1.8.0/applications/machine_learning/configuration/thingy53_nrf5340_cpuapp/pm_static.yml#L32-L36"&gt;Configure mcuboot_primary_1 partition&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://github.com/nrfconnect/sdk-nrf/blob/v1.8.0/applications/machine_learning/configuration/thingy53_nrf5340_cpuapp/pm_static.yml#L42-L46"&gt;Configure mcuboot_secondary_1 partition&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;By the way, I could only find&amp;nbsp;examples that enables multi image DFU for the nRF5340 (update network core and app core), so I&amp;#39;m not sure if this is supported on other boards. But if you would like to I could give it a shot, and try to set up a simplified sample with&amp;nbsp;multi image DFU support using the nRF52840&amp;nbsp;that supports updates through smp_svr.&lt;/p&gt;
&lt;p&gt;I will get back to you tomorrow and answer the other questions.&lt;/p&gt;
&lt;div style="left:82px;top:36.3333px;"&gt;Best regards,&lt;/div&gt;
&lt;div style="left:82px;top:36.3333px;"&gt;Simon&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>