<?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>Zephyr SMP Server sample does not work on nRF52840 DK</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/104121/zephyr-smp-server-sample-does-not-work-on-nrf52840-dk</link><description>Hello, 
 I am using the Zephyr SMP Server sample to update the firmware over BLE on a custom board with the nRF52840 and a nRF52840 DK. I followed the instructions in the documentation to configure and build the sample, and I used the nRF Connect app</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 26 Sep 2023 12:46:08 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/104121/zephyr-smp-server-sample-does-not-work-on-nrf52840-dk" /><item><title>RE: Zephyr SMP Server sample does not work on nRF52840 DK</title><link>https://devzone.nordicsemi.com/thread/447723?ContentTypeID=1</link><pubDate>Tue, 26 Sep 2023 12:46:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:aa12d9f7-3db6-45b1-8c73-3fb0cd165b4f</guid><dc:creator>V1incentC</dc:creator><description>&lt;p&gt;The warnings are gone after the reboot.&lt;br /&gt;Thanks a lot for your help!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Zephyr SMP Server sample does not work on nRF52840 DK</title><link>https://devzone.nordicsemi.com/thread/447716?ContentTypeID=1</link><pubDate>Tue, 26 Sep 2023 12:40:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d490939d-c793-4b17-b834-6a7065d56d5c</guid><dc:creator>AHaug</dc:creator><description>&lt;p&gt;Glad to hear that you resolved the issue with the guide and a different phone&lt;/p&gt;
