<?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>Softdevice assertion failed pc: 16346</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/81020/softdevice-assertion-failed-pc-16346</link><description>Using: 
 
 nRF52832 
 SDK 15.3.0 
 SD S132 6.1.1 
 nRF5 SDK for Mesh 3.2.0 
 NRF_SDH_DISPATCH_MODEL == NRF_SDH_DISPATCH_MODEL_APPSH 
 
 Hi, i&amp;#39;m sometimes getting a crash when a phone connects, caused by softdevice assertion failed, pc: 16346. Can you</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 28 Oct 2021 11:35:27 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/81020/softdevice-assertion-failed-pc-16346" /><item><title>RE: Softdevice assertion failed pc: 16346</title><link>https://devzone.nordicsemi.com/thread/336446?ContentTypeID=1</link><pubDate>Thu, 28 Oct 2021 11:35:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d21658f4-9c4e-4ddd-af9f-1fca7a943367</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Hi Anne,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;We&amp;nbsp;hadn&amp;#39;t been aware of the bug until it&amp;#39;s reported by this case.&lt;/p&gt;
&lt;p&gt;Since&amp;nbsp;&lt;span&gt;the status of advertising in SD&amp;nbsp;is updated to&amp;nbsp;non-connectable right after a connection gets established before the next event. That will trigger an event to cause assert. &lt;a title="Not found." href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.s132.api.v6.1.1/group__nrf__error.html#ga349d25ada15be023e0d507f45ada682c"&gt;NRF_ERROR_NOT_FOUND&lt;/a&gt;&amp;nbsp;from&amp;nbsp;&lt;a href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.s132.api.v6.1.1/group___b_l_e___c_o_m_m_o_n___f_u_n_c_t_i_o_n_s.html#ga412b12b43c253dd744bcf574d6e86f43"&gt;sd_ble_evt_get&lt;/a&gt;&amp;nbsp; means&amp;nbsp;No events ready to be pulled.&amp;nbsp;Pulling events till getting NRF_ERROR_NOT_FOUND can make sure the statues be changed after the event next to the connection.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;-Amanda&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Softdevice assertion failed pc: 16346</title><link>https://devzone.nordicsemi.com/thread/336025?ContentTypeID=1</link><pubDate>Tue, 26 Oct 2021 14:35:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ce21e3b1-0bb2-4cab-8b55-2d9c9c39c986</guid><dc:creator>Anne van Rossum</dc:creator><description>&lt;p&gt;Hi Amanda,&lt;/p&gt;
&lt;p&gt;I&amp;#39;m on the same team, Crownstone, as Bart. :-) &lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;We are of course happy that you know this issue exists and how to work around. Satisfaction is perhaps not the right word choice. ;-)&lt;/li&gt;
&lt;li&gt;It would be great to understand why we have to pull events till we get NRF_ERROR_NOT_FOUND. What&amp;#39;s the underlying issue?&lt;/li&gt;
&lt;li&gt;If it&amp;#39;s already since Softdevice 6.0.0, is it that you didn&amp;#39;t know of this problem that no fix has been issued or is there something very fundamental about this which makes it difficult to solve within the Softdevice?&lt;/li&gt;
&lt;li&gt;If we use the workaround, will this completely fix this, or is it still possible to run into the assert so now and then?&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;Of course, ideally we would have a complete explanation including some diagrams if there are some timing issues involved. Perhaps there are also some configuration settings which influence this bug. An overall picture would be ideal. (Of course, keeping private what you want to keep private).&lt;/p&gt;
&lt;p&gt;Thanks in advance!&lt;/p&gt;
&lt;p&gt;Anne&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Softdevice assertion failed pc: 16346</title><link>https://devzone.nordicsemi.com/thread/335984?ContentTypeID=1</link><pubDate>Tue, 26 Oct 2021 13:07:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9086cf18-08e4-4530-b9d5-dec7c53498f4</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Yes.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Softdevice assertion failed pc: 16346</title><link>https://devzone.nordicsemi.com/thread/335972?ContentTypeID=1</link><pubDate>Tue, 26 Oct 2021 12:47:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8e5eaf29-970c-47a8-bd20-b224b4b11a5e</guid><dc:creator>bart</dc:creator><description>&lt;p&gt;Thanks!&lt;/p&gt;
&lt;p&gt;The assert that may occur is the same as what I get?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Softdevice assertion failed pc: 16346</title><link>https://devzone.nordicsemi.com/thread/335967?ContentTypeID=1</link><pubDate>Tue, 26 Oct 2021 12:40:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:314fcbc0-2e81-4edc-a995-7670c8dd21dd</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Our&amp;nbsp;&lt;span&gt;softdevice&amp;nbsp;team confirmed that&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;When the application starts a non-connectable advertiser right after a connection gets established, an assert may occur. The workaround is&amp;nbsp;&lt;span&gt;After pulling the event BLE_GAP_EVT_CONNECTED, pull events until sd_ble_evt_get returns NRF_ERROR_NOT_FOUND.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;This bug is present in all released SoftDevices since 6.0.0. Please let me know if you are satisfied with the workaround.&lt;/p&gt;
&lt;p&gt;-Amanda&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Softdevice assertion failed pc: 16346</title><link>https://devzone.nordicsemi.com/thread/335859?ContentTypeID=1</link><pubDate>Tue, 26 Oct 2021 06:54:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:88f0eb38-9ba3-47f9-8fbb-e00757b68d9d</guid><dc:creator>bart</dc:creator><description>&lt;p&gt;It&amp;#39;s using the softdevice to advertise connectable advertisements. When a connection is made, it will start advertising non-connectable advertisements.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Softdevice assertion failed pc: 16346</title><link>https://devzone.nordicsemi.com/thread/335847?ContentTypeID=1</link><pubDate>Tue, 26 Oct 2021 06:20:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:90da34c8-b38f-4517-af0b-06dbdc1d3cdf</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Can you check if the application is using both a connectable and non-connectable advertiser?&lt;/p&gt;
&lt;p&gt;-Amanda&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Softdevice assertion failed pc: 16346</title><link>https://devzone.nordicsemi.com/thread/335762?ContentTypeID=1</link><pubDate>Mon, 25 Oct 2021 13:16:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:828f6161-3fe9-479b-9a94-635241f44e0c</guid><dc:creator>bart</dc:creator><description>&lt;p&gt;Yes indeed, but only after a long time with a lot happening. Since it&amp;#39;s a softdevice assert, I have no clue where something goes wrong. Normally, a nordic engineer can tell from the PC.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Softdevice assertion failed pc: 16346</title><link>https://devzone.nordicsemi.com/thread/335756?ContentTypeID=1</link><pubDate>Mon, 25 Oct 2021 13:10:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e598246d-14d2-4fd5-a105-ddb2bee68b98</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Do you run the&amp;nbsp;&lt;a href="https://github.com/crownstone/bluenet"&gt;https://github.com/crownstone/bluenet&lt;/a&gt;&amp;nbsp;on nRF 52832 and then get the failed?&lt;/p&gt;
&lt;p&gt;-Amanda&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Softdevice assertion failed pc: 16346</title><link>https://devzone.nordicsemi.com/thread/335739?ContentTypeID=1</link><pubDate>Mon, 25 Oct 2021 12:23:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e6ea76bb-0012-4791-97db-dfa74a2ba295</guid><dc:creator>bart</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;GDB showed it crashed into:&lt;/p&gt;
&lt;p&gt;&lt;code&gt;app_error_fault_handler(uint32_t id, uint32_t pc, uint32_t info)&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;with: &lt;code&gt;id=1, pc=16346, info=0&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;Of course, the backtrace was empty, as it&amp;#39;s a softdevice assert.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I will try to reproduce the crash, but it takes several hours, and I don&amp;#39;t think it shows any extra info, since the info parameter is empty.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;It&amp;#39;s a rather big application, that uses connections, advertisements, and a lot of mesh traffic. You can find it &lt;a href="https://github.com/crownstone/bluenet"&gt;here&lt;/a&gt;.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Softdevice assertion failed pc: 16346</title><link>https://devzone.nordicsemi.com/thread/335727?ContentTypeID=1</link><pubDate>Mon, 25 Oct 2021 12:07:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8773a4e0-f98d-47d6-9c34-d68cce1a9e32</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;What is the application or the based example?&lt;/p&gt;
&lt;p&gt;Please kindly upload the completed debug log with the failed message. That could help us investigate the issue. Thanks.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Amanda&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>