<?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>MPSL Assert 112,2165 in nRF Connect SDK when Setting Breakpoints in BLE Stack</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/87824/mpsl-assert-112-2165-in-nrf-connect-sdk-when-setting-breakpoints-in-ble-stack</link><description>Hello, 
 I&amp;#39;m working on a BLE application using zephyr and nRF Connect SDK 1.8.0 on the nrf52840. I&amp;#39;m debugging the BLE stack using ozone but whenever I set breakpoints the program runs to the breakpoint properly, but stepping causes E: MPSL ASSERT: 112</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 12 May 2022 08:48:20 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/87824/mpsl-assert-112-2165-in-nrf-connect-sdk-when-setting-breakpoints-in-ble-stack" /><item><title>RE: MPSL Assert 112,2165 in nRF Connect SDK when Setting Breakpoints in BLE Stack</title><link>https://devzone.nordicsemi.com/thread/367544?ContentTypeID=1</link><pubDate>Thu, 12 May 2022 08:48:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:61046e28-5ab5-4c2a-afac-3fe716c39217</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;The BLE stack have strict timing requirements in order to comply with the BLE specifications. By hitting a breakpoint with your debugger, the CPU will be halted, preventing the CPU from handling scheduled events/tasks in the BLE stack. This will lead to the assert you are seeing when trying to continue code execution.&lt;/p&gt;
&lt;p&gt;You can run the code until you hit the breakpoint, step as far as you are allowed before application asserts, then reset the application and run until a new breakpoint. In nRF5 SDK we had support for&amp;nbsp;Segger Monitor Mode Debugging, but unfortunately, it does not seem like this is supported in nRF Connect SDK as of now. See these two threads for more details and suggestions:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/84514/debugging-with-monitor-mode-on-ncs"&gt;https://devzone.nordicsemi.com/f/nordic-q-a/84514/debugging-with-monitor-mode-on-ncs&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/70769/problem-using-monitor-mode-debugging-with-the-nrf-connect-sdk"&gt;https://devzone.nordicsemi.com/f/nordic-q-a/70769/problem-using-monitor-mode-debugging-with-the-nrf-connect-sdk&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Jørgen&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>