<?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>BLE FOTA with  double application slot when update</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/114867/ble-fota-with-double-application-slot-when-update</link><description>Hi all, 
 i am using NCS 2.4.0 
 I have a question is there any possible that i can use double slot to update firmware over BLE FOTA? 
 I already look at the website below 
 https://academy.nordicsemi.com/courses/nrf-connect-sdk-intermediate/lessons/lesson</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 25 Sep 2024 08:42:00 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/114867/ble-fota-with-double-application-slot-when-update" /><item><title>RE: BLE FOTA with  double application slot when update</title><link>https://devzone.nordicsemi.com/thread/503680?ContentTypeID=1</link><pubDate>Wed, 25 Sep 2024 08:42:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:77bb675d-82bc-4629-be26-5306efb6ae46</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
[quote user="Wayne_Chang"]Are the partitions&amp;#39; names what I wrote correct?[/quote]
&lt;p&gt;This looks good. I take it DFU works via BLE now?&lt;/p&gt;
[quote user="Wayne_Chang"]can I generate new &lt;strong&gt;app_update.bin, &lt;/strong&gt;and use jlink or something to&amp;nbsp;programming bin file to&amp;nbsp;&lt;span style="text-decoration:underline;"&gt;mcuboot_secondary&lt;/span&gt;, and then swap to&amp;nbsp;&lt;span style="text-decoration:underline;"&gt;mcuboot_primary&lt;/span&gt; ?[/quote]
&lt;p&gt;In principl yes, but it is not enough to just write the firmware image. There is also other metadata that is written together with the image normally via the SMP protocol. So you would have to write this in the &lt;a href="https://docs.nordicsemi.com/bundle/ncs-latest/page/mcuboot/design.html#image_trailer"&gt;image trailer&lt;/a&gt; as well via the debugger before you reset if you want to test like this.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE FOTA with  double application slot when update</title><link>https://devzone.nordicsemi.com/thread/503363?ContentTypeID=1</link><pubDate>Mon, 23 Sep 2024 07:29:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f34e1711-c5f4-4bdb-b88d-1b97a1564d26</guid><dc:creator>Wayne_Chang</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;Einar Thorsrud,&lt;/p&gt;
&lt;p&gt;&lt;span&gt;thanks for your answer&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;the flash map below is reading after BLE FOTA&amp;nbsp;&lt;br /&gt;&lt;img style="max-height:287px;max-width:129px;" height="287" src="https://devzone.nordicsemi.com/resized-image/__size/258x574/__key/communityserver-discussions-components-files/4/pastedimage1727075669869v1.png" width="129" alt=" " /&gt;&lt;br /&gt;Are the partitions&amp;#39; names what I wrote correct?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;if so, can I generate new &lt;strong&gt;app_update.bin, &lt;/strong&gt;and use jlink or something to&amp;nbsp;programming bin file to&amp;nbsp;&lt;span style="text-decoration:underline;"&gt;mcuboot_secondary&lt;/span&gt;, and then swap to&amp;nbsp;&lt;span style="text-decoration:underline;"&gt;mcuboot_primary&lt;/span&gt; ?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;for example:&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;mcuboot_secondary:
  address: 0x85000
  end_address: 0xfe000&lt;/pre&gt;&lt;br /&gt;I&amp;nbsp;programming new bin file to 0x85000 then I want mcuboot update this to app slot&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE FOTA with  double application slot when update</title><link>https://devzone.nordicsemi.com/thread/503256?ContentTypeID=1</link><pubDate>Fri, 20 Sep 2024 12:04:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9d33e12b-eaa8-48cf-947d-7b1d273b1512</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Wiht nRF Connect SDK, bluetooth updates are always done with dual&amp;nbsp;application slots (never single slot). That is because the transprot must happen in the application.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE FOTA with  double application slot when update</title><link>https://devzone.nordicsemi.com/thread/503227?ContentTypeID=1</link><pubDate>Fri, 20 Sep 2024 09:15:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:af3f479b-ac73-4297-a7d1-0a47069e1437</guid><dc:creator>Wayne_Chang</dc:creator><description>&lt;p&gt;Hi swallowirritate,&lt;/p&gt;
&lt;p&gt;thanks for your answer&lt;/p&gt;
&lt;p&gt;I already use&amp;nbsp;&lt;br /&gt;&lt;strong&gt;CONFIG_BOOTLOADER_MCUBOOT=y&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;CONFIG_NCS_SAMPLE_MCUMGR_BT_OTA_DFU=y&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;after I add&amp;nbsp;&lt;strong&gt;CONFIG_UPDATEABLE_IMAGE_NUMBER=2&lt;br /&gt;&lt;br /&gt;&lt;/strong&gt;&lt;span&gt;I encounter a problem when i build the code&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;/home/ncs/v2.4.0/nrf/include/flash_map_pm.h:41:22: error: &amp;#39;PM_mcuboot_primary_1_ID&amp;#39; undeclared (first use in this function); did you mean &amp;#39;PM_mcuboot_primary_ID&amp;#39;?
   41 | #define PM_ID(label) PM_##label##_ID
/home/ncs/v2.4.0/nrf/include/flash_map_pm.h:41:22: error: &amp;#39;PM_mcuboot_secondary_1_ID&amp;#39; undeclared (first use in this function); did you mean &amp;#39;PM_mcuboot_secondary_ID&amp;#39;?
   41 | #define PM_ID(label) PM_##label##_ID&lt;/pre&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;do I need to add something else in my&amp;nbsp;`prj.conf`?&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE FOTA with  double application slot when update</title><link>https://devzone.nordicsemi.com/thread/503207?ContentTypeID=1</link><pubDate>Fri, 20 Sep 2024 07:27:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:56377bd1-6f09-4a99-85de-3ec0d4036566</guid><dc:creator>swallowirritate</dc:creator><description>&lt;p&gt;Yes, you can use double-slot firmware updates over BLE (FOTA) in NCS (nRF Connect SDK) 2.4.0 &lt;br /&gt;To enable double-slot swapping, you need to add the following to your project&amp;#39;s `prj.conf`:&lt;br /&gt;CONFIG_BOOTLOADER_MCUBOOT=y&lt;br /&gt;CONFIG_UPDATEABLE_IMAGE_NUMBER=2&lt;/p&gt;
&lt;p&gt;&lt;span style="background-color:#ffffff;color:#ffffff;"&gt;&lt;a style="background-color:#ffffff;color:#ffffff;" href="https://boxingrandom.com" rel="noopener noreferrer" target="_blank"&gt;boxing random&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>