<?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>NRF52 Auto Reset</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/68009/nrf52-auto-reset</link><description>Hi everyone, 
 I&amp;#39;m programming nRF52833 for my application. In my application, I used ble_advdata_parse to read the advertising packet for filtering mine device. However, The systems only run for few seconds and then it reset by itself. When I debug I</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 06 Nov 2020 07:14:49 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/68009/nrf52-auto-reset" /><item><title>RE: NRF52 Auto Reset</title><link>https://devzone.nordicsemi.com/thread/278716?ContentTypeID=1</link><pubDate>Fri, 06 Nov 2020 07:14:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e42e7b13-fac1-4db3-b913-fca0346f9605</guid><dc:creator>Vidar Berg</dc:creator><description>[quote user="Nguyen Trong Tuan"]Here is where the error comes from[/quote]
&lt;p&gt;Where is the error coming from?&lt;/p&gt;
[quote user="Nguyen Trong Tuan"]There are many error when I change things[/quote]
&lt;p&gt;&amp;nbsp;Are you able to upload your project here or in a private support ticket so I can take a look?&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Edit: &lt;/strong&gt;For some reason I didn&amp;#39;t see the screenshot you posted earlier. Anyway, it seems like the error is returned by&amp;nbsp;sd_ble_gap_disconnect() in the&amp;nbsp; BLE_GATTS_EVT_TIMEOUT event, which indicates that the device was already disconnected when this event got processed.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52 Auto Reset</title><link>https://devzone.nordicsemi.com/thread/278694?ContentTypeID=1</link><pubDate>Fri, 06 Nov 2020 02:08:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:920f80a3-b075-452e-b849-d71fa5ad2a89</guid><dc:creator>Nguyen Trong Tuan</dc:creator><description>&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1604628330524v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;Here is where the error comes from. Sr I can&amp;#39;t follow your Instruction. There are many error when I change things like what you said because I used FREERTOS for my application so it&amp;#39;s seems like I have some troubles to handle with if I change like that.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52 Auto Reset</title><link>https://devzone.nordicsemi.com/thread/278599?ContentTypeID=1</link><pubDate>Thu, 05 Nov 2020 13:11:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:95d2b211-dc32-45b3-9952-afe5e9efb6fe</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;It looks like one of the functions in ble_evt_handler() is returning the NRF_ERROR_INVALID_STATE(8) error. I can&amp;#39;t tell&amp;nbsp; which one based on the image of the callstack you posted. However, the debug logs from the default error handler (&lt;span&gt;&lt;a title="Error module" href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v17.0.2/lib_error.html?cp=7_1_3_13"&gt;Error module&lt;/a&gt;&lt;/span&gt;) should include that information. If this is based on an SDK project you should be able to enable logging over RTT simply by applying the following configurations to sdk_config.h&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;NRF_FPRINTF_FLAG_AUTOMATIC_CR_ON_LF_ENABLED 0
NRF_LOG_BACKEND_RTT_ENABLED 1&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;And make sure you also select the &amp;quot;Debug&amp;quot; configuration before you debug. This will make the crashlog include the file name and line number of where the error occured..&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/7506.pastedimage1604581763971v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>