<?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>Crystal initialization problem</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/10008/crystal-initialization-problem</link><description>I&amp;#39;m experimenting problems with a nRF51822 custom board. Recently I managed to run the blinky sample project. Now I&amp;#39;m trying to test a BLE project, but I&amp;#39;m having problems with my external crystal. I have the 16MHz and the 32KHz crystals (There are details</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 03 Nov 2015 09:08:59 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/10008/crystal-initialization-problem" /><item><title>RE: Crystal initialization problem</title><link>https://devzone.nordicsemi.com/thread/37081?ContentTypeID=1</link><pubDate>Tue, 03 Nov 2015 09:08:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:47021206-470b-4e31-86d2-cf74759cbb0f</guid><dc:creator>Daniel</dc:creator><description>&lt;p&gt;It&amp;#39;s sound ok for me, I will try to test the crystal without the Openbeacon libraries. And for the map memory, I will leave it for another day. I really don&amp;#39;t know where to start! Anyway thank you, I hope you will here of me today in the afternoon.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Crystal initialization problem</title><link>https://devzone.nordicsemi.com/thread/37080?ContentTypeID=1</link><pubDate>Tue, 03 Nov 2015 08:59:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:56435354-b4c0-4a61-b099-5f99553bff38</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;I&amp;#39;m not familiar with the OpenBeacon code, and I&amp;#39;m not sure why you get the access violation. I found &lt;a href="http://www.keil.com/support/docs/814.htm"&gt;this&lt;/a&gt;, but Memory Map is not available in my Keil. You said you got blinky working, so I suggest you put the clock code into that, without any OpenBeacon code.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Crystal initialization problem</title><link>https://devzone.nordicsemi.com/thread/37079?ContentTypeID=1</link><pubDate>Mon, 02 Nov 2015 16:46:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5942d71f-36a5-4dd1-8f44-82b17178aa82</guid><dc:creator>Daniel</dc:creator><description>&lt;p&gt;The board is the &lt;a href="http://get.openbeacon.org/device.html"&gt;OpenBeacon&lt;/a&gt; Physical-Web Tag. I&amp;#39;m trying the example code from &lt;a href="http://get.openbeacon.org/source/"&gt;here&lt;/a&gt;. And with the library that openbeacon provide, instead of the Nordic packages (and the Softdevice). I&amp;#39;m really don&amp;#39;t sure that I&amp;#39;m doing the right thing. Just experimenting here. (from the openbeacon site: &amp;quot;our beaconing firmware is implemented on the bare SoC: no annoying SoftDevice that limits your possibilities&amp;quot;, I don&amp;#39;t have nothing against the SoftDevice :)
So, the thing is that the code get stuck in the check of the 32 kHz crystal. For now, it works commenting that line, but I&amp;#39;m not sure if the beacon is working with the 32 kHz crystal, or the 16 MHz cristall, or the internal one! How can I check that? Thank you!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Crystal initialization problem</title><link>https://devzone.nordicsemi.com/thread/37078?ContentTypeID=1</link><pubDate>Mon, 02 Nov 2015 14:18:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dd1aaefb-a534-4276-954f-fa70bf7861b4</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;What do you mean by you are testing a BLE project, but you are not using a SoftDevice?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Crystal initialization problem</title><link>https://devzone.nordicsemi.com/thread/37077?ContentTypeID=1</link><pubDate>Sun, 01 Nov 2015 08:20:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:826673b4-5f5a-42a2-b044-9eef1c0eee9c</guid><dc:creator>Daniel</dc:creator><description>&lt;p&gt;An actualization.
I tried to force the code, and just go ahead changing the 32kHz crystal start like this&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;NRF_CLOCK-&amp;gt;LFCLKSRC = (CLOCK_LFCLKSRCCOPY_SRC_Xtal &amp;lt;&amp;lt; CLOCK_LFCLKSRCCOPY_SRC_Pos);
NRF_CLOCK-&amp;gt;EVENTS_LFCLKSTARTED = 0;
NRF_CLOCK-&amp;gt;TASKS_LFCLKSTART = 1;
NRF_CLOCK-&amp;gt;EVENTS_LFCLKSTARTED = 1;
while(NRF_CLOCK-&amp;gt;EVENTS_LFCLKSTARTED == 0);
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Anyway, the code get stucks in the line  while(NRF_CLOCK-&amp;gt;EVENTS_LFCLKSTARTED == 0);.
It is supposed to read (or write) to the address 0x40000000 (the NRF address). But the memory at 0x40000000 and after shows complete empty (only 00). I was expecting to see the peripheral data at 0x400xx000 but The debugger show only 00.
I&amp;#39;m really very stuck here. Please help.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>