<?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>why nrf51422 have problem with timer?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/15462/why-nrf51422-have-problem-with-timer</link><description>without timer it work fine but when i use timer it goes here.
 
 my timer code is this 
 #define APP_TIMER_PRESCALER 0 /**&amp;lt; Value of the RTC1 PRESCALER register. */
#define APP_TIMER_MAX_TIMERS 6 /**&amp;lt; Maximum number of simultaneously created timers</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Sat, 06 Aug 2016 06:11:41 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/15462/why-nrf51422-have-problem-with-timer" /><item><title>RE: why nrf51422 have problem with timer?</title><link>https://devzone.nordicsemi.com/thread/59055?ContentTypeID=1</link><pubDate>Sat, 06 Aug 2016 06:11:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f26955cc-484f-41db-a146-33cedfeeda7c</guid><dc:creator>navid</dc:creator><description>&lt;p&gt;that was helpfull . thanks&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: why nrf51422 have problem with timer?</title><link>https://devzone.nordicsemi.com/thread/59054?ContentTypeID=1</link><pubDate>Fri, 05 Aug 2016 16:48:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:50ee7d7a-6cc1-48be-aa76-a6daa0158c9a</guid><dc:creator>Stefan Birnir Sverrisson</dc:creator><description>&lt;p&gt;Hi navid&lt;/p&gt;
&lt;p&gt;Not sure actually. Have you tried to increase APP_TIMER_MAX_TIMERS or APP_TIMER_OP_QUEUE_SIZE constants, just to see if that makes a difference? Have you enabled the RTC1 in nrf_drv_config.h file (The application timer library uses RTC1 in the background). To find out what is wrong, you could check if there is any error code thrown. Start debugging as described on &lt;a href="https://devzone.nordicsemi.com/question/60125/my-device-is-freezing-and-restarting/?answer=60126#post-id-60126"&gt;this thread&lt;/a&gt; and &lt;a href="https://devzone.nordicsemi.com/blogs/821/an-introduction-to-error-handling-in-nrf5-projects/"&gt;this thread&lt;/a&gt;.   Also, make sure the priority of RTC1 is APP_IRQ_PRIORITY_LOW, which should be set in the nrf_drv_config.h file in your project folder.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>