<?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>Debugger stops at APP_ERROR_CHECK(sd_nvic_ClearPendingIRQ(p_spi_instance-&amp;gt;irq_type));</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/6796/debugger-stops-at-app_error_check-sd_nvic_clearpendingirq-p_spi_instance--irq_type</link><description>I am trying to add SPI to the ble_uart_example on my nRF51-DK but when I try to debug my code debugging just stops (All &amp;quot;step one line&amp;quot; etc. buttons grayed out) at this line 
 //Disable interrupt SPI.
 APP_ERROR_CHECK(sd_nvic_DisableIRQ(p_spi_instance</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 30 Apr 2015 07:57:53 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/6796/debugger-stops-at-app_error_check-sd_nvic_clearpendingirq-p_spi_instance--irq_type" /><item><title>RE: Debugger stops at APP_ERROR_CHECK(sd_nvic_ClearPendingIRQ(p_spi_instance-&gt;irq_type));</title><link>https://devzone.nordicsemi.com/thread/23928?ContentTypeID=1</link><pubDate>Thu, 30 Apr 2015 07:57:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:62d53013-d7a6-4800-8bc5-b412b59a476d</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;you cannot do F11 on softdevice functions. Step over them using F10. If you are saying that all buttons are greyed out then probably your program hardfaulted due to softdevice timers.
Please read this thread and set the PRIMASK register.
&lt;a href="https://devzone.nordicsemi.com/question/1489/can-i-debug-ble-program/"&gt;devzone.nordicsemi.com/.../&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Debugger stops at APP_ERROR_CHECK(sd_nvic_ClearPendingIRQ(p_spi_instance-&gt;irq_type));</title><link>https://devzone.nordicsemi.com/thread/23927?ContentTypeID=1</link><pubDate>Wed, 29 Apr 2015 16:35:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9608bf5f-45c6-4171-877e-3af341e8d819</guid><dc:creator>muhkuhns</dc:creator><description>&lt;p&gt;I just press F11 till suddenly all &amp;quot;Step on..&amp;quot; Buttons are grayed out and I end up at this line in the softdevice_handler.c&lt;/p&gt;
&lt;p&gt;// Enable BLE event interrupt (interrupt priority has already been set by the stack).
return sd_nvic_EnableIRQ(SWI2_IRQn);&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Debugger stops at APP_ERROR_CHECK(sd_nvic_ClearPendingIRQ(p_spi_instance-&gt;irq_type));</title><link>https://devzone.nordicsemi.com/thread/23926?ContentTypeID=1</link><pubDate>Wed, 29 Apr 2015 16:34:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a7a02216-0c13-463a-9c12-5bc61b64f151</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;what do you mean by debugger stops?
You say that app is working fine so i suspect that you were trying to step into this softdevice function.
you cannot step into this function as this is SVC call and the execution jumps into softdevice binary for which debugger has no debug clue. So I think it has come out of stepping mode to just free run mode.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>