<?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>The program terminates at NRF_BREAKPOINT_COND while using interrupts with timers</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/51231/the-program-terminates-at-nrf_breakpoint_cond-while-using-interrupts-with-timers</link><description>Hey, 
 I am using nRF52840-DK and SDK 15.2 and working on 802.15.4. The transmitter is sending beacons at an interval of 2sec. The receiver is scanning the network for beacons every 100ms. On not receiving a beacon it must sleep for some time, wake up</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 30 Aug 2019 10:28:05 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/51231/the-program-terminates-at-nrf_breakpoint_cond-while-using-interrupts-with-timers" /><item><title>RE: The program terminates at NRF_BREAKPOINT_COND while using interrupts with timers</title><link>https://devzone.nordicsemi.com/thread/207097?ContentTypeID=1</link><pubDate>Fri, 30 Aug 2019 10:28:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b63a6aea-dada-4593-abf5-1c7d1c8decd9</guid><dc:creator>awneil</dc:creator><description>&lt;p&gt;It just means that you display the values as ASCII-coded text; ie&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;0x31 displays as &amp;#39;1&amp;#39;&lt;/li&gt;
&lt;li&gt;0x39&lt;span&gt;&amp;nbsp;displays as &amp;#39;9&amp;#39;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span&gt;0x41&amp;nbsp;displays as &amp;#39;A&amp;#39;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span&gt;0x5A&amp;nbsp;displays as &amp;#39;Z&amp;#39;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span&gt;0x61&amp;nbsp;displays as &amp;#39;a&amp;#39;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span&gt;0x7A&amp;nbsp;displays as &amp;#39;z&amp;#39;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span&gt;etc, etc, ...&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;span&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/7802._5F00_Insert-Code-_2D00_-Nordic-2.png" /&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: The program terminates at NRF_BREAKPOINT_COND while using interrupts with timers</title><link>https://devzone.nordicsemi.com/thread/207089?ContentTypeID=1</link><pubDate>Fri, 30 Aug 2019 10:05:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:40b1dacb-b6d9-4e8d-896c-a949108e8db8</guid><dc:creator>Abhigya</dc:creator><description>&lt;p&gt;I am sorry but what is reading the memory in &amp;#39;Ascii format&amp;#39;?&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: The program terminates at NRF_BREAKPOINT_COND while using interrupts with timers</title><link>https://devzone.nordicsemi.com/thread/206016?ContentTypeID=1</link><pubDate>Mon, 26 Aug 2019 07:10:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3d2e7375-48f8-4281-a2ae-99562981c58c</guid><dc:creator>Susheel Nuguru</dc:creator><description>[quote user=""]The command at line&amp;nbsp;0x00010313 of void assert_nrf_callback(short unsigned int line_num= 0x0003, const uint8_t* filename=0x00010313) is :[/quote]
&lt;p&gt;&amp;nbsp;I think we should focus on the above line.&lt;/p&gt;
&lt;p&gt;Can you please read the memory at 0x00010313 in Ascii format so that we know the filename and linenum that caused this error. We can focus on that line which caused this error and move ahead from there.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: The program terminates at NRF_BREAKPOINT_COND while using interrupts with timers</title><link>https://devzone.nordicsemi.com/thread/205832?ContentTypeID=1</link><pubDate>Fri, 23 Aug 2019 10:00:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bc57dda3-2b22-4963-bf3d-4312fbd54d86</guid><dc:creator>Abhigya</dc:creator><description>&lt;p&gt;No, I am not using any softdevice and I am not configuring the RADIO interrupt myself.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: The program terminates at NRF_BREAKPOINT_COND while using interrupts with timers</title><link>https://devzone.nordicsemi.com/thread/205789?ContentTypeID=1</link><pubDate>Fri, 23 Aug 2019 08:25:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e0991cc6-d4e7-491a-ba18-58dcec6e52a2</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;Are you configuring the RADIO interrupt yourself? when using the BLE softdevice stack, you should not touch any configuration of the RADIO. When you were accessing NVIC directly, I assumed you were not using softdevice. If you are using softdevice and have enabled in your program, then you cannot access NVIC directly, but access it through sd_nvic api.&lt;/p&gt;
&lt;p&gt;Disabling RADIO makes rest of your system work as intended, would mean that something is wrong with the RADIO configuration.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: The program terminates at NRF_BREAKPOINT_COND while using interrupts with timers</title><link>https://devzone.nordicsemi.com/thread/205741?ContentTypeID=1</link><pubDate>Fri, 23 Aug 2019 05:54:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3445bed3-4f92-4cc8-92e7-89a418c62949</guid><dc:creator>Abhigya</dc:creator><description>&lt;p&gt;I&amp;#39;ve changed the priority but it doesn&amp;#39;t bring any change in behaviour.&amp;nbsp;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1566539617721v1.png" /&gt;&lt;/p&gt;
&lt;p&gt;I hope I&amp;#39;m changing it correctly.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Edit:&lt;/strong&gt; I was wondering if this&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/10662/nvic-changing-interrupt-priority"&gt;link&lt;/a&gt;&amp;nbsp;would be helpful. I tried to disable RADIO_IRQn interrupt while the timer function generated the Timer interrupt. In that case, the timer is working fine, the system is going into sleep mode, waking up from generating interrupt but then it enters the while(1) loop of sleep mode (after exiting from timer2init() ) and doesn&amp;#39;t come out.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;It gets stuck here:&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1566541898700v1.png" /&gt;&lt;/p&gt;
&lt;p&gt;This wasn&amp;#39;t happening before and the system could come out of the sleep mode automatically once the timer was over.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: The program terminates at NRF_BREAKPOINT_COND while using interrupts with timers</title><link>https://devzone.nordicsemi.com/thread/205398?ContentTypeID=1</link><pubDate>Wed, 21 Aug 2019 20:33:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:200fedf4-5b1a-4341-b990-db8d5ee0c292</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;In the timer2init function, it seems that you enabled the interrupt for TIMER2_IRQn, but you did not set the priority of this interrupt, This would give it a default of highest priority 0,which would interfere with Radio activity. Can you try to set the priority of the timer2 to something lower (higher in value) priority and see if that changes the behavior?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: The program terminates at NRF_BREAKPOINT_COND while using interrupts with timers</title><link>https://devzone.nordicsemi.com/thread/205314?ContentTypeID=1</link><pubDate>Wed, 21 Aug 2019 12:28:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7b06f64f-518c-44e9-bf92-28578db73380</guid><dc:creator>Abhigya</dc:creator><description>&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1566390480326v1.png" /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: The program terminates at NRF_BREAKPOINT_COND while using interrupts with timers</title><link>https://devzone.nordicsemi.com/thread/205306?ContentTypeID=1</link><pubDate>Wed, 21 Aug 2019 12:11:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0db4d79f-b746-4f21-8ac4-56be58d19e45</guid><dc:creator>Susheel Nuguru</dc:creator><description>[quote user=""] However, the device is not able to enter the interrupt function and goes straight to&amp;nbsp;NRF_BREAKPOINT_COND in debug mode.[/quote]
&lt;p&gt;Can you show us the call stack when this happens so that we can understand the context in which this error occurs.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>