<?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>TIMER1 hangs within a s132 timeslot</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/25723/timer1-hangs-within-a-s132-timeslot</link><description>Hi, 
 I have a ble scanner working well and i am trying to trigger start a compare timer within a timeslot. 
 starting the timer in the timeslot with the below code makes everything hangs. 
 any clue? 
 Thanks in advance 
 void IrHandler::_EnableTimerOffset</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 09 Oct 2017 15:41:19 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/25723/timer1-hangs-within-a-s132-timeslot" /><item><title>RE: TIMER1 hangs within a s132 timeslot</title><link>https://devzone.nordicsemi.com/thread/101335?ContentTypeID=1</link><pubDate>Mon, 09 Oct 2017 15:41:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9454eb84-3980-408c-b7e9-1518c947b58c</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;See &lt;a href="https://devzone.nordicsemi.com/question/60125/my-device-is-freezing-and-restarting/"&gt;this post&lt;/a&gt; about debugging.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: TIMER1 hangs within a s132 timeslot</title><link>https://devzone.nordicsemi.com/thread/101334?ContentTypeID=1</link><pubDate>Mon, 09 Oct 2017 15:40:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6e990bb3-c979-4f6d-97f9-790dbdfc88b8</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Why do you think the board crashes? Have you tried debugging, and checked for a hardfault?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: TIMER1 hangs within a s132 timeslot</title><link>https://devzone.nordicsemi.com/thread/101333?ContentTypeID=1</link><pubDate>Mon, 09 Oct 2017 15:35:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a865dcc5-8b3d-4fc3-9d77-7de634638e57</guid><dc:creator>Sebastien Huet</dc:creator><description>&lt;p&gt;Hi Sigurd.&lt;/p&gt;
&lt;p&gt;I am using nrf52 sdk13.1
No error reported by app_check&lt;/p&gt;
&lt;p&gt;When i say almost immediatly this is a between 10 &amp;amp; 30us instead of the 100us request.&lt;/p&gt;
&lt;p&gt;Many thanks.&lt;/p&gt;
&lt;p&gt;Seb&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: TIMER1 hangs within a s132 timeslot</title><link>https://devzone.nordicsemi.com/thread/101336?ContentTypeID=1</link><pubDate>Mon, 09 Oct 2017 15:06:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:faf473ff-f5d1-4577-919c-18d025e70794</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Are you using mbed or any RTOS ?&lt;/p&gt;
&lt;p&gt;Try to check the return codes from the sd_ functions. I.e. something like this:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;uint32_t err_code;
err_code = sd_nvic_ClearPendingIRQ(TIMER1_IRQn);
APP_ERROR_CHECK(err_code);

err_code = sd_nvic_SetPriority(TIMER1_IRQn, NRF_APP_PRIORITY_LOW);
APP_ERROR_CHECK(err_code);

err_code = sd_nvic_EnableIRQ(TIMER1_IRQn);
APP_ERROR_CHECK(err_code);
&lt;/code&gt;&lt;/pre&gt;
&lt;blockquote&gt;
&lt;p&gt;I have tried with nrf_drv_timer but
the timer fires immediatly or so.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;With the CC value you have set, the TIMER will fire very fast indeed.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>