<?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>Can not enable Softdevice with nRF52 Preview DK</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/9138/can-not-enable-softdevice-with-nrf52-preview-dk</link><description>Hi, 
 I am trying to get my mesh running on the nRF52 Preview DK but calling 
 SOFTDEVICE_HANDLER_INIT(NRF_CLOCK_LFCLKSRC_XTAL_20_PPM, NULL);
 
 will break my program. If I leave the Softdevice disabled, the rest of my code runs okay while constantly</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 10 Sep 2015 08:30:15 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/9138/can-not-enable-softdevice-with-nrf52-preview-dk" /><item><title>RE: Can not enable Softdevice with nRF52 Preview DK</title><link>https://devzone.nordicsemi.com/thread/33679?ContentTypeID=1</link><pubDate>Thu, 10 Sep 2015 08:30:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bac3ee67-a66d-47ef-a6d1-1d4ea85fa7b8</guid><dc:creator>Marius Heil</dc:creator><description>&lt;p&gt;Thanks a lot, that was the right hint. I&amp;#39;ve enabled floating point ABI support for my project which caused the linker to complain because the CMSIS library that I am using was not compiled with FPU support. I recompiled that library with FPU support and my mesh as well. I had a wrong include as well, which I just fixed.
The result is just great.&lt;/p&gt;
&lt;p&gt;My mesh seems to be working flawlessly with the nRF52 DK and some nRF51 Dongles. Didn&amp;#39;t expect it to be that easy.....&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Can not enable Softdevice with nRF52 Preview DK</title><link>https://devzone.nordicsemi.com/thread/33678?ContentTypeID=1</link><pubDate>Wed, 09 Sep 2015 23:58:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a699467e-0122-45fd-be69-08a57c845c59</guid><dc:creator>RK</dc:creator><description>&lt;p&gt;That&amp;#39;s the right address. Are you building with floating point enabled? There&amp;#39;s code in SystemInit which enables the FP unit if so, ensure it&amp;#39;s being compiled in (lines 83 to 87 of system_nrf52.c). The current softdevice erroneously requires the FP unit to be enabled.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Can not enable Softdevice with nRF52 Preview DK</title><link>https://devzone.nordicsemi.com/thread/33677?ContentTypeID=1</link><pubDate>Wed, 09 Sep 2015 16:08:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:183bba05-9fed-4b74-86cb-f6a974a3d171</guid><dc:creator>Marius Heil</dc:creator><description>&lt;p&gt;According to my debugger, the program first executes the call:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;svc 16
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;which makes the processor jump to address 0x860. Would that be the correct address or is there something wrong?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Can not enable Softdevice with nRF52 Preview DK</title><link>https://devzone.nordicsemi.com/thread/33676?ContentTypeID=1</link><pubDate>Wed, 09 Sep 2015 15:22:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1cc263cf-7c56-4b71-8c6d-a4196e88215f</guid><dc:creator>Marius Heil</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;thanks. I&amp;#39;ve tryed to start the clock with the synthesized source but did not notice any difference. Then, I used the following code to start up the low frequency clock:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;//Try to start Low frequency clock manually
NRF_CLOCK-&amp;gt;LFCLKSRC = NRF_CLOCK_LFCLKSRC_XTAL_20_PPM;
NRF_CLOCK-&amp;gt;TASKS_LFCLKSTART = 1;

u32 a = 0;
while(true){
	while(a &amp;lt; 10000000){
		a++;
	}
	logt(&amp;quot;ERROR&amp;quot;, &amp;quot;running? %d&amp;quot;, NRF_CLOCK-&amp;gt;LFCLKSTAT);
	if(NRF_CLOCK-&amp;gt;LFCLKSTAT != 0){
		logt(&amp;quot;ERROR&amp;quot;, &amp;quot;continue&amp;quot;);
		break;
	}
}
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;But this did not help either. The low frequency clock starts successfully after some time (65536: indicating that is is started and that it is using the RC source).&lt;/p&gt;
&lt;p&gt;Maybe this is the GCC ssetup that I am using where I had to change line 56 in the nrf_svc.h to:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;        &amp;quot;bx r14&amp;quot; : : &amp;quot;I&amp;quot; ((uint16_t)number) : &amp;quot;r0&amp;quot; \
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;to compile it. Maybe this is jumping to the wrong address.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Can not enable Softdevice with nRF52 Preview DK</title><link>https://devzone.nordicsemi.com/thread/33675?ContentTypeID=1</link><pubDate>Wed, 09 Sep 2015 11:40:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e72dfe29-9ed5-4034-91e2-cae5bb1bc4ba</guid><dc:creator>MartinBL</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;Code stuck in SOFTDEVICE_HANDLER_INIT() usually indicates a faulty low frequency crystal.
To see if this is an issue try to write:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;SOFTDEVICE_HANDLER_INIT(NRF_CLOCK_LFCLKSRC_SYNTH_250_PPM, NULL);
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;instead to synthesize a low frequency clock from the 16MHz crystal. You can also try to &lt;a href="https://devzone.nordicsemi.com/question/37723/softdevice_handler_init-hangs-with-bad-crystal/"&gt;start the LFCLK manually&lt;/a&gt; and check whether it starts or not.&lt;/p&gt;
&lt;p&gt;It can also be a SDK/Softdevice incompatibility. Have you set your RAM and ROM addresses in &amp;quot;Target Options -&amp;gt; Target&amp;quot; so that they match your Softdevice?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>