<?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 timer problems</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/200/nrf51822-timer-problems</link><description>Hi, I&amp;#39;ve been trying to use the timers on nRF51822 but I just can&amp;#39;t get them to work in my code. When debugging (with GDB and Eclipse), the execution always stops with the following error:
No source available for &amp;quot;&amp;quot; 
 timer_test [GDB Hardware Debugging</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 07 May 2014 13:21:22 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/200/nrf51822-timer-problems" /><item><title>RE: nRF51822 timer problems</title><link>https://devzone.nordicsemi.com/thread/1124?ContentTypeID=1</link><pubDate>Wed, 07 May 2014 13:21:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:eb84bc87-9a91-4147-b58e-f33a8c42fafe</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;There are specific calls to sd_* prefix functions, which will not work if the SoftDevice is not present in flash.
If you want to use the scheduler w/o the softdevice, you&amp;#39;ll have to &amp;quot;port&amp;quot; the macros that calls sd_*-functions. As I see it, it&amp;#39;s only the CRITICAL_REGION macros, which basically just enable/disable interrupts.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF51822 timer problems</title><link>https://devzone.nordicsemi.com/thread/1123?ContentTypeID=1</link><pubDate>Tue, 06 May 2014 16:04:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2d4eec2d-9d9b-41d1-86c4-573e72a4cb9e</guid><dc:creator>bvrm</dc:creator><description>&lt;p&gt;The problem is the call of sd_nvic_critical_region_enter(). I don&amp;#39;t have a softdevice implemented.&lt;/p&gt;
&lt;p&gt;When not using CRITICAL_REGION_ENTER() / _EXIT() my example code works.&lt;/p&gt;
&lt;p&gt;How do use app_scheduler without a softdevice correctly?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF51822 timer problems</title><link>https://devzone.nordicsemi.com/thread/1122?ContentTypeID=1</link><pubDate>Tue, 06 May 2014 14:18:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c25a61bd-f809-4c94-9298-5b3a7d2e50be</guid><dc:creator>bvrm</dc:creator><description>&lt;p&gt;I&amp;#39;ve located my problem. app_timer is calling app_sched_event_put on a timeout. But when enter CRITICAL_REGION_ENTER() the device does not return from current_int_priority_get().&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF51822 timer problems</title><link>https://devzone.nordicsemi.com/thread/1121?ContentTypeID=1</link><pubDate>Tue, 06 May 2014 13:34:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4dcf758c-c401-4437-802d-0181917be614</guid><dc:creator>bvrm</dc:creator><description>&lt;p&gt;Hi Håkon,&lt;/p&gt;
&lt;p&gt;this example helped me a lot to get app_timer working without a softdevice.&lt;/p&gt;
&lt;p&gt;Please could you also add the use of the scheduler by the app_timer module to this example?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF51822 timer problems</title><link>https://devzone.nordicsemi.com/thread/1120?ContentTypeID=1</link><pubDate>Tue, 06 Aug 2013 12:16:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9f6550db-547f-4f1b-9cec-ce8926612fb9</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;The app_timer does not depend on the softdevice stack, but the power_manage function calls a sd_* sleep function.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF51822 timer problems</title><link>https://devzone.nordicsemi.com/thread/1119?ContentTypeID=1</link><pubDate>Tue, 06 Aug 2013 11:59:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:08d32daf-19e7-4111-9fad-fd896c3fc4b5</guid><dc:creator>Viktor</dc:creator><description>&lt;p&gt;Thanks!
For some reason I thought that the app_timer functionality does not depend on SoftDevice :/&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF51822 timer problems</title><link>https://devzone.nordicsemi.com/thread/1118?ContentTypeID=1</link><pubDate>Mon, 05 Aug 2013 10:51:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2239fb2e-91fb-461e-90a3-227557aff330</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;The reason why your debugger went haywire is because your assert-handler will cause a soft-reset on the power_manage function if s110 is not enabled. I added a check to see if the S110 stack is enabled for you.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF51822 timer problems</title><link>https://devzone.nordicsemi.com/thread/1117?ContentTypeID=1</link><pubDate>Mon, 05 Aug 2013 10:50:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7251810e-43ca-4ca1-be51-3eebe4497dab</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi Viktor,&lt;/p&gt;
&lt;p&gt;I had a look at your project.
You are not enabling the S110 stack, which means that you will have to start your LFCLK manually.
I also took the liberty of changing a couple of other things in your project, like the power_manage function and disabling the scheduler.&lt;/p&gt;
&lt;p&gt;Note: You are enabling the scheduler, but not using it.&lt;/p&gt;
&lt;p&gt;Best regards
Håkon&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/main.c"&gt;main.c&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>