<?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>NRF_BREAKPOINT_COND in debug</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/32973/nrf_breakpoint_cond-in-debug</link><description>Hi, 
 I started coding form ble_app_uart, and whenever I set a breakpoint and it&amp;#39;s caught, then I press Resume (eclipse), the code falls on NRF_BREAKPOINT_COND in app_error_fault_handler(). 
 The callstack is empty so I don&amp;#39;t know where this is coming</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 07 Aug 2020 03:35:15 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/32973/nrf_breakpoint_cond-in-debug" /><item><title>RE: NRF_BREAKPOINT_COND in debug</title><link>https://devzone.nordicsemi.com/thread/263513?ContentTypeID=1</link><pubDate>Fri, 07 Aug 2020 03:35:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6bebd7c5-0bd1-4024-9a87-08c017cb8823</guid><dc:creator>Murray</dc:creator><description>&lt;p&gt;I also find this issue in ble_app_buttonless_dfu project. The version is SDK17. How can I resolve it?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF_BREAKPOINT_COND in debug</title><link>https://devzone.nordicsemi.com/thread/249815?ContentTypeID=1</link><pubDate>Wed, 13 May 2020 21:10:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9cb0826e-37a7-4ec3-bf5a-886b0f5ee016</guid><dc:creator>Odman</dc:creator><description>&lt;p&gt;Hi. This is an old topic, but I see exactly this problem in nRF SDK 16.0.0. Has there been any resolution to this?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF_BREAKPOINT_COND in debug</title><link>https://devzone.nordicsemi.com/thread/150812?ContentTypeID=1</link><pubDate>Fri, 28 Sep 2018 10:02:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2ed9ea74-23b7-40ba-a5de-7688b8c86bfd</guid><dc:creator>ocram</dc:creator><description>&lt;p&gt;for me it worked to overwrite the app_error_fault_handler that calls the NRF_BREAKPOINT_COND. The softdevice functionality might not recover after stopping, but I can run the normal system with full functionality until my first breakpoint and then still step or set other working breakpoints in my code.&lt;/p&gt;
&lt;p&gt;To not miss other unexpected asserts I found it also very useful to redirect any Assert information to the Segger RTT and output them by the RTT-Client.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF_BREAKPOINT_COND in debug</title><link>https://devzone.nordicsemi.com/thread/147536?ContentTypeID=1</link><pubDate>Thu, 06 Sep 2018 09:49:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6f880820-170a-4295-9e7b-5696af470a85</guid><dc:creator>Elkana</dc:creator><description>&lt;p&gt;Hi, I understand the reason for this, but is it possible:&lt;/p&gt;
&lt;p&gt;1. To limit this behavior only when BLE is active (as opposed to SD enabled)?&lt;/p&gt;
&lt;p&gt;2. To disable when compiled with &amp;quot;DEBUG&amp;quot; flag?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Although there are others, &amp;quot;step by step&amp;quot; is still one of the most important and effective debug methods, and it is a shame to miss it.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF_BREAKPOINT_COND in debug</title><link>https://devzone.nordicsemi.com/thread/127315?ContentTypeID=1</link><pubDate>Sun, 08 Apr 2018 12:09:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:faf69c0e-da1a-49f7-9887-1790d62e85bf</guid><dc:creator>Alaa</dc:creator><description>&lt;p&gt;Thanks for the detailed explanation and the link. The steps in the link look very clear. I might give it a try later and if I do I will update here. Thanks!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF_BREAKPOINT_COND in debug</title><link>https://devzone.nordicsemi.com/thread/126774?ContentTypeID=1</link><pubDate>Wed, 04 Apr 2018 09:11:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2fbcba53-9146-47c5-81aa-b3e4c085cd8b</guid><dc:creator>Rune Holmgren</dc:creator><description>&lt;p&gt;Resuming after breakpoints is not a problem if you are simply doing regular microcontroller activities. However,&amp;nbsp;if you are running the SoftDevice Bluetooth stack there are many operations the SoftDevice will have to schedule and perform at specific timings to conform to the BLE specification. Setting breakpoints while the SoftDevice is running will very often cause the SoftDevice to get into some unintended state. When you attempt to resume afterward the app_error_fault_handler will be called after the first error from the SoftDevice is returned.&lt;/p&gt;
&lt;p&gt;When debugging&amp;nbsp;this can be annoying, but it&amp;#39;s implemented that way to ensure that production devices will reset to a working state if they ever encounter some rare error which would otherwise brick the device or force the user to manually power cycle it.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/b/blog/posts/monitor-mode-debugging-with-j-link-and-gdbeclipse"&gt;If you really need to be able to debug a running device without getting into the error handler you can use monitoring mode debugging. In this mode, the debugger is just spying on the device as it is running without actually stopping the CPU, so the device is still running the BLE stack. Note that it&amp;#39;s a bit more complex to set up and requires some changes to the project on the device.&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Rune Holmgren&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF_BREAKPOINT_COND in debug</title><link>https://devzone.nordicsemi.com/thread/126661?ContentTypeID=1</link><pubDate>Tue, 03 Apr 2018 13:16:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0b5d7a16-1fc6-4449-8f1b-ddb02731a798</guid><dc:creator>rraa</dc:creator><description>&lt;p&gt;Did you try debugging different programme?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>