<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://test-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>S130 Softdevice hard fault info request</title><link>https://test-devzone.nordicsemi.com/f/nordic-q-a/87719/s130-softdevice-hard-fault-info-request</link><description>I am getting a softdevice hard fault occasionally, on fully enclosed devices with no debugger port access. 
 Where can I find info on potential causes of this fault? 
 
 nrf51822, Softdevice S130 &amp;quot;s130_nrf51_2.0.1_softdevice.hex&amp;quot;, SDK 12.2 
 ID: 0x0000</description><dc:language>en-US</dc:language><generator>Telligent Community 13 Non-Production</generator><lastBuildDate>Tue, 10 May 2022 10:56:21 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://test-devzone.nordicsemi.com/f/nordic-q-a/87719/s130-softdevice-hard-fault-info-request" /><item><title>RE: S130 Softdevice hard fault info request</title><link>https://test-devzone.nordicsemi.com/thread/367155?ContentTypeID=1</link><pubDate>Tue, 10 May 2022 10:56:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:92e97956-d22a-4964-927a-101d93d2a4ab</guid><dc:creator>user8164</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;To elaborate: I do not suspect an error in your code, but rather a known bug in the SoftDevice. It may however be possible to mitigate the bug through changes in the application. It may be worth trying to send less data per connection interval, and/or to increase the connection interval.&lt;/p&gt;
&lt;p&gt;If what you see is the issue that we think it may be, then you will see (very seldom, but sometimes) that if you send more data than what fits for one connection event, there might be a glitch in the scheduling of the following connection event that triggers an assert. It will happen randomly at very low probability, similar to what you experience. (In your case, two asserts for 24 connections running for 5 days sending data every 10 seconds. If my calculations are correct that corresponds to around 2 ppm.) Since this is a timing related issue, any changes in code that affect timing in the sending of data might change the characteristics of the issue.&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Terje&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: S130 Softdevice hard fault info request</title><link>https://test-devzone.nordicsemi.com/thread/366957?ContentTypeID=1</link><pubDate>Mon, 09 May 2022 13:13:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5877cf48-78d5-43a9-bb97-37cf7826ce49</guid><dc:creator>user8164</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;The PC gives a strong hint there is something wrong with the SoftDevice scheduling. Usually this is due to timeslot bugs in the application, but in your case since you are not using timeslots this is less likely to be the case.&lt;/p&gt;
&lt;p&gt;There is one known issue affecting the given SoftDevice, which may be the issue that you are seeing now. It has been very difficult to reproduce, and was not fixed for the S130 (the latest S130 release, v2.0.1, was released prior to the fix of the given issue.) What connection parameters do you use, and how much data is transferred each burst?&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Terje&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: S130 Softdevice hard fault info request</title><link>https://test-devzone.nordicsemi.com/thread/366949?ContentTypeID=1</link><pubDate>Mon, 09 May 2022 12:58:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f41cc4ef-0835-42a9-85d3-6f8c87023eaa</guid><dc:creator>user114575</dc:creator><description>&lt;p&gt;&lt;span&gt;Were both the failing devices centrals? And the peripherals of those pairs has been working flawlessly?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Both faults were reported on centrals, we do not appear to have faults on any of the peripherals.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;No,&amp;nbsp;we will try the other troubleshooting steps next. &lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;However, we wanted to know first if the program counter would give any hints on what is happening in the softdevice: &lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Could this error be due to having 24 pairs of devices in one room? &lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Is the cause likely due to a bug in our application?&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: S130 Softdevice hard fault info request</title><link>https://test-devzone.nordicsemi.com/thread/366944?ContentTypeID=1</link><pubDate>Mon, 09 May 2022 12:54:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1c70c971-26f2-40f1-ae6c-0414a78fd909</guid><dc:creator>user8164</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Thanks for the additional info.&lt;/p&gt;
&lt;p&gt;Just to confirm: Were both the failing devices centrals? And the peripherals of those pairs has been working flawlessly?&lt;/p&gt;
&lt;p&gt;Have you tried increasing the error rate, e.g. by reducing the time between bursts, increasing the length of the bursts, increasing network traffic (adding more device pairs)? You may of course trigger other errors then, but if you get asserts at the same PC location it would likely be the same issue. Easier reproduction would mean easier to investigate.&lt;/p&gt;
&lt;p&gt;Have you tried to reproduce with units that do have debug port access, in order to get more info from the device (such as logs, do a proper debug session, etc.)?&lt;/p&gt;
&lt;p&gt;Since the error rate is relatively low, I assume you do not have any &lt;a href="https://www.nordicsemi.com/Products/Development-tools/nRF-Sniffer-for-Bluetooth-LE"&gt;sniffer trace&lt;/a&gt; from when the error happens?&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Terje&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: S130 Softdevice hard fault info request</title><link>https://test-devzone.nordicsemi.com/thread/366919?ContentTypeID=1</link><pubDate>Mon, 09 May 2022 12:13:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6b4273c4-33bf-447c-8d57-437d59a40950</guid><dc:creator>user114575</dc:creator><description>&lt;p&gt;&lt;span&gt;Is the application using the SoftDevice timeslot library?&lt;br /&gt;No. There are not any calls to&amp;nbsp;sd_radio_request() or&amp;nbsp;sd_radio_session_open()&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;What BLE roles are you using?&lt;/p&gt;
&lt;p&gt;This device is configured as a&amp;nbsp;central. During this test, the central device scans and reconnects to a single, previously paired/bonded custom device. The central periodically writes data to the peripheral, and periodically receives notifications.&amp;nbsp;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;This device is writing/getting notifications of the same messages over a&amp;nbsp;5 day period. Writes and notifications should&amp;nbsp;only happen in short bursts every 10 seconds, unless we have a bug in the application. &lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;We have 24 device pairs&amp;nbsp; (24 central, 24 peripheral) in the same small room.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;span&gt;What is the application doing immediately prior to the fault / does it appear in one specific situation?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;This is what we are trying to determine.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;span&gt;How often does it happen, and is it happening repeatedly for some devices and not for others, or is it an even spread?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;These faults appear random, we had it happen on 2 devices out of 24 during a 5 day test.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: S130 Softdevice hard fault info request</title><link>https://test-devzone.nordicsemi.com/thread/366899?ContentTypeID=1</link><pubDate>Mon, 09 May 2022 11:11:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c168a393-79da-471a-a0d1-e67715c18199</guid><dc:creator>user8164</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I can confirm it is a SoftDevice assert. It may be related to event scheduling in the SoftDevice, or it may be a timing issue.&lt;/p&gt;
&lt;p&gt;Is the application using the SoftDevice timeslot library?&lt;br /&gt;What BLE roles are you using?&lt;br /&gt;What is the application doing immediately prior to the fault / does it appear in one specific situation?&lt;br /&gt;How often does it happen, and is it happening repeatedly for some devices and not for others, or is it an even spread?&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Terje&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>