<?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>Can the mcuboot flash partitions be changed?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/84698/can-the-mcuboot-flash-partitions-be-changed</link><description>Hi, 
 in the .dts file，partitions is 
 
 Can it be changed to the following? 
 
 This modification does not compile . 
 
 What should be paid attention to when modifying, can you provide a demo?</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 18 Feb 2022 13:23:33 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/84698/can-the-mcuboot-flash-partitions-be-changed" /><item><title>RE: Can the mcuboot flash partitions be changed?</title><link>https://devzone.nordicsemi.com/thread/353862?ContentTypeID=1</link><pubDate>Fri, 18 Feb 2022 13:23:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e0fb56e2-b917-4810-a2d2-843140a400b6</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Happy to know you solved it.&amp;nbsp;Have a nice weekend. &lt;span class="emoticon" data-url="https://devzone.nordicsemi.com/cfs-file/__key/system/emoji/1f642.svg" title="Slight smile"&gt;&amp;#x1f642;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Amanda&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Can the mcuboot flash partitions be changed?</title><link>https://devzone.nordicsemi.com/thread/353519?ContentTypeID=1</link><pubDate>Thu, 17 Feb 2022 07:49:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:27bda725-0223-46a7-9027-92821d7db927</guid><dc:creator>Jim</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;I have solved the problem.&amp;nbsp;Add the following configuration：&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;CONFIG_BT_L2CAP_TX_MTU=252
