<?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>Problems when powering down the device during provisioning</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/105923/problems-when-powering-down-the-device-during-provisioning</link><description>Hello, 
 We are fighting against a potentially critical problem that showed up in the advanced stage of the development of one of our products. 
 In our device we have a nrf52840, which we provision using either the Nordic app (nRF Mesh) or a proprietary</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 09 Jan 2024 08:16:23 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/105923/problems-when-powering-down-the-device-during-provisioning" /><item><title>RE: Problems when powering down the device during provisioning</title><link>https://devzone.nordicsemi.com/thread/463283?ContentTypeID=1</link><pubDate>Tue, 09 Jan 2024 08:16:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5c126ce3-f3fc-4625-9b49-64698c7d5d78</guid><dc:creator>ste2108</dc:creator><description>&lt;p&gt;Dear Hung Bui,&lt;/p&gt;
&lt;p&gt;Sorry for the late answer. In the end we realized that the problem was due to a sneaky interaction between the defrag task and one of our routines checking wether a specific flash area is corrupted. When this routine is activate in the middle of the defrag procedure (which temporarily moves data from one flash area to another) it found the wrong data in that flash portion and reset the whole flash space. Adding a check on active defrag fixed the problem.&lt;/p&gt;
&lt;p&gt;Thank you for your help!&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Stefano&amp;nbsp; &amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problems when powering down the device during provisioning</title><link>https://devzone.nordicsemi.com/thread/457274?ContentTypeID=1</link><pubDate>Fri, 24 Nov 2023 08:38:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:adc95861-8bf9-4c17-af72-421a947e2d06</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Stefano,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Could you let us know which exact Mesh SDK version you are using on the board ?&amp;nbsp;&lt;br /&gt;What we know is that we did have some bug fixes regarding the flash manager module in SDK v4.2.0.&lt;/p&gt;
&lt;p&gt;So if you are using earlier version than that you can try to upgrade to v4.2.0 (still uses nRF5 SDK v16.0.0).&amp;nbsp;&lt;br /&gt;&lt;br /&gt;If that not possible, please try to step in the code and let us know at exact which line of code you see the issue.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problems when powering down the device during provisioning</title><link>https://devzone.nordicsemi.com/thread/456976?ContentTypeID=1</link><pubDate>Wed, 22 Nov 2023 14:53:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:caab44ff-5628-4b69-b353-c8ec7b145c35</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Stefano,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I have forwarded your question to our Mesh team. I will get back to you when I have more information.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problems when powering down the device during provisioning</title><link>https://devzone.nordicsemi.com/thread/456955?ContentTypeID=1</link><pubDate>Wed, 22 Nov 2023 14:14:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f7710649-622b-430c-ae3c-657ff7de574f</guid><dc:creator>ste2108</dc:creator><description>&lt;p&gt;Dear Hung Bui,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thank you for your quick answer. Yes, we traced back our problem to an assert during the flash initialization after the power cut and yes, a workaround was added to make up for the problem by cleaning up the flash pages used by the mesh. But is there a way to prevent this from happening? Is there any possibility that the problem could affect the application flash space? That would be a real disaster for us.&lt;br /&gt;Thank you.&lt;br /&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Stefano&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problems when powering down the device during provisioning</title><link>https://devzone.nordicsemi.com/thread/456912?ContentTypeID=1</link><pubDate>Wed, 22 Nov 2023 12:39:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7ba92511-752b-498b-8328-a143a4ea332b</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Stefano,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;Could you provide any debug information you have, for example if you have any log ? Or if you have managed to step into the code and check which line causing the crash ?&amp;nbsp;&lt;br /&gt;I am suspecting something with the flash module that cause the problem. The mesh module in nRF5 SDK is quite sensitive with flash issue that if the module couldn&amp;#39;t read the flash database it will not just reinitialize the flash, it instead will throw an assert.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;Have you deployed your devices or it&amp;#39;s still in the development phase ? Do you have any DFU option&amp;nbsp;. &amp;nbsp;If we can find what causing the assert we can add a workaround, for example to reinitialize the flash if the provisioning was not successful.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>