<?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>UART Configuration Custom Board nRF5340</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/93482/uart-configuration-custom-board-nrf5340</link><description>Hello! 
 I have a custom board that I am trying to set up but I&amp;#39;m not entirely sure what to do. 
 In my board, I have an nRF5340 SoC, that has 2 interfaced with the external world: a micro USB port (connections are done exactly like the DK), and a UART</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 02 Nov 2022 13:49:03 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/93482/uart-configuration-custom-board-nrf5340" /><item><title>RE: UART Configuration Custom Board nRF5340</title><link>https://devzone.nordicsemi.com/thread/393686?ContentTypeID=1</link><pubDate>Wed, 02 Nov 2022 13:49:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:11c5af65-30c6-49eb-a504-35c7635ace34</guid><dc:creator>dario.sortino</dc:creator><description>&lt;div id="MathJax_Message" style="display:none;"&gt;&lt;/div&gt;
&lt;p&gt;That did the trick, thank you so much!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: UART Configuration Custom Board nRF5340</title><link>https://devzone.nordicsemi.com/thread/393674?ContentTypeID=1</link><pubDate>Wed, 02 Nov 2022 13:32:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8dce3d0e-45bb-470d-a713-6d2a1d9b7cd8</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;Do you have the following in your .dts file:&lt;/p&gt;
&lt;p&gt;zephyr_udc0: &amp;amp;usbd {&lt;br /&gt; compatible = &amp;quot;nordic,nrf-usbd&amp;quot;;&lt;br /&gt; status = &amp;quot;okay&amp;quot;;&lt;br /&gt;};&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: UART Configuration Custom Board nRF5340</title><link>https://devzone.nordicsemi.com/thread/393665?ContentTypeID=1</link><pubDate>Wed, 02 Nov 2022 13:15:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:766f1ecb-cd01-4aed-b0e5-8fc244477c41</guid><dc:creator>dario.sortino</dc:creator><description>&lt;div id="MathJax_Message" style="display:none;"&gt;&lt;/div&gt;
&lt;p&gt;I&amp;#39;m on nRF Connect SDK v2.1.0, and I made the board file following this guide&lt;/p&gt;
&lt;p&gt;here&amp;nbsp;&lt;a href="https://www.youtube.com/watch?v=ufjv2NaLfN8"&gt;https://www.youtube.com/watch?v=ufjv2NaLfN8&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;The example you mention builds just fine (using nrf5340dk as board in the board configuration)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: UART Configuration Custom Board nRF5340</title><link>https://devzone.nordicsemi.com/thread/393662?ContentTypeID=1</link><pubDate>Wed, 02 Nov 2022 13:10:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9886d5a6-3167-4930-a2e5-28f3ef47dc16</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;I am not sure which ncs version you are working on, but have you tried&amp;nbsp;for instance to build the&amp;nbsp;nrf\samples\bluetooth\peripheral_uart\?&lt;/p&gt;
&lt;p&gt;Edit: Have you made your own board file or are you building for DK?&lt;/p&gt;
&lt;p&gt;Kenneth&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: UART Configuration Custom Board nRF5340</title><link>https://devzone.nordicsemi.com/thread/393660?ContentTypeID=1</link><pubDate>Wed, 02 Nov 2022 13:02:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:05e2ee48-af79-4e44-81b6-02b4109400f7</guid><dc:creator>dario.sortino</dc:creator><description>&lt;div id="MathJax_Message" style="display:none;"&gt;&lt;/div&gt;
&lt;p&gt;Yes, I have tried that. I can&amp;#39;t get where it takes the reference from.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: UART Configuration Custom Board nRF5340</title><link>https://devzone.nordicsemi.com/thread/393657?ContentTypeID=1</link><pubDate>Wed, 02 Nov 2022 12:58:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:46693c7c-17c6-42a8-a78d-fd352a073b20</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;I missed that.&amp;nbsp;Have you tried a pristine build?&lt;/p&gt;
&lt;p&gt;Kenneth&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: UART Configuration Custom Board nRF5340</title><link>https://devzone.nordicsemi.com/thread/393638?ContentTypeID=1</link><pubDate>Wed, 02 Nov 2022 12:16:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c619e340-c145-4627-adcc-99a8d1d3438a</guid><dc:creator>dario.sortino</dc:creator><description>&lt;div id="MathJax_Message" style="display:none;"&gt;&lt;/div&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;&amp;amp;zephyr_udc0 {
	cdc_acm_uart0: cdc_acm_uart0 {
		compatible = &amp;quot;zephyr,cdc-acm-uart&amp;quot;;
	};
};&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Hi Kenneth,&lt;/p&gt;
&lt;p&gt;I assume that I need to define a node label as above (I found this also here&amp;nbsp;&lt;a id="" href="https://github.com/zephyrproject-rtos/zephyr/tree/main/samples/subsys/usb/console"&gt;https://github.com/zephyrproject-rtos/zephyr/tree/main/samples/subsys/usb/console&lt;/a&gt;), but when compiling I have a parse error having the zephyr_udc0 undefined.&lt;/p&gt;
&lt;p&gt;How can I solve this behaviour?&lt;/p&gt;
&lt;div id="MathJax_Message" style="display:none;"&gt;&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: UART Configuration Custom Board nRF5340</title><link>https://devzone.nordicsemi.com/thread/393630?ContentTypeID=1</link><pubDate>Wed, 02 Nov 2022 11:58:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dab17576-a47e-43b5-81ba-59daab86ebe7</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;Hello,&lt;br /&gt;&lt;br /&gt;I suggest to take a look at the applications\matter_weather_station project for the Thingy:53.&lt;br /&gt;&lt;br /&gt;In specific you can find&amp;nbsp;that there is an overlay file that will override from default uart to usb cdc uart for logging/shell:&lt;br /&gt;&lt;br /&gt;Default using uart (\boards\arm\thingy53_nrf5340)&lt;br /&gt;&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;zephyr,console&amp;nbsp;= &amp;amp;uart0;&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;zephyr,shell-uart&amp;nbsp;= &amp;amp;uart0;&lt;br /&gt;&lt;br /&gt;To usb cdc uart (\matter_weather_station\configuration\thingy53_nrf5340_cpuappapp.overlay)&lt;br /&gt;&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;zephyr,console&amp;nbsp;= &amp;amp;cdc_acm_uart0;&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;zephyr,shell-uart&amp;nbsp;= &amp;amp;cdc_acm_uart0;&lt;br /&gt;&lt;br /&gt;In addition I can find in the prj.conf the following:&lt;br /&gt;&lt;br /&gt;# Configure UART logging and shell&lt;br /&gt;CONFIG_LOG=y&lt;br /&gt;CONFIG_LOG_MODE_DEFERRED=y&lt;br /&gt;CONFIG_LOG_BACKEND_UART=n&lt;br /&gt;CONFIG_LOG_PRINTK=y&lt;br /&gt;CONFIG_LOG_PROCESS_THREAD_STACK_SIZE=1024&lt;br /&gt;CONFIG_LOG_PROCESS_THREAD_STARTUP_DELAY_MS=4000&lt;br /&gt;CONFIG_LOG_BUFFER_SIZE=8192&lt;br /&gt;CONFIG_LOG_FUNC_NAME_PREFIX_DBG=n&lt;br /&gt;CONFIG_MATTER_LOG_LEVEL_DBG=y&lt;br /&gt;CONFIG_SHELL=y&lt;br /&gt;CONFIG_SHELL_LOG_BACKEND=y&lt;br /&gt;&lt;br /&gt;# Enable USB CDC ACM&lt;br /&gt;CONFIG_USB_DEVICE_STACK=y&lt;br /&gt;CONFIG_USB_DEVICE_REMOTE_WAKEUP=n&lt;br /&gt;CONFIG_USB_DEVICE_PRODUCT=&amp;quot;Thingy:53 Matter Weather&amp;quot;&lt;br /&gt;CONFIG_USB_DEVICE_VID=0x1915&lt;br /&gt;CONFIG_USB_DEVICE_PID=0x530D&lt;br /&gt;CONFIG_USB_CDC_ACM=y&lt;br /&gt;CONFIG_USB_CDC_ACM_LOG_LEVEL_ERR=y&lt;br /&gt;CONFIG_USB_DEVICE_LOG_LEVEL_ERR=y&lt;br /&gt;CONFIG_UART_LINE_CTRL=y&lt;br /&gt;CONFIG_SHELL_BACKEND_SERIAL_INIT_PRIORITY=51&lt;br /&gt;CONFIG_SHELL_BACKEND_SERIAL_CHECK_DTR=y&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Kenneth&lt;/p&gt;
&lt;div&gt;&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>