<?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>NRF5340 FOTA, system reset after pairing</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/69368/nrf5340-fota-system-reset-after-pairing</link><description>Hi, 
 I am trying to evaluate nRF5340 FOTA update via Bluetooth. I started with the Bluetooth/peripheral code sample as the basis for my project. I modified the project per notes found in a previous DevZone post nRF5340 FOTA upgrade over Bluetooth and</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 21 Dec 2020 15:27:04 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/69368/nrf5340-fota-system-reset-after-pairing" /><item><title>RE: NRF5340 FOTA, system reset after pairing</title><link>https://devzone.nordicsemi.com/thread/286103?ContentTypeID=1</link><pubDate>Mon, 21 Dec 2020 15:27:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9bf3e7ff-5a8f-4e76-b495-349d8785cdfe</guid><dc:creator>dyoung.mpd</dc:creator><description>&lt;p&gt;Hi Simon,&lt;/p&gt;
&lt;p&gt;Thanks for outlining those test steps.&amp;nbsp; I haven&amp;#39;t yet gotten a chance to do that and it may be a few days before I have time to do so.&amp;nbsp; I just thought I would ask about Android on the off chance you were able to respond.&lt;/p&gt;
&lt;p&gt;Unfortunately I can&amp;#39;t upgrade my phone to Android 9 but there may be another device in the office that I can use for testing.&lt;/p&gt;
&lt;p&gt;I&amp;#39;ll let you know how my testing goes.&lt;/p&gt;
&lt;p&gt;Sincerely,&lt;/p&gt;
&lt;p&gt;Doug Young&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF5340 FOTA, system reset after pairing</title><link>https://devzone.nordicsemi.com/thread/286093?ContentTypeID=1</link><pubDate>Mon, 21 Dec 2020 15:02:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7f67a899-0a93-4141-b506-c7dc3479632c</guid><dc:creator>Simon</dc:creator><description>&lt;p&gt;Have you tested the steps I mentioned? Is it still failing&lt;/p&gt;
&lt;p&gt;I&amp;#39;m running Android-version 9.&amp;nbsp;Are you able to update to that version?&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: NRF5340 FOTA, system reset after pairing</title><link>https://devzone.nordicsemi.com/thread/286088?ContentTypeID=1</link><pubDate>Mon, 21 Dec 2020 14:47:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:41e37c34-b1d4-4b25-b8e2-b1ef6ae890a4</guid><dc:creator>dyoung.mpd</dc:creator><description>&lt;p&gt;Hi Simon,&lt;/p&gt;
&lt;p&gt;What version of Android are you running on the Galaxy S8+?&lt;/p&gt;
&lt;p&gt;Thank you,&lt;/p&gt;
&lt;p&gt;Doug Young&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF5340 FOTA, system reset after pairing</title><link>https://devzone.nordicsemi.com/thread/286031?ContentTypeID=1</link><pubDate>Mon, 21 Dec 2020 12:01:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9f6bcf9d-1660-4b75-9498-1141acadafcc</guid><dc:creator>Simon</dc:creator><description>&lt;p&gt;I was able to perform FOTA (Bluetooth) using an nRF5340 PDK v0.7.0 and the smp_svr sample (NCS v1.4.0), with the nRF Connect Device Manager app on a Galaxy S8+&lt;/p&gt;
&lt;p&gt;I did the following:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;cd into&amp;nbsp;&lt;em&gt;C:\Users\Simon\ncs\v1.4.0\zephyr\samples\subsys\mgmt\mcumgr\smp_svr&lt;/em&gt;&lt;/li&gt;
&lt;li&gt;Connect the nRF5340 PDK to the computer and turn it on&lt;/li&gt;
&lt;li&gt;Run&amp;nbsp;&lt;code&gt;west build -b nrf5340pdk_nrf5340_cpuapp -- -DOVERLAY_CONFIG=overlay-bt.conf &amp;amp;&amp;amp; cd build &amp;amp;&amp;amp; west flash&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;Add &lt;code&gt;CONFIG_BOOTLOADER_MCUBOOT=y&lt;/code&gt; to &lt;em&gt;&amp;lt;..&amp;gt;/zephyr/samples/hello_world/prj.conf&lt;/em&gt;&lt;/li&gt;
&lt;li&gt;cd into &lt;em&gt;zephyr/samples/hello_world&lt;/em&gt;&lt;/li&gt;
&lt;li&gt;Run &lt;code&gt;west build -b nrf5340pdk_nrf5340_cpuapp -d build_dfu&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;Transfer &lt;span&gt;&lt;em&gt;&amp;lt;..&amp;gt;/zephyr/samples/hello_world/build_dfu/zephyr/app_update.bin&lt;/em&gt; to the phone&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;Install and open the nRF Connect Device Manager app on the phone, then connect to the nRF5340 which should be advertising with the name &amp;quot;Zephyr&amp;quot;&lt;/li&gt;
&lt;li&gt;Perform a Firmware Upgrade using the &lt;em&gt;app_update.bin&lt;/em&gt; file&lt;/li&gt;
&lt;li&gt;You should see the following log from a serial terminal (e.g. Termite) from the nRF5340 if the DFU update was successful:&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;*** Booting Zephyr OS build v2.4.0-ncs1  ***
[00:00:00.393,157] [1B][0m&amp;lt;inf&amp;gt; mcuboot: Starting bootloader[1B][0m
[00:00:00.399,322] [1B][0m&amp;lt;inf&amp;gt; mcuboot: Primary image: magic=unset, swap_type=0x1, copy_done=0x3, image_ok=0x3[1B][0m
[00:00:00.409,362] [1B][0m&amp;lt;inf&amp;gt; mcuboot: Boot source: none[1B][0m
[00:00:00.414,825] [1B][0m&amp;lt;inf&amp;gt; mcuboot: Swap type: none[1B][0m
[00:00:00.625,457] [1B][0m&amp;lt;inf&amp;gt; mcuboot: Bootloader chainload address offset: 0x10000[1B][0m
[00:00:00.633,209] [1B][0m&amp;lt;inf&amp;gt; mcuboot: Jumping to the first image slot[1B][0m
*** Booting Zephyr OS build v2.4.0-ncs1  ***


[1B][1;32muart:~$ [1B][m[1B][8D[1B][J[00:00:00.005,889] [1B][0m&amp;lt;inf&amp;gt; littlefs: LittleFS version 2.2, disk version 2.0[1B][0m
[1B][1;32muart:~$ [1B][m[1B][8D[1B][J[00:00:00.006,072] [1B][0m&amp;lt;inf&amp;gt; littlefs: FS at NRF_FLASH_DRV_NAME:0xfa000 is 6 0x1000-byte blocks with 512 cycle[1B][0m
[1B][1;32muart:~$ [1B][m[1B][8D[1B][J[00:00:00.006,103] [1B][0m&amp;lt;inf&amp;gt; littlefs: sizes: rd 16 ; pr 16 ; ca 64 ; la 32[1B][0m
[1B][1;32muart:~$ [1B][m[1B][8D[1B][J[00:00:00.006,195] [1B][1;31m&amp;lt;err&amp;gt; littlefs: WEST_TOPDIR/modules/fs/littlefs/lfs.c:997: Corrupted dir pair at {0x0, 0x1}[1B][0m
[1B][1;32muart:~$ [1B][m[1B][8D[1B][J[00:00:00.006,195] [1B][1;33m&amp;lt;wrn&amp;gt; littlefs: can&amp;#39;t mount (LFS -84); formatting[1B][0m
[1B][1;32muart:~$ [1B][m[1B][8D[1B][J[00:00:00.183,441] [1B][0m&amp;lt;inf&amp;gt; littlefs: /lfs mounted[1B][0m
[1B][1;32muart:~$ [1B][m[1B][8D[1B][J[00:00:00.184,173] [1B][0m&amp;lt;inf&amp;gt; smp_sample: build time: Dec 21 2020 12:10:12[1B][0m
[1B][1;32muart:~$ [1B][m[1B][8D[1B][J[1B][1;32muart:~$ [1B][m[1B][8D[1B][J[00:00:00.200,561] [1B][0m&amp;lt;inf&amp;gt; smp_bt_sample: Bluetooth initialized[1B][0m
[1B][1;32muart:~$ [1B][m[1B][8D[1B][J[00:00:00.204,833] [1B][0m&amp;lt;inf&amp;gt; smp_bt_sample: Advertising successfully started[1B][0m
[1B][1;32muart:~$ [1B][m[1B][8D[1B][J[1B][1;32muart:~$ [1B][m[1B][8D[1B][J[00:07:20.533,905] [1B][0m&amp;lt;inf&amp;gt; smp_bt_sample: Connected[1B][0m
[1B][1;32muart:~$ [1B][m[1B][8D[1B][J[1B][1;32muart:~$ [1B][m*** Booting Zephyr OS build v2.4.0-ncs1  ***
[00:00:00.257,781] [1B][0m&amp;lt;inf&amp;gt; mcuboot: Starting bootloader[1B][0m
[00:00:00.263,946] [1B][0m&amp;lt;inf&amp;gt; mcuboot: Primary image: magic=unset, swap_type=0x1, copy_done=0x3, image_ok=0x3[1B][0m
[00:00:00.273,986] [1B][0m&amp;lt;inf&amp;gt; mcuboot: Boot source: none[1B][0m
[00:00:00.279,449] [1B][0m&amp;lt;inf&amp;gt; mcuboot: Swap type: test[1B][0m
[00:00:14.912,750] [1B][0m&amp;lt;inf&amp;gt; mcuboot: Bootloader chainload address offset: 0x10000[1B][0m
[00:00:14.920,532] [1B][0m&amp;lt;inf&amp;gt; mcuboot: Jumping to the first image slot[1B][0m
*** Booting Zephyr OS build v2.4.0-ncs1  ***
Hello World! nrf5340pdk_nrf5340_cpuapp&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>