<?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>nRF52840 BT Characteristic Notify only works when debugger is attached</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/54427/nrf52840-bt-characteristic-notify-only-works-when-debugger-is-attached</link><description>Hello, 
 nRF52840-DK 
 SDK: 15.3.0 
 s140 
 OS: Ubuntu 
 IDE: SES 
 Our application is has a notify characteristic that works when attached to the JLink debugger. I can get the notify update within nRF connect, but when the application is not attached</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 20 Nov 2019 12:11:12 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/54427/nrf52840-bt-characteristic-notify-only-works-when-debugger-is-attached" /><item><title>RE: nRF52840 BT Characteristic Notify only works when debugger is attached</title><link>https://devzone.nordicsemi.com/thread/221057?ContentTypeID=1</link><pubDate>Wed, 20 Nov 2019 12:11:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:37e07667-eb73-4a00-bfe3-b07db5d3ba56</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;&lt;span&gt;I would recommend that you have a look at the&amp;nbsp;&lt;/span&gt;&lt;a href="https://www.segger.com/products/debug-probes/j-link/technology/about-real-time-transfer/"&gt;RTT description on Seggers webpage&lt;/a&gt;&lt;span&gt;.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;-Amanda H.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52840 BT Characteristic Notify only works when debugger is attached</title><link>https://devzone.nordicsemi.com/thread/220922?ContentTypeID=1</link><pubDate>Tue, 19 Nov 2019 16:08:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:be214450-329d-4f60-a62d-c57badb38668</guid><dc:creator>BEplane</dc:creator><description>&lt;p&gt;My assumption is that without the debugger attached the RTT log is not emptied, therefore setting it to block will not work ever when not connected to the debugger to empty the RTT log. &lt;/p&gt;
&lt;p&gt;We also saw without the setting set to block we would end up dropping some logs (if we were printing a large amount of logs) This is not ideal, because the to prevent drops we block, but this breaks to code from working when not attached to a debugger. The fix would be to have multiple build and debug configurations, and that can be a hassle, then there are two builds to verify work properly.&lt;/p&gt;
&lt;p&gt;Our eventual work around will be to use UART, and printf. This will print out regardless of being attached or not, and to get the prints all you do is connect with putty.&lt;/p&gt;
&lt;p&gt;The advantages of RTT are unclear to me.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52840 BT Characteristic Notify only works when debugger is attached</title><link>https://devzone.nordicsemi.com/thread/220466?ContentTypeID=1</link><pubDate>Mon, 18 Nov 2019 07:18:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:db6a1fd7-4b6c-4646-9434-7e0a8176e86d</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;nbsp;&lt;code&gt;SEGGER_RTT_CONFIG_DEFAULT_MODE&lt;/code&gt;&amp;nbsp;is configured&amp;nbsp;&lt;/span&gt;for the RTT behavior if the buffer is full in&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;sdk_config.h&lt;/code&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;by setting it&lt;span&gt;&amp;nbsp;&lt;/span&gt;to the mode you want.&lt;/p&gt;
&lt;p&gt;The following modes are supported:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;SKIP - Do not block, output nothing.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;blockquote&gt;
&lt;p&gt;TRIM - Do not block, output as much as fits&lt;/p&gt;
&lt;/blockquote&gt;
&lt;blockquote&gt;
&lt;p&gt;BLOCK - Wait until there is space in the buffer&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;The default mode is SKIP.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Could you also test with &amp;lt;nRF5_SDK&amp;gt;\examples\ble_peripheral\ble_app_uart? Do you see the same symptom? If not, could you compare the sdk_config.h to see the differences?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;-Amanda H.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>