<?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>apply  timeslot ,Causes the timer to fail to start (nRF52832 SDK15.3 s132 ESB+timeslot)</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/58027/apply-timeslot-causes-the-timer-to-fail-to-start-nrf52832-sdk15-3-s132-esb-timeslot</link><description>Hi All: 
 Applyed the under timeslot : 
 
 causes some peripherals(eg:static const nrf_drv_timer_t m_timer = NRF_DRV_TIMER_INSTANCE(2)) n o access interrupt, 
 what &amp;#39;s the matter?</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 28 Feb 2020 10:36:18 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/58027/apply-timeslot-causes-the-timer-to-fail-to-start-nrf52832-sdk15-3-s132-esb-timeslot" /><item><title>RE: apply  timeslot ,Causes the timer to fail to start (nRF52832 SDK15.3 s132 ESB+timeslot)</title><link>https://devzone.nordicsemi.com/thread/237093?ContentTypeID=1</link><pubDate>Fri, 28 Feb 2020 10:36:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:74223139-5c19-4377-bc1c-638151b8f539</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;I took at quick look at the code. TIMER2 is used for ESB(NRF_ESB_SYS_TIMER), and it seems to have priority 6.&lt;/p&gt;
&lt;p&gt;When you get the&amp;nbsp;NRF_RADIO_CALLBACK_SIGNAL_TYPE_START, you trigger&amp;nbsp;TIMESLOT_BEGIN_IRQn/TIMESLOT_BEGIN_IRQHandler. This is running at priority 1. This means that you will not get any interrupt&amp;nbsp;from TIMER2 while you are inside&amp;nbsp;TIMESLOT_BEGIN_IRQHandler.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: apply  timeslot ,Causes the timer to fail to start (nRF52832 SDK15.3 s132 ESB+timeslot)</title><link>https://devzone.nordicsemi.com/thread/236432?ContentTypeID=1</link><pubDate>Wed, 26 Feb 2020 08:25:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:06c23146-e542-47ff-b826-37f0409dc1f3</guid><dc:creator>zxcv7063</dc:creator><description>&lt;p&gt;Hi:&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;Can you give me a second look? thanks!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: apply  timeslot ,Causes the timer to fail to start (nRF52832 SDK15.3 s132 ESB+timeslot)</title><link>https://devzone.nordicsemi.com/thread/236050?ContentTypeID=1</link><pubDate>Mon, 24 Feb 2020 16:02:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7ec7170e-6c2a-4ff7-8526-71f42b72f862</guid><dc:creator>Sigurd</dc:creator><description>[quote user="zxcv7063"]But I still don&amp;#39;t know how to correct it now .[/quote]
&lt;p&gt;It&amp;#39;s not possible. &lt;br /&gt;&lt;br /&gt;You need to exit the&amp;nbsp;signal handler, and then you can&amp;nbsp;enter the TIMER2 callback.&lt;/p&gt;
&lt;p&gt;From the link:&lt;br /&gt;&amp;quot;&lt;span&gt;The signal handler may be called several times during a timeslot. It is recommended to use the signal handler only for real time signal handling. When the application has handled the signal, it can exit the signal handler and wait for the next signal if it wants to do other (less time critical) processing at lower interrupt priority (higher numerical value for the priority level) while waiting.&amp;quot;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: apply  timeslot ,Causes the timer to fail to start (nRF52832 SDK15.3 s132 ESB+timeslot)</title><link>https://devzone.nordicsemi.com/thread/236034?ContentTypeID=1</link><pubDate>Mon, 24 Feb 2020 15:18:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b826d9e6-cbde-4ef8-a34a-f76692e13764</guid><dc:creator>zxcv7063</dc:creator><description>&lt;p&gt;Hi:&lt;/p&gt;
&lt;p&gt;I try to the timer interrupt to 0（highest）,It is not only TIMER2 cannot enter callback. the follow set:&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/Timer-interrupt-set-0.png" /&gt;&lt;/p&gt;
&lt;p&gt;I have read the link you sent, But I still don&amp;#39;t know how to correct it now .&lt;br /&gt;Can you give me some advice.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: apply  timeslot ,Causes the timer to fail to start (nRF52832 SDK15.3 s132 ESB+timeslot)</title><link>https://devzone.nordicsemi.com/thread/235911?ContentTypeID=1</link><pubDate>Mon, 24 Feb 2020 10:17:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e7ab5c74-0a97-4a05-bb24-42e90171d5a2</guid><dc:creator>Sigurd</dc:creator><description>[quote userid="25239" url="~/f/nordic-q-a/58027/apply-timeslot-causes-the-timer-to-fail-to-start-nrf52832-sdk15-3-s132-esb-timeslot/235893"]2. Yes!&amp;nbsp; when exit radio_callback(),It can start to print.[/quote]
&lt;p&gt;While you are inside the radio_callback() / signal handler, you won&amp;#39;t be able to process any interrupt before you exit the signal handler, since the signal handler runs at the highest priority. See &lt;a href="https://infocenter.nordicsemi.com/topic/sds_s132/SDS/s1xx/concurrent_multiprotocol_tsl_api/signal_handler_priority_0.html"&gt;this link&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: apply  timeslot ,Causes the timer to fail to start (nRF52832 SDK15.3 s132 ESB+timeslot)</title><link>https://devzone.nordicsemi.com/thread/235893?ContentTypeID=1</link><pubDate>Mon, 24 Feb 2020 09:42:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a43dcc12-a285-40c5-a6fb-51953eb0a354</guid><dc:creator>zxcv7063</dc:creator><description>&lt;p&gt;Hi:&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp;1, radio_callback() u&lt;span&gt;nused TIMER2,It is not only TIMER2 cannot enter callback,&amp;nbsp;&lt;/span&gt;And PPI doesn&amp;#39;t start.&lt;/p&gt;
&lt;p&gt;&lt;span&gt;the follow code snippet:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/radio_5F00_callback.png" /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp;2. Yes!&amp;nbsp; when exit radio_callback(),It can start to print.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp;3.Try to&amp;nbsp;set&amp;nbsp;NRF_LOG_DEFERRED to 0 in sdk_config.h,&amp;nbsp;The result is the same. Has nothing to do with it.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: apply  timeslot ,Causes the timer to fail to start (nRF52832 SDK15.3 s132 ESB+timeslot)</title><link>https://devzone.nordicsemi.com/thread/235885?ContentTypeID=1</link><pubDate>Mon, 24 Feb 2020 09:14:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:130a69ac-9bbf-4cb5-b86f-11fabd5d6208</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;1) Are you doing anything with TIMER2 in&amp;nbsp;radio_callback() ?&lt;/p&gt;
&lt;p&gt;2) Does it start to print again when you exit&amp;nbsp;radio_callback()/ the timeslot ?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;3) Any difference in behavior if you set&amp;nbsp;NRF_LOG_DEFERRED to 0 in sdk_config.h ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: apply  timeslot ,Causes the timer to fail to start (nRF52832 SDK15.3 s132 ESB+timeslot)</title><link>https://devzone.nordicsemi.com/thread/235592?ContentTypeID=1</link><pubDate>Fri, 21 Feb 2020 00:37:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c542b9ba-2616-4b42-a3f4-87113dae89f3</guid><dc:creator>zxcv7063</dc:creator><description>&lt;p&gt;Hi:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&amp;nbsp; &amp;nbsp; Not&amp;nbsp; called the above timeslot, peripheral timer(&lt;span&gt;nrf_drv_timer_t m_timer = NRF_DRV_TIMER_INSTANCE(2)&lt;/span&gt;) Can enter callback normally.&amp;nbsp;&lt;em&gt;&lt;span class="skip"&gt;code snippet:&amp;nbsp;&lt;/span&gt;&lt;/em&gt;&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;&lt;em&gt;&lt;span class="skip"&gt;void timer_handler(nrf_timer_event_t event_type, void * p_context)&lt;br /&gt;{&lt;br /&gt; &lt;br /&gt; switch (event_type)&lt;br /&gt; {&lt;br /&gt; case NRF_TIMER_EVENT_COMPARE0:&lt;br /&gt; NRF_LOG_INFO(&amp;quot;AD time....\r\n&amp;quot;);&lt;br /&gt; break;&lt;br /&gt; default:&lt;br /&gt; //Do nothing.&lt;br /&gt; break;&lt;br /&gt; }&lt;br /&gt; &lt;br /&gt;}&lt;/span&gt;&lt;/em&gt;&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;&lt;span&gt;The following print:&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/print.jpg" /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; But called the above timeslot ,timer&amp;nbsp; c&lt;/span&gt;annot enter callback properly.There&amp;#39;s no print on it.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: apply  timeslot ,Causes the timer to fail to start (nRF52832 SDK15.3 s132 ESB+timeslot)</title><link>https://devzone.nordicsemi.com/thread/235547?ContentTypeID=1</link><pubDate>Thu, 20 Feb 2020 16:09:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6e24f438-842c-4b44-8ca7-f9053fbecdae</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;What do you mean by &amp;quot;&lt;span&gt;n&lt;/span&gt;&lt;span&gt;o access interrupt&amp;quot; ?&amp;nbsp;Please elaborate&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>