<?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>BLE disconnects UART</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/44623/ble-disconnects-uart</link><description>Hi, 
 My name is Bruno and I&amp;#39;m developing an Application which consists on: 
 Connect to a BLE device (I&amp;#39;m using Nina B112 from u-blox, which contains a NRF52832 SoC) through a Android Apk; 
 Android will send Nina data through NUS; 
 Nina will send data</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 15 Mar 2019 11:16:26 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/44623/ble-disconnects-uart" /><item><title>RE: BLE disconnects UART</title><link>https://devzone.nordicsemi.com/thread/176375?ContentTypeID=1</link><pubDate>Fri, 15 Mar 2019 11:16:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c18dc6e2-d559-440c-9f7b-fdbd7ae4f829</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;I really recommend you to get HW that supports debugging. Either another debugger or an nRF52832 DK.&amp;nbsp;You will need this to see what&amp;#39;s going on. Alternatively, you can do a sniffer trace using e.g. the nRF Sniffer&amp;nbsp;to see whether the phone actually sends any packets before the timer disconnects, but again, that requires another nRF DK or dongle.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE disconnects UART</title><link>https://devzone.nordicsemi.com/thread/175907?ContentTypeID=1</link><pubDate>Wed, 13 Mar 2019 11:57:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:52f3c1b1-9dcc-41a7-bdaf-8ea1deb9d42d</guid><dc:creator>Bruno</dc:creator><description>&lt;p&gt;thanks for the answer, guys!&lt;/p&gt;
&lt;p&gt;According to this, RTT won&amp;#39;t work indeed&lt;/p&gt;
[quote userid="6462" url="~/f/nordic-q-a/44623/ble-disconnects-uart/175870"]mcuoneclipse.com/.../quote]
&lt;p&gt;But that&amp;#39;s nice! I didn&amp;#39;t know about this SWO debug either. But, turns out my debug probe doesn&amp;#39;t support this debug method. Any tip on how to run that semihosting method? Should I be able to see the printf&amp;#39;s messages on eclipse console? That&amp;#39;s not happening right now&lt;/p&gt;[/quote]&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE disconnects UART</title><link>https://devzone.nordicsemi.com/thread/175870?ContentTypeID=1</link><pubDate>Wed, 13 Mar 2019 10:00:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:da93cb79-b54f-434d-8da3-0d9326b1b926</guid><dc:creator>awneil</dc:creator><description>[quote userid="25882" url="~/f/nordic-q-a/44623/ble-disconnects-uart/175755"] I didn&amp;#39;t know i could use this J-link RTT Viewer in a PE Micro debug probe[/quote]
&lt;p&gt;I don&amp;#39;t think you can?&lt;/p&gt;
&lt;p&gt;AIUI, RTT relies upon proprietary features within the JLink?&lt;/p&gt;
&lt;p&gt;You would have to use the standard &lt;em&gt;semihosting&lt;/em&gt; approach for other debug probes:&lt;/p&gt;
&lt;p&gt;&lt;a href="http://www.keil.com/support/man/docs/armcc/armcc_pge1358787046598.htm"&gt;http://www.keil.com/support/man/docs/armcc/armcc_pge1358787046598.htm&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Or, if your debug probe supports it, use &lt;strong&gt;SWO&lt;/strong&gt;:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://mcuoneclipse.com/2016/10/17/tutorial-using-single-wire-output-swo-with-arm-cortex-m-and-eclipse/"&gt;https://mcuoneclipse.com/2016/10/17/tutorial-using-single-wire-output-swo-with-arm-cortex-m-and-eclipse/&lt;/a&gt;&lt;/p&gt;
[quote userid="26071" url="~/f/nordic-q-a/44623/ble-disconnects-uart/175855"]developing without debug possibilities is difficult[/quote]
&lt;p&gt;+1&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE disconnects UART</title><link>https://devzone.nordicsemi.com/thread/175855?ContentTypeID=1</link><pubDate>Wed, 13 Mar 2019 09:38:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4268f517-589f-421a-b079-9aa26aa13f0a</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;I can&amp;#39;t guarantee that it works, but developing without debug possibilities is difficult. If you can&amp;#39;t get any logging information using this, try to set a breakpoint in the error_handler. Just write APP_ERROR_CHECK(1); in your main function, and follow through where it stops (you still need to define DEBUG in your preprocessor defines). At some point, (varying a bit between the SDK versions) this should give a pointer to a file name, line number and error code that was caught in the error handler. Once you find this, remove APP_ERROR_CHECK(1); and see if the error handler catches any other errors.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE disconnects UART</title><link>https://devzone.nordicsemi.com/thread/175755?ContentTypeID=1</link><pubDate>Tue, 12 Mar 2019 16:38:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:75e92508-3ebc-4ba2-b3a5-ac731486ac3c</guid><dc:creator>Bruno</dc:creator><description>&lt;p&gt;Thank you very much! I will give it a try and come with an answer! I didn&amp;#39;t know i could use this J-link RTT Viewer in a PE Micro debug probe!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE disconnects UART</title><link>https://devzone.nordicsemi.com/thread/175631?ContentTypeID=1</link><pubDate>Tue, 12 Mar 2019 12:45:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5c5e9ec5-625c-4d13-8fc8-90eee0011e50</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/support-attachments/beef5d1b77644c448dabff31668f3a47-d8b86f0710154f1fb1f6be23f0ae7587/pastedimage1552394634475v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;Yes. The J-Link RTT Viewer should do. Remember to define DEBUG in your preprocessor defines, so that the error_handler will post the error information in the log.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE disconnects UART</title><link>https://devzone.nordicsemi.com/thread/175611?ContentTypeID=1</link><pubDate>Tue, 12 Mar 2019 11:44:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c9816275-1d93-49f3-aec3-359b2c52cb93</guid><dc:creator>Bruno</dc:creator><description>&lt;p&gt;Oh, i forgot to tell, i&amp;#39;m using SWD debugger, a PE Micro Multilink Universal for flashing the Nina module. Is there any way to debug log using this setup?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE disconnects UART</title><link>https://devzone.nordicsemi.com/thread/175567?ContentTypeID=1</link><pubDate>Tue, 12 Mar 2019 09:11:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b40acd9c-2bcc-4053-8680-128ac02a39f2</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;RTT logging doesn&amp;#39;t use the UART, but the debugger. How do you program your NINA B112 module? J-Link programmer? Is it a development kit you are using? Just asking to figure out what logging options you have.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE disconnects UART</title><link>https://devzone.nordicsemi.com/thread/175470?ContentTypeID=1</link><pubDate>Mon, 11 Mar 2019 17:50:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2e2b44b3-33dc-4050-a23d-c13e26f90abb</guid><dc:creator>Bruno</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thanks for the reply! I&amp;#39;m using SDK version 15.2. I am currently using a custom board for this application, so i don&amp;#39;t know how to debug it with RTT since my Nina&amp;#39;s Uart is being used for communicating with MSP.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE disconnects UART</title><link>https://devzone.nordicsemi.com/thread/175345?ContentTypeID=1</link><pubDate>Mon, 11 Mar 2019 13:45:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ae4652c5-0e81-455f-acfc-5dcfbc6d8c62</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;If you have any unexpected behavior, you should try to define DEBUG in your preprocessor defines, and monitor the log (RTT log). Make sure that NRF_LOG is enabled in sdk_config.h. What SDK version are you using?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;If you get a log entry saying that it received an error somewhere in the project, what function returned the err_code that was passed into APP_ERROR_CHECK(err_code) that the log is pointing to?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE disconnects UART</title><link>https://devzone.nordicsemi.com/thread/175193?ContentTypeID=1</link><pubDate>Sat, 09 Mar 2019 20:46:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ab5d60d1-49d1-473b-88be-c23f915ebb0b</guid><dc:creator>Bruno</dc:creator><description>&lt;p&gt;Just tried another test. I used the Watchdog example in order to make the module reset, and it worked, now I&amp;#39;m able to reconnect to it. I don&amp;#39;t know if it&amp;#39;s the best fix i could&amp;#39;ve done, but if anyone has any clue about what is making this problem I&amp;#39;d be very glad to fix it in a proper way.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE disconnects UART</title><link>https://devzone.nordicsemi.com/thread/175191?ContentTypeID=1</link><pubDate>Sat, 09 Mar 2019 19:00:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3fa6d842-273d-44f1-b5de-b95303ca48ff</guid><dc:creator>Bruno</dc:creator><description>&lt;p&gt;I also created a timer to keep track of elapsed time since the device was powered on and as debug purpose i blink a led every second. I manage to get that error again and my suspicious seems to be right: Nina looks freezed (led stopped blinking and was left on) after i lost BLE connection to the Android. Is there any way to fix this problem or any other way to use the NUS/UART (i don&amp;#39;t know, maybe i should refresh the BLE connection or something like this) to provent this problem? After getting this error where Nina can&amp;#39;t execute any code anymore, the only solution that comes to my mind is to use an external Watchdog and force reset it, but i&amp;#39;d rather fix this on software, Could anyone please help me?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE disconnects UART</title><link>https://devzone.nordicsemi.com/thread/175163?ContentTypeID=1</link><pubDate>Sat, 09 Mar 2019 02:22:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f7f93d88-941d-455d-91e8-4740f11c0f5b</guid><dc:creator>Bruno</dc:creator><description>&lt;p&gt;Forget to point that when this connection error occurs my disconnect routine does not work, msp keeps working and Nina doesn&amp;#39;t start advertising over again&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>