<?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>Combining RTC example(peripheral) and with BLE peripheral</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/20293/combining-rtc-example-peripheral-and-with-ble-peripheral</link><description>Hello, 
 I want to combine the RTC example from the peripheral to one of the BLE peripheral examples but the problem is that the BLE peripheral examples need the softdevice whereas the RTC example won&amp;#39;t work with that softdevice uploaded.Please help</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 08 Mar 2017 15:07:15 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/20293/combining-rtc-example-peripheral-and-with-ble-peripheral" /><item><title>RE: Combining RTC example(peripheral) and with BLE peripheral</title><link>https://devzone.nordicsemi.com/thread/79062?ContentTypeID=1</link><pubDate>Wed, 08 Mar 2017 15:07:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3eb067ee-1ef2-4494-838b-11e8d56dd4e7</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;The examples in the folder &lt;code&gt;SDK_folder\examples\peripheral&lt;/code&gt; does not use the SoftDevice, and are placed/flashed to the bottom of the flash-memory on the nRF52. The Bluetooth examples in the &lt;code&gt;SDK_folder\examples\ble_peripheral&lt;/code&gt; folder uses the SoftDevice. The SoftDevice is placed at the bottom of the flash, while the application code (your code in Keil) is placed on top of where the SoftDevice is located in the flash-memory.&lt;/p&gt;
&lt;hr /&gt;
&lt;p&gt;If your goal is to combine the RTC example with an example in the ble_peripheral folder, you should use the ble_peripheral example and add the RTC functionality/code to that example.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Combining RTC example(peripheral) and with BLE peripheral</title><link>https://devzone.nordicsemi.com/thread/79064?ContentTypeID=1</link><pubDate>Wed, 08 Mar 2017 14:57:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:65b64d87-cedf-417d-b95f-5fd1121546cb</guid><dc:creator>Haseeb</dc:creator><description>&lt;p&gt;i am not sure what that means but when i try to upload the rtc example from the peripherals with the softdevice present i get this error &amp;quot;Error: Flash Download failed - &amp;quot;Cortex-M4&amp;quot;&amp;quot; and if i remove the softdevice using eraseall in nrfgo studio the rtc example works fine.I have also tried disabling the RTC0 but same thing happens.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Combining RTC example(peripheral) and with BLE peripheral</title><link>https://devzone.nordicsemi.com/thread/79061?ContentTypeID=1</link><pubDate>Wed, 08 Mar 2017 14:32:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:96b8d988-ea03-456a-8ba7-fa21ab82b044</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;What BLE example is this? Have you flashed the SoftDevice?
You will get the message &lt;code&gt;Error: Flash Download failed - &amp;quot;Cortex-M4&amp;quot;&lt;/code&gt; if you try to overwrite the space where the SoftDevice is with the application code.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Combining RTC example(peripheral) and with BLE peripheral</title><link>https://devzone.nordicsemi.com/thread/79063?ContentTypeID=1</link><pubDate>Wed, 08 Mar 2017 14:05:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:932f6c67-a0f1-4c17-a776-9621536e474f</guid><dc:creator>Haseeb</dc:creator><description>&lt;p&gt;Thankyou for your response Sigurd.
I have set the RTC0_ENABLED to 0 and RTC1_ENABLED and RTC2_ENABLED to 1 but i am still getting the  Error: Flash Download failed  -  &amp;quot;Cortex-M4&amp;quot; when uploading.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Combining RTC example(peripheral) and with BLE peripheral</title><link>https://devzone.nordicsemi.com/thread/79060?ContentTypeID=1</link><pubDate>Wed, 08 Mar 2017 13:55:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:206f5d7a-fb24-4984-a957-029c56ff2e79</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;The SoftDevice uses the RTC0 instance, so you need to use RTC1 or RTC2 instead. You can find a list of the peripherals the SoftDevice uses &lt;a href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.s132.sds/dita/softdevices/s130/sd_resource_reqs/hw_block_interrupt_vector.html?cp=2_3_0_0_6_0"&gt;here&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;To use RTC1 instead of RTC0, change&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;const nrf_drv_rtc_t rtc = NRF_DRV_RTC_INSTANCE(0);
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;to&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;const nrf_drv_rtc_t rtc = NRF_DRV_RTC_INSTANCE(1); 
&lt;/code&gt;&lt;/pre&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>