<?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>Problem with provisioning after reset</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/41420/problem-with-provisioning-after-reset</link><description>Hi 
 
 We are able to provision several mesh-servers. 
 The log on the RTT-Viewer of the client looks normal: 
 
 0&amp;gt; &amp;lt;t: 915394&amp;gt;, mesh.c, 178, Local provisioning link established 0&amp;gt; &amp;lt;t: 916961&amp;gt;, mesh.c, 237, Using static authentication 0&amp;gt; &amp;lt;t: 928785&amp;gt;</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 20 Dec 2018 09:36:11 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/41420/problem-with-provisioning-after-reset" /><item><title>RE: Problem with provisioning after reset</title><link>https://devzone.nordicsemi.com/thread/162618?ContentTypeID=1</link><pubDate>Thu, 20 Dec 2018 09:36:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:650d483c-38a9-4bf5-9bab-5c38f8fa20d0</guid><dc:creator>Gerry</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;thanks for your detailed estimation on that problem. We were searching and debugging for quite a long time on this, but the reason seems to be deeper in the SDK, where we don&amp;#39;t really understand the mechanisms. Would be good, if you could take a look at it from your professional perspective after the holidays. Might be a good idea to make this case private, so we can share our client/provisioner code with you.&lt;/p&gt;
&lt;p&gt;Regards&lt;/p&gt;
&lt;p&gt;Gerry&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problem with provisioning after reset</title><link>https://devzone.nordicsemi.com/thread/161928?ContentTypeID=1</link><pubDate>Fri, 14 Dec 2018 17:31:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a178b2b2-c746-4518-9474-c4c09ebfb82c</guid><dc:creator>tesc</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;It should not be a problem in and of itself that the example is ported, but it means now I better know the context of what you are doing.&lt;/p&gt;
&lt;p&gt;It seems to be related to the addresses stored by the device state manager (dsm). I would guess that the error of NRF_ERROR_INVALID_ADDR originated in packet_tx() in access.c, because of a mismatch between the addresses stored by the dsm and the index information stored in the model. A bit hard to tell for sure, of course, since the project is ported and things may have changed throughout the SDK revisions.&lt;/p&gt;
&lt;p&gt;In any case, while the dsm automatically stores changes to flash, this is not necessarily done for the data used by the access module (in access.c). Hence the function access_flash_config_store(). Further, if at the point of reset, either the dsm or access has stored data to flash, but the other has not, the data will be in an inconsistent state comparable to a dangling pointer, leading to the kind of error that you experience.&lt;/p&gt;
&lt;p&gt;I am afraid these things are complex, and I do not have enough time to properly get to the bottom of it before the holidays, but I know that this is an area where our mesh team want to improve the SDK. From what I understand they have done some work on that for later releases. It may even be that those improvements are what effectively renders the ported example prone to inconsistency if resetting the (combined client and) provisioner halfway through the provisioning steps.&lt;/p&gt;
&lt;p&gt;Hopefully I have at least provided some pointers to where to look. If anything is unclear, let me know and I will try to elaborate.&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Terje&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problem with provisioning after reset</title><link>https://devzone.nordicsemi.com/thread/161498?ContentTypeID=1</link><pubDate>Wed, 12 Dec 2018 15:36:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d33d19ad-8096-46f0-9aa0-d93c97a5c749</guid><dc:creator>Gerry</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;yes, we started with mesh v1.0.1 and the updated to Mesh 2.0.1. Is there a Problem with that? We didn&amp;#39;t make changes tp provisioner.c and the application is runnig fine accept the issue above.&lt;/p&gt;
&lt;p&gt;Regards&lt;/p&gt;
&lt;p&gt;Gerry&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problem with provisioning after reset</title><link>https://devzone.nordicsemi.com/thread/161497?ContentTypeID=1</link><pubDate>Wed, 12 Dec 2018 15:26:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:07ae1aac-576e-485c-a962-22734ead68b6</guid><dc:creator>tesc</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I found this file now in the combined client+provisioner example from nRF5 SDK for Mesh v1.0.1. Have you ported this project over to nRF5 SDK for Mesh v2.0.1, from that older version?&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Terje&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problem with provisioning after reset</title><link>https://devzone.nordicsemi.com/thread/161224?ContentTypeID=1</link><pubDate>Tue, 11 Dec 2018 13:47:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d314446f-bb07-424d-a0b1-adf3d398789b</guid><dc:creator>Gerry</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;attached the file provisioner.c. The nRF5 SDK Version was correct.&lt;/p&gt;
&lt;p&gt;By reset (restart) I mean pressing the reset button on the nRF52840 DK&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;regards&lt;/p&gt;
&lt;p&gt;Gerry&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/provisioner.c"&gt;devzone.nordicsemi.com/.../provisioner.c&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problem with provisioning after reset</title><link>https://devzone.nordicsemi.com/thread/161181?ContentTypeID=1</link><pubDate>Tue, 11 Dec 2018 12:02:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:eda1fe6e-195f-46d1-b029-35847913bb03</guid><dc:creator>tesc</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I was not able to find provisioner.c, nor the line with the assert, in nRF5 SDK for Mesh v2.0.1... Did you mean provisioning.c, and can you recheck and confirm the nRF5 SDK for Mesh version?&lt;/p&gt;
&lt;p&gt;Crashing is &amp;quot;normal behavior&amp;quot; if you flash the mesh application without erasing flash first. This is because anything in the flash area designated for storing provisioning data, device status, etc. may be interpreted wrongly leading to undefined behavior or error in parsing the data.&lt;/p&gt;
&lt;p&gt;How are you resetting the client/provisioner board, what are the steps for reproducing?&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Terje&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>