<?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>FDS multiple GC completed events and crash</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/24842/fds-multiple-gc-completed-events-and-crash</link><description>Device: nrf52, sd132 v3.0.0, SDK 12.1 (and also 12.3), freeRTOS, BLE peripheral, gcc-arm-none-eabi-5_4-2016q2 
 I am experiencing an issue which is causing our device to crash and eventually reset due to the WDT. 
 See device log: 
 [103817690]:DEBUG</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 12 Sep 2017 17:54:49 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/24842/fds-multiple-gc-completed-events-and-crash" /><item><title>RE: FDS multiple GC completed events and crash</title><link>https://devzone.nordicsemi.com/thread/97837?ContentTypeID=1</link><pubDate>Tue, 12 Sep 2017 17:54:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4e56884b-dd7e-44c8-8956-6341b1a7b561</guid><dc:creator>Justin</dc:creator><description>&lt;p&gt;it would be really nice if peer manager could be used without fds if desired (ram only).&lt;/p&gt;
&lt;p&gt;i will close this item, since i believe sdk 12.3 actually fixed the fds issue i was seeing.&lt;/p&gt;
&lt;p&gt;i think the resulting issue was due to the freertos timer task priority.&lt;/p&gt;
&lt;p&gt;thanks for the assistance.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: FDS multiple GC completed events and crash</title><link>https://devzone.nordicsemi.com/thread/97833?ContentTypeID=1</link><pubDate>Tue, 12 Sep 2017 11:31:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6bac3dc7-9ce0-47ab-adfb-9a2543644966</guid><dc:creator>MartinBL</dc:creator><description>&lt;p&gt;Unfortunately peer manager thinks that it is in the same application context or softdevice event context,
but with freertos it can be in any context. So it is still not thread safe.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: FDS multiple GC completed events and crash</title><link>https://devzone.nordicsemi.com/thread/97836?ContentTypeID=1</link><pubDate>Mon, 11 Sep 2017 23:28:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1ba47f8c-b2f9-45f5-8f03-a4a4b14b9255</guid><dc:creator>Justin</dc:creator><description>&lt;p&gt;thanks for the update.&lt;/p&gt;
&lt;p&gt;i&amp;#39;ll look at the SDK14 changes.&lt;/p&gt;
&lt;p&gt;i&amp;#39;m not using FDS outside of peer manager.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: FDS multiple GC completed events and crash</title><link>https://devzone.nordicsemi.com/thread/97835?ContentTypeID=1</link><pubDate>Mon, 11 Sep 2017 08:46:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4b08d178-e915-489e-9473-3b46c120457e</guid><dc:creator>MartinBL</dc:creator><description>&lt;p&gt;According to the SDK team, FDS is not thread safe and hence, when using FreeRTOS it might not work as intended. Make sure that FDS always works within critical region by using some sort of mutual exclusion techniques.&lt;/p&gt;
&lt;p&gt;Furthermore, there is a bug fix in SDK 14 that might be relevant. You can try to port FDS from SDK 14 back to SDK 12.3.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: FDS multiple GC completed events and crash</title><link>https://devzone.nordicsemi.com/thread/97831?ContentTypeID=1</link><pubDate>Thu, 07 Sep 2017 16:26:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:150592dd-c6da-4910-a37f-2d7c1cc2680d</guid><dc:creator>Justin</dc:creator><description>&lt;p&gt;Yes, I&amp;#39;ve been able to speed up the reset.&lt;/p&gt;
&lt;p&gt;However, using SDK 12.3, I&amp;#39;m not seeing the FDS GC before the WDT reset.  The RTT log posted above was from 12.1.&lt;/p&gt;
&lt;p&gt;I&amp;#39;ve been able to break into the debugger when the crash occurs and usually it is in vApplicationStackOverflowHook.&lt;/p&gt;
&lt;p&gt;Currently attempting to locate the cause.
Any suggestions?&lt;/p&gt;
&lt;p&gt;Thanks!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: FDS multiple GC completed events and crash</title><link>https://devzone.nordicsemi.com/thread/97832?ContentTypeID=1</link><pubDate>Thu, 07 Sep 2017 09:05:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:54d32b3d-1f00-4085-b9ae-21525ff8b715</guid><dc:creator>MartinBL</dc:creator><description>&lt;p&gt;Strange. Any luck in speeding things up?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: FDS multiple GC completed events and crash</title><link>https://devzone.nordicsemi.com/thread/97830?ContentTypeID=1</link><pubDate>Fri, 01 Sep 2017 16:39:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9d02f331-0c71-4c45-89d1-857b93b8f23a</guid><dc:creator>Justin</dc:creator><description>&lt;p&gt;i clear RESETREAS (by writing 0xFFFFFFFF) after reading it when the device starts.
i will try to make this issue happen more quickly.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: FDS multiple GC completed events and crash</title><link>https://devzone.nordicsemi.com/thread/97834?ContentTypeID=1</link><pubDate>Fri, 01 Sep 2017 13:46:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6ade9890-6a24-4f68-9134-356bf435fa78</guid><dc:creator>MartinBL</dc:creator><description>&lt;p&gt;Are you sure that it is the WDT that causes the final reset? RESETREAS = 0x6 indicates both a WDT reset and a System reset (the register is probably not cleared between the two events). Is it possible that your application does a system reset on a function assert? Have you tried debugging like &lt;a href="https://devzone.nordicsemi.com/question/60125/my-device-is-freezing-and-restarting/"&gt;this&lt;/a&gt;?&lt;/p&gt;
&lt;p&gt;Could you try to speed up the use of the peer manager to see if we can reproduce quicker?&lt;/p&gt;
&lt;p&gt;Maybe it is an idea to clear the RESETREAS register at application startup too, to pinpoint the actual reset reason.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>