<?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>__enable_irq reset the device in SDK12.0.0.</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/19570/__enable_irq-reset-the-device-in-sdk12-0-0</link><description>Hi I am using SDK 12.0.0.0 in nRF52832 in this code when I am using __enable_irq(); function for enable the interrupt then controller is getting reset can anyone help me regarding this.</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 10 Feb 2017 13:54:13 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/19570/__enable_irq-reset-the-device-in-sdk12-0-0" /><item><title>RE: __enable_irq reset the device in SDK12.0.0.</title><link>https://devzone.nordicsemi.com/thread/76134?ContentTypeID=1</link><pubDate>Fri, 10 Feb 2017 13:54:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c4f258e7-6313-4023-bf35-0554428c31e4</guid><dc:creator>FormerMember</dc:creator><description>&lt;p&gt;I have updated my answer.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: __enable_irq reset the device in SDK12.0.0.</title><link>https://devzone.nordicsemi.com/thread/76133?ContentTypeID=1</link><pubDate>Thu, 09 Feb 2017 16:24:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ce01eda8-490a-4b47-ad95-f902c9ad9e79</guid><dc:creator>Ronak</dc:creator><description>&lt;p&gt;ys there is a BLE connection I am using softdevice s132 3.0.0&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: __enable_irq reset the device in SDK12.0.0.</title><link>https://devzone.nordicsemi.com/thread/76131?ContentTypeID=1</link><pubDate>Wed, 08 Feb 2017 19:30:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:467138c9-69d3-4f75-939a-ec770e18c010</guid><dc:creator>Martijn</dc:creator><description>&lt;p&gt;looks like a interrupt gets triggered immidiatly after enabling and there the device is reset.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: __enable_irq reset the device in SDK12.0.0.</title><link>https://devzone.nordicsemi.com/thread/76132?ContentTypeID=1</link><pubDate>Wed, 08 Feb 2017 14:14:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e86e7254-2584-4d65-97dc-8e55887c9a81</guid><dc:creator>FormerMember</dc:creator><description>&lt;p&gt;What is your application? Do you use the softdevice? Is there a BLE connection?&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Update 10.02.2017:&lt;/strong&gt; The reason for the reset when calling __enable_irq() is that there are too many interrupt that has happened and the softdevice doesn&amp;#39;t know handle that situation.&lt;/p&gt;
&lt;p&gt;Instead of using __disable_irq() and __enable_irq(), I would recommend you to use CRITICAL_REGION_ENTER() and CRITICAL_REGION_EXIT(). CRITICAL_REGION_ENTER/EXIT call sd_nvic_critical_region_enter/exit. sd_nvic_critical_region_enter disables all application interrupts, but handle the radio interrupts, so that the BLE link is kept.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>