<?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>Failing to configure USB console and SW update</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/103984/failing-to-configure-usb-console-and-sw-update</link><description>I&amp;#39;m trying to enable USB for console and SW update over USB but failing miserably. 
 I&amp;#39;m getting errors: zephyr/drivers/console/libdrivers__console.a(uart_console.c.obj): in function `uart_console_init&amp;#39;: v2.4.2\zephyr\drivers\console\uart_console.c:613</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 05 Oct 2023 12:56:23 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/103984/failing-to-configure-usb-console-and-sw-update" /><item><title>RE: Failing to configure USB console and SW update</title><link>https://devzone.nordicsemi.com/thread/449013?ContentTypeID=1</link><pubDate>Thu, 05 Oct 2023 12:56:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cfcf7e91-c6b3-404c-85d3-4e550abd0304</guid><dc:creator>&amp;#216;ivind</dc:creator><description>&lt;p&gt;Hi again, I found the issue. You need to set up mcuboot for the usb/uart console. Take a look at these samples, especially the configs in child_image/mcuboot.conf:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://github.com/hellesvik-nordic/samples_for_nrf_connect_sdk/tree/main/bootloader_samples/serial_recovery"&gt;https://github.com/hellesvik-nordic/samples_for_nrf_connect_sdk/tree/main/bootloader_samples/serial_recovery&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Failing to configure USB console and SW update</title><link>https://devzone.nordicsemi.com/thread/448005?ContentTypeID=1</link><pubDate>Wed, 27 Sep 2023 15:31:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a8fd81b9-3085-4ee1-b323-8177a6ccde72</guid><dc:creator>SvenDufva</dc:creator><description>&lt;p&gt;Thanks for taking the time to look into this. I attached carved out version that still produces the error.&lt;br /&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/hw25firmware_5F00_stub.zip"&gt;devzone.nordicsemi.com/.../hw25firmware_5F00_stub.zip&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Failing to configure USB console and SW update</title><link>https://devzone.nordicsemi.com/thread/447770?ContentTypeID=1</link><pubDate>Tue, 26 Sep 2023 14:34:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8a750b92-3bdb-40f5-93ae-c5636c35f1df</guid><dc:creator>&amp;#216;ivind</dc:creator><description>&lt;p&gt;Could you zip and attach your project? Or reproduce it in a sample and attach that?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Failing to configure USB console and SW update</title><link>https://devzone.nordicsemi.com/thread/447566?ContentTypeID=1</link><pubDate>Mon, 25 Sep 2023 17:40:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:61b892d1-222d-489a-a985-5ba7ba575a5f</guid><dc:creator>SvenDufva</dc:creator><description>&lt;p&gt;I&amp;#39;m not seeing anything starting with &amp;quot;&lt;span&gt;__device_dts&amp;quot; in the devicetree_generated.h.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;Chosen nodes have been converted into:&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;#define DT_CHOSEN_zephyr_console                          DT_N_S_soc_S_peripheral_50000000_S_usbd_36000_S_cdc_acm_uart0
#define DT_CHOSEN_zephyr_console_EXISTS                   1
#define DT_CHOSEN_zephyr_shell_uart                       DT_N_S_soc_S_peripheral_50000000_S_usbd_36000_S_cdc_acm_uart0
#define DT_CHOSEN_zephyr_shell_uart_EXISTS                1
#define DT_CHOSEN_zephyr_uart_mcumgr                      DT_N_S_soc_S_peripheral_50000000_S_usbd_36000_S_cdc_acm_uart0
#define DT_CHOSEN_zephyr_uart_mcumgr_EXISTS               1
&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;I&amp;#39;ve&amp;nbsp;CONFIG_USB_CDC_ACM=y as well as CONFIG_SERIAL=y (I&amp;#39;m using other UARTs in the solution).&lt;br /&gt;&lt;br /&gt;UART0 is enabled through dts file as follows (do I need to have it there even though I&amp;#39;m using USB UART emulation):&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;&amp;amp;uart0 {
	compatible = &amp;quot;nordic,nrf-uarte&amp;quot;;
	status = &amp;quot;okay&amp;quot;;
	current-speed = &amp;lt;115200&amp;gt;;
	pinctrl-0 = &amp;lt;&amp;amp;uart1_default&amp;gt;;
	pinctrl-1 = &amp;lt;&amp;amp;uart1_sleep&amp;gt;;
	pinctrl-names = &amp;quot;default&amp;quot;, &amp;quot;sleep&amp;quot;;
};
&lt;/pre&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Failing to configure USB console and SW update</title><link>https://devzone.nordicsemi.com/thread/447308?ContentTypeID=1</link><pubDate>Sat, 23 Sep 2023 12:38:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:21514d9a-3679-4afe-8cea-f1dceb0ca8fb</guid><dc:creator>&amp;#216;ivind</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Could you locate the file below in your build folder and tell me which peripheral matches the ord number. They are listed at the start of the file.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; build\zephyr\include\generated\devicetree_generated.h&lt;/p&gt;
&lt;p&gt;If you rebuild, check if the number in the __device_dts_ord_124 part of the error message changes from 124 to something else.&lt;/p&gt;
&lt;p&gt;I assume that USB configs are enabled? For example CONFIG_USB_CDC_ACM=y&lt;br /&gt;And that uart0 is enabled?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>