<?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>How  to  remap  bootloader and  application  flash area in overlay file</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/83007/how-to-remap-bootloader-and-application-flash-area-in-overlay-file</link><description>Board ：52840dk_52840 
 SDK： NCS1.7.1 
 IDE ：Visual Studio Code 
 I remap my bootloader partition in my application .overlay file 
 as 
 
 &amp;amp; boot_partition { 
 reg = &amp;lt; 0x000000000 0x00010000 &amp;gt;; 
 }; 
 
 &amp;amp; slot0_partition { 
 reg = &amp;lt; 0x00010000 0x00063000</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 28 Dec 2021 12:47:52 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/83007/how-to-remap-bootloader-and-application-flash-area-in-overlay-file" /><item><title>RE: How  to  remap  bootloader and  application  flash area in overlay file</title><link>https://devzone.nordicsemi.com/thread/345246?ContentTypeID=1</link><pubDate>Tue, 28 Dec 2021 12:47:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:673ca58a-3865-44fb-8b24-c9eb2825e0e3</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I&amp;#39;m glad you got it running on ncs v1.8.0.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How  to  remap  bootloader and  application  flash area in overlay file</title><link>https://devzone.nordicsemi.com/thread/345200?ContentTypeID=1</link><pubDate>Tue, 28 Dec 2021 08:33:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ac726e5d-1b79-444c-8ae6-21735b231d6c</guid><dc:creator>sixuanlu&amp;amp;sky</dc:creator><description>&lt;p&gt;Hi Hakon&lt;/p&gt;
&lt;p&gt;I tested my example and your example with v1.8.0 , both work good .&lt;/p&gt;
&lt;p&gt;so I think this issue would happen in NCS&amp;nbsp; v1.7.1&lt;/p&gt;
&lt;p&gt;Best Regards&lt;/p&gt;
&lt;p&gt;Sky Lu&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How  to  remap  bootloader and  application  flash area in overlay file</title><link>https://devzone.nordicsemi.com/thread/345098?ContentTypeID=1</link><pubDate>Mon, 27 Dec 2021 11:59:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0f3175ea-afd3-4f36-a16c-5771411dfd4c</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I tested both ncs v1.7 and ncs v1.8 with my example, and I cannot recreate the issue you are seeing. Can you please try to delete the build folder and re-generate the project?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How  to  remap  bootloader and  application  flash area in overlay file</title><link>https://devzone.nordicsemi.com/thread/345094?ContentTypeID=1</link><pubDate>Mon, 27 Dec 2021 11:43:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:00bb71b8-5098-430c-aaaf-4d2fc22aecb3</guid><dc:creator>sixuanlu&amp;amp;sky</dc:creator><description>&lt;p&gt;Hi H&amp;aring;kon&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I still have the same issue using your sample.&lt;/p&gt;
&lt;p&gt;And I am using NCS 1.7.1&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards&lt;/p&gt;
&lt;p&gt;Sky Lu&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How  to  remap  bootloader and  application  flash area in overlay file</title><link>https://devzone.nordicsemi.com/thread/345080?ContentTypeID=1</link><pubDate>Mon, 27 Dec 2021 09:30:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:78f2bb14-a9b7-4334-9396-0a0fc3c419b7</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I&amp;#39;m not able to reproduce this behavior on my end.&lt;/p&gt;
&lt;p&gt;I have a similar partition layout:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;ninja partition_manager_report 
[1/1] cd /opt/ncs/zephyr/samples/2...amples/281606/build/partitions.yml
  flash_primary (0x100000 - 1024kB): 
+--------------------------------------------------+
| 0x0: mcuboot (0x10000 - 64kB)                    |
+---0x10000: mcuboot_primary (0x78000 - 480kB)-----+
| 0x10000: mcuboot_pad (0x200 - 512B)              |
+---0x10200: mcuboot_primary_app (0x77e00 - 479kB)-+
| 0x10200: app (0x77e00 - 479kB)                   |
+--------------------------------------------------+
| 0x88000: mcuboot_secondary (0x78000 - 480kB)     |
+--------------------------------------------------+

  sram_primary (0x40000 - 256kB): 
+--------------------------------------------+
| 0x20000000: sram_primary (0x40000 - 256kB) |
+--------------------------------------------+
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Here&amp;#39;s the sample:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/281606.zip"&gt;devzone.nordicsemi.com/.../281606.zip&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Could you try this and see if the behavior is still equal on your end?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;PS: I see that your zephyr boot banner indicates that you are on a non-tagged version. Could you repeat testing on ncs v1.7.x or ncs v1.8.0?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How  to  remap  bootloader and  application  flash area in overlay file</title><link>https://devzone.nordicsemi.com/thread/344719?ContentTypeID=1</link><pubDate>Wed, 22 Dec 2021 06:46:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8cfdedcb-e8d0-48ef-b7ba-3625d3a0a698</guid><dc:creator>sixuanlu&amp;amp;sky</dc:creator><description>&lt;p&gt;I use these settings in .conf&amp;nbsp; filefor my mcuboot building&lt;/p&gt;
&lt;p&gt;CONFIG_LOG=y&lt;br /&gt;CONFIG_PM_PARTITION_SIZE_MCUBOOT=0x10000&lt;br /&gt;&lt;br /&gt;# The build won&amp;#39;t fit on the partition allocated for it without size&lt;br /&gt;# optimizations.&lt;br /&gt;CONFIG_SIZE_OPTIMIZATIONS=y&lt;br /&gt;&lt;br /&gt;# Serial&lt;br /&gt;CONFIG_SERIAL=y&lt;br /&gt;CONFIG_UART_LINE_CTRL=y&lt;br /&gt;&lt;br /&gt;# MCUBoot serial&lt;br /&gt;CONFIG_MCUBOOT_SERIAL=y&lt;br /&gt;CONFIG_BOOT_SERIAL_CDC_ACM=y&lt;br /&gt;&lt;br /&gt;CONFIG_LOG_BACKEND_UART=y&lt;br /&gt;CONFIG_LOG_BACKEND_RTT=n&lt;/p&gt;
&lt;p&gt;and I got my partitions.yml as following&lt;/p&gt;
&lt;p&gt;app:&lt;br /&gt; address: 0x10200&lt;br /&gt; end_address: 0x88000&lt;br /&gt; region: flash_primary&lt;br /&gt; size: 0x77e00&lt;br /&gt;mcuboot:&lt;br /&gt; address: 0x0&lt;br /&gt; end_address: 0x10000&lt;br /&gt; placement:&lt;br /&gt; before:&lt;br /&gt; - mcuboot_primary&lt;br /&gt; region: flash_primary&lt;br /&gt; size: 0x10000&lt;br /&gt;mcuboot_pad:&lt;br /&gt; address: 0x10000&lt;br /&gt; end_address: 0x10200&lt;br /&gt; placement:&lt;br /&gt; align:&lt;br /&gt; start: 0x1000&lt;br /&gt; before:&lt;br /&gt; - mcuboot_primary_app&lt;br /&gt; region: flash_primary&lt;br /&gt; size: 0x200&lt;br /&gt;mcuboot_primary:&lt;br /&gt; address: 0x10000&lt;br /&gt; end_address: 0x88000&lt;br /&gt; orig_span: &amp;amp;id001&lt;br /&gt; - mcuboot_pad&lt;br /&gt; - app&lt;br /&gt; region: flash_primary&lt;br /&gt; sharers: 0x1&lt;br /&gt; size: 0x78000&lt;br /&gt; span: *id001&lt;br /&gt;mcuboot_primary_app:&lt;br /&gt; address: 0x10200&lt;br /&gt; end_address: 0x88000&lt;br /&gt; orig_span: &amp;amp;id002&lt;br /&gt; - app&lt;br /&gt; region: flash_primary&lt;br /&gt; size: 0x77e00&lt;br /&gt; span: *id002&lt;br /&gt;mcuboot_secondary:&lt;br /&gt; address: 0x88000&lt;br /&gt; end_address: 0x100000&lt;br /&gt; placement:&lt;br /&gt; after:&lt;br /&gt; - mcuboot_primary&lt;br /&gt; align:&lt;br /&gt; start: 0x1000&lt;br /&gt; region: flash_primary&lt;br /&gt; share_size:&lt;br /&gt; - mcuboot_primary&lt;br /&gt; size: 0x78000&lt;br /&gt;sram_primary:&lt;br /&gt; address: 0x20000000&lt;br /&gt; end_address: 0x20040000&lt;br /&gt; region: sram_primary&lt;br /&gt; size: 0x40000&lt;/p&gt;
&lt;p&gt;this is my build result&lt;/p&gt;
&lt;p&gt;[204/204] Linking C executable zephyr\zephyr.elf&lt;br /&gt;Memory region&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Used Size&amp;nbsp; Region Size&amp;nbsp; %age Used&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; FLASH:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 63340 B&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 64 KB&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 96.65%&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SRAM:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 33440 B&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 256 KB&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 12.76%&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; IDT_LIST:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0 GB&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2 KB&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.00%&lt;br /&gt;[149/164] Linking C executable zephyr\zephyr_prebuilt.elf&lt;br /&gt;&lt;br /&gt;[156/164] Linking C executable zephyr\zephyr.elf&lt;br /&gt;Memory region&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Used Size&amp;nbsp; Region Size&amp;nbsp; %age Used&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; FLASH:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 20124 B&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 491008 B&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 4.10%&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SRAM:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 7424 B&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 256 KB&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2.83%&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; IDT_LIST:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0 GB&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2 KB&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.00%&lt;br /&gt;[160/164] Generating ../../zephyr/dfu_application.zip&lt;br /&gt;[162/164] No install step for &amp;#39;mcuboot_subimage&amp;#39;&lt;br /&gt;[163/164] Completed &amp;#39;mcuboot_subimage&amp;#39;&lt;br /&gt;[164/164] Generating zephyr/merged.hex&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;I think I have remap my bootloader flash area successfully&lt;/p&gt;
&lt;p&gt;but when I flash my board with merged.hex and reset my board&lt;/p&gt;
&lt;p&gt;I got these error log :&lt;/p&gt;
&lt;p&gt;[14:33:11.346]收&amp;larr;◆*** Booting Zephyr OS build v2.6.99-ncs1-1-15-g0710acdc35e7&amp;nbsp; ***&lt;br /&gt;I: Starting bootloader&lt;br /&gt;W: Failed reading sectors; BOOT_MAX_IMG_SECTORS=128 - too small?&lt;br /&gt;W: Cannot upgrade: not a compatible amount of sectors&lt;br /&gt;E: Unable to find bootable image&lt;/p&gt;
&lt;p&gt;what&amp;#39;s the reason fail to boot into application ？？&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How  to  remap  bootloader and  application  flash area in overlay file</title><link>https://devzone.nordicsemi.com/thread/344538?ContentTypeID=1</link><pubDate>Tue, 21 Dec 2021 09:58:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d760cca1-fc70-48df-a597-3f61d3182a11</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;You should use the&amp;nbsp;partition manager for this purpose and define a static partition:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/scripts/partition_manager/partition_manager.html#static-configuration"&gt;https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/scripts/partition_manager/partition_manager.html#static-configuration&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Here&amp;#39;s an example on expanding the specific section:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://github.com/nrfconnect/sdk-nrf/blob/v1.8.0/applications/machine_learning/configuration/nrf5340dk_nrf5340_cpuapp/pm_static.yml#L5-L8"&gt;https://github.com/nrfconnect/sdk-nrf/blob/v1.8.0/applications/machine_learning/configuration/nrf5340dk_nrf5340_cpuapp/pm_static.yml#L5-L8&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;PS: a full partition layout is available after you configure you project in &amp;quot;build-folder/partitions.yml&amp;quot; - this file can be copied to pm_static.yml and modified per your needs.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>