CONFIG_BT_BUF_ACL_RX_SIZE=256
CONFIG_SYSTEM_WORKQUEUE_STACK_SIZE=4096&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Can the mcuboot flash partitions be changed?</title><link>https://devzone.nordicsemi.com/thread/353517?ContentTypeID=1</link><pubDate>Thu, 17 Feb 2022 07:47:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a98d812b-f9f5-45c0-adbe-88ca978f746c</guid><dc:creator>Jim</dc:creator><description>&lt;p&gt;Hi，&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;nbsp;log from the app：&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1645060523531v1.jpeg" /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Device log：&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1645060635725v2.png" /&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Can the mcuboot flash partitions be changed?</title><link>https://devzone.nordicsemi.com/thread/353489?ContentTypeID=1</link><pubDate>Thu, 17 Feb 2022 01:17:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fbac5f03-c8c3-47d9-b341-db42ea324dba</guid><dc:creator>Jim</dc:creator><description>&lt;p&gt;Hi，&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;nbsp;log from the app：&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1645060523531v1.jpeg" alt=" " /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Device log：&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1645060635725v2.png" alt=" " /&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Can the mcuboot flash partitions be changed?</title><link>https://devzone.nordicsemi.com/thread/353365?ContentTypeID=1</link><pubDate>Wed, 16 Feb 2022 13:24:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:af636c71-7384-4620-8d1e-2a3294a751e6</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Are your using nRF Connect Desktop/BLE or mobile app to update? For&amp;nbsp;&lt;span&gt;nRF Connect mobile app, try to&lt;/span&gt;&amp;nbsp;refresh the service.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/244655_5F00_refresh-services.png" /&gt;&lt;/p&gt;
[quote user="international"] but the upgrade could not be successful.[/quote]
&lt;p&gt;Please elaborate in more detail. Do you have any error log from the app?&lt;/p&gt;
&lt;p&gt;-Amanda&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Can the mcuboot flash partitions be changed?</title><link>https://devzone.nordicsemi.com/thread/353352?ContentTypeID=1</link><pubDate>Wed, 16 Feb 2022 13:01:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bd9ab522-d280-4591-b41a-180d476e3e04</guid><dc:creator>Jim</dc:creator><description>&lt;p&gt;hi,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;According to the examples provided, it is indeed possible to upgrade from nRF5 SDK to NCS. After upgrading to NCS, in the example of NCS_peripheral_uart_DFU, only CONFIG_BT_DEVICE_NAME was modified, and app_update.bin was obtained to upgrade, but the upgrade could not be successful. Which part went wrong?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Can the mcuboot flash partitions be changed?</title><link>https://devzone.nordicsemi.com/thread/352994?ContentTypeID=1</link><pubDate>Tue, 15 Feb 2022 02:21:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:53faee6d-e55c-459c-a406-bd4204856d5e</guid><dc:creator>Jim</dc:creator><description>&lt;p&gt;&amp;nbsp; &amp;nbsp;Thank you very much for your reply.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Can the mcuboot flash partitions be changed?</title><link>https://devzone.nordicsemi.com/thread/352904?ContentTypeID=1</link><pubDate>Mon, 14 Feb 2022 13:33:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4890207e-9939-49f8-82e1-40bd570ee98a</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
[quote user="international"]I want to use mcuboot on nrf5 sdk(Softdevice + APP+ mcuboot) so that I can upgrade to NCS(APP + mcuboot).&amp;nbsp;Since the starting address of the softdevice starts from 0, in order to avoid conflicts, modify the location of mcuboot.[/quote]
&lt;p&gt;Are you looking for updating from nRF5 bootloader to NCS mcuboot via BLE DFU?&lt;/p&gt;
&lt;p&gt;The NCS MCUboot is placed at address 0x0 by default, the same place as where the MBR used to reside. It&amp;#39;s however possible to relocate it with the partition manager. There is an experiment a little while ago to see if we could do DFU from nRF5 SDK 17 to NCS v.1.7.1. Attached below are the projects.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Memory layout (defined by pm_static.yml)&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;$ west build -b nrf52840dk_nrf52840 // West command to build peripheral_uart sample (MCUboot is automatically built as a child image, see&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/1.4.0/nrf/ug_multi_image.html"&gt;Multi-image builds&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;$ west build -t rom_report // Ninja build target to display flash layout as shown below&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/282404.PNG" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;FOTA/DFU from nRF5 SDK to NCS test:&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/dfu_5F00_nRF5_5F00_NCS1.7.1.zip"&gt;dfu_nRF5_NCS1.7.1.zip&lt;/a&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Some quick notes about the test:&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;1. The test updates MCUboot and the zephyr application image in one go by calling it a Softdevice+bootloader (&lt;span&gt;&lt;a title="SoftDevice and bootloader" href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v17.0.2/lib_bootloader_dfu_banks.html?cp=7_1_3_5_1_2_0_0#lib_bootloader_dfu_dual_banks_sd"&gt;SoftDevice and bootloader&lt;/a&gt;&lt;/span&gt;) update to overwrite the softdevice with the zephyr app. However, it did require some minor modifications to the existing bootloader to make it accept zephyr application as a Softdevice image. The following is the medications (the modified nRF5 SDK provided in the attachment):&lt;/p&gt;
&lt;p&gt;&lt;span&gt;nrf_bootloader_fw_activation.c,&amp;nbsp;in function&amp;nbsp;sd_activate():&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;if (SD_MAGIC_NUMBER_GET(src_addr) != SD_MAGIC_NUMBER)
{
    NRF_LOG_ERROR(&amp;quot;Source address does not contain a valid SoftDevice.&amp;quot;)
    //return NRF_ERROR_INTERNAL;     &amp;lt;&amp;lt; commented out this line
}&lt;/pre&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;nrf_dfu_validation.c, in function softdevice_info_ok():&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;static bool softdevice_info_ok(uint32_t sd_start_addr, uint32_t sd_size)
{
    bool result = true;

    if (SD_MAGIC_NUMBER_GET(sd_start_addr) != SD_MAGIC_NUMBER)
    {
        NRF_LOG_ERROR(&amp;quot;The SoftDevice does not contain the magic number identifying it as a SoftDevice.&amp;quot;);
        //result = false; //hack to accept zephyr images
    }&lt;/pre&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;2. The flash protection mechanism in MCUboot assumes that the mcuboot_primary slot is always placed after the mcuboot partition. It disabled flash protection to get around this limitation by&amp;nbsp;the&amp;nbsp;mcuboot.conf under child_image folder.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;CONFIG_FPROTECT=n&lt;/pre&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;3. It needs to update the modified nRF5 bootloader first to accept the&amp;nbsp;&lt;span&gt;MCUboot and the zephyr application image, then update to the NCS application with MCUboot.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Please let me know if you need any detail or further support.&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Amanda&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Can the mcuboot flash partitions be changed?</title><link>https://devzone.nordicsemi.com/thread/352803?ContentTypeID=1</link><pubDate>Mon, 14 Feb 2022 07:36:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:529d7993-d1fe-4ede-9469-946600e7e1c0</guid><dc:creator>Jim</dc:creator><description>&lt;p&gt;I&amp;nbsp;tried&amp;nbsp;to&amp;nbsp;change&amp;nbsp;the&amp;nbsp;Mcuboot&amp;nbsp;of&amp;nbsp;bootloader\&amp;nbsp;Mcuboot&amp;nbsp;\boot\zephyr\pm.yml&amp;nbsp;to&amp;nbsp;after:&amp;nbsp;[app].&amp;nbsp;After&amp;nbsp;the&amp;nbsp;modification,&amp;nbsp;the&amp;nbsp;placement&amp;nbsp;of&amp;nbsp;the&amp;nbsp;Mcuboot&amp;nbsp;did&amp;nbsp;change,&amp;nbsp;but&amp;nbsp;the&amp;nbsp;program&amp;nbsp;did&amp;nbsp;not&amp;nbsp;run.&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1644824482290v1.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Can the mcuboot flash partitions be changed?</title><link>https://devzone.nordicsemi.com/thread/352795?ContentTypeID=1</link><pubDate>Mon, 14 Feb 2022 06:44:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1ea72f8d-3af4-440f-8192-3abaaa0d8ded</guid><dc:creator>Jim</dc:creator><description>&lt;p&gt;hi，&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;I want to use mcuboot on nrf5 sdk(Softdevice + APP+ mcuboot) so that I can upgrade to NCS(APP + mcuboot).&amp;nbsp;Since the starting address of the softdevice starts from 0, in order to avoid conflicts, modify the location of mcuboot.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Can the mcuboot flash partitions be changed?</title><link>https://devzone.nordicsemi.com/thread/352759?ContentTypeID=1</link><pubDate>Sat, 12 Feb 2022 09:54:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:04670611-e3e0-4093-82e7-f104dcabd7e7</guid><dc:creator>sipan112</dc:creator><description>&lt;p&gt;I think it can be, yes&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>