<?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>app timer causing assertion after disconnection event</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/8483/app-timer-causing-assertion-after-disconnection-event</link><description>SoC: N RF51822 xxAC
Toolcha in: MDK-Lite Version 5.15
Softdevice: S110
SDK Version: 8.1.0_b6ed55f 
 I&amp;#39;m using a custom board which is functioning well. The app is functioning normally during advertisement and connection, but I am getting an assertion</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 20 Aug 2015 12:20:05 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/8483/app-timer-causing-assertion-after-disconnection-event" /><item><title>RE: app timer causing assertion after disconnection event</title><link>https://devzone.nordicsemi.com/thread/30956?ContentTypeID=1</link><pubDate>Thu, 20 Aug 2015 12:20:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5474b2d4-04fc-4b15-a3d3-9e0afa4224c9</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;thanks for coming back to update this thread. Ill mark your answer as accepted.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: app timer causing assertion after disconnection event</title><link>https://devzone.nordicsemi.com/thread/30955?ContentTypeID=1</link><pubDate>Wed, 19 Aug 2015 22:47:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:557dfa0e-b305-430b-9fa1-6b295747687b</guid><dc:creator>F</dc:creator><description>&lt;p&gt;The problem turned out to be that when the GATT client disconnected the system automatically started advertising again.  In my advertising event handler I started an app_timer to control LED animations.  When the advertising started advertising again automatically there was a repeated call to app_timer_start for the timer that was already started.  The system was apparently not amused and crashed.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: app timer causing assertion after disconnection event</title><link>https://devzone.nordicsemi.com/thread/30954?ContentTypeID=1</link><pubDate>Wed, 05 Aug 2015 05:00:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:135980bd-a43f-4bf6-9011-462236ce2673</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;set the breakpoint in assert handler, run in debugger and when the breakpoint hits,  see the call stack. You will know which function called it&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: app timer causing assertion after disconnection event</title><link>https://devzone.nordicsemi.com/thread/30953?ContentTypeID=1</link><pubDate>Tue, 04 Aug 2015 22:12:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:867bc1dd-8c18-4e3d-b789-79e502e662af</guid><dc:creator>F</dc:creator><description>&lt;p&gt;Sorry for the delayed response, but I am in China working on bringing up production on the board we hope to replace with the Nordic solution.  Unfortunately I do not know where the assertion is coming from.  The error handler does not provide a value for the line number and filename or even error code parameters.  Is there a way to find out?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: app timer causing assertion after disconnection event</title><link>https://devzone.nordicsemi.com/thread/30952?ContentTypeID=1</link><pubDate>Mon, 03 Aug 2015 07:21:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b856b849-1e40-4d25-bfe9-77ccf51b692f</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;If the app_timer_stop statement is commented out, where do you get assertion?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>