<?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>Provisioning error in Light Switch server (NRF52832)</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/84743/provisioning-error-in-light-switch-server-nrf52832</link><description>Hello! I am trying to run the &amp;quot;Light switch&amp;quot; example on a custom board. 
 My environment: - nRF5 SDK v17.0.2 - nRF5 SDK for Mesh v5.0.0 - SoftDevice S132 v7.2.0 - NRF52832_xxAA (on custom board) - Keil uVision 5.33.0 (Compiler v5) - J-link debugger -</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 23 Feb 2022 08:35:44 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/84743/provisioning-error-in-light-switch-server-nrf52832" /><item><title>RE: Provisioning error in Light Switch server (NRF52832)</title><link>https://devzone.nordicsemi.com/thread/354482?ContentTypeID=1</link><pubDate>Wed, 23 Feb 2022 08:35:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:13a09cd5-9ee7-49e4-9bbd-be5c8eb37ed9</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Dmitro,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The .sct file was there from the beginning when we planned to support both Keil and SES. Unfortunately there were no progress in adding KEIL support since 2017 when it was Mesh SDK v0.10. The last activity from what I can find internally was &lt;a href="https://devzone.nordicsemi.com/nordic/nordic-blog/b/blog/posts/creating-a-keil-project-for-a-bluetooth-mesh-examp"&gt;this blog.&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;It might be possible to figure out why flash manager doesn&amp;#39;t work when compiled with KEIL, but since it&amp;#39;s a not tested compiler I would strongly suggest to use gcc or SES to compile the project.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Provisioning error in Light Switch server (NRF52832)</title><link>https://devzone.nordicsemi.com/thread/354475?ContentTypeID=1</link><pubDate>Wed, 23 Feb 2022 08:05:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dc61c2b5-111a-4b5a-a69d-ae9032e60583</guid><dc:creator>Dmitro Balo</dc:creator><description>&lt;p&gt;Hi Hung,&lt;br /&gt;I can build the project in SES, but the application needs to be created using Keil, it is more convenient for our company to use this product, since it is our main IDE. In your example Mesh, there are .sct files intended for use in Keil, from which it can be concluded that the mesh can be worked with using Keil (For example: \examples\light_switch\server\linker\). I would like to understand what is the reason for not working correctly in Keil.Thanks!&lt;/p&gt;
