<?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>Breakpoint triggers fault handler</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/63002/breakpoint-triggers-fault-handler</link><description>Hello, 
 
 I&amp;#39;m using a NRF52832 with SoftDevice s132 v7.0. I also have freertos. I have an app which advertises and scans. The app is set up to trigger a break point on assertions as well - by using app_error_weak.c 
 I noticed that if I put a breakpoint</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 25 Jun 2020 11:27:18 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/63002/breakpoint-triggers-fault-handler" /><item><title>RE: Breakpoint triggers fault handler</title><link>https://devzone.nordicsemi.com/thread/256878?ContentTypeID=1</link><pubDate>Thu, 25 Jun 2020 11:27:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:062f7409-48aa-4f27-8017-dd518ddd4c27</guid><dc:creator>tesc</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;The SoftDevice is expected to assert when pausing execution, as it uses timers to check that it conforms to timing constraints. If for instance the SoftDevice is unable to prepare a data packet and send it out at the correct time for a connection event, it will assert. Any timing failure is considered an indication of critical failure where the SoftDevice may be in an undetermined state. Attempts to recover could lead to undefined behavior, hence the assert (which in a production device will lead to reset.)&lt;/p&gt;
&lt;p&gt;What this means for development, is that pausing execution while the SoftDevice is enabled, in a debug session, in most instances makes the SoftDevice assert shortly after resuming code execution.&lt;/p&gt;
&lt;p&gt;It is possible to run the SoftDevice in the background, with what is called &lt;a href="https://github.com/NordicPlayground/j-link-monitoring-mode-debugging"&gt;monitoring mode debugging (MMD)&lt;/a&gt;. However I do not have experience with MMD in the context of FreeRTOS.&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Terje&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>