<?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>how to isolate the unwanted bluetooth signal during debug?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/41187/how-to-isolate-the-unwanted-bluetooth-signal-during-debug</link><description>I was trying to debug the mesh sdk code, but it always end to sleep_forever, so I suspect it&amp;#39;s disturbed by some unwanted bluetooth signals</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 05 Dec 2018 01:47:40 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/41187/how-to-isolate-the-unwanted-bluetooth-signal-during-debug" /><item><title>RE: how to isolate the unwanted bluetooth signal during debug?</title><link>https://devzone.nordicsemi.com/thread/160285?ContentTypeID=1</link><pubDate>Wed, 05 Dec 2018 01:47:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a1fd375b-cd48-4ff3-bb27-a1081594b589</guid><dc:creator>zzzh</dc:creator><description>&lt;p&gt;Got it.&lt;/p&gt;
&lt;p&gt;Thank you so much for the help, Terje.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Regards.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to isolate the unwanted bluetooth signal during debug?</title><link>https://devzone.nordicsemi.com/thread/160249?ContentTypeID=1</link><pubDate>Tue, 04 Dec 2018 16:36:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7fb9bc42-eb0e-4a08-8114-c4f9b2a8c35c</guid><dc:creator>tesc</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Then you should have a look at the id, pc and info that you got when breaking in app_error_fault_handler for the first time, as that will point you towards the error.&lt;/p&gt;
&lt;p&gt;You may have some luck with setting up &lt;a href="https://github.com/NordicPlayground/j-link-monitoring-mode-debugging/tree/SDK15.0"&gt;Monitor Mode Debugging&lt;/a&gt; with the nRF5 SDK for Mesh, but as far as I know this is not something we have tried. (We have only used it with the nRF5 SDK.) If you can manage with only stopping once when debugging then I suggest that you work within that limitation.&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><item><title>RE: how to isolate the unwanted bluetooth signal during debug?</title><link>https://devzone.nordicsemi.com/thread/160246?ContentTypeID=1</link><pubDate>Tue, 04 Dec 2018 16:09:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3d1ea40c-6704-492f-8d84-0ae89b021a45</guid><dc:creator>zzzh</dc:creator><description>&lt;p&gt;Hi, Terje,&lt;/p&gt;
&lt;p&gt;Yeah, I do have breakpoints in&amp;nbsp;&lt;span&gt;app_error_fault_handler, though, there are too many&amp;nbsp;NRF_MESH_ASSERT..&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;So SoftDevice make that happen? how you Nordic guys do debugging in such situation?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Can&amp;nbsp;Real-time debugging solve this issue? if yes, how to set breakpoints in Thread mode or lower priority interrupts?&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;span&gt;Thanks &amp;amp; Regards&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to isolate the unwanted bluetooth signal during debug?</title><link>https://devzone.nordicsemi.com/thread/160245?ContentTypeID=1</link><pubDate>Tue, 04 Dec 2018 15:39:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:53909bb0-e23d-4745-b4b1-f62fcbcf6ce0</guid><dc:creator>tesc</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Other signals (including other bluetooth signals) does not lead to the behavior that you see.&lt;/p&gt;
&lt;p&gt;Ending up in sleep_forever() means you have hit an assert. You should have gotten a log message telling what the error is, if you have enabled logging. Another way to find out what exactly the assert is is to put a breakpoint in app_error_fault_handler and read the id, pc and info values when it hits.&lt;/p&gt;
&lt;p&gt;Please note that if the SoftDevice is enabled you will most likely get an assert when you resume running after a pause. For instance, if resuming after having stopped on a breakpoint. The reason for this is the SoftDevice will not be able to meet timing requirements and therefore the internal timing checks will fail, giving an assert within the SoftDevice.&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>