<?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 interrupts can&amp;#39;t trigger sometimes</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/39714/why-interrupts-can-t-trigger-sometimes</link><description>SDK14.0 , s132_nrf52_5.0.0_softdevice, computer platform: windows 7 
 //---------------------------------------------------------------------------------- 
 I use one motor to drive one object move back and forth in a straight line, with two hall ic(XC3202</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 24 Oct 2018 10:32:27 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/39714/why-interrupts-can-t-trigger-sometimes" /><item><title>RE: why interrupts can't trigger sometimes</title><link>https://devzone.nordicsemi.com/thread/154245?ContentTypeID=1</link><pubDate>Wed, 24 Oct 2018 10:32:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b7fe777b-9b5f-4306-a3a9-ae3734183359</guid><dc:creator>zk017</dc:creator><description>&lt;p&gt;OK， thank you very much! I will make a try!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: why interrupts can't trigger sometimes</title><link>https://devzone.nordicsemi.com/thread/154207?ContentTypeID=1</link><pubDate>Wed, 24 Oct 2018 07:21:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f04998f3-2a41-461a-949c-c4b05d1800f7</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;If you are using BLE only for DFU, then I do not think that softdevice would be blocking your hall_pinx handlers. So there must be for sure something else in your application that is higher in priority&amp;nbsp;&lt;/p&gt;
&lt;p&gt;One solution you can try is to increase the priority of GPIOTE IRQ by deceasing the value you chose in sdk_config.h file.&lt;/p&gt;
&lt;p&gt;For SDK14, Reduce the value by one number for the below define until you can see that your system is stable&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;
// &amp;lt;i&amp;gt; Priorities 0,2 (nRF51) and 0,1,4,5 (nRF52) are reserved for SoftDevice
// &amp;lt;0=&amp;gt; 0 (highest) 
// &amp;lt;1=&amp;gt; 1 
// &amp;lt;2=&amp;gt; 2 
// &amp;lt;3=&amp;gt; 3 
// &amp;lt;4=&amp;gt; 4 
// &amp;lt;5=&amp;gt; 5 
// &amp;lt;6=&amp;gt; 6 
// &amp;lt;7=&amp;gt; 7 

#ifndef GPIOTE_CONFIG_IRQ_PRIORITY
#define GPIOTE_CONFIG_IRQ_PRIORITY 7
#endif&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: why interrupts can't trigger sometimes</title><link>https://devzone.nordicsemi.com/thread/154187?ContentTypeID=1</link><pubDate>Tue, 23 Oct 2018 22:00:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:26ba0080-9849-4dba-a0c6-ca71e5488daa</guid><dc:creator>zk017</dc:creator><description>&lt;p&gt;Hi, &lt;span&gt;&amp;nbsp;thanks for your answer,&amp;nbsp;&lt;/span&gt;Susheel Nugura! now what can I do to solve the problem, can be informed &lt;span&gt;immediately when&amp;nbsp;&lt;/span&gt;the object reach the hall ic, with the softdevice&amp;nbsp; be used at the same time. Now we use ble only for dfu, I think most of the time the softdevice or the radio activity shouldn&amp;#39;t busy. Do you have any good idea?&lt;/p&gt;
&lt;p&gt;Thank you very much!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: why interrupts can't trigger sometimes</title><link>https://devzone.nordicsemi.com/thread/153965?ContentTypeID=1</link><pubDate>Tue, 23 Oct 2018 06:49:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:79c4945b-99f0-4032-ab09-6c54aebf4410</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I am pretty sure that at high speed you are getting another high priority interrupt at high frequency which is masking these two interrupt handlers. Make sure that any other high priority interrupts do very little processing in their ISR.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
[quote user=""]I am puzzled, maybe the softdevice block it? or else reason?[/quote]
&lt;p&gt;It is possible, if you are doing a lot of radio activity based on the speed of the motor. Very hard to say at this point. But it is possible that a lot of radio activity from softdevice could mask&amp;nbsp;&amp;nbsp;&lt;span&gt;hall_pin1_handler and&amp;nbsp;hall_pin2_handler if your application is keeping softdevice busy.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>