<?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>LOG_INF print in debug terminal and printf / printk in uart terminal</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/77023/log_inf-print-in-debug-terminal-and-printf-printk-in-uart-terminal</link><description>Hi, 
 I am interfacing the Peripheral_hids_keyboard + peripheral_uart code 
 I code can print all the log info data printk and printf data in uart console 
 I want to separate the printing that LOG_INF,LOG_WAR and LOG_ERR should be print only in Debug</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 05 Jul 2021 07:40:45 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/77023/log_inf-print-in-debug-terminal-and-printf-printk-in-uart-terminal" /><item><title>RE: LOG_INF print in debug terminal and printf / printk in uart terminal</title><link>https://devzone.nordicsemi.com/thread/318560?ContentTypeID=1</link><pubDate>Mon, 05 Jul 2021 07:40:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8449dba2-dd6f-4bbd-8943-72d65ed70c97</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;If you strip the CONFIG_ and search in the kconfig files in the ncs tree, you will get the definition of it. In this case, its here:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://github.com/nrfconnect/sdk-nrf/blob/master/samples/Kconfig#L7-L17"&gt;https://github.com/nrfconnect/sdk-nrf/blob/master/samples/Kconfig#L7-L17&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: LOG_INF print in debug terminal and printf / printk in uart terminal</title><link>https://devzone.nordicsemi.com/thread/318486?ContentTypeID=1</link><pubDate>Fri, 02 Jul 2021 17:07:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8c361fa7-0ed2-4798-aac0-a243c62f4376</guid><dc:creator>Sunil vignesh</dc:creator><description>&lt;p&gt;is there any multiple service running kconfig file is there&lt;/p&gt;
&lt;p&gt;any example with multiple service running&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: LOG_INF print in debug terminal and printf / printk in uart terminal</title><link>https://devzone.nordicsemi.com/thread/318468?ContentTypeID=1</link><pubDate>Fri, 02 Jul 2021 13:44:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2aeea203-1127-4792-b4f7-910b9584b8ba</guid><dc:creator>Sunil vignesh</dc:creator><description>&lt;p&gt;&lt;strong&gt;CONFIG_NCS_SAMPLES_DEFAULTS=y&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;What is this mean if i use this &lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;ALL the log info and printk only in uart terminal &lt;/strong&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: LOG_INF print in debug terminal and printf / printk in uart terminal</title><link>https://devzone.nordicsemi.com/thread/318453?ContentTypeID=1</link><pubDate>Fri, 02 Jul 2021 12:58:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:04d826d6-08cc-49c2-9ce9-3879301e5d18</guid><dc:creator>Sunil vignesh</dc:creator><description>&lt;p&gt;For Question 2&amp;nbsp; : PRINTK diable&lt;/p&gt;
&lt;p&gt;I found that only setting&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;CONFIG_PRINTK=n &lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;is not working it is printing the values in the uart terminal &lt;/p&gt;
&lt;p&gt;but instead of one setting&amp;nbsp; i did&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;CONFIG_PRINTK=n&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;CONFIG_LOG_PRINTK=y&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;it works &lt;/p&gt;
&lt;p&gt;in uart terminal it doesn&amp;#39;t print&lt;/p&gt;
&lt;p&gt;but when i ser&lt;/p&gt;
&lt;p&gt;CONFIG_LOG_PRINTK=n . it prints in uart terminal&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&lt;/strong&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: LOG_INF print in debug terminal and printf / printk in uart terminal</title><link>https://devzone.nordicsemi.com/thread/318359?ContentTypeID=1</link><pubDate>Fri, 02 Jul 2021 08:23:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5e2000d6-8c50-42a3-98cc-326797b2ba06</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;See:&amp;nbsp;&lt;a href="https://docs.zephyrproject.org/2.4.0/guides/kconfig/index.html"&gt;docs.zephyrproject.org/.../index.html&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: LOG_INF print in debug terminal and printf / printk in uart terminal</title><link>https://devzone.nordicsemi.com/thread/318358?ContentTypeID=1</link><pubDate>Fri, 02 Jul 2021 08:23:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ae886935-1d92-4863-b071-6a63e423c14a</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;You have setup the log module to print on RTT:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;CONFIG_LOG=y
CONFIG_LOG_BUFFER_SIZE=2048
CONFIG_USE_SEGGER_RTT=y
CONFIG_LOG_BACKEND_RTT=y
CONFIG_LOG_BACKEND_UART=n&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;In addition, this routes printk() to the log module:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;CONFIG_LOG_PRINTK=y&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Setting this to &amp;#39;n&amp;#39;, will cause it to use the CONSOLE backend (see configs UART_CONSOLE and RTT_CONSOLE)&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
[quote user=""]2. How to disable printk only but need to print the PRINTF and others ?[/quote]
&lt;p&gt;&amp;nbsp;set PRINTK=n&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: LOG_INF print in debug terminal and printf / printk in uart terminal</title><link>https://devzone.nordicsemi.com/thread/318303?ContentTypeID=1</link><pubDate>Thu, 01 Jul 2021 17:45:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c8066aa6-f6bc-4991-8910-1e0d77ea1b78</guid><dc:creator>Sunil vignesh</dc:creator><description>&lt;p&gt;3. In k config is it possible to create multiple menus&lt;/p&gt;
&lt;p&gt;like&lt;/p&gt;
&lt;p&gt;menu &amp;quot;HId&amp;quot;&lt;/p&gt;
&lt;p&gt;;;;&lt;/p&gt;
&lt;p&gt;endmenu&lt;/p&gt;
&lt;p&gt;menu &amp;quot;NUS&amp;quot;&lt;/p&gt;
&lt;p&gt;;;;;&lt;/p&gt;
&lt;p&gt;endmenu&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;like that&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>