<?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 not advertising</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/21656/nrf51822-not-advertising</link><description>Hello, I am using an nrf51822 but have no success in advertising.
I tried so far to load the ble_app_template from the peripheral examples where I&amp;#39; ve only changed 
 #define APP_ADV_INTERVAL 10
 #define APP_ADV_TIMEOUT_IN_SECONDS 0
 
 I tried to</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 02 May 2017 09:01:39 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/21656/nrf51822-not-advertising" /><item><title>RE: nrf51822 not advertising</title><link>https://devzone.nordicsemi.com/thread/85008?ContentTypeID=1</link><pubDate>Tue, 02 May 2017 09:01:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a6fc365e-1503-4516-8bcb-b06b7b950694</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Great that it finally worked! I was not able to open the schematics to check if the module uses external crystal or not. But, I see that the RIOT OS board-files configures the module to use the internal RC oscillator.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf51822 not advertising</title><link>https://devzone.nordicsemi.com/thread/85007?ContentTypeID=1</link><pubDate>Sat, 29 Apr 2017 07:31:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7732267c-8106-4eb8-ae7a-4048226b7416</guid><dc:creator>normanfust</dc:creator><description>&lt;p&gt;Well I used those values and magic! It works. Thanks so much for your assistance, but I still don&amp;#39;t know why it doesn&amp;#39;t work with the external crystal. It is supposed to be the standard 32kHz as I was informed by the vendor of the module.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf51822 not advertising</title><link>https://devzone.nordicsemi.com/thread/85006?ContentTypeID=1</link><pubDate>Fri, 28 Apr 2017 13:05:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:de79e42a-236b-487b-be39-bb6462997757</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Where did you get 0x20001870 from ?&lt;/p&gt;
&lt;p&gt;Try IRAM base 0x20001fe8, and size 0x2018&lt;/p&gt;
&lt;p&gt;If that doesen&amp;#39;t work, try to switch to NRF_CLOCK_LF_SRC_RC.
in ble_stack_init() function:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;nrf_clock_lf_cfg_t clock_lf_cfg = NRF_CLOCK_LFCLKSRC;

clock_lf_cfg.source = NRF_CLOCK_LF_SRC_RC;
clock_lf_cfg.rc_ctiv=16;
clock_lf_cfg.rc_temp_ctiv=1;
clock_lf_cfg.xtal_accuracy=0;

// Initialize the SoftDevice handler module.
SOFTDEVICE_HANDLER_INIT(&amp;amp;clock_lf_cfg, NULL);
&lt;/code&gt;&lt;/pre&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf51822 not advertising</title><link>https://devzone.nordicsemi.com/thread/85005?ContentTypeID=1</link><pubDate>Thu, 27 Apr 2017 20:44:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6b397730-92ad-4d69-bb6d-227d6e9aebf1</guid><dc:creator>normanfust</dc:creator><description>&lt;p&gt;@Sigurd I tried to use
`IRAM base - 0x20001870
IRAM size(16 kB RAM) - 0x2790&lt;/p&gt;
&lt;p&gt;IROM base - 0x1B000
IROM size(256 kB Flash) - 0x25000`&lt;/p&gt;
&lt;p&gt;Doesn&amp;#39;t still advertise.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf51822 not advertising</title><link>https://devzone.nordicsemi.com/thread/85004?ContentTypeID=1</link><pubDate>Thu, 27 Apr 2017 13:03:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a27be56b-fead-4829-b892-d02d263b6633</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;I see that this is a QFAA version with 16kB RAM. Have you adjusted the RAM settings for this?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf51822 not advertising</title><link>https://devzone.nordicsemi.com/thread/85003?ContentTypeID=1</link><pubDate>Thu, 27 Apr 2017 12:58:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2c946cdc-dfc2-484b-9597-ff76b9b4c343</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;The Xtal target should be the CPU speed, and the nRF51 is running at 16 MHz, so you should not change that. What kind of programmer are you using? Are you able to debug? Here is a &lt;a href="https://devzone.nordicsemi.com/question/60125/my-device-is-freezing-and-restarting/"&gt;post&lt;/a&gt; on how to debug the application in Keil.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf51822 not advertising</title><link>https://devzone.nordicsemi.com/thread/85002?ContentTypeID=1</link><pubDate>Wed, 26 Apr 2017 15:45:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:64fb9b16-827f-4ef3-8f72-12d4c3cb1264</guid><dc:creator>normanfust</dc:creator><description>&lt;p&gt;Well, according to the layout found &lt;a href="https://github.com/RIOT-OS/RIOT/wiki/Board%3A-yunjia-nrf51822"&gt;here&lt;/a&gt; there is an oscillator. I am using 12.2.0. Never worked. I tried to set the oscillator at 32 MHz even in target options but still no luck.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf51822 not advertising</title><link>https://devzone.nordicsemi.com/thread/85001?ContentTypeID=1</link><pubDate>Wed, 26 Apr 2017 11:17:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4ad565b3-5f4c-4c5a-bb0b-ecd4f983c8b4</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Did it work before you changed the &lt;code&gt;APP_ADV_INTERVAL&lt;/code&gt; and &lt;code&gt;APP_ADV_TIMEOUT_IN_SECONDS&lt;/code&gt; ? Note that the Minimum Advertising interval is 20ms. (i.e. APP_ADV_INTERVAL &lt;strong&gt;32&lt;/strong&gt;, since adv. interval is in units of 0.625 ms).&lt;/p&gt;
&lt;hr /&gt;
&lt;p&gt;What SDK are you using? Is this custom board? Do you have an external 32 kHz crystal on your board?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>