<?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>Moving from nRF51 DK to nRF51822 custom board</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/14497/moving-from-nrf51-dk-to-nrf51822-custom-board</link><description>(/attachment/41972e0db37f912bba4731a3b5ffe839)(/attachment/0838bef738e72c89e2a9af90d6e3f640)(/attachment/a62ce68db8c9d23b285a9f94a5c9beac)I have been developing on the nRF51 DK for some time with no trouble. I am using nRFgo studio to erase and flash</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 17 Jun 2016 06:41:45 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/14497/moving-from-nrf51-dk-to-nrf51822-custom-board" /><item><title>RE: Moving from nRF51 DK to nRF51822 custom board</title><link>https://devzone.nordicsemi.com/thread/55340?ContentTypeID=1</link><pubDate>Fri, 17 Jun 2016 06:41:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0fed1517-6e03-4927-b6ed-1d4c9d19a89a</guid><dc:creator>FormerMember</dc:creator><description>&lt;p&gt;Good that you were able to make your board work!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Moving from nRF51 DK to nRF51822 custom board</title><link>https://devzone.nordicsemi.com/thread/55339?ContentTypeID=1</link><pubDate>Thu, 16 Jun 2016 18:16:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bce191fd-a467-480a-a3fe-e92fcaed9a2c</guid><dc:creator>jtrovato</dc:creator><description>&lt;p&gt;UPDATE: got the board working! For some reason the 16MHz crystals we order for this build were not working with the circuit. Replacing the crystals got the boards working right away!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Moving from nRF51 DK to nRF51822 custom board</title><link>https://devzone.nordicsemi.com/thread/55338?ContentTypeID=1</link><pubDate>Thu, 16 Jun 2016 16:33:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e83c2a10-bbe3-4266-ba83-3117d488d80d</guid><dc:creator>jtrovato</dc:creator><description>&lt;p&gt;I added an image of the layout to the original post. I tried to add the schematic as an attachment as well. let me know if it got through.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Moving from nRF51 DK to nRF51822 custom board</title><link>https://devzone.nordicsemi.com/thread/55337?ContentTypeID=1</link><pubDate>Thu, 16 Jun 2016 06:16:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b02f1f28-67be-46b0-ac9f-efe897adfd17</guid><dc:creator>FormerMember</dc:creator><description>&lt;p&gt;Could you show what the layout of the chip/antenna part looks like? If you want to keep it confidential, you can create a new support case on www.nordicsemi.com and refer to this thread.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Moving from nRF51 DK to nRF51822 custom board</title><link>https://devzone.nordicsemi.com/thread/55335?ContentTypeID=1</link><pubDate>Wed, 15 Jun 2016 20:01:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2abffc2d-e1a4-434c-9bcc-9fc8b306a4d3</guid><dc:creator>jtrovato</dc:creator><description>&lt;p&gt;UPDATE: after changing clock settings to the following I am able to initialize everything (or at least the program now runs through to the infinite loop in main).&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;#define NRF_CLOCK_LFCLKSRC      {.source   = NRF_CLOCK_LF_SRC_RC,/*NRF_CLOCK_LF_SRC_XTAL,*/      
                                                     .rc_ctiv       = 16, 
                                                     .rc_temp_ctiv  = 16,
                                                     .xtal_accuracy = NRF_CLOCK_LF_XTAL_ACCURACY_20_PPM}
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Unfortunately, the device is still not advertising such that my phone can see. I have put in multiple print statements that indicate that the device is advertising; calls to  &lt;code&gt;sd_ble_gap_adv_start()&lt;/code&gt; returns &lt;code&gt;NRF_SUCCESS&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;Any ideas?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Moving from nRF51 DK to nRF51822 custom board</title><link>https://devzone.nordicsemi.com/thread/55336?ContentTypeID=1</link><pubDate>Wed, 15 Jun 2016 17:32:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:051813ea-e8f1-4007-9ea3-adf258229126</guid><dc:creator>jtrovato</dc:creator><description>&lt;p&gt;Hi Kristen,&lt;/p&gt;
&lt;p&gt;Thanks for the reply! Your answers are consistent with what we thought originally. To further address your points:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;we actually swapped an nRF51822 with an nRF51422 on our custom HW and they fail in the same spot. Specifically, at line 285 in softdevice_handler.c, &lt;code&gt;err_code = sd_softdevice_enable(p_clock_lf_cfg, softdevice_fault_handler);&lt;/code&gt; This looks like the first time the initialization actually makes a call to softdevice compiled code.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;We have double checked the crystal and it seems to be mounted correctly. We are not able to see a sine wave on the crystal output, but when removing the crystal, the chip does not function at all.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;that&amp;#39;s what I thought. Also fits with the fact that both nRF51422 QFAC and nRF51822 QFAC are experiencing the same problem.&lt;/p&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;We have tried numerous examples, and none have been able to initialize BLE. I think our problem is with interacting with the softdevice.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Moving from nRF51 DK to nRF51822 custom board</title><link>https://devzone.nordicsemi.com/thread/55334?ContentTypeID=1</link><pubDate>Wed, 15 Jun 2016 07:54:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:43a94152-11ed-4a9b-8253-8a03ea642a75</guid><dc:creator>FormerMember</dc:creator><description>&lt;p&gt;&lt;strong&gt;1)&lt;/strong&gt; Code running on nRF51422 (except for ANT), should work without any changes on nRF51822 as well.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;2)&lt;/strong&gt; If you are not sure if the 16 MHz crystal works correctly or not, could you verify that the crystal has been correctly mounted on the PCB, not shifted by 90 degrees for instance? The 32 kHz internal RC oscillator uses the 16 MHz crystal to get the correct frequency.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;3)&lt;/strong&gt; No, there shouldn&amp;#39;t be other configurations that you need to set. Since you have a  nRF51822 QFAC chip, your chip should have the same amount of flash/RAM as the chip on the DK, 256 kB flash and 32 kB RAM.&lt;/p&gt;
&lt;p&gt;Could you test one of the examples from the SDK (if that is not what you already are doing), just to make sure that the BLE initialization is being done correctly.&lt;/p&gt;
&lt;p&gt;Does the code with the NRF_CLOCK_LFCLKSRC setting work on your DK?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>