<?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>FOTA with Nordic Connect SDK (ncs) not working</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/71915/fota-with-nordic-connect-sdk-ncs-not-working</link><description>I&amp;#39;m blocked trying to get an Nrf52 application developed under v1.3.0 SDK work with FOTA. 
 My application is working fine. FYI, its on custom hardware derived from nrf52832_mdk board definition, and the lbs sample. 
 
 Now to add FOTA capability. No</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 17 Mar 2021 18:19:42 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/71915/fota-with-nordic-connect-sdk-ncs-not-working" /><item><title>RE: FOTA with Nordic Connect SDK (ncs) not working</title><link>https://devzone.nordicsemi.com/thread/300513?ContentTypeID=1</link><pubDate>Wed, 17 Mar 2021 18:19:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4565fcbb-084e-45f8-9633-5e8c9c64b492</guid><dc:creator>Sunil vignesh</dc:creator><description>&lt;p&gt;Hi Mike,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp; I am having issue on nrf52832 NCS FOTA . &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/72803/ncs-ota-dfu-failed-in-nrf52832/300422#300422"&gt;https://devzone.nordicsemi.com/f/nordic-q-a/72803/ncs-ota-dfu-failed-in-nrf52832/300422#300422&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I have the problem&lt;/p&gt;
&lt;p&gt;during OTA from android mobile process gets rejected. no changes happened&amp;nbsp;&lt;/p&gt;
&lt;p&gt;If possible can you share your working example code &amp;quot;LBS code&amp;quot; . so that it will be helpful.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: FOTA with Nordic Connect SDK (ncs) not working</title><link>https://devzone.nordicsemi.com/thread/297104?ContentTypeID=1</link><pubDate>Tue, 02 Mar 2021 09:59:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b6c445d5-afd5-4f37-ae33-a09aac34f18d</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi Mike,&lt;/p&gt;
&lt;p&gt;I am glad to hear it works. Regarding signing the smp_svr sample documentation does not take into account the work done by the partition manager script that is part of NCS which handles signing for you (using default key when nothing is specified), so it is not entirely accurate in the NCS context.&lt;/p&gt;
&lt;p&gt;Einar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: FOTA with Nordic Connect SDK (ncs) not working</title><link>https://devzone.nordicsemi.com/thread/297020?ContentTypeID=1</link><pubDate>Mon, 01 Mar 2021 21:32:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3d31f450-fb0b-4f96-ab06-0fb572a5abd8</guid><dc:creator>Mike Hibbett</dc:creator><description>&lt;p&gt;That worked, with only a small modification!&lt;/p&gt;
&lt;p&gt;My modification was changing the board&amp;#39;s Kconfig file, setting DCDC to &amp;quot;n&amp;quot;, as my custom board does not have the external DCDC converter circuit, as I dont need it.&lt;/p&gt;
&lt;p&gt;My issue was that the smp_svr build instructions, on the link below, include a step (signing the image) that simply fails. So I never proceeded. It did not state that the failing step was not required.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Great, thanks for that, I can now work from your build instructions to integrate FOTA into my existing application.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Mike&lt;/p&gt;
&lt;p&gt;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/zephyr/samples/subsys/mgmt/mcumgr/smp_svr/README.html"&gt;developer.nordicsemi.com/.../README.html&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: FOTA with Nordic Connect SDK (ncs) not working</title><link>https://devzone.nordicsemi.com/thread/296850?ContentTypeID=1</link><pubDate>Mon, 01 Mar 2021 13:15:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fa78db33-25fe-4e10-ab22-c92e0c38b755</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi Mike,&lt;/p&gt;
&lt;p&gt;Thank you. This is puzzling, to be honest. Would it be possible to provide your example that reproduce this on a DK, with instructions on how to reproduce? That way I can debug on my side as well. You can create a private ticket and refer to this one if you do not want to share the code in public.&lt;/p&gt;
[quote user="Mike Hibbett"]Can you provide me with an existing example of creating a FOTA build, based on the nrf52832? I presume this has been tested. I could then use that as the basis for working out my own settings.[/quote]
&lt;p&gt;Regarding the question about an existing FOTA example that is present in the nRF Connect SDK. I understand you are using NCS 1.3.0, and I just verified that the example works there. You can use it like this:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Navigate to &lt;code&gt;zephyr\samples\subsys\mgmt\mcumgr\smp_svr\&lt;/code&gt; (using NCS 1.3.0 in this case, but method is same for newer versions)&lt;/li&gt;
&lt;li&gt;Build with &lt;code&gt;west build -b nrf52dk_nrf52832 . -- -DOVERLAY_CONFIG=overlay-bt.conf&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;Program build/zephyr/merged.hex&lt;/code&gt; from the first build. This way you have MCUboot and the application which has smp_svr and bluetooth transport on it.&lt;/li&gt;
&lt;li&gt;(Open a UART PuTTY terminal to the nRF so that you can observe the log)&lt;/li&gt;
&lt;li&gt;&lt;code&gt;&lt;/code&gt;Build the example again to get a different app binary (build time stamp is part of the app due to logging it)&lt;/li&gt;
&lt;li&gt;Copy build/zephyr/app_update.bin to your phone&amp;nbsp;(call it something like first_app_update.bin to be able to distinguish it)&lt;/li&gt;
&lt;li&gt;Program the .bin from&amp;nbsp; via DFU (I use nRF Connect for iOS but nRF Connect for Android should do the same)&lt;/li&gt;
&lt;li&gt;Observe from logs that it works&lt;/li&gt;
&lt;li&gt;Go back to step 5 and to this again, observe that second DFU upgrade also works.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;Einar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: FOTA with Nordic Connect SDK (ncs) not working</title><link>https://devzone.nordicsemi.com/thread/296690?ContentTypeID=1</link><pubDate>Sat, 27 Feb 2021 18:48:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:93582e0d-e619-48d7-a534-5aaaceb586ee</guid><dc:creator>Mike Hibbett</dc:creator><description>&lt;p&gt;&lt;img height="302" src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1614451637916v1.png" width="445" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: FOTA with Nordic Connect SDK (ncs) not working</title><link>https://devzone.nordicsemi.com/thread/296518?ContentTypeID=1</link><pubDate>Fri, 26 Feb 2021 11:59:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c8f1a8db-1f01-429c-adef-e962619dacc4</guid><dc:creator>Mike Hibbett</dc:creator><description>&lt;p&gt;I will recreate that set-up and provide the information.&lt;/p&gt;
&lt;p&gt;Can you provide me with an existing example of creating a FOTA build, based on the nrf52832? I presume this has been tested. I could then use that as the basis for working out my own settings.&lt;/p&gt;
&lt;p&gt;There must be a description somewhere of &amp;quot;here are the config setting / dts memory settings to build FOTA images&amp;quot;. I have probably just set some setting incorrectly.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Mike&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: FOTA with Nordic Connect SDK (ncs) not working</title><link>https://devzone.nordicsemi.com/thread/296511?ContentTypeID=1</link><pubDate>Fri, 26 Feb 2021 11:43:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:73fdb9a3-e7fd-4723-9b8e-d8d2887cd23a</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi Mike,&lt;/p&gt;
&lt;p&gt;That is very interesting, though I am not able to say why. To know more from this, can you&amp;nbsp;select frame 3, then check &amp;quot;esf&amp;quot; variable to get R0-R3 + SP and LR content?&lt;/p&gt;
&lt;p&gt;Einar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: FOTA with Nordic Connect SDK (ncs) not working</title><link>https://devzone.nordicsemi.com/thread/296338?ContentTypeID=1</link><pubDate>Thu, 25 Feb 2021 15:14:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b9177723-1a12-4cb7-a2df-3753adc2a544</guid><dc:creator>Mike Hibbett</dc:creator><description>&lt;p&gt;Some additional info, if it helps. I enabled more debug output in mcuboot. When I FOTA an image over, the device reboots, displaying this output, and no more.&lt;/p&gt;
&lt;p&gt;[00:00:00.274,536] &amp;lt;inf&amp;gt; mcuboot: Starting bootloader&lt;br /&gt;[00:00:00.280,548] &amp;lt;inf&amp;gt; mcuboot: Swap type: perm&lt;br /&gt;[00:00:00.550,292] &amp;lt;inf&amp;gt; mcuboot: Image upgrade secondary slot -&amp;gt; primary slot&lt;br /&gt;[00:00:00.557,983] &amp;lt;inf&amp;gt; mcuboot: Erasing the primary slot&lt;br /&gt;[00:00:00.658,386] &amp;lt;inf&amp;gt; mcuboot: Copying the secondary slot to the primary slot: 0x2cec4 bytes&lt;br /&gt;[00:00:03.891,265] &amp;lt;dbg&amp;gt; mcuboot.boot_write_magic: writing magic; fa_id=2 off=0x34ff0 (0x40ff0)&lt;br /&gt;[00:00:03.900,726] &amp;lt;dbg&amp;gt; mcuboot.boot_copy_image: erasing secondary header&lt;br /&gt;[00:00:03.910,095] &amp;lt;dbg&amp;gt; mcuboot.boot_copy_image: erasing secondary trailer&lt;br /&gt;[00:00:04.183,990] &amp;lt;inf&amp;gt; mcuboot: Bootloader chainload address offset: 0xc000&lt;br /&gt;[00:00:04.191,589] &amp;lt;inf&amp;gt; mcuboot: Jumping to the first image slot&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Attaching the debugger, I am in a hard fault condition. Here&amp;#39;s the call stack:&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/3247.Untitled9.png" /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: FOTA with Nordic Connect SDK (ncs) not working</title><link>https://devzone.nordicsemi.com/thread/296086?ContentTypeID=1</link><pubDate>Wed, 24 Feb 2021 16:12:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:83509d11-451c-4a15-b2c5-ba3d6e855227</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi Mike,&lt;/p&gt;
&lt;p&gt;I am not able to explain this at this point. I need to look more into it before I can say something meaningful, but I hope to get back to you tomorrow.&lt;/p&gt;
&lt;p&gt;Einar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: FOTA with Nordic Connect SDK (ncs) not working</title><link>https://devzone.nordicsemi.com/thread/295929?ContentTypeID=1</link><pubDate>Tue, 23 Feb 2021 21:52:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ac52f4ad-c566-446a-8ee3-a2abfae210f9</guid><dc:creator>Mike Hibbett</dc:creator><description>&lt;p&gt;So a small amount of progress. Let me refresh where I am.&lt;/p&gt;
&lt;p&gt;SDK v1.4.2. peripheral LBS application. Modified to operate with mcuboot &amp;amp; fota, by the following changes&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;main() function has these calls added:&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp;printk(&amp;quot;Advertising successfully started\n&amp;quot;);&lt;br /&gt;&amp;nbsp; &amp;nbsp;// For FOTA&lt;br /&gt;&amp;nbsp; &amp;nbsp;os_mgmt_register_group();&lt;br /&gt;&amp;nbsp; &amp;nbsp;img_mgmt_register_group();&lt;br /&gt;&amp;nbsp; &amp;nbsp;smp_bt_register();&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;prj.conf is like this:&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;CONFIG_NCS_SAMPLES_DEFAULTS=n&lt;br /&gt;CONFIG_BT=y&lt;br /&gt;CONFIG_BT_PERIPHERAL=y&lt;br /&gt;CONFIG_BT_DEVICE_NAME=&amp;quot;Nordic_Blinky&amp;quot;&lt;br /&gt;CONFIG_BT_LBS=y&lt;br /&gt;CONFIG_BT_LBS_POLL_BUTTON=y&lt;br /&gt;CONFIG_DK_LIBRARY=y&lt;br /&gt;CONFIG_BOOTLOADER_MCUBOOT=y&lt;br /&gt;CONFIG_MCUMGR=y&lt;br /&gt;CONFIG_MCUMGR_CMD_OS_MGMT=y&lt;br /&gt;CONFIG_MCUMGR_CMD_IMG_MGMT=y&lt;br /&gt;CONFIG_MCUMGR_SMP_BT=y&lt;br /&gt;CONFIG_IMG_ERASE_PROGRESSIVELY=y&lt;br /&gt;CONFIG_BT_L2CAP_TX_MTU=252&lt;br /&gt;CONFIG_BT_L2CAP_RX_MTU=252&lt;br /&gt;CONFIG_BT_RX_BUF_LEN=260&lt;br /&gt;CONFIG_BT_CTLR_TX_BUFFER_SIZE=251&lt;br /&gt;CONFIG_BT_CTLR_DATA_LENGTH_MAX=251&lt;br /&gt;CONFIG_MCUMGR_SMP_BT_AUTHEN=n&lt;br /&gt;CONFIG_DEBUG_OPTIMIZATIONS=y&lt;br /&gt;CONFIG_MCUMGR_SMP_SHELL=y&lt;br /&gt;CONFIG_FILE_SYSTEM=y&lt;br /&gt;CONFIG_FILE_SYSTEM_LITTLEFS=n&lt;br /&gt;CONFIG_MCUMGR_CMD_FS_MGMT=y&lt;br /&gt;CONFIG_STATS_NAMES=n&lt;br /&gt;CONFIG_LOG=n&lt;br /&gt;CONFIG_FLASH=y&lt;br /&gt;CONFIG_SYSTEM_WORKQUEUE_STACK_SIZE=2048&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;board dts file has this flash setup:&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;partitions {&lt;br /&gt; compatible = &amp;quot;fixed-partitions&amp;quot;;&lt;br /&gt; #address-cells = &amp;lt;1&amp;gt;;&lt;br /&gt; #size-cells = &amp;lt;1&amp;gt;;&lt;/p&gt;
&lt;p&gt;boot_partition: partition@0 {&lt;br /&gt; label = &amp;quot;mcuboot&amp;quot;;&lt;br /&gt; reg = &amp;lt;0x00000000 0xc000&amp;gt;;&lt;br /&gt; };&lt;br /&gt; slot0_partition: partition@c000 {&lt;br /&gt; label = &amp;quot;image-0&amp;quot;;&lt;br /&gt; reg = &amp;lt;0x0000C000 &lt;strong&gt;0x34000&lt;/strong&gt;&amp;gt;;&lt;br /&gt; };&lt;br /&gt; slot1_partition: partition@3e000 {&lt;br /&gt; label = &amp;quot;image-1&amp;quot;;&lt;br /&gt; reg = &amp;lt;&lt;strong&gt;0x00040000&lt;/strong&gt; &lt;strong&gt;0x34000&lt;/strong&gt;&amp;gt;;&lt;br /&gt; };&lt;br /&gt;&lt;strong&gt;/*&lt;/strong&gt; scratch_partition: partition@70000 {&lt;br /&gt; label = &amp;quot;image-scratch&amp;quot;;&lt;br /&gt; reg = &amp;lt;0x00074000 0xa000&amp;gt;;&lt;br /&gt; };&lt;br /&gt;&lt;strong&gt;*/&lt;/strong&gt; storage_partition: partition@7a000 {&lt;br /&gt; label = &amp;quot;storage&amp;quot;;&lt;br /&gt; reg = &amp;lt;0x0007a000 0x00006000&amp;gt;;&lt;br /&gt; };&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Note the change I made to the slots, to allow the application to fit.&lt;/p&gt;
&lt;p&gt;Built the code, it&amp;#39;s this size:&lt;/p&gt;
&lt;p&gt;Programming 37.2 KB of addresses 00000000 &amp;mdash; 000094eb&lt;br /&gt;Programming 207.4 KB of addresses 0000c000 &amp;mdash; 0003fd9b&lt;/p&gt;
&lt;p&gt;so will fit in the slots.&lt;/p&gt;
&lt;p&gt;Erased the chip and downloaded the image. serial debug on mcu shows this:&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;*** Booting Zephyr OS build v2.4.0-ncs2 ***&lt;br /&gt;[00:00:00.400,878] &amp;lt;inf&amp;gt; mcuboot: Starting bootloader&lt;br /&gt;[00:00:00.406,921] &amp;lt;inf&amp;gt; mcuboot: Primary image: magic=unset, swap_type=0x1, copy_done=0x3, image_ok=0x3&lt;br /&gt;[00:00:00.416,870] &amp;lt;inf&amp;gt; mcuboot: Boot source: none&lt;br /&gt;[00:00:00.422,302] &amp;lt;inf&amp;gt; mcuboot: Swap type: none&lt;br /&gt;[00:00:00.724,212] &amp;lt;inf&amp;gt; mcuboot: Bootloader chainload address offset: 0xc000&lt;br /&gt;[00:00:00.731,811] &amp;lt;inf&amp;gt; mcuboot: Jumping to the first image slot&lt;br /&gt;*** Booting Zephyr OS build v2.4.0-ncs2 ***&lt;br /&gt;Starting Bluetooth Peripheral LBS example&lt;br /&gt;Application build time: Feb 23 2021 21:16:22&lt;br /&gt;Bluetooth initialized&lt;br /&gt;Advertising successfully started&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Rebuilt the code to generate a different binary (I have time &amp;amp; date coded in a printf)&lt;/p&gt;
&lt;p&gt;Started a download via nrf connect for mobile using CONFIRM ONLY. Download proceeds, at a slow rate, 1.5kB/s&lt;/p&gt;
&lt;p&gt;At the end,&amp;nbsp;&lt;span&gt;nrf connect for mobile says &amp;quot;validating&amp;quot;, and the mcu reboots, showing this:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;*** Booting Zephyr OS build v2.4.0-ncs2 ***&lt;br /&gt;[00:00:00.274,505] &amp;lt;inf&amp;gt; mcuboot: Starting bootloader&lt;br /&gt;[00:00:00.280,517] &amp;lt;inf&amp;gt; mcuboot: Primary image: magic=unset, swap_type=0x1, copy_done=0x3, image_ok=0x3&lt;br /&gt;[00:00:00.290,466] &amp;lt;inf&amp;gt; mcuboot: Boot source: none&lt;br /&gt;[00:00:00.295,898] &amp;lt;inf&amp;gt; mcuboot: Swap type: perm&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;... a few seconds pass, then this is printed ...&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;br /&gt;[00:00:12.354,919] &amp;lt;inf&amp;gt; mcuboot: Bootloader chainload address offset: 0xc000&lt;br /&gt;[00:00:12.362,518] &amp;lt;inf&amp;gt; mcuboot: Jumping to the first image slot&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;The android app disconnects with no messages.&lt;/p&gt;
&lt;p&gt;nrf logger dump of these final stages of dfu are shown below.&lt;/p&gt;
&lt;p&gt;So the image upload bricks the device; rebooting the device leaves the boot sequence as this:&lt;/p&gt;
&lt;p&gt;*** Booting Zephyr OS build v2.4.0-ncs2 ***&lt;br /&gt;[00:00:00.274,475] &amp;lt;inf&amp;gt; mcuboot: Starting bootloader&lt;br /&gt;[00:00:00.280,487] &amp;lt;inf&amp;gt; mcuboot: Primary image: magic=good, swap_type=0x3, copy_done=0x1, image_ok=0x1&lt;br /&gt;[00:00:00.290,344] &amp;lt;inf&amp;gt; mcuboot: Boot source: none&lt;br /&gt;[00:00:00.295,776] &amp;lt;inf&amp;gt; mcuboot: Swap type: none&lt;br /&gt;[00:00:00.566,192] &amp;lt;inf&amp;gt; mcuboot: Bootloader chainload address offset: 0xc000&lt;br /&gt;[00:00:00.573,822] &amp;lt;inf&amp;gt; mcuboot: Jumping to the first image slot&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Completely stuck at this point and out of ideas.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I hope these details reveal what is going wrong.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Mike.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/1040x480/__key/communityserver-discussions-components-files/4/Screenshot_5F00_20210223_2D00_213152_5F00_nRF-Logger.jpg" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/Screenshot_5F00_20210223_2D00_213040_5F00_nRF-Logger.jpg" /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: FOTA with Nordic Connect SDK (ncs) not working</title><link>https://devzone.nordicsemi.com/thread/295917?ContentTypeID=1</link><pubDate>Tue, 23 Feb 2021 17:59:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cc0f1bdf-9c59-4684-b954-0dc411fc9490</guid><dc:creator>Mike Hibbett</dc:creator><description>&lt;p&gt;Ah, so adding that debug config caused this to appear, interesting bit in bold&lt;/p&gt;
&lt;p&gt;*** Booting Zephyr OS build v2.4.0-ncs2 ***&lt;br /&gt;[00:00:00.274,414] &amp;lt;inf&amp;gt; mcuboot: Starting bootloader&lt;br /&gt;[00:00:00.280,395] &amp;lt;inf&amp;gt; mcuboot: Primary image: magic=unset, swap_type=0x1, copy_done=0x3, image_ok=0x3&lt;br /&gt;[00:00:00.290,313] &amp;lt;inf&amp;gt; mcuboot: Boot source: none&lt;br /&gt;[00:00:00.295,776] &amp;lt;inf&amp;gt; mcuboot: Swap type: test&lt;br /&gt;[00:00:00.565,460] &amp;lt;wrn&amp;gt; mcuboot: N&lt;strong&gt;ot enough free space to run swap upgrade&lt;/strong&gt;&lt;br /&gt;[00:00:00.883,209] &amp;lt;inf&amp;gt; mcuboot: Bootloader chainload address offset: 0xc000&lt;br /&gt;[00:00:00.890,808] &amp;lt;inf&amp;gt; mcuboot: Jumping to the first image slot&lt;br /&gt;*** Booting Zephyr OS build v2.4.0-ncs2 ***&lt;br /&gt;Starting Bluetooth Peripheral LBS example&lt;/p&gt;
&lt;p&gt;I am building this on NRF52832 - thats only 512KB flash compared to NRF52840 1024KB&lt;/p&gt;
&lt;p&gt;Is there an alternative FOTA process without swap method, that can cope with the smaller size? Ive done FOTA on Nordic chips with less memory than 512KB&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Cheers,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Mike&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: FOTA with Nordic Connect SDK (ncs) not working</title><link>https://devzone.nordicsemi.com/thread/295872?ContentTypeID=1</link><pubDate>Tue, 23 Feb 2021 14:52:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3d4eaade-b199-4356-84a3-8f49ffd69b6c</guid><dc:creator>Mike Hibbett</dc:creator><description>&lt;p&gt;Hi Einar, the device is inoperative after&lt;/p&gt;
&lt;p&gt;&lt;span&gt;[00:00:11.939,270] &amp;lt;inf&amp;gt; mcuboot: Jumping to the first image slot&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;and no further information is displayed.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I will rebuild &amp;amp; reflash with the optimisations enabled, and let you know.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Thanks!&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Mike&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: FOTA with Nordic Connect SDK (ncs) not working</title><link>https://devzone.nordicsemi.com/thread/295865?ContentTypeID=1</link><pubDate>Tue, 23 Feb 2021 14:29:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:50e70302-25dc-4ccb-8711-f275daf493b8</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi Mike,&lt;/p&gt;
&lt;p&gt;I do not see that you lack any configurations. You can compare with the &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/zephyr/samples/subsys/mgmt/mcumgr/smp_svr/README.html?highlight=smp_svr"&gt;smp_svr sample&lt;/a&gt;, but this looks good.&lt;/p&gt;
&lt;p&gt;What happens after getting &amp;quot;mcuboot: Jumping to the first image slot&amp;quot; in the bootloader log? What state is the nRF in? Do you get more usefull debug information if building with&amp;nbsp;CONFIG_DEBUG_OPTIMIZATIONS=y?&lt;/p&gt;
&lt;p&gt;Einar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: FOTA with Nordic Connect SDK (ncs) not working</title><link>https://devzone.nordicsemi.com/thread/295805?ContentTypeID=1</link><pubDate>Tue, 23 Feb 2021 11:33:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bb9b9c0d-9428-4a56-9f19-145bbcd66e1f</guid><dc:creator>Mike Hibbett</dc:creator><description>&lt;p&gt;By adding the following lines, which I found someone using through a random google search&lt;/p&gt;
&lt;p&gt;CONFIG_BT_RX_BUF_LEN=258&lt;br /&gt;CONFIG_BT_L2CAP_RX_MTU=247&lt;br /&gt;CONFIG_BT_L2CAP_TX_MTU=247&lt;br /&gt;CONFIG_BT_CTLR_TX_BUFFER_SIZE=251&lt;br /&gt;CONFIG_BT_CTLR_DATA_LENGTH_MAX=251&lt;br /&gt;CONFIG_MCUMGR_SMP_BT_AUTHEN=n&lt;/p&gt;
&lt;p&gt;FOTA now proceeds as expected, although slowly, 1.3KB/s. At the end, the application booted.&lt;/p&gt;
&lt;p&gt;A second rebuild of the app failed to download, and the device now no longer gets past the bootloader.&lt;/p&gt;
&lt;p&gt;*** Booting Zephyr OS build v2.4.0-ncs2 ***&lt;br /&gt;[00:00:00.274,566] &amp;lt;inf&amp;gt; mcuboot: Starting bootloader&lt;br /&gt;[00:00:00.280,578] &amp;lt;inf&amp;gt; mcuboot: Primary image: magic=good, swap_type=0x4, copy_done=0x1, image_ok=0x1&lt;br /&gt;[00:00:00.290,435] &amp;lt;inf&amp;gt; mcuboot: Boot source: none&lt;br /&gt;[00:00:00.295,867] &amp;lt;inf&amp;gt; mcuboot: Swap type: test&lt;br /&gt;[00:00:11.931,640] &amp;lt;inf&amp;gt; mcuboot: Bootloader chainload address offset: 0xc000&lt;br /&gt;[00:00:11.939,270] &amp;lt;inf&amp;gt; mcuboot: Jumping to the first image slot&lt;/p&gt;
&lt;p&gt;So please point us to the correct technique for enabling FOTA.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Mike&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: FOTA with Nordic Connect SDK (ncs) not working</title><link>https://devzone.nordicsemi.com/thread/295787?ContentTypeID=1</link><pubDate>Tue, 23 Feb 2021 10:21:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f518f269-0d1d-487e-9b6e-3bbfea84b185</guid><dc:creator>Mike Hibbett</dc:creator><description>&lt;p&gt;I have resolved the build issues (header files moved in the SDK); the behaviour is the same. FYI, the changes I made are as follows:&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Added to prj.conf:&lt;/p&gt;
&lt;p&gt;# Added for FOTA&lt;br /&gt;CONFIG_BOOTLOADER_MCUBOOT=y&lt;br /&gt;CONFIG_MCUMGR=y&lt;br /&gt;CONFIG_MCUMGR_CMD_OS_MGMT=y&lt;br /&gt;CONFIG_MCUMGR_CMD_IMG_MGMT=y&lt;br /&gt;CONFIG_MCUMGR_SMP_BT=y&lt;br /&gt;CONFIG_IMG_ERASE_PROGRESSIVELY=y&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Added to main.c&lt;/p&gt;
&lt;p&gt;// For FOTA&lt;br /&gt;#include &amp;lt;tinycbor/cbor.h&amp;gt;&lt;br /&gt;#include &amp;quot;cborattr/cborattr.h&amp;quot;&lt;br /&gt;#include &amp;lt;mgmt/mgmt.h&amp;gt;&lt;br /&gt;#include &amp;lt;mgmt/mcumgr/smp_bt.h&amp;gt;&lt;br /&gt;#include &amp;lt;mgmt/mcumgr/buf.h&amp;gt;&lt;br /&gt;#include &amp;lt;mgmt/mcumgr/smp.h&amp;gt;&lt;br /&gt;#include &amp;quot;os_mgmt/os_mgmt.h&amp;quot;&lt;br /&gt;#include &amp;quot;os_mgmt/os_mgmt_impl.h&amp;quot;&lt;br /&gt;#include &amp;quot;os_mgmt/os_mgmt_config.h&amp;quot;&lt;br /&gt;#include &amp;quot;img_mgmt/image.h&amp;quot;&lt;br /&gt;#include &amp;quot;img_mgmt/img_mgmt.h&amp;quot;&lt;br /&gt;#include &amp;quot;img_mgmt/img_mgmt_impl.h&amp;quot;&lt;br /&gt;#include &amp;quot;img_mgmt/img_mgmt_config.h&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;and in main()&lt;/p&gt;
&lt;p&gt;&amp;nbsp; printk(&amp;quot;Application build time: %s %s \n&amp;quot;, __DATE__, __TIME__);&lt;/p&gt;
&lt;p&gt;...&lt;/p&gt;
&lt;p&gt;&amp;nbsp; printk(&amp;quot;Advertising successfully started\n&amp;quot;);&lt;/p&gt;
&lt;p&gt;&amp;nbsp; // For FOTA&lt;br /&gt;&amp;nbsp; os_mgmt_register_group();&lt;br /&gt;&amp;nbsp; img_mgmt_register_group();&lt;br /&gt;&amp;nbsp; smp_bt_register();&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I reloaded the project, built and flashed. The image booted ok&lt;/p&gt;
&lt;p&gt;*** Booting Zephyr OS build v2.4.0-ncs2 ***&lt;br /&gt;[00:00:00.403,625] &amp;lt;inf&amp;gt; mcuboot: Starting bootloader&lt;br /&gt;[00:00:00.409,667] &amp;lt;inf&amp;gt; mcuboot: Primary image: magic=unset, swap_type=0x1, cop y_done=0x3, image_ok=0x3&lt;br /&gt;[00:00:00.419,677] &amp;lt;inf&amp;gt; mcuboot: Boot source: none&lt;br /&gt;[00:00:00.425,140] &amp;lt;inf&amp;gt; mcuboot: Swap type: none&lt;br /&gt;[00:00:00.716,369] &amp;lt;inf&amp;gt; mcuboot: Bootloader chainload address offset: 0xc000&lt;br /&gt;[00:00:00.724,029] &amp;lt;inf&amp;gt; mcuboot: Jumping to the first image slot&lt;br /&gt;*** Booting Zephyr OS build v2.4.0-ncs2 ***&lt;br /&gt;Starting Bluetooth Peripheral LBS example&lt;br /&gt;Application build time: Feb 23 2021 09:53:14&lt;br /&gt;I: 2 Sectors of 4096 bytes&lt;br /&gt;I: alloc wra: 0, ff0&lt;br /&gt;I: data wra: 0, 0&lt;br /&gt;I: SoftDevice Controller build revision:&lt;br /&gt;I: cf 5c 0f 11 88 9c d7 02 |.\......&lt;br /&gt;I: 15 27 c7 c3 ca 60 19 85 |.&amp;#39;...`..&lt;br /&gt;I: b7 c4 50 e3 |..P.&lt;br /&gt;I: No ID address. App must call settings_load()&lt;br /&gt;Bluetooth initialized&lt;br /&gt;Advertising successfully started&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I rebuilt the code, to generate a different binary image (TIME being different) and attempted to DFU this using nrf connect mobile. &amp;quot;Validating&amp;quot; was displayed for a few seconds, then the Android app reverted without attempting the actual DFU.&lt;/p&gt;
&lt;p&gt;The target debug output showed&lt;/p&gt;
&lt;p&gt;Connected&lt;br /&gt;Disconnected (reason 19)&lt;br /&gt;Connected&lt;br /&gt;W: Unhandled ATT code 0x1d&lt;br /&gt;Passkey for 4d:a0:4e:95:16:f2 (random): 128349&lt;br /&gt;Security changed: 4d:a0:4e:95:16:f2 (random) level 4&lt;br /&gt;Pairing completed: a8:87:b3:74:2d:56 (public), bonded: 1&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I assume I am missing something. Please advise, this product development is now blocked.&lt;/p&gt;
&lt;p&gt;&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></channel></rss>