<?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 debug advertising stopped issue</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/40178/how-to-debug-advertising-stopped-issue</link><description>nRF52832 with softdevice 3.0. Modified ble_app_multirole_lesc project and doing test. Sometimes it doesn&amp;#39;t start advertising (can not be found by nRFconnect app). Sometimes doesn&amp;#39;t start advertising again after disconnect. 
 Is there any clue to debug</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 06 Nov 2018 17:13:18 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/40178/how-to-debug-advertising-stopped-issue" /><item><title>RE: How to debug advertising stopped issue</title><link>https://devzone.nordicsemi.com/thread/156217?ContentTypeID=1</link><pubDate>Tue, 06 Nov 2018 17:13:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cc0b5e42-2121-405e-adea-7901f815c464</guid><dc:creator>gxf</dc:creator><description>&lt;p&gt;Did lots of modification, hard to locate it. Anyway, it is good suggestion. Thanks&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to debug advertising stopped issue</title><link>https://devzone.nordicsemi.com/thread/156216?ContentTypeID=1</link><pubDate>Tue, 06 Nov 2018 17:11:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:419f740c-ec99-4824-aea7-fbbc26107da6</guid><dc:creator>gxf</dc:creator><description>&lt;p&gt;I will check these and add more debugging information. Thanks.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to debug advertising stopped issue</title><link>https://devzone.nordicsemi.com/thread/156215?ContentTypeID=1</link><pubDate>Tue, 06 Nov 2018 17:03:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:829f8456-e1a9-44ac-9662-a0da06ea74da</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;My suggestion is to output to UART for instance the &amp;#39;p_ble_evt-&amp;gt;header.evt_id&amp;#39; from the BLE event handler. Then when it fails to advertise as you expect you can check if there is an BLE event that you are not handling (typically you may find an event id that differ to normal operation).&lt;/p&gt;
&lt;p&gt;An overview of BLE GAP events are for instance found in ble_gap.h, however you may also need to look at ble_ranges.h to find the event id.&lt;/p&gt;
&lt;p&gt;You should also check if you may have an assert, if you have enabled DEBUG define the code may be stuck in the assert handler.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Kenneth&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to debug advertising stopped issue</title><link>https://devzone.nordicsemi.com/thread/156025?ContentTypeID=1</link><pubDate>Mon, 05 Nov 2018 17:05:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f6bd476d-b024-4c80-8e1b-5431c44d9193</guid><dc:creator>awneil</dc:creator><description>&lt;p&gt;Same way you&amp;#39;d debug any other issue?&lt;/p&gt;
&lt;p&gt;Instrument the code - look for what&amp;#39;s different between &amp;quot;working&amp;quot; and non-working cases ...&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>