<?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>problem with timer interrupts (NRF51822)</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/1500/problem-with-timer-interrupts-nrf51822</link><description>Hello, 
 i try to implement a simple timer interrupt on TIMER1 using one of the CC registers of the NRF51822. Here is my code: 
 void init_timers(void) { 
 // Start 32 MHz crystal oscillator
NRF_CLOCK-&amp;gt;EVENTS_HFCLKSTARTED = 0;
NRF_CLOCK-&amp;gt;TASKS_HFCLKSTART</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 19 Feb 2014 18:41:06 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/1500/problem-with-timer-interrupts-nrf51822" /><item><title>RE: problem with timer interrupts (NRF51822)</title><link>https://devzone.nordicsemi.com/thread/6678?ContentTypeID=1</link><pubDate>Wed, 19 Feb 2014 18:41:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f621c56f-d6eb-442a-bfef-4c96142acfd5</guid><dc:creator>hristozov</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;changing the start up commands to&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;file &amp;quot;c:\full\path\to\your\file.out&amp;quot; 
load
mon reset 
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;and removing the checkboxes for loading symbol table and binary file make it work. Thank you!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: problem with timer interrupts (NRF51822)</title><link>https://devzone.nordicsemi.com/thread/6677?ContentTypeID=1</link><pubDate>Wed, 05 Feb 2014 09:58:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d894804f-e72a-48e4-8f3c-d29f8e558f6f</guid><dc:creator>Ole Morten</dc:creator><description>&lt;p&gt;This is actually most likely just functioning as a workaround for the real problem, that is Eclipse not running the reset handler of the chip properly. Did you take a look at the links I added to my first reply?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: problem with timer interrupts (NRF51822)</title><link>https://devzone.nordicsemi.com/thread/6676?ContentTypeID=1</link><pubDate>Tue, 04 Feb 2014 18:05:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c5cdeee8-a324-457c-8751-b4f0b7525265</guid><dc:creator>hristozov</dc:creator><description>&lt;p&gt;Today I and a colleague of mine performed a few more tests on this issue. It looks like that a calling  of sd_softdevice_forward_to_application() function in the init_timers() solves the problem.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: problem with timer interrupts (NRF51822)</title><link>https://devzone.nordicsemi.com/thread/6675?ContentTypeID=1</link><pubDate>Tue, 04 Feb 2014 17:07:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:29abd6a2-e1e6-4cc7-b897-7a4b99b9857a</guid><dc:creator>Ole Morten</dc:creator><description>&lt;p&gt;I&amp;#39;ve had a look at this project, compiled it and ran it on a chip, and as far as I can see, it works as expected, and the timer interrupt runs correctly.&lt;/p&gt;
&lt;p&gt;This is when running the project from the command line GDB. Have you tried this, or running the project without a debugger?&lt;/p&gt;
&lt;p&gt;I&amp;#39;ve also edited my answer above, giving a few further pointers, in case it is Eclipse that tricks you.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: problem with timer interrupts (NRF51822)</title><link>https://devzone.nordicsemi.com/thread/6674?ContentTypeID=1</link><pubDate>Fri, 31 Jan 2014 15:35:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:be62345b-2cee-45fe-8e50-a400eb62614a</guid><dc:creator>hristozov</dc:creator><description>&lt;p&gt;Hello Ole,&lt;/p&gt;
&lt;p&gt;you can find my project in the attachments. I don&amp;#39;t use the soft device so far. I only want to test the timer for my application.&lt;/p&gt;
&lt;p&gt;best regards,
Stefan&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/Led.rar"&gt;Led.rar&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: problem with timer interrupts (NRF51822)</title><link>https://devzone.nordicsemi.com/thread/6673?ContentTypeID=1</link><pubDate>Fri, 31 Jan 2014 15:07:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d0d502a3-571a-41a7-a11d-b85f02398db6</guid><dc:creator>Ole Morten</dc:creator><description>&lt;p&gt;Your code looks correct, but could it be that the softdevice is enabled at the time you try this? If so, you&amp;#39;ll get a HardFault when accessing the CLOCK peripheral, since this is blocked by the softdevice, and this may make Eclipse confused.&lt;/p&gt;
&lt;p&gt;If this is not the case, can you please edit your question, and supply your complete project, with makefiles and linker scripts, so I can give it a go?&lt;/p&gt;
&lt;p&gt;Edit: I&amp;#39;d also recommend you to take a look at &lt;a href="https://devzone.nordicsemi.com/index.php/eclipse-cdt,-gdb-debugging-with-nrf51822-breaks-on-every-line"&gt;this&lt;/a&gt; and &lt;a href="https://devzone.nordicsemi.com/index.php/strange-behaviour-with-nrf51822-and-s110#reply-931"&gt;this question&lt;/a&gt; for further details on potential problems with using Eclipse for debugging. It seems that Eclipse some times are a little problematic to get working reliably...&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>