<?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>Unable to access static variables from bluetooth service</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/85562/unable-to-access-static-variables-from-bluetooth-service</link><description>I have modified this project to set the current date via a bluetooth service instead of UART. But as soon as we try to access any of these static variables from the bluetooth handler the application crashes ``` static time_t m_time, m_last_calibrate_time</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 11 Mar 2022 10:48:42 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/85562/unable-to-access-static-variables-from-bluetooth-service" /><item><title>RE: Unable to access static variables from bluetooth service</title><link>https://devzone.nordicsemi.com/thread/357608?ContentTypeID=1</link><pubDate>Fri, 11 Mar 2022 10:48:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:aaf83d47-b65c-415d-ac34-c18f8a498f91</guid><dc:creator>archie94</dc:creator><description>&lt;p&gt;So I am not sure why it was crashing on accessing a static variable but I resolved it using `NRF_RTC2` instead of `NRF_RTC0` as the rtc.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unable to access static variables from bluetooth service</title><link>https://devzone.nordicsemi.com/thread/357077?ContentTypeID=1</link><pubDate>Wed, 09 Mar 2022 09:36:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2b72dda0-92ac-44b9-8274-9625aaffc1d3</guid><dc:creator>Einarh</dc:creator><description>&lt;p&gt;Ok, have you figured out exactly what function call causes the application to crash?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unable to access static variables from bluetooth service</title><link>https://devzone.nordicsemi.com/thread/356947?ContentTypeID=1</link><pubDate>Tue, 08 Mar 2022 15:00:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:745e3938-1b6e-410c-9aeb-5bea8f1710b0</guid><dc:creator>archie94</dc:creator><description>&lt;p&gt;Hello! &lt;br /&gt;&lt;br /&gt;Yes the code compiles fine. BLE services starts alright. Clients connect to it and attempt to write a particular date when it crashes. &lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unable to access static variables from bluetooth service</title><link>https://devzone.nordicsemi.com/thread/356916?ContentTypeID=1</link><pubDate>Tue, 08 Mar 2022 13:49:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a2b8452d-6089-4958-84f7-db0f215f0ba8</guid><dc:creator>Einarh</dc:creator><description>&lt;p&gt;Hello!&lt;/p&gt;
&lt;p&gt;Can you please tell me more about what happens when it crashes?&lt;/p&gt;
&lt;p&gt;Does the project build successfully?&lt;/p&gt;
&lt;p&gt;Do you get aby error messages?&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Einar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>