&lt;p&gt;AFAIK the warnings and errors highlighted are caused by LFS needs to be initialized, which is usually handled sometime right after restarting the firmware&lt;/p&gt;
&lt;p&gt;In my end the warning and error is gone after restarting the firmware both for the initial firmware running, and the updated firmware after dfu, i.e: Flash, reboot dk and see the warnings disappear, perform dfu -&amp;gt; reboot DK and see warnings disappear&lt;/p&gt;
&lt;p&gt;Does the warnings persists after you reboot the dk after performing DFU?&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;br /&gt;Andreas&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Zephyr SMP Server sample does not work on nRF52840 DK</title><link>https://devzone.nordicsemi.com/thread/447682?ContentTypeID=1</link><pubDate>Tue, 26 Sep 2023 10:50:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:77530de6-1851-4610-ab3d-d35c0a5446f5</guid><dc:creator>V1incentC</dc:creator><description>&lt;p&gt;Hi Andreas,&lt;/p&gt;
&lt;p&gt;Thank you for your detailed response. I followed the steps you provided and managed to perform a firmware update successfully when I switched to a different phone (Pocophone F1).&lt;/p&gt;
&lt;p&gt;However, I encountered an error in the RTT log related to LittleFS. Here&amp;rsquo;s the log for your reference:&lt;/p&gt;
&lt;div class="code-wrapper" style="position:relative;"&gt;&lt;img style="max-height:444px;max-width:562px;" alt=" " height="444" src="https://devzone.nordicsemi.com/resized-image/__size/1124x888/__key/communityserver-discussions-components-files/4/ble_5F00_dfu.png" width="562" /&gt;&lt;/div&gt;
&lt;p&gt;The error message &amp;ldquo;Corrupted dir pair at {0x0, 0x1}&amp;rdquo; appeared and it seems that LittleFS couldn&amp;rsquo;t mount and had to format. I&amp;rsquo;m wondering if this is something I should be concerned about&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;br /&gt;Vincent&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Zephyr SMP Server sample does not work on nRF52840 DK</title><link>https://devzone.nordicsemi.com/thread/447626?ContentTypeID=1</link><pubDate>Tue, 26 Sep 2023 06:42:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9171f81b-355c-40f1-a6f5-00d7b437179e</guid><dc:creator>AHaug</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Unfortunately I&amp;#39;ve not been able to reproduce the issue you see by following the sample documentation. From the image below you can see that DFU with BLE using nRF Connect App&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1695710250699v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;Setup:&amp;nbsp;&lt;/p&gt;
&lt;p&gt;nRF52840DK, NCS v2.4.0, Samsung Galaxy Android phone&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Build with Bluetooth overlay using&amp;nbsp;&lt;em&gt;west build -b nrf52840dk_nrf52840 -- - DEXTRA_CONF_FILE=overlay.bt.conf&amp;nbsp;&lt;/em&gt;or by adding the extra configuration file in the VS Code extension when choosing build configuration&lt;/li&gt;
&lt;li&gt;Flash the firmware to a 52840DK&lt;/li&gt;
&lt;li&gt;Check that it&amp;#39;s running using for instance J-Link RTT Viewer or the built in RTT Viewer in VS Code extension&lt;/li&gt;
&lt;li&gt;Build once more in a new directory to make sure that it&amp;#39;s a new project using&amp;nbsp;&lt;em&gt;west build -b nrf52840dk_nrf52840 -d build_1 -- - DEXTRA_CONF_FILE=overlay.bt.conf&amp;nbsp;&lt;/em&gt;&lt;span&gt;or by adding the extra configuration file in the VS Code extension when choosing build configuration&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span&gt;Upload the bin app_uppdate.bin located in build/zephyr to somewhere your phone can access&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span&gt;Open nRF Connect and find the device. Connect to it&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;Press the DFU button (top right) and upload the bin. Choose test and confirm&lt;/li&gt;
&lt;li&gt;Observe that the process goes through and the new firmware is now running on the board&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;Does your steps differ from these steps?&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;br /&gt;Andreas&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Zephyr SMP Server sample does not work on nRF52840 DK</title><link>https://devzone.nordicsemi.com/thread/447530?ContentTypeID=1</link><pubDate>Mon, 25 Sep 2023 14:16:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:52e4bc85-adb6-4240-b8c4-71890c18c8ac</guid><dc:creator>V1incentC</dc:creator><description>&lt;p&gt;I think it&amp;#39;s version 1.0.0&lt;br /&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/IMG20230925161321_5F00_2.jpg" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Zephyr SMP Server sample does not work on nRF52840 DK</title><link>https://devzone.nordicsemi.com/thread/447499?ContentTypeID=1</link><pubDate>Mon, 25 Sep 2023 13:02:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6ca4503e-47cc-4d2e-b5d3-810580f43b0f</guid><dc:creator>AHaug</dc:creator><description>&lt;p&gt;Thank you for supplying this. I will have a look at the log and try to recreate what you observe.&lt;/p&gt;
&lt;p&gt;Could you state which revision your nRF52840DK is? It should be visible on the sticker attached on the board&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;br /&gt;Andreas&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Zephyr SMP Server sample does not work on nRF52840 DK</title><link>https://devzone.nordicsemi.com/thread/447471?ContentTypeID=1</link><pubDate>Mon, 25 Sep 2023 12:07:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:91f78460-bac3-4448-9866-02b3e9eb1567</guid><dc:creator>V1incentC</dc:creator><description>&lt;ol&gt;
&lt;li&gt;I&amp;#39;m using nRF Connect SDK v2.4.0&lt;/li&gt;
&lt;li&gt;Realme GT 5G (Android)&lt;/li&gt;
&lt;li&gt;I have used the default nrf52840dk_nrf52840 board&lt;/li&gt;
&lt;li&gt;I have tired with unmodified and modified sample code and I had the same issue in both cases&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;I appended the log file to this message. I connected to the device and triggered dfu.&lt;br /&gt;&lt;br /&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/Log-2023_2D00_09_2D00_25-14-02-17.txt"&gt;devzone.nordicsemi.com/.../Log-2023_2D00_09_2D00_25-14-02-17.txt&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Zephyr SMP Server sample does not work on nRF52840 DK</title><link>https://devzone.nordicsemi.com/thread/447460?ContentTypeID=1</link><pubDate>Mon, 25 Sep 2023 11:51:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6c18a757-ea24-4e0b-bdd1-f9f70849cc0c</guid><dc:creator>AHaug</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I need you to answer some questions before we can pinpoint the issue&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Which SDK version are you using?&lt;/li&gt;
&lt;li&gt;Which smartphone and smartphone OS are you running the nRF Connect App on?&lt;/li&gt;
&lt;/ol&gt;
[quote user=""]The problem is that the SMP Server sample works fine on my custom board, but not on the nRF52840 DK.[/quote]
&lt;p&gt;This is typically the other way around, i.e that it works on a DK out of the box and not the custom board.&amp;nbsp;&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Have you made any modifications to the board files in the SDK making your custom board act as the default 52840 board?&lt;/li&gt;
&lt;li&gt;Have you modified the zephyr smp sample at any point? Do you see the same thing when you build with an unmodified sample?&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;It would also be helpful if you could provide me with the full device log up until the error occurs&lt;/p&gt;
&lt;p&gt;Kind regards;&lt;br /&gt;Andreas&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>