<?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>Using USB for CLI and HW UART for logging on nRF52</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/102391/using-usb-for-cli-and-hw-uart-for-logging-on-nrf52</link><description>Hi everyone, 
 I wanted to setup USB streanm for Zephyr CLI using CLI API and HW UART stream for only logging purposes (i.e., log info, warn, error, etc.) and was wondering if there is an example project available for this specific scenario. 
 Thank you</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 31 Jul 2023 09:27:44 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/102391/using-usb-for-cli-and-hw-uart-for-logging-on-nrf52" /><item><title>RE: Using USB for CLI and HW UART for logging on nRF52</title><link>https://devzone.nordicsemi.com/thread/438942?ContentTypeID=1</link><pubDate>Mon, 31 Jul 2023 09:27:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6ed4a39d-7d2b-416b-b2b1-02125756e80d</guid><dc:creator>haakonsh</dc:creator><description>&lt;p&gt;I can&amp;#39;t think of a sample that fits that description.&lt;/p&gt;
&lt;p&gt;You can use the shell sample&amp;nbsp;zephyr\samples\subsys\shell\shell_module with&amp;nbsp;OVERLAY_CONFIG=&amp;quot;overlay-usb.conf&amp;quot;&lt;br /&gt; DTC_OVERLAY_FILE=&amp;quot;usb.overlay&amp;quot;.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Then you should be able to set the logging backend to a HW&amp;nbsp;UART instance with the configs from&amp;nbsp;zephyr\samples\subsys\logging\logger; prj.conf, Kconfig, and boards/nrf52840dk_nrf52840.conf.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>