<?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 Console on Adafruit Feather nrf52840 connected via SWD to nrf52840dk</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/84989/zephyr-console-on-adafruit-feather-nrf52840-connected-via-swd-to-nrf52840dk</link><description>I have a Thread bench-top environment set up that includes 
 
 One nrf5340dk flashed with the openthread coap_server firmware build and flashed on 1.8 via Visual Code 
 Two nrf52840dk&amp;#39;s flashed with openthread coap_client firmware build and flashed on</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 23 Feb 2022 14:43:24 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/84989/zephyr-console-on-adafruit-feather-nrf52840-connected-via-swd-to-nrf52840dk" /><item><title>RE: Zephyr Console on Adafruit Feather nrf52840 connected via SWD to nrf52840dk</title><link>https://devzone.nordicsemi.com/thread/354630?ContentTypeID=1</link><pubDate>Wed, 23 Feb 2022 14:43:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ef2984a2-d453-4da9-8935-9b51fe0e21d6</guid><dc:creator>HeneryH</dc:creator><description>&lt;p&gt;RTT worked but I needed two settings in the prj file.&lt;/p&gt;
&lt;p&gt;Thank you&lt;/p&gt;
&lt;div style="background-color:#1e1e1e;color:#d4d4d4;font-family:Consolas, &amp;#39;Courier New&amp;#39;, monospace;font-size:14px;font-weight:normal;line-height:19px;white-space:pre;"&gt;
&lt;div&gt;&lt;span style="color:#569cd6;"&gt;CONFIG_SHELL_BACKEND_RTT&lt;/span&gt;&lt;span style="color:#d4d4d4;"&gt;=y&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="color:#569cd6;"&gt;CONFIG_USE_SEGGER_RTT&lt;/span&gt;&lt;span style="color:#d4d4d4;"&gt;=y&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Zephyr Console on Adafruit Feather nrf52840 connected via SWD to nrf52840dk</title><link>https://devzone.nordicsemi.com/thread/354608?ContentTypeID=1</link><pubDate>Wed, 23 Feb 2022 13:56:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8594d1c3-a425-4c8e-9ecd-70d0ca1dbc7b</guid><dc:creator>HeneryH</dc:creator><description>&lt;p&gt;Ah, on the RTT viewer, I saw this warning in the log.&lt;/p&gt;
&lt;p&gt;warning: SHELL_BACKEND_RTT (defined at c:\Users\jjfly\nrf_apps\v1_9\openthread_cli\Adafruit_Feather_nrf52840\subsys\shell\backends\Kconfig.backends:122) was assigned the value &amp;#39;y&amp;#39; but got the value &amp;#39;n&amp;#39;. &lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I&amp;#39;ll investigate.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Zephyr Console on Adafruit Feather nrf52840 connected via SWD to nrf52840dk</title><link>https://devzone.nordicsemi.com/thread/354596?ContentTypeID=1</link><pubDate>Wed, 23 Feb 2022 13:32:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8eca024f-f619-4d60-a132-2d3037664dfc</guid><dc:creator>HeneryH</dc:creator><description>&lt;p&gt;I just built it again from scratch from sample and only added that single new line to the prj.cfg file.&amp;nbsp; Same behavior.&lt;/p&gt;
&lt;p&gt;I&amp;#39;ll try adding the USB overlay to the project to see if I can get it that way. [maybe a better way at the end of this post]&lt;/p&gt;
&lt;p&gt;The problem I am trying to solve is figuring out how to get the eui64 for any device?&amp;nbsp; Maybe there is a better way of determining that data value?&lt;/p&gt;
&lt;p&gt;If I have a bunch of devices I want to deploy to the field, I need to generate join qr codes for each of them.&amp;nbsp; Maybe flash it with CLI, determine the eui64, then reflash with the desired project?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Zephyr Console on Adafruit Feather nrf52840 connected via SWD to nrf52840dk</title><link>https://devzone.nordicsemi.com/thread/354532?ContentTypeID=1</link><pubDate>Wed, 23 Feb 2022 10:50:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e558ee84-d7c5-4f61-918d-73a06e2f1745</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Did you make any other modifications to the config of the coap_client example? I got the log and CLI on RTT from adding this single config. Did you build for the feather target, or for the nrf52840dk board? Also, you should select &amp;quot;nRF52840_XXAA&amp;quot; in RTT viewer when connecting, the other settings looks correct.&lt;/p&gt;
[quote user="HeneryH"]When I connect that USB port to the win11 machine I do not get any serial ports detected like I do when I connect any of the DKs.[/quote]
&lt;p&gt;This is normal if the firmware running on the nRF52840 does not initialize the USB peripheral. You can check if the USB port works by building the OpenThread CLI sample with &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/1.8.0/nrf/samples/openthread/cli/README.html#activating-sample-extensions"&gt;usb-overlay&lt;/a&gt; configuration and build it for the &amp;#39;&lt;span&gt;nrf52840dongle_nrf52840&amp;#39; target. This should use the native USB port of the nRF52840 for the shell transport.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Best regards,&lt;br /&gt;Jørgen&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Zephyr Console on Adafruit Feather nrf52840 connected via SWD to nrf52840dk</title><link>https://devzone.nordicsemi.com/thread/354397?ContentTypeID=1</link><pubDate>Tue, 22 Feb 2022 14:56:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e8c12e05-8759-493b-af36-4c17d6690425</guid><dc:creator>HeneryH</dc:creator><description>&lt;p&gt;Thank you &lt;span&gt;J&amp;oslash;rgen&lt;/span&gt;. I will try these options.&lt;/p&gt;
&lt;p&gt;The schematic for the Adafruit Feather nrf52840 Express does seem to show the SoC D+/D- being routed off the module and to the microusb connector with just some resitstors inline.&lt;/p&gt;
&lt;p&gt;When I connect that USB port to the win11 machine I do not get any serial ports detected like I do when I connect any of the DKs.&lt;/p&gt;
&lt;p&gt;I am trying the Backend RTT method now.&amp;nbsp; I rebuilt the config with your suggested config item.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Connecting with J-Link RTT Viewer I get the following.&amp;nbsp; I will investigate further and try the alternate methods.&amp;nbsp; FYI, J-Link RTT Viewer prompted me for a fw update.&amp;nbsp; I tried both with the same result.&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://i.imgur.com/lFCaRQx.png" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://i.imgur.com/iKNnBqk.png" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://i.imgur.com/YRPxRZJ.png" /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Zephyr Console on Adafruit Feather nrf52840 connected via SWD to nrf52840dk</title><link>https://devzone.nordicsemi.com/thread/354379?ContentTypeID=1</link><pubDate>Tue, 22 Feb 2022 14:05:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d958f5f2-307d-412d-bd29-09114f701d98</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I assume you are referring to the &amp;quot;ot eui64&amp;quot; command? I could not find any commands named &amp;quot;ot &lt;span&gt;eiud&lt;/span&gt;&amp;quot;.&lt;/p&gt;
&lt;p&gt;There is no UART interface available through the debug connector. You will either have to use the SWD interface, or the UART interface of the&amp;nbsp;&lt;span&gt;Adafruit Feather nRF52840 Express externally through a UART-to-USB adapter.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;It is possible to enable RTT support for the Shell, by setting &amp;quot;CONFIG_SHELL_BACKEND_RTT=y&amp;quot; in your prj.conf file. You can then send the shell commands from an RTT client, like J-Link RTT Viewer (Enable: &amp;quot;Input-&amp;gt;Sending...-&amp;gt;Send on Enter for erase of reading):&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/ot_5F00_shell_5F00_rtt.png" /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Depending on which target you built for when building the firmware for the Feather, the UART will be available on some of the GPIOs of the board. You can connect the UART TX/RX pins to an UART-to-USB cable, or to P0.06/P0.08 pins of an (erased) nRF52840 DK, which will allow you to use the&amp;nbsp;&lt;a title="Virtual COM port" href="https://infocenter.nordicsemi.com/topic/ug_nrf52840_dk/UG/dk/vir_com_port.html?cp=4_0_4_6_1"&gt;Virtual COM port&lt;/a&gt;&amp;nbsp;functionality.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;One final option is to use the USB port of the Feather. It looks from the schematics as this is connected directly to the native USB port of the nRF52840, which means you will have to enable USB support in the application. I can&amp;#39;t find any simple configs to enable USB CDC ACM support for the shell, but you may be able to achieve it following the procedure described in &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/81807/shell-over-usb-cdc-acm-class-device-will-not-accept-incoming-characters-with-zephyr-2-7-0"&gt;this thread&lt;/a&gt;.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Finally, the &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/1.8.0/nrf/ug_thread_configuring.html#ieee-802-15-4-eui-64-configuration"&gt;EUI64 is by default&lt;/a&gt; generated from Nordic&amp;#39;s MA-L + the random number stored in FICR-&amp;gt;&lt;a href="https://infocenter.nordicsemi.com/topic/ps_nrf52840/ficr.html?cp=4_0_0_3_3_0_2#register.DEVICEID-0-1"&gt;DEVICEID[n]&lt;/a&gt;&amp;nbsp;registers. You can read it out using nrfjprog:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/eui64_5F00_nrfjprog.png" /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Best regards,&lt;br /&gt;Jørgen&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>