&lt;div style="left:250px;position:absolute;top:34.5426px;" id="gtx-trans"&gt;
&lt;div class="gtx-trans-icon"&gt;&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Provisioning error in Light Switch server (NRF52832)</title><link>https://devzone.nordicsemi.com/thread/354404?ContentTypeID=1</link><pubDate>Tue, 22 Feb 2022 15:35:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1d66d6aa-d027-4dce-81b4-0d0d3cca1d7e</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Dmitro,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;I didn&amp;#39;t notice that you were using KEIL.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;Could you please test using Segger Embedded Studio&amp;nbsp; ? (It&amp;#39;s free to use with Nordic chip)&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;The problem is that the nRF5 Mesh SDK is not made for KEIL and we didn&amp;#39;t have any test on that.&amp;nbsp;&lt;br /&gt;From what you described I suspect that it&amp;#39;s the issue with the flash section declaration (including the observer sections also missing).&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;I would strongly suggest to switch to SES/gcc instead of KEIL.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Provisioning error in Light Switch server (NRF52832)</title><link>https://devzone.nordicsemi.com/thread/354339?ContentTypeID=1</link><pubDate>Tue, 22 Feb 2022 12:37:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:342ef183-d464-404a-9f48-8592ac451d33</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Dmitro,&amp;nbsp;&lt;br /&gt;It&amp;#39;s a little bit strange that when you flashed my example it worked fine. I assume the provisioning goes smoothly from provisioning until configuration completed ?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;It&amp;#39;s the unchanged light switch server example from the SDK so if you compile your example it should result the same.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Could you please compile and send us the hex file of the light switch server example in the SDK&amp;nbsp; ? so we can test here. Have you tried to test with a fresh&amp;nbsp;SDK installation ?&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Provisioning error in Light Switch server (NRF52832)</title><link>https://devzone.nordicsemi.com/thread/354306?ContentTypeID=1</link><pubDate>Tue, 22 Feb 2022 10:18:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:10584c92-7d61-45f1-b391-690694999e6d</guid><dc:creator>Dmitro Balo</dc:creator><description>&lt;p&gt;Hi Hung,&lt;br /&gt;I uploaded your hex to my board and it works great. I&amp;#39;ve tried other SDK examples and they behave the same - provisioning doesn&amp;#39;t complete. After the device receives some data from the provisioner, it should reboot and then continue the provisioning process. Before these, it is necessary to save the received data such as the network key, unicast address and other data to the persistent storage (flash).&lt;br /&gt;My example, after receiving the data, cannot reboot due to the fact that writing to the flash does not occur. After running the &lt;strong&gt;&amp;quot;process_action_queue&amp;quot;&lt;/strong&gt; function in the &lt;strong&gt;&amp;quot;flash_manager&amp;quot;&lt;/strong&gt; module, the memory write action is retrieved from the packet buffer, and the &lt;strong&gt;&amp;quot;m_action_state&amp;quot;&lt;/strong&gt; remains in the &lt;strong&gt;&amp;quot;ACTION_STATE_WAIT_FOR_FLASH&amp;quot;&lt;/strong&gt; state forever, but the problem is not with the memory write itself, because after the action is retrieved, the function call &lt;strong&gt;&amp;quot;flash_op_start&amp;quot;&lt;/strong&gt; never happens, &lt;strong&gt;&amp;quot;bearer_handler_action_enqueue&amp;quot;&lt;/strong&gt; is called. After calling &lt;strong&gt;&amp;quot;bearer_handler_action_enqueue&amp;quot;&lt;/strong&gt;, I noticed that TIMER0 (compare) interrupts are disabled, the main loop executes the sd_app_evt_wait function indefinitely, no hard fault occurs.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Provisioning error in Light Switch server (NRF52832)</title><link>https://devzone.nordicsemi.com/thread/353874?ContentTypeID=1</link><pubDate>Fri, 18 Feb 2022 13:47:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8363eaea-0b86-4b10-9893-2936e0eceda3</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Dmitro,&amp;nbsp;&lt;br /&gt;Sure you can send us your project and your hex files.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;I also attached here my hex file for you to test.&amp;nbsp;Do you have a DK to test ?&amp;nbsp;&lt;br /&gt;Have you verified that the custom board can run any other BLE application ?&amp;nbsp;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/6433.light_5F00_switch_5F00_server_5F00_nrf52832_5F00_xxAA_5F00_s132_5F00_7.2.0.hex"&gt;devzone.nordicsemi.com/.../6433.light_5F00_switch_5F00_server_5F00_nrf52832_5F00_xxAA_5F00_s132_5F00_7.2.0.hex&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;It&amp;#39;s normal that the connection is dropped after provisioning because we need to reset the softdevice after that. But after provisioning it should advertise and re-connect to continue the configuration process.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Provisioning error in Light Switch server (NRF52832)</title><link>https://devzone.nordicsemi.com/thread/353863?ContentTypeID=1</link><pubDate>Fri, 18 Feb 2022 13:24:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9992575a-0e95-47f4-9b0f-9d9dfca0a369</guid><dc:creator>Dmitro Balo</dc:creator><description>&lt;p&gt;Thanks for the answer! I checked the original example, no changes - it still doesn&amp;#39;t work. Also, I tested on several different phones and the result is the same. This time, I did not launch nRF Connect while NRF Mesh was running. After provisioning ends, my device receives &lt;strong&gt;BLE_HCI_REMOTE_USER_TERMINATED_CONNECTION&lt;/strong&gt; and then the &amp;quot;&lt;strong&gt;prov_provisionee_cb_link_closed&lt;/strong&gt;&amp;quot; callback is called with the reason &amp;quot;&lt;strong&gt;NRF_MESH_PROV_LINK_CLOSE_REASON_ERROR&lt;/strong&gt;&amp;quot;. I&amp;#39;m not sure if this is how it&amp;#39;s supposed to work, but the node doesn&amp;#39;t advertise as &amp;quot;provisioned&amp;quot;, it doesn&amp;#39;t show any signs at all until it reboots. After the reboot, it again sends out advertising for an &lt;span&gt;&amp;quot;un&lt;/span&gt;&lt;span&gt;provisioned&lt;/span&gt;&lt;span&gt;&amp;quot;&lt;/span&gt; device.Can I send you a project so you can help me?&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Provisioning error in Light Switch server (NRF52832)</title><link>https://devzone.nordicsemi.com/thread/353315?ContentTypeID=1</link><pubDate>Wed, 16 Feb 2022 10:21:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e1e7ac9e-73e0-4b28-9528-e7b6997444b1</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Dmitro,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Please make sure you don&amp;#39;t run nRF Connect at the same time as the nRF Mesh provisioning. The reason is that it may hold the connection and that&amp;#39;s why you can&amp;#39;t find the provisioned node.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;Also please try to test using unmodified example and test provisioning using other phone as well.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Provisioning error in Light Switch server (NRF52832)</title><link>https://devzone.nordicsemi.com/thread/353308?ContentTypeID=1</link><pubDate>Wed, 16 Feb 2022 09:53:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bf17ea94-6757-481d-9a0a-9fc481b37f52</guid><dc:creator>Dmitro Balo</dc:creator><description>&lt;p class="tw-data-text tw-text-large tw-ta" id="tw-target-text" dir="ltr"&gt;&lt;span class="Y2IQFc" lang="en"&gt;I use &amp;quot;nRF Connect&amp;quot; to debug connections, &amp;quot;nRF Mesh&amp;quot; is used to connect to the board. After an error in the nRF Mesh application, I am unable to connect the node to configure it.&lt;br /&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/Screenrecorder_2D00_2022_2D00_02_2D00_16_2D00_11_2D00_42_2D00_36_2D00_500_2800_0_2900_.mp4"&gt;devzone.nordicsemi.com/.../Screenrecorder_2D00_2022_2D00_02_2D00_16_2D00_11_2D00_42_2D00_36_2D00_500_2800_0_2900_.mp4&lt;/a&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Provisioning error in Light Switch server (NRF52832)</title><link>https://devzone.nordicsemi.com/thread/353288?ContentTypeID=1</link><pubDate>Wed, 16 Feb 2022 09:14:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6acb76f5-8e9b-4a51-88e4-a2dfab47aa2a</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Dmitro,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Would the unmodified example run on your board ? I assume if it&amp;#39;s just the GPIO difference it should still work.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;I don&amp;#39;t fully understand why you use NRF Connect to connect to the board. What you need to do after provisioning interrupted is to use nRFMesh app to connect to a Proxy node (Click on Connect) either the exact node or other node that&amp;#39;s already in the network. After that you should be able to click on the node and Configure it.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Provisioning error in Light Switch server (NRF52832)</title><link>https://devzone.nordicsemi.com/thread/353144?ContentTypeID=1</link><pubDate>Tue, 15 Feb 2022 14:30:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:94fe79ef-de7a-40f2-8aea-3900fb25b133</guid><dc:creator>Dmitro Balo</dc:creator><description>&lt;p class="tw-data-text tw-text-large tw-ta" dir="ltr"&gt;&lt;span class="Y2IQFc" lang="en"&gt;Hello Hung! &lt;/span&gt;&lt;/p&gt;
&lt;p class="tw-data-text tw-text-large tw-ta" dir="ltr"&gt;&lt;span class="Y2IQFc" lang="en"&gt;I have to connect to a node to manually complete &lt;/span&gt;&lt;span class="Y2IQFc" lang="en"&gt;the configuration, however after &lt;/span&gt;clicking the &amp;quot;connect&amp;quot; button it searches endlessly for nodes, my node is no longer found. I got some additional debug info:&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/1644932381230.jpg" /&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/1644932381220.jpg" /&gt;&lt;/p&gt;
&lt;p class="tw-data-text tw-text-large tw-ta" id="tw-target-text" dir="ltr"&gt;&lt;span class="Y2IQFc" lang="en"&gt;The first and second logs are received under the same &lt;/span&gt;&lt;span class="Y2IQFc" lang="en"&gt;conditions (provisioning process), &lt;/span&gt;however sometimes the node itself drops the connection and sometimes the smartphone does it. &lt;br /&gt;Unfortunately at the moment I don&amp;#39;t have a DK, only our board.&lt;/p&gt;
&lt;p&gt;&lt;span class="Y2IQFc" lang="en"&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Provisioning error in Light Switch server (NRF52832)</title><link>https://devzone.nordicsemi.com/thread/353089?ContentTypeID=1</link><pubDate>Tue, 15 Feb 2022 12:18:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a7b37a21-0d5f-440d-95ef-be73ec9797ca</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Dmitro,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Do you have the same problem if you try to compile and flash the example on a DK (unmodified example) ?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Could you also check if you have the sdh_* section defined in the flash_placement.xml file ?&lt;/p&gt;
&lt;p&gt;Sometimes we have the issue that the connection between the phone and the fresh provisioned device and you will need to manually connect and do configuration as showed in your&amp;nbsp;screenshot:&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;img height="514" src="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/5700.jpg" width="237" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;If the issue remains, please send us your project so we can test here.&amp;nbsp;&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>