<?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>nRF52832 NVIC_SetPendingIRQ Crash</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/29803/nrf52832-nvic_setpendingirq-crash</link><description>Using SDK14.0.0, nRF52832, GCC, GDB/Ozone, secure DFU 
 This question seems to get close to asking about my problem. 
 I am trying to debug my application with a loaded using either Ozone or JLinkGDBServer. I followed the advice here in Appendix 1 in</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 29 Jan 2018 10:40:47 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/29803/nrf52832-nvic_setpendingirq-crash" /><item><title>RE: nRF52832 NVIC_SetPendingIRQ Crash</title><link>https://devzone.nordicsemi.com/thread/118280?ContentTypeID=1</link><pubDate>Mon, 29 Jan 2018 10:40:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7d04db7b-e57a-4071-b7ee-523d69a60b58</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Hi kbb64 ,&lt;/p&gt;
&lt;p&gt;The sdk_config.h that comes with the &lt;code&gt;examples\ble_peripheral\ble_app_template&lt;/code&gt; example should have the defines you need. If you are not using the SoftDevice, take a look at the sdk_config.h for &lt;code&gt;examples\peripheral\template_project&lt;/code&gt; instead.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52832 NVIC_SetPendingIRQ Crash</title><link>https://devzone.nordicsemi.com/thread/118277?ContentTypeID=1</link><pubDate>Tue, 24 Oct 2017 14:28:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d0e881ff-f91d-4149-a8af-c46570728860</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;It’s probably caused by how Ozon is handling the “Download and Reset Program” in combination with the SoftDevice, i.e. it’s not starting the application in a stream-lined fashion.&lt;/p&gt;
&lt;hr /&gt;
&lt;p&gt;Note that we have now released SDK 14.1, where we have added support for Segger Embedded Studio (SES) IDE.  You can use Segger Embedded Studio for &lt;strong&gt;commercial and non-commercial&lt;/strong&gt; purpose with Nordic Semiconductor devices &lt;strong&gt;free of charge&lt;/strong&gt; without any code limit. This could be a better option for you than your current toolchain setup. See &lt;a href="https://www.nordicsemi.com/News/News-releases/Product-Related-News/Nordic-Semiconductor-adds-Embedded-Studio-IDE-support-for-nRF51-and-nRF52-SoC-development"&gt;this article for more information&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;You can download SDK 14.1 &lt;a href="https://www.nordicsemi.com/eng/nordic/Products/nRF5-SDK/nRF5-SDK-zip/59011"&gt;here&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;You can download Segger Embedded Studio from &lt;a href="https://www.segger.com/downloads/embedded-studio/"&gt;here&lt;/a&gt;.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52832 NVIC_SetPendingIRQ Crash</title><link>https://devzone.nordicsemi.com/thread/118276?ContentTypeID=1</link><pubDate>Fri, 13 Oct 2017 02:42:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8f6b9824-8a2c-4e09-9bdd-6d47e4a16afa</guid><dc:creator>Chris M</dc:creator><description>&lt;p&gt;Ozone isn&amp;#39;t behaving as if it&amp;#39;s a typical hardfault, it normally will indicate that I&amp;#39;m in the hardfault handler but in this case it jumps to address 0x8CC which is a LDR (R3, [R3, #+0x0C]). And continuing execution in Ozone results in execution being immediately paused at the same address. It appears as if the CPU just stopped...&lt;/p&gt;
&lt;p&gt;And you are correct, timer_list_handler_shed() is the function calling the NVIC_SetPendingIRQ. The full function call stack is:&lt;/p&gt;
&lt;p&gt;power_management_init() -&amp;gt;
nrf_pwr_mgmt_init() -&amp;gt;
PWR_MGMT_TIMER_CREATE() -&amp;gt;
app_timer_start(m_pwr_mgmt_timer, APP_TIMER_TICKS(1000), NULL) -&amp;gt;
timer_start_op_schedule(p_node, timeout_ticks, timeout_periodic, p_context) -&amp;gt;
timer_list_handler_sched() -&amp;gt;
NVIC_SetPendingIRQ(SWI_IRQn)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52832 NVIC_SetPendingIRQ Crash</title><link>https://devzone.nordicsemi.com/thread/118275?ContentTypeID=1</link><pubDate>Thu, 12 Oct 2017 15:10:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5cd89ff4-7657-428c-9e52-5ba1ad9e4f38</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;By crash you mean hardfault? Is it the function timer_list_handler_sched() that is calling the NVIC_SetPendingIRQ() that is causing this?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>