<?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 Timing Fault with LFXO</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/45546/softdevice-timing-fault-with-lfxo</link><description>Hello, 
 During development of a custom board, based on the BMD-300 module from Rigado, which uses an nRF52832, we ran into a SoftDevice fault under specific circumstances. 
 The fault occurs upon completion of Bluetooth Mesh provisioning of the device</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 02 May 2019 12:05:27 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/45546/softdevice-timing-fault-with-lfxo" /><item><title>RE: SoftDevice Timing Fault with LFXO</title><link>https://devzone.nordicsemi.com/thread/184871?ContentTypeID=1</link><pubDate>Thu, 02 May 2019 12:05:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c292bf22-be43-420e-9ebb-e02a2d3b87dd</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Based on your description, then it seems to be software related, and not a problem with the crystal.&lt;/p&gt;
&lt;p&gt;Are you hardfaulting, or are you entering the app_error_fault_handler() ?&lt;/p&gt;
&lt;p&gt;If you are entering the &lt;span&gt;app_error_fault_handler()&lt;/span&gt;, then please confirm what pc value that is printed in&lt;/p&gt;
&lt;p&gt;__LOG(LOG_SRC_APP, LOG_LEVEL_ERROR, &amp;quot;Softdevice assert: %u:%u\n&amp;quot;, pc, info);&lt;/p&gt;
&lt;p&gt;If you are hardfaulting, make sure that the hardfault library is used.&lt;/p&gt;
&lt;p&gt;Add these to your projects:&lt;/p&gt;
&lt;p&gt;$(SDK_ROOT)/components/libraries/hardfault/hardfault_implementation.c&lt;br /&gt; $(SDK_ROOT)/components/libraries/hardfault/nrf52/handler/hardfault_handler_gcc.c&amp;nbsp;&lt;/p&gt;
&lt;p&gt;And set HARDFAULT_HANDLER_ENABLED to 1 in sdk_config.h, and add DEBUG_NRF in your preprocessor definitions.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SoftDevice Timing Fault with LFXO</title><link>https://devzone.nordicsemi.com/thread/181893?ContentTypeID=1</link><pubDate>Fri, 12 Apr 2019 15:42:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:427d8ba4-1b94-426e-9de1-e2d89a68b702</guid><dc:creator>adrfc</dc:creator><description>[quote userid="15146" url="~/f/nordic-q-a/45546/softdevice-timing-fault-with-lfxo/181675"]Sounds like it could be a issue with the crystal. If the modules are old, and they used to work before, it could be crystal ageing worsening the accuracy. Are you able to desolder the crystal from the module, and solder&amp;nbsp;a new crystal(a crystal you know is working at 20ppm) to the module, and see if that solves the issue ?[/quote]
&lt;p&gt;The devices are less than 8 months old, so ageing is rather unlikely.&lt;/p&gt;
&lt;p&gt;Swapping the crystals between one working and one non-working (but otherwise identical) boards produces inconsistent results: on some piece the issue does &amp;quot;move&amp;quot; with the crystal, but at other times both boards start or stop working.&lt;/p&gt;
&lt;p&gt;We also realized that the issue has arisen even on a board that uses a different crystal (for which we are not able to retrieve the specifications right now, but should have been chosen as an equivalent replacement).&lt;/p&gt;
[quote userid="15146" url="~/f/nordic-q-a/45546/softdevice-timing-fault-with-lfxo/181675"]How did you do these measurements?[/quote]
&lt;p&gt;We tried two methods:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Measuring the crystal directly with an oscilloscope (with the obvious problems that brings).&lt;/li&gt;
&lt;li&gt;Connecting the tick event of an RTC peripheral to a GPIOTE toggle task through PPI, with LFXO as the LFCLK source.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;That said, we also tested the Light Switch Proxy Server example in the nRF5 SDK for Mesh 2.2.0, using&amp;nbsp;nRF5 SDK 15.0.0 and s132 6.0.0, and the issue did not arise on known non-working board.&lt;/p&gt;
&lt;p&gt;Alberto&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SoftDevice Timing Fault with LFXO</title><link>https://devzone.nordicsemi.com/thread/181675?ContentTypeID=1</link><pubDate>Thu, 11 Apr 2019 14:50:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0d303f8f-5c90-4431-9513-2d61cefc152b</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Sounds like it could be a issue with the crystal. If the modules are old, and they used to work before, it could be crystal ageing worsening the accuracy. Are you able to desolder the crystal from the module, and solder&amp;nbsp;a new crystal(a crystal you know is working at 20ppm) to the module, and see if that solves the issue ?&lt;/p&gt;
[quote user=""]As far as measurement is concerned, we could not find any conclusive difference in the clock frequency between working and non-working boards, but, without a reliable way to get the clock signal from the microcontroller, our measurements have been somewhat approximate.[/quote]
&lt;p&gt;&amp;nbsp;How did you do these measurements?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SoftDevice Timing Fault with LFXO</title><link>https://devzone.nordicsemi.com/thread/181259?ContentTypeID=1</link><pubDate>Wed, 10 Apr 2019 08:48:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:20621519-b883-452e-b19a-b0d26cb950bf</guid><dc:creator>adrfc</dc:creator><description>[quote userid="15146" url="~/f/nordic-q-a/45546/softdevice-timing-fault-with-lfxo/180035"]1) Do you see this issue when the project is compiled in both &amp;quot;Release&amp;quot; and &amp;quot;Debug&amp;quot; configuration?[/quote]
&lt;p&gt;Yes, the configuration makes no difference. It also does not matter whether a debugger is attached or not.&lt;/p&gt;
[quote userid="15146" url="~/f/nordic-q-a/45546/softdevice-timing-fault-with-lfxo/180035"]2) How&amp;nbsp;about NRF_CLOCK_LF_ACCURACY_50_PPM ?[/quote]
&lt;p&gt;Any value except 20ppm seems working.&lt;/p&gt;
[quote userid="15146" url="~/f/nordic-q-a/45546/softdevice-timing-fault-with-lfxo/180035"]No, if you set a worse(higher) ppm value , then the SoftDevice will take this into account in the timining calcuation (e.g. when to open/close BLE RX/TX window).&amp;nbsp;[/quote]
&lt;p&gt;That was my assumption, but by &amp;quot;increasing accuracy&amp;quot; I meant specifing a lower, rather than higher, ppm value.&lt;/p&gt;
[quote userid="15146" url="~/f/nordic-q-a/45546/softdevice-timing-fault-with-lfxo/180035"]Is it always this PC value you see?[/quote]
&lt;p&gt;Yes. To be clear: this is the PC of the frame before stopping in the hard fault handler.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SoftDevice Timing Fault with LFXO</title><link>https://devzone.nordicsemi.com/thread/180035?ContentTypeID=1</link><pubDate>Wed, 03 Apr 2019 13:34:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bd01e8ff-fe54-48f6-9aa2-04f10db78597</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;1) Do you see this issue when the project is compiled in both &amp;quot;Release&amp;quot; and &amp;quot;Debug&amp;quot; configuration?&lt;/p&gt;
&lt;p&gt;&lt;img height="102" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1554298417154v2.png" width="158" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
[quote userid="73646" url="~/f/nordic-q-a/45546/softdevice-timing-fault-with-lfxo"]to either 250ppm or 1ppm seems to fix the fault.[/quote]
&lt;p&gt;2) How&amp;nbsp;about NRF_CLOCK_LF_ACCURACY_50_PPM ?&lt;/p&gt;
[quote userid="73646" url="~/f/nordic-q-a/45546/softdevice-timing-fault-with-lfxo"]expected that increasing the specified accuracy would, if anything, lead to worse problems.[/quote]
&lt;p&gt;No, if you set a worse(higher) ppm value , then the SoftDevice will take this into account in the timining calcuation (e.g. when to open/close BLE RX/TX window).&amp;nbsp;&lt;/p&gt;
[quote userid="73646" url="~/f/nordic-q-a/45546/softdevice-timing-fault-with-lfxo"]0x000152d4 for S132 6.1.0 and 0x00015326 for 6.1.1[/quote]
&lt;p&gt;Is it always this PC value you see?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>