<?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 completely turn off debugging and logging</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/28576/how-to-completely-turn-off-debugging-and-logging</link><description>I am using the ble_peripheral template that comes in Nordic SDK 8.1. I setup uart logging and also debugging with the following lines of code: 
 void assert_nrf_callback(uint16_t line_num, const uint8_t * p_file_name)
{
 #define DEAD_BEEF 0xDEADBEEF</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 18 Dec 2017 08:40:30 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/28576/how-to-completely-turn-off-debugging-and-logging" /><item><title>RE: How to completely turn off debugging and logging</title><link>https://devzone.nordicsemi.com/thread/113225?ContentTypeID=1</link><pubDate>Mon, 18 Dec 2017 08:40:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:99c73ada-7397-4581-bc4f-d8c9c9027ae1</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;You can define it in the preprocessor symbols in C/C++ tab in project setting if you use Keil.
The symbols is mentioned in &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk51.v9.0.0/lib_trace.html?cp=4_0_10_3_6"&gt;the documentation&lt;/a&gt;.&lt;br /&gt;
You can use printf(), but it&amp;#39;s recommended to use  app_trace_log() instead, as it&amp;#39;s easy to turn off and on logging with the symbol.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to completely turn off debugging and logging</title><link>https://devzone.nordicsemi.com/thread/113226?ContentTypeID=1</link><pubDate>Fri, 15 Dec 2017 19:45:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d50fe582-210a-44d8-9e37-bc1160bb1357</guid><dc:creator>tyler</dc:creator><description>&lt;p&gt;Where would that be defined?  I searched the project and couldn&amp;#39;t find ENABLE_DEBUG_LOG_SUPPORT defined anywhere.  Is it possible that since I&amp;#39;m using printf() to print to UART there is a different way to disable it?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to completely turn off debugging and logging</title><link>https://devzone.nordicsemi.com/thread/113224?ContentTypeID=1</link><pubDate>Fri, 15 Dec 2017 12:27:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9793b90e-bc7a-482c-a032-5849a9969f86</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Tyler,&lt;/p&gt;
&lt;p&gt;By default you can turn off and on  trace log by defining ENABLE_DEBUG_LOG_SUPPORT or not. The macro define will control if the log module will be implemented or not. I&amp;#39;m not sure why you need to add those above function in. Also please be aware that SDK v8.x is very old. The last SDK that support nRF51 is SDK v12.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>