<?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>custom hardware nRF52832 hangs during softdevice initialization</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/59078/custom-hardware-nrf52832-hangs-during-softdevice-initialization</link><description>I have a custom board using the nRF52832 QFAA with SDK 15.3.0 and SoftDevice132 6.1.1. I&amp;#39;m also using an external 32kHz crystal for the softdevice clock. There are two hardware versions of this board I&amp;#39;m working with: one works fine my code runs and I</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 17 Mar 2020 15:33:59 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/59078/custom-hardware-nrf52832-hangs-during-softdevice-initialization" /><item><title>RE: custom hardware nRF52832 hangs during softdevice initialization</title><link>https://devzone.nordicsemi.com/thread/240300?ContentTypeID=1</link><pubDate>Tue, 17 Mar 2020 15:33:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7abb6a28-34f9-4fdf-ac92-98ae6d0c7972</guid><dc:creator>Aaron</dc:creator><description>&lt;p&gt;Yep, that worked. Really strange the same thing happened to 3 different boards. I need to look at the xtal on an oscope to make sure this isn&amp;#39;t anything else.&lt;/p&gt;
&lt;p&gt;Thanks for your assistance!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: custom hardware nRF52832 hangs during softdevice initialization</title><link>https://devzone.nordicsemi.com/thread/240231?ContentTypeID=1</link><pubDate>Tue, 17 Mar 2020 11:41:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d684ec05-b358-4422-99cf-26c9eeeef2b1</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;Have you tried to solder back the &amp;quot;defective&amp;quot; xtal? I think it might have been some margin solderbridge below the crystal.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Kenneth&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: custom hardware nRF52832 hangs during softdevice initialization</title><link>https://devzone.nordicsemi.com/thread/240136?ContentTypeID=1</link><pubDate>Mon, 16 Mar 2020 20:33:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:54c16fa6-a880-4a0b-895e-747c27e69d5b</guid><dc:creator>Aaron</dc:creator><description>&lt;p&gt;Ok, I replaced the xtal with the same type and it works.&lt;/p&gt;
&lt;p&gt;However, I&amp;#39;m still unsure how the boards are failing. This is for a product, so I&amp;#39;ll need to determine why. All I did was hot air off the regulator and the board&amp;#39;s xtal fails. To fix the boards, I hot air the &amp;quot;defective&amp;quot; xtal off and hot air the same type back on and it works.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Any idea why this would be happening?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: custom hardware nRF52832 hangs during softdevice initialization</title><link>https://devzone.nordicsemi.com/thread/240096?ContentTypeID=1</link><pubDate>Mon, 16 Mar 2020 16:03:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:66d851c0-c8fe-49d6-9aa4-c93213abefcf</guid><dc:creator>Kenneth</dc:creator><description>[quote user="aawcorn"]So I guess this points to my 32kHz xtal either being defective or out of spec?[/quote]
&lt;p&gt;Yes it&amp;#39;s defective, I suggest to check that there is no short (e.g. solderbridge) to ground and try a different/new 32kHz crystal.&lt;/p&gt;
&lt;p&gt;The&amp;nbsp;&lt;span&gt;NRF_SDH_CLOCK_LF_RC_TEMP_CTIV&amp;nbsp;can&amp;#39;t be used with external crystal, so it should be 0 when using external crystal.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Kenneth&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: custom hardware nRF52832 hangs during softdevice initialization</title><link>https://devzone.nordicsemi.com/thread/240085?ContentTypeID=1</link><pubDate>Mon, 16 Mar 2020 15:28:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a5452bea-c4d7-4654-bb2e-3779c6174206</guid><dc:creator>Aaron</dc:creator><description>&lt;p&gt;Another thing I&amp;#39;m noticing, on the good boards I use these settings in sdk.config.h and everything works fine.&lt;/p&gt;
&lt;p&gt;#define NRF_SDH_CLOCK_LF_SRC 1&lt;br /&gt;#define NRF_SDH_CLOCK_LF_RC_CTIV 0&lt;br /&gt;#define NRF_SDH_CLOCK_LF_RC_TEMP_CTIV 0&lt;br /&gt;#define NRF_SDH_CLOCK_LF_ACCURACY 7&lt;/p&gt;
&lt;p&gt;When I change&amp;nbsp;NRF_SDH_CLOCK_LF_RC_TEMP_CTIV to 2 (from 0), I get the same fatal error as the bad boards.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Why does changing this value have an affect if I&amp;#39;m set to use external xtal (LF_SRC 1)? I&amp;#39;m not even using the internal RC.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: custom hardware nRF52832 hangs during softdevice initialization</title><link>https://devzone.nordicsemi.com/thread/240046?ContentTypeID=1</link><pubDate>Mon, 16 Mar 2020 14:28:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fed2f485-0e33-40ef-b8ed-20d0a305d9a4</guid><dc:creator>Aaron</dc:creator><description>&lt;p&gt;I just tried your first suggestion with both boards. With the board that isn&amp;#39;t working (no regulator), the LFCLK does not start and goes into the else statement. With the board that is working, the LFCLK does start and goes into the if statement.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I also tried your second suggestion and the internal RC does in fact work on the bad board and goes into advertising, but when I set LF_SRC to 1 again, it goes into fatal error.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;So I guess this points to my 32kHz xtal either being defective or out of spec? I don&amp;#39;t think my rework on the PCBs affected anything. It&amp;#39;s odd because both boards are the same and one just has the regulator removed, that is it. I&amp;#39;ve tried on multiple boards with the same result.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: custom hardware nRF52832 hangs during softdevice initialization</title><link>https://devzone.nordicsemi.com/thread/239898?ContentTypeID=1</link><pubDate>Mon, 16 Mar 2020 08:44:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:90312cd7-c78c-4dc9-bc8d-eff93d350707</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;Have you tried to start the external 32kHz crytal manually without the softdevice, just to confirm it works as intended? You can try:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;	NRF_CLOCK-&amp;gt;LFCLKSRC = (CLOCK_LFCLKSRC_SRC_Xtal &amp;lt;&amp;lt; CLOCK_LFCLKSRC_SRC_Pos);
	NRF_CLOCK-&amp;gt;EVENTS_LFCLKSTARTED = 0;
	NRF_CLOCK-&amp;gt;TASKS_LFCLKSTART = 1;
	
	// Wait for the low frequency clock to start
	nrf_delay_ms(1000);
	
	if(NRF_CLOCK-&amp;gt;EVENTS_LFCLKSTARTED == 1)
	{
	// hurray there is an external LFCLK present.
	// you can set external LFCLK when enable softdevice
	NRF_CLOCK-&amp;gt;EVENTS_LFCLKSTARTED = 0;
	}
	else
	{
	// no external lfclk present, you can use internal LFCK when enable softdevice
	}&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Also, can you try to use the internal&amp;nbsp;RC&amp;nbsp;for test (instead of external 32kHz) when enable softdevice?&amp;nbsp;For instance by change in sdk_config.h:&lt;/p&gt;
&lt;p&gt;#define NRF_SDH_CLOCK_LF_SRC 0&lt;br /&gt;#define NRF_SDH_CLOCK_LF_RC_CTIV 16&lt;br /&gt;#define NRF_SDH_CLOCK_LF_RC_TEMP_CTIV 2&lt;br /&gt;#define NRF_SDH_CLOCK_LF_ACCURACY 1&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>