<?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>Changing interrupt priority</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/115003/changing-interrupt-priority</link><description>Hi. 
 I am using a custom board based on the nRF52820 (SDK v2.7.0). 
 I have a task in front of me to design a battery charger. 
 In the program I use two interrupts to solve this task: 1. from USB (events NRFX_POWER_USB_EVT_DETECTED and NRFX_POWER_USB_EVT_REMOVED</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 26 Sep 2024 17:11:25 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/115003/changing-interrupt-priority" /><item><title>RE: Changing interrupt priority</title><link>https://devzone.nordicsemi.com/thread/504045?ContentTypeID=1</link><pubDate>Thu, 26 Sep 2024 17:11:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:eddda5fb-1d6a-4fc4-82e3-b6bd9e3c4085</guid><dc:creator>backstreet.devisor</dc:creator><description>&lt;p&gt;Hi Sigurd!&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Thanks for your answer. I will look for another solution to this problem.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Changing interrupt priority</title><link>https://devzone.nordicsemi.com/thread/503970?ContentTypeID=1</link><pubDate>Thu, 26 Sep 2024 11:59:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7c6665ff-4de5-43f5-8b8f-ae3091339031</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Hi!&lt;/p&gt;
[quote user=""]Could it be related to interrupt priorities?[/quote]
&lt;p&gt;I had a look at the dtsi file, and it seems like GPIOTE have a lower interrupt &lt;span&gt;priority&amp;nbsp;&lt;/span&gt;than USB.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://github.com/nrfconnect/sdk-zephyr/blob/v3.6.99-ncs2/dts/arm/nordic/nrf52820.dtsi#L187"&gt;https://github.com/nrfconnect/sdk-zephyr/blob/v3.6.99-ncs2/dts/arm/nordic/nrf52820.dtsi#L187&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;GPIOTE -&amp;gt; priority 5&lt;/p&gt;
&lt;p&gt;&lt;a href="https://github.com/nrfconnect/sdk-zephyr/blob/v3.6.99-ncs2/dts/arm/nordic/nrf52820.dtsi#L377"&gt;https://github.com/nrfconnect/sdk-zephyr/blob/v3.6.99-ncs2/dts/arm/nordic/nrf52820.dtsi#L377&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;USB -&amp;gt; priority 1 (default value for NRF_DEFAULT_IRQ_PRIORITY)&lt;/p&gt;
&lt;p&gt;Lower number being the highest priority&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>