<?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>Rtc is not working in Ble_app_multilink_central</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/12934/rtc-is-not-working-in-ble_app_multilink_central</link><description>Hi all, 
 I am developed application so that it is communicate with save device, i can able to send data from master to slave. In Ble_app_multilink_central master side code, if i use rtc, master is not connecting to slave. If i comment Rtc part i can</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 07 Apr 2016 08:53:51 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/12934/rtc-is-not-working-in-ble_app_multilink_central" /><item><title>RE: Rtc is not working in Ble_app_multilink_central</title><link>https://devzone.nordicsemi.com/thread/49269?ContentTypeID=1</link><pubDate>Thu, 07 Apr 2016 08:53:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2547deb8-e2a8-4078-ae40-20c29c77d52f</guid><dc:creator>FormerMember</dc:creator><description>&lt;p&gt;The function should be sd_ble_gattc_write(..) (not sd_ble_gatts_write() as I wrote in my previous answer). Do you have verified that &amp;#39;0&amp;#39; is the correct connection handle?&lt;/p&gt;
&lt;p&gt;Do you get a hardfault in sd_ble_gattc_write(..), the app never returns from that function? What does your write_params look like?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Rtc is not working in Ble_app_multilink_central</title><link>https://devzone.nordicsemi.com/thread/49268?ContentTypeID=1</link><pubDate>Wed, 06 Apr 2016 13:24:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:11837a24-0fe8-475e-ab9f-ef97737601ba</guid><dc:creator>Manjunath</dc:creator><description>&lt;p&gt;when it enter to call this function sd_ble_gatts_write(0, &amp;amp;write_params); , it goes to HardFault_Handler&lt;br /&gt;
PROC
EXPORT  HardFault_Handler         [WEAK]
B       .          // cursor stops at this position
ENDP&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Rtc is not working in Ble_app_multilink_central</title><link>https://devzone.nordicsemi.com/thread/49267?ContentTypeID=1</link><pubDate>Wed, 06 Apr 2016 13:14:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:538c7e71-5993-4c7e-943b-ee549e38e578</guid><dc:creator>FormerMember</dc:creator><description>&lt;p&gt;When you send data to the slave, I would assume that you use sd_ble_gatts_write(..). Which error code does sd_ble_gatts_write(..) return?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Rtc is not working in Ble_app_multilink_central</title><link>https://devzone.nordicsemi.com/thread/49265?ContentTypeID=1</link><pubDate>Wed, 06 Apr 2016 09:56:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9eb23d6f-0b61-4808-802c-56de2cba0a7c</guid><dc:creator>Manjunath</dc:creator><description>&lt;p&gt;After connection and it going to RTC1 interrupt making led toggle and going to this portion.
HardFault_Handler&lt;br /&gt;
PROC
EXPORT  HardFault_Handler         [WEAK]
B       .
ENDP
could please tell me why it behave  like this.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Rtc is not working in Ble_app_multilink_central</title><link>https://devzone.nordicsemi.com/thread/49266?ContentTypeID=1</link><pubDate>Wed, 06 Apr 2016 09:08:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:67081846-675e-44c3-b3dc-1d60e615a546</guid><dc:creator>FormerMember</dc:creator><description>&lt;p&gt;Which error code do you get when you try to send data to the salve?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Rtc is not working in Ble_app_multilink_central</title><link>https://devzone.nordicsemi.com/thread/49264?ContentTypeID=1</link><pubDate>Mon, 04 Apr 2016 15:46:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e25ad587-a4a5-4829-80e5-472071a4ee26</guid><dc:creator>Manjunath</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I got  this , Now my rtc is working fine but, if i send data to slave in rtc handler it is not working. it  may  hanging in rtc interrupt. But connection is happens and unable to send data to slave device.
here is code:
if ((NRF_RTC1-&amp;gt;EVENTS_COMPARE[0] != 0) &amp;amp;&amp;amp;
((NRF_RTC1-&amp;gt;INTENSET &amp;amp; RTC_INTENSET_COMPARE0_Msk) != 0))
{
NRF_RTC1-&amp;gt;EVENTS_COMPARE[0] = 0;
NRF_RTC1-&amp;gt;CC[0]     = NRF_RTC1-&amp;gt;CC[0]+(COMPARE_COUNTERTIME * RTC_FREQUENCY);
// nrf_gpio_pin_toggle(GPIO_TOGGLE_COMPARE_EVENT);
nrf_gpio_pin_toggle(19);        //this state not changing, only once toggled.		
if(flag == 0)
{
char_write(0x14,0x13);      // sending data to slave.
flag =1;
nrf_gpio_pin_set(19);
}else
{
char_write(0x00,0x13);
flag =0;
nrf_gpio_pin_clear(19);
}&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;} 
&lt;/code&gt;&lt;/pre&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Rtc is not working in Ble_app_multilink_central</title><link>https://devzone.nordicsemi.com/thread/49270?ContentTypeID=1</link><pubDate>Mon, 04 Apr 2016 11:41:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:631b37bc-b51c-481e-86ac-ea6a250452ae</guid><dc:creator>FormerMember</dc:creator><description>&lt;p&gt;The softdevice uses RTC0, it means that the RTC0 is blocked for the application when the softdevice is enabled, see the &lt;a href="http://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.s130.sds.v1.0%2Fdita%2Fsoftdevices%2Fs130%2Fsd_resource_reqs%2Fhw_block_interrupt_vector.html&amp;amp;cp=2_6_2_0_10_2"&gt;S130 softdevice specification&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;When the softdevice is enabled, the application has to use RTC1.&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/rtc_5F00_sds.PNG" alt="image description" /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>