<?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>nrf51822 QFAB R7 programming issue from nrf51 DK</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/12032/nrf51822-qfab-r7-programming-issue-from-nrf51-dk</link><description>Hi,
I developed an application based on s110 using the nrf51 DK and it works fine. The DK is based on a nrf51422 QFAC which is the biggest one in terms of memory sizes. Now, I want to flash the same application on a custom board having a nrf51822 QFAB</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 24 Feb 2016 23:12:30 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/12032/nrf51822-qfab-r7-programming-issue-from-nrf51-dk" /><item><title>RE: nrf51822 QFAB R7 programming issue from nrf51 DK</title><link>https://devzone.nordicsemi.com/thread/45542?ContentTypeID=1</link><pubDate>Wed, 24 Feb 2016 23:12:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bdbad783-3014-464d-8918-f8c6bffa5d9a</guid><dc:creator>Marco Russi</dc:creator><description>&lt;p&gt;Hi, thanks a lot. It works now. I didn&amp;#39;t considered the second external crystal. Thanks!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf51822 QFAB R7 programming issue from nrf51 DK</title><link>https://devzone.nordicsemi.com/thread/45541?ContentTypeID=1</link><pubDate>Mon, 22 Feb 2016 10:24:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3a06d735-a07f-480a-8892-6e63ff93d5fb</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Yes. the softdevice will wait indefinitely for the crystal to start up if configured to use a non-existent LF crystal. Please try to change the following line in ble_stack_init():&lt;/p&gt;
&lt;p&gt;SOFTDEVICE_HANDLER_INIT(NRF_CLOCK_LFCLKSRC_XTAL_20_PPM, NULL);&lt;/p&gt;
&lt;p&gt;to:&lt;/p&gt;
&lt;p&gt;SOFTDEVICE_HANDLER_INIT(&lt;strong&gt;NRF_CLOCK_LFCLKSRC_RC_250_PPM_TEMP_4000MS_CALIBRATION&lt;/strong&gt;, NULL);&lt;/p&gt;
&lt;p&gt;This configures the softdevice to use the internal RC oscillator instead of the crystal.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf51822 QFAB R7 programming issue from nrf51 DK</title><link>https://devzone.nordicsemi.com/thread/45540?ContentTypeID=1</link><pubDate>Mon, 22 Feb 2016 10:19:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:87908db4-0029-4821-a5e5-146517777eaa</guid><dc:creator>Marco Russi</dc:creator><description>&lt;p&gt;Hi, do you mean an external 32KHz crystal? I can not see any in the schematics.
I haven&amp;#39;t tried to debug yet but thanks for suggesting, I&amp;#39;ll try it.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf51822 QFAB R7 programming issue from nrf51 DK</title><link>https://devzone.nordicsemi.com/thread/45539?ContentTypeID=1</link><pubDate>Mon, 22 Feb 2016 10:12:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:be998b8c-d551-4d58-aa30-73680537a220</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Just to be sure, can you confirm that you have the 32Khz crystal as well? This and the linker settings are the two most common mistakes when porting code from the DK to a custom board in my experience.&lt;/p&gt;
&lt;p&gt;Have you set up GDB or similar so you can debug the FW on your board? Then you could see where the program may be stuck or maybe asserting.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf51822 QFAB R7 programming issue from nrf51 DK</title><link>https://devzone.nordicsemi.com/thread/45538?ContentTypeID=1</link><pubDate>Mon, 22 Feb 2016 09:52:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:169826e7-fa2c-42bd-8a22-c30fe43a9ecb</guid><dc:creator>Marco Russi</dc:creator><description>&lt;p&gt;Hi,
the schematic is the same of the DK, there is an external 16MHz crystal. I have the hex file of another software previously developed for that board and it seems it works fine. This means that the board is ok. Could it be anything else?
Thanks.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf51822 QFAB R7 programming issue from nrf51 DK</title><link>https://devzone.nordicsemi.com/thread/45537?ContentTypeID=1</link><pubDate>Mon, 22 Feb 2016 09:47:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2fa5f7d2-d0b5-402b-9e9f-c4330a26627e</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;The linker settings looks correct for your chip variant. But does your board have a external crystal for the &lt;a href="https://devzone.nordicsemi.com/question/953/what-low-frequency-clock-sources-can-i-use/"&gt;LF clock&lt;/a&gt;? If not you need to make sure to use the internal RC oscillator in your code. Clock source is set in the BLE stack init routine.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>