<?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>use NrfConnect SDK with 52840 dongle USB CDC Shell/console</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/68085/use-nrfconnect-sdk-with-52840-dongle-usb-cdc-shell-console</link><description>I would like to use the USB dongle with the Openthread CLI example (and eventually an open thread app) as the SDK is just too big and overpowered for my prototypes, I would like to use the USB CDC as the Shell to communicate with the CLI and zephyr. </description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 02 Aug 2021 20:00:17 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/68085/use-nrfconnect-sdk-with-52840-dongle-usb-cdc-shell-console" /><item><title>RE: use NrfConnect SDK with 52840 dongle USB CDC Shell/console</title><link>https://devzone.nordicsemi.com/thread/322969?ContentTypeID=1</link><pubDate>Mon, 02 Aug 2021 20:00:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dfb9422c-dc3c-4415-901b-95c80ad57313</guid><dc:creator>Max Peter</dc:creator><description>&lt;p&gt;This did work nicely until SDK 1.5.1.&amp;nbsp; With SDK 1.6.0 and 1.6.1 the USB shell does not respond anymore. Any idea what has changed with SDK 1.6.0?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: use NrfConnect SDK with 52840 dongle USB CDC Shell/console</title><link>https://devzone.nordicsemi.com/thread/279604?ContentTypeID=1</link><pubDate>Thu, 12 Nov 2020 01:13:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:feb987b1-c7ed-47a6-bed7-dedade417328</guid><dc:creator>riedlse</dc:creator><description>&lt;p&gt;Actually I had that in my main.c, but also had a bunch of other stuff from the subways/usb/console that may have been breaking bits using it as a console.&lt;/p&gt;
&lt;p&gt;So I added to prj.conf ( I may see if the CONFIG_USB_UART_CONSOLE is needed, but hey this works...)&lt;/p&gt;
&lt;p&gt;CONFIG_GPIO=y&lt;br /&gt;CONFIG_USB=y&lt;br /&gt;CONFIG_USB_DEVICE_STACK=y&lt;br /&gt;CONFIG_USB_DEVICE_MANUFACTURER=&amp;quot;SER Consulting LLC&amp;quot;&lt;br /&gt;CONFIG_USB_DEVICE_PRODUCT=&amp;quot;BaseBoard Thermostat&amp;quot;&lt;br /&gt;CONFIG_USB_DEVICE_VID=0x1915&lt;br /&gt;CONFIG_USB_DEVICE_PID=0x520F&lt;br /&gt;CONFIG_USB_CDC_ACM=y&lt;br /&gt;CONFIG_USB_UART_CONSOLE=y&lt;/p&gt;
&lt;p&gt;CONFIG_UART_SHELL_ON_DEV_NAME=&amp;quot;CDC_ACM_0&amp;quot;&lt;/p&gt;
&lt;p&gt;I created a nrf52840dongle_nrf52840.overlay that is just a duplicate of the dk version&lt;/p&gt;
&lt;p&gt;It just needed the include and usb_enable in main.c to work. I think the extra code tried to use it as a console instead of a shell... So I may be trying to create a multi device with 2 CDC&amp;#39;s on it, one for shell and one for console, but I&amp;#39;ll experiment with this first. May want to add this in to the SDK as an overlay for the dongle.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: use NrfConnect SDK with 52840 dongle USB CDC Shell/console</title><link>https://devzone.nordicsemi.com/thread/279595?ContentTypeID=1</link><pubDate>Wed, 11 Nov 2020 21:28:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b75d0756-920d-4b9e-aacf-b313d61eadda</guid><dc:creator>Axel Schlueter</dc:creator><description>&lt;p&gt;I was literally trying the same thing today! In addition to the changes to the config that you already added you also need to enable the USB subsystem in samples/openthread/cli/src/main.c by adding a call to usb_enable. With that change I got the OpenThread CLI working on the PCA10059:&lt;/p&gt;
&lt;pre&gt;diff --git a/samples/openthread/cli/src/main.c b/samples/openthread/cli/src/main.c&lt;br /&gt;index 40178f72..8f70d190 100644&lt;br /&gt;--- a/samples/openthread/cli/src/main.c&lt;br /&gt;+++ b/samples/openthread/cli/src/main.c&lt;br /&gt;@@ -6,6 +6,7 @@&lt;br /&gt;&lt;br /&gt; #include &amp;lt;zephyr.h&amp;gt;&lt;br /&gt; #include &amp;lt;logging/log.h&amp;gt;&lt;br /&gt;+#include &amp;lt;usb/usb_device.h&amp;gt;&lt;br /&gt;&lt;br /&gt; #if CONFIG_BT&lt;br /&gt; #include &amp;quot;ble.h&amp;quot;&lt;br /&gt;@@ -27,6 +28,8 @@ void main(void)&lt;br /&gt; {&lt;br /&gt; LOG_INF(WELLCOME_TEXT);&lt;br /&gt;&lt;br /&gt;+ usb_enable(NULL);&lt;br /&gt;+&lt;br /&gt; #if CONFIG_BT&lt;br /&gt; ble_enable();&lt;br /&gt; #endif&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/pre&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: use NrfConnect SDK with 52840 dongle USB CDC Shell/console</title><link>https://devzone.nordicsemi.com/thread/279567?ContentTypeID=1</link><pubDate>Wed, 11 Nov 2020 16:15:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fd42fdd4-e0dc-489c-8f2c-559bc6c0f849</guid><dc:creator>riedlse</dc:creator><description>&lt;p&gt;Tried just about everything I can think of. As an alternative, can I get the console/shell over bluetooth UART? I was looking at the shell_bt_nus and chi_lpuart (what does chi stand for?)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: use NrfConnect SDK with 52840 dongle USB CDC Shell/console</title><link>https://devzone.nordicsemi.com/thread/279515?ContentTypeID=1</link><pubDate>Wed, 11 Nov 2020 14:16:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6e8a68d6-f227-4aef-adbc-41df5185a0d8</guid><dc:creator>riedlse</dc:creator><description>&lt;p&gt;The console by itself worked and printed to the USB and I had a usb device to connect to. I pulled a clean 1.4.0 dev environment. then copied the modifications to Kconfig, prj.conf, CMakeLists.txt (Hmm, do I need do do a zephyr update or something for the Cmake? and main.c. I don&amp;#39;t get a usb device to connect to. Since the console did not have a board overlay file, I did not create one for the USB dongle. I will also try that.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: use NrfConnect SDK with 52840 dongle USB CDC Shell/console</title><link>https://devzone.nordicsemi.com/thread/279480?ContentTypeID=1</link><pubDate>Wed, 11 Nov 2020 12:16:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d8830a62-3945-4e7d-b72e-a4511bcf4b45</guid><dc:creator>riedlse</dc:creator><description>&lt;p&gt;&lt;span&gt;Quite well hidden, but that does seem to work for the console. I will try using those parameters (and the code in main.c). One possible issue is that it seems there is a difference between the zephyr console and shell, and the CLI example needs the shell. But I also have the dual cdc_acm_composite example, and may be able to use that to figure out how to get both console and shell off of the USB port&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: use NrfConnect SDK with 52840 dongle USB CDC Shell/console</title><link>https://devzone.nordicsemi.com/thread/279429?ContentTypeID=1</link><pubDate>Wed, 11 Nov 2020 09:13:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6731662e-7f36-4ce4-a493-861f2c828f68</guid><dc:creator>Simon</dc:creator><description>&lt;p&gt;Could you try to get the sample &lt;em&gt;&lt;span style="background-color:rgba(255, 255, 255, 1);"&gt;zephyr\samples\subsys\usb\console\src\main.c&lt;/span&gt;&lt;/em&gt;&lt;span style="background-color:rgba(255, 255, 255, 1);"&gt; &lt;/span&gt;to work with the 52840 Dongle? If you do, then you can port it to the openthread sample. I was able to use that sample to log via USB on the nRF52840 DK at least.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>