<?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>help needed to debug nrf51822 application?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/2729/help-needed-to-debug-nrf51822-application</link><description>Hello all, 
 I am developing application for humidity measurement using nrf51822 evaluation board which uses custom services which i have developed. I have already tested example applications given in sdk. Also my humidity application was able to run</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 09 Jun 2014 13:14:51 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/2729/help-needed-to-debug-nrf51822-application" /><item><title>RE: help needed to debug nrf51822 application?</title><link>https://devzone.nordicsemi.com/thread/10604?ContentTypeID=1</link><pubDate>Mon, 09 Jun 2014 13:14:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:43235190-5e39-4a94-aff3-eb0e0c81439c</guid><dc:creator>sushil</dc:creator><description>&lt;p&gt;Thanks John. I will check assert handler and will update about it. Meanwhile i was searching about connection parameters and saw my logs. I also suspect that error occurred when packet was not able to receive on connection parameter update call. And then hci event [BTLE_EVENT_DISCONNECTION_COMPLETE] occurs. Do you have any Idea about what is the issue?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: help needed to debug nrf51822 application?</title><link>https://devzone.nordicsemi.com/thread/10603?ContentTypeID=1</link><pubDate>Mon, 09 Jun 2014 13:01:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9af3e3f8-5e33-4de6-bde7-2e46725afa46</guid><dc:creator>John</dc:creator><description>&lt;p&gt;I think those are OK. I suspect your application is tripping a ASSERT and resetting. I&amp;#39;d change the assert handler so that it doesn&amp;#39;t reset and use the debugger to see the file name and line number that is triggering the assert.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: help needed to debug nrf51822 application?</title><link>https://devzone.nordicsemi.com/thread/10602?ContentTypeID=1</link><pubDate>Mon, 09 Jun 2014 12:54:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:eaec9d4b-3910-450a-a1bd-9041b73d449d</guid><dc:creator>sushil</dc:creator><description>&lt;h2&gt;PeerAddressType: 1;
PeerAddress (MSB): ED2893AA0670;
Connection Interval: 20.0ms;
Connection Latency: 0;
Supervision Timeout: 3000ms;
Clock Accuracy: (1);&lt;/h2&gt;
&lt;p&gt;In my application:
Min connection interval: 0.5 sec;
Max connection interval: 1 sec;
Slave latency: 0;
connection supervisory timeout: 4 sec&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: help needed to debug nrf51822 application?</title><link>https://devzone.nordicsemi.com/thread/10601?ContentTypeID=1</link><pubDate>Mon, 09 Jun 2014 12:32:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fb63253c-ae52-4a03-9428-d62c39f6cd64</guid><dc:creator>John</dc:creator><description>&lt;p&gt;I hate to answer a question with a question, but what are you min and max connection intervals, slave latency and connection supervisory timeout settings?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: help needed to debug nrf51822 application?</title><link>https://devzone.nordicsemi.com/thread/10600?ContentTypeID=1</link><pubDate>Mon, 09 Jun 2014 12:15:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:965507c7-8d08-4459-9410-6954cf4a6cd8</guid><dc:creator>sushil</dc:creator><description>&lt;p&gt;Thanks John. My connection terminates in 2 to 3 seconds after service discovery. Can you suggest me what is happening? These are the logs after completion of service discovery:
=&amp;gt;Serial port read: 04-05-04-00-00-00-08
=&amp;gt;HCI event: BTLE_EVENT_DISCONNECTION_COMPLETE ConnectionHandle: 0x0000, Reason: BTLE_CONNECTION_TIMEOUT
=&amp;gt;Received LL Connection Termination Event, reason 08
=&amp;gt;Lost connection to device. Reason: BTLE_CONNECTION_TIMEOUT
=&amp;gt;Received packet &amp;lt;HciEvent: eventCode=0x0A&amp;gt; - &amp;lt;HciEvent: eventCode=0x0A&amp;gt;
=&amp;gt;Received Link Loss&lt;/p&gt;
&lt;p&gt;Is there any document for debugging BLE applications?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: help needed to debug nrf51822 application?</title><link>https://devzone.nordicsemi.com/thread/10599?ContentTypeID=1</link><pubDate>Mon, 09 Jun 2014 11:59:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b5c25eda-d2f2-40f2-919a-f9a676b3af77</guid><dc:creator>John</dc:creator><description>&lt;p&gt;If you are using the debugger and stop on a break point, the soft device stack will fail and the connection will go down. You can single step your code up until it needs to interact with the soft device and then the debug session will lock up. It is a bit limiting, but I find you get better at dealing with it over time.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>