<?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>Zephyr shell on an nRF52840 board</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/86654/zephyr-shell-on-an-nrf52840-board</link><description>I&amp;#39;m trying to build a basic shell sample on a custom board based on nRF52840 
 In the proj.conf file I have 
 
 CONFIG_SHELL =y 
 CONFIG_SHELL_GETOPT =y 
 CONFIG_SHELL_BACKENDS =y 
 CONFIG_SHELL_BACKEND_SERIAL =y 
 
 CONFIG_SHELL_ECHO_STATUS =y 
 I get</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 06 Apr 2022 18:15:29 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/86654/zephyr-shell-on-an-nrf52840-board" /><item><title>RE: Zephyr shell on an nRF52840 board</title><link>https://devzone.nordicsemi.com/thread/362165?ContentTypeID=1</link><pubDate>Wed, 06 Apr 2022 18:15:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c75caf25-b2de-46c1-b7ee-6bfe34c37e8c</guid><dc:creator>AndyM</dc:creator><description>&lt;p&gt;Answering my own question&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_SHELL_LOG_BACKEND=n&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;did the trick&lt;/p&gt;
&lt;p&gt;Thank you!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Zephyr shell on an nRF52840 board</title><link>https://devzone.nordicsemi.com/thread/362163?ContentTypeID=1</link><pubDate>Wed, 06 Apr 2022 17:46:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:45c7f386-c7ce-4aef-8e4c-56886b76a708</guid><dc:creator>AndyM</dc:creator><description>&lt;p&gt;Follow up question&lt;/p&gt;
&lt;p&gt;&amp;nbsp;I have logging enabled with the following config items&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_LOG&lt;/span&gt;&lt;span&gt;=y&lt;/span&gt;&lt;br /&gt;
&lt;div&gt;&lt;span&gt;CONFIG_LOG_PRINTK&lt;/span&gt;&lt;span&gt;=y&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_USE_SEGGER_RTT&lt;/span&gt;&lt;span&gt;=y&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_LOG2_MODE_IMMEDIATE&lt;/span&gt;&lt;span&gt;=y &lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp;CONFIG_LOG2_MODE_DEFERRED &amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_LOG_BACKEND_RTT&lt;/span&gt;&lt;span&gt;=y&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_LOG_DEFAULT_LEVEL&lt;/span&gt;&lt;span&gt;=4&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;When I added uart I see the logging in the uart console as well as in the JLink RTT viewer&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;How do I disable logging in the UART console ?&amp;nbsp; I only need my custom commands to appear there.&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;Thank you&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Zephyr shell on an nRF52840 board</title><link>https://devzone.nordicsemi.com/thread/362146?ContentTypeID=1</link><pubDate>Wed, 06 Apr 2022 15:37:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:29f2a023-f50c-4e24-99f7-55512c07ac69</guid><dc:creator>AndyM</dc:creator><description>&lt;p&gt;That resolved it, thank you!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Zephyr shell on an nRF52840 board</title><link>https://devzone.nordicsemi.com/thread/362065?ContentTypeID=1</link><pubDate>Wed, 06 Apr 2022 11:38:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:82d7cb2c-5e9f-41a0-83df-7fc7ea542f31</guid><dc:creator>Marte Myrvold</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;You need to add zephyr,shell-uart&amp;nbsp; to the chosen node in the devicetree file for your board. You can see an example of how this is done in the devicetree file for nRF52840 DK (zephyr/boards/arm/nrf52840dk_nrf52840/nrf52840dk_nrf52840.dts):&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;/ {
	model = &amp;quot;Nordic nRF52840 DK NRF52840&amp;quot;;
	compatible = &amp;quot;nordic,nrf52840-dk-nrf52840&amp;quot;;

	chosen {
		zephyr,console = &amp;amp;uart0;
		zephyr,shell-uart = &amp;amp;uart0;
		zephyr,uart-mcumgr = &amp;amp;uart0;
		zephyr,bt-mon-uart = &amp;amp;uart0;
		zephyr,bt-c2h-uart = &amp;amp;uart0;
		zephyr,sram = &amp;amp;sram0;
		zephyr,flash = &amp;amp;flash0;
		zephyr,code-partition = &amp;amp;slot0_partition;
	};&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Marte&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>