<?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>Crash due to softdevice assert (id:0x1 pc:0x3FDA info:0x0)</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/78478/crash-due-to-softdevice-assert-id-0x1-pc-0x3fda-info-0x0</link><description>Hi. We are using the nRF52 sdk v15.2 with S132 v6.1.0 on a nRF52832. Sometimes, when connecting, we get a crash with 
 identifier 0x1 
 program counter 0x3FDA 
 fault information 0x0 
 In the log when a connection succeeds, we see: 
 
 
 When it fails</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 25 Aug 2021 13:19:53 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/78478/crash-due-to-softdevice-assert-id-0x1-pc-0x3fda-info-0x0" /><item><title>RE: Crash due to softdevice assert (id:0x1 pc:0x3FDA info:0x0)</title><link>https://devzone.nordicsemi.com/thread/326568?ContentTypeID=1</link><pubDate>Wed, 25 Aug 2021 13:19:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a28870af-3549-4bd2-a7e4-45f4aa0c73bd</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
[quote user="Wouter Dhondt"]why we only have to wait to start advertising after a connection. Why isn&amp;#39;t this needed on a disconnect (and switch from non-connectable to connectable)?[/quote]
&lt;p&gt;&amp;nbsp;it seems that there could be a race condition in the GAP module where it might get to a point in time where it thinks it is running a non connectible advertising while getting a connection.&amp;nbsp; if you wait few 10&amp;#39;s ms before you start the non connectable advertising, it should work as the GAP should be in a settled state by then.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Crash due to softdevice assert (id:0x1 pc:0x3FDA info:0x0)</title><link>https://devzone.nordicsemi.com/thread/325680?ContentTypeID=1</link><pubDate>Thu, 19 Aug 2021 09:51:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c5931ef1-e385-44fb-a20b-308f8f571f61</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;My colleague who worked with you with the previous issue is on summer holidays and will be back on Monday. I need to understand more on the indepth technical behavior of this bug from him. We need to wait until he is back.&amp;nbsp; There are not much details that are recorded that i can see to get more indepth insights on this. Sorry to make you wait and Thank you for understanding.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Crash due to softdevice assert (id:0x1 pc:0x3FDA info:0x0)</title><link>https://devzone.nordicsemi.com/thread/325517?ContentTypeID=1</link><pubDate>Wed, 18 Aug 2021 12:52:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d57a47c4-d56b-42fa-b9d7-253240544835</guid><dc:creator>Eddie</dc:creator><description>&lt;p&gt;Also, wondering why we only have to wait to start advertising after a connection. Why isn&amp;#39;t this needed on a disconnect (and switch from non-connectable to connectable)?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;div id="ConnectiveDocSignExtentionInstalled"&gt;&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Crash due to softdevice assert (id:0x1 pc:0x3FDA info:0x0)</title><link>https://devzone.nordicsemi.com/thread/325403?ContentTypeID=1</link><pubDate>Wed, 18 Aug 2021 07:03:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0f569708-b10c-4f64-a2ed-631da68219ff</guid><dc:creator>Eddie</dc:creator><description>&lt;p&gt;I believe we have not changed anything, except the way scanning is started/stopped. We set the timeout to 0 and use our own timer to start and stop scanning. Looks like the same problem is back. So it&amp;#39;s the advertising that needs to be changed?&lt;/p&gt;
&lt;p&gt;We are advertising non-connectable after connectable (and the reverse) when needed. Waiting a few 10s of ms before starting advertising after a connection seems like a dirty fix. Are we sure this is going to solve the problem? Would it not be better to solve the race condition in the softdevice?&lt;/p&gt;
&lt;div id="ConnectiveDocSignExtentionInstalled"&gt;&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Crash due to softdevice assert (id:0x1 pc:0x3FDA info:0x0)</title><link>https://devzone.nordicsemi.com/thread/324848?ContentTypeID=1</link><pubDate>Fri, 13 Aug 2021 12:36:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:58510540-fe60-4dab-9dcc-3fda44459d8c</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;It looks like you had this similar issue one year ago in the support case&amp;nbsp;249159 requested by&amp;nbsp;bds@ticto.com.&lt;/p&gt;
&lt;p&gt;In that issue&amp;nbsp;my colleague wrote that&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&lt;em&gt;I can now confirm we have seen some issues like this, where there is a potential race condition in the SoftDevice. Especially if you do non-connectable advertising after connectable advertising. Is that what you do?&lt;/em&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&lt;em&gt;A proposed workaround is to not advertise right after getting a connection, but rather wait a few 10s of ms before restarting the advertising. Does this make the asserts go away for your device?&lt;/em&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&lt;em&gt;With additional information about the nature of advertising/scanning/connections we may be able to tell more about the issue and confirm if the potential issues we have identified are the same as you are experiencing. Information such as type of advertising (connectable / non-connectable), scanning, connection parameters, do you often change the advertising data, etc.&lt;/em&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;Have you removed the scan timeout timers that you have implemented as a workaround for this?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Crash due to softdevice assert (id:0x1 pc:0x3FDA info:0x0)</title><link>https://devzone.nordicsemi.com/thread/324767?ContentTypeID=1</link><pubDate>Fri, 13 Aug 2021 07:34:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5411db9b-9683-4979-a5b3-928fbdd64775</guid><dc:creator>Eddie</dc:creator><description>&lt;p&gt;We are not using advertising extensions. We are advertising very fast (20ms) and have changing advertising data and scan response data at this frequency. We are also scanning (passive scanning, no filter). And we accept 2 ble connections&amp;nbsp; (so advertising in BLE_GAP_ADV_TYPE_CONNECTABLE_SCANNABLE_UNDIRECTED with 0 or 1 connection, advertising BLE_GAP_ADV_TYPE_NONCONNECTABLE_SCANNABLE_UNDIRECTED with 2 ble connections).&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;div id="ConnectiveDocSignExtentionInstalled"&gt;&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Crash due to softdevice assert (id:0x1 pc:0x3FDA info:0x0)</title><link>https://devzone.nordicsemi.com/thread/324756?ContentTypeID=1</link><pubDate>Fri, 13 Aug 2021 07:00:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8ae92c5e-82ba-4fd3-811a-6ca7db171f0f</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;It seems to me based on your PC value that the assert is happening inside the scanner where the controller concluded that the advertising event has concluded on wrong conditions. Is it possible for me to reproduce this on my end? Are you using Advertising Extensions?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>