<?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>&amp;quot;Approved Solution&amp;quot; for adding serial output over USB from nRF52840 Dongle apps</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/92720/approved-solution-for-adding-serial-output-over-usb-from-nrf52840-dongle-apps</link><description>Background: 
 In pursuing development of Thread-enabled devices for use in home automation, especially using the just announced Matter 1.0 protocol, the nRF52840 Dongle is potentially a very useful tool. It&amp;#39;s inexpensive and, unlike many alternatives</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 11 Oct 2022 10:27:45 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/92720/approved-solution-for-adding-serial-output-over-usb-from-nrf52840-dongle-apps" /><item><title>RE: "Approved Solution" for adding serial output over USB from nRF52840 Dongle apps</title><link>https://devzone.nordicsemi.com/thread/390227?ContentTypeID=1</link><pubDate>Tue, 11 Oct 2022 10:27:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3894e52d-9b1b-4251-bd8f-77160a15ad74</guid><dc:creator>&amp;#216;yvind</dc:creator><description>&lt;p&gt;Mike,&amp;nbsp;&lt;/p&gt;
[quote user="mikew67"]What makes this app different from &amp;#39;Hello World&amp;#39; to make this possible[/quote]
&lt;p&gt;So the Hello World sample, on its own, is the simplest sample. This has nothing included in its configuration file, prj.conf, only what the board definitions provide e.g. in your case the &lt;em&gt;zephyr\boards\arm\nrf52840dongle_nrf52840\nrf52840dongle_nrf52840_defconfig.&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;From here you can add functionality to the Hello World e.g. copy the content of&amp;nbsp;&lt;em&gt;zephyr\samples\subsys\usb\console\prj.conf&lt;/em&gt; to the&amp;nbsp;&lt;em&gt;zephyr\samples\hello_world\prj.conf.&amp;nbsp;&lt;/em&gt;And then copy the content of&amp;nbsp;&lt;em&gt;zephyr\samples\subsys\usb\console\src\main.c&lt;/em&gt; to&amp;nbsp;&lt;em&gt;zephyr\samples\hello_world\src\main.c&lt;/em&gt;.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Note that there is an overlay file as well to configure the devicetree of the device. Have a &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/2.1.0/zephyr/build/dts/howtos.html#devicetree-howtos"&gt;look at the DeviceTree HOWTOs&lt;/a&gt;&amp;nbsp;to get more information.&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;br /&gt;Øyvind&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: "Approved Solution" for adding serial output over USB from nRF52840 Dongle apps</title><link>https://devzone.nordicsemi.com/thread/390103?ContentTypeID=1</link><pubDate>Mon, 10 Oct 2022 19:11:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9f6c789a-cb61-4fd0-81af-02d490a3e0f2</guid><dc:creator>Mike Wirth</dc:creator><description>&lt;p&gt;&lt;span&gt;&amp;Oslash;yvind,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Many thanks for the very quick and informative reply.&lt;/span&gt;&lt;/p&gt;
[quote userid="77062" url="~/f/nordic-q-a/92720/approved-solution-for-adding-serial-output-over-usb-from-nrf52840-dongle-apps/390028"]Will need to look into this part. I have not been successful in running CDC ACM on the dongle.[/quote]
&lt;p&gt;The&amp;nbsp;&lt;span&gt; &amp;quot;Console over CDC ACM UART Sample&amp;quot; does exactly that. &amp;nbsp;So that&amp;#39;s why my fundamental question was &amp;quot;What makes this app different from &amp;#39;Hello World&amp;#39; to make this possible.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;More comments to follow...&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Regards,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Mike&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: "Approved Solution" for adding serial output over USB from nRF52840 Dongle apps</title><link>https://devzone.nordicsemi.com/thread/390028?ContentTypeID=1</link><pubDate>Mon, 10 Oct 2022 13:10:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:926b4c39-64cd-4dca-bfdd-f1189094f313</guid><dc:creator>&amp;#216;yvind</dc:creator><description>&lt;p&gt;Hello Mike,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
[quote user=""]On a related topic, it&amp;#39;s been noted earlier on DevZone that the nRF52840 might not be a good prototyping platform for most Matter apps because of flash memory limits (1 MB) vs. the DK and other nRF52840 boards which have&amp;nbsp;external flash. &amp;nbsp;[/quote]
&lt;p&gt;As you might already know the Matter protocol is per our SDK not tested with the nRF52840 Dongle due to the lack of external flash which is used for e.g. &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/2.1.0/nrf/samples/matter/light_bulb/README.html#device-firmware-upgrade-support"&gt;Device Firmware Updgrade&lt;/a&gt;, and the dongle has less flash for application due to the pre-programmed bootloader.&amp;nbsp;For that reason our Matter team focuses on providing full support for the development kits. That said, our team did add&amp;nbsp;&lt;a href="https://github.com/project-chip/connectedhomeip/pull/17215"&gt;dongle support in Matter nRF Connect Lighting Example Application in the upstream Matter repository.&lt;/a&gt;, Note that this is not tested with our samples or current version of the nRF Connect SDK.&lt;/p&gt;
[quote user=""]To solve my immediate problem, can you outline a specific set-by-step procedure to modify the template of the Hello World app to direct serial output from printk statements over the USB connection with CDC ACM UART?[/quote]
&lt;p&gt;Will need to look into this part. I have not been successful in running CDC ACM on the dongle.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
[quote user=""]Does there exist in either the Nordic or Zephyr documentation a more complete description of the Zephyr configuration files and tools, including not only the formal definition, but more examples? &amp;nbsp;Visual diagrams? &amp;nbsp;Catalog of configuration properties, with logical groupings? &amp;nbsp;Anything to make it easier to understand the process from a practical point of view[/quote]
&lt;p&gt;Nothing more than what is available in the documentation I&amp;#39;m afraid.&amp;nbsp;Circuit Dojo have several videos covering configurations in the Zephyr environment. Have a look at&amp;nbsp;the &lt;a href="https://www.youtube.com/c/CircuitDojo/videos"&gt;Circuit Dojo YouTube channel&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;If this does not provide any more answer, please specify exactly what you are looking for and I will try to provide better answers.&lt;/p&gt;
[quote user=""]Given that these kinds of mods need to be done on &amp;quot;templates&amp;quot; of sample apps, how does this fit into the development process with the VS code extension?[/quote]
&lt;p&gt;I&amp;#39;m not sure I understand what you are asking. You can add &amp;quot;modifications&amp;quot; to overlay files and add them as extra cmake arguments in the build configuration.&amp;nbsp;&lt;/p&gt;
[quote user=""]Spent some time with your Developer Academy videos, especially the one dealing with dts file, kconfig, etc., the configuration approach inherited with zephyr. &amp;nbsp;Unfortunately, the relevant video is mainly&amp;nbsp;a rehash of the zephyr docs, thin on&amp;nbsp;practical examples, leaving the discussion as obtuse&amp;nbsp;as ever.[/quote]
&lt;p&gt;Have your provided this &lt;a href="https://academy.nordicsemi.com/nrf-connect-sdk-fundamentals-course-end-of-course-survey/"&gt;feedback in the survey&lt;/a&gt;? If not, please provide this valuable feedback there. You may also contact the Academy team directly via&amp;nbsp;academy@nordicsemi.no. Also, each session has its own feedback button on the right hand side.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;br /&gt;Øyvind&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>