<?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>How to enable MCUboot serial log with USB DFU setup?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/118817/how-to-enable-mcuboot-serial-log-with-usb-dfu-setup</link><description>I have our app on the nRF7002-DK board running with MCUboot configured for USB firmware updates. That is working fine, but is there some way to enable the console output from the bootloader so I could see more of what is happening during boot and updates</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 19 Mar 2025 06:33:35 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/118817/how-to-enable-mcuboot-serial-log-with-usb-dfu-setup" /><item><title>RE: How to enable MCUboot serial log with USB DFU setup?</title><link>https://devzone.nordicsemi.com/thread/527940?ContentTypeID=1</link><pubDate>Wed, 19 Mar 2025 06:33:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2f411a4b-6841-4a7b-8b58-84e5900be0d4</guid><dc:creator>narangmayank</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/members/saxman58"&gt;Saxman58&lt;/a&gt;&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/members/sigurd-hellesvik"&gt;Sigurd Hellesvik&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I have a similar use case with a little twaek,&amp;nbsp;We have only nRF USB interface in our custom hardware. I have managed to do DFU via the same USB. Now as a next step I want to emulate 2 CDC ACM instance of the same in the mcuboot so 1 will be used for DFU and other will be used for mcuboot logs.&lt;br /&gt;&lt;br /&gt;I tried below conf but it didn&amp;#39;t worked out,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;mcuboot conf&lt;/p&gt;
&lt;div&gt;&lt;pre class="ui-code" data-mode="text"&gt;CONFIG_MCUBOOT_SERIAL=y
CONFIG_BOOT_SERIAL_UART=n
CONFIG_BOOT_SERIAL_CDC_ACM=y
CONFIG_UART_CONSOLE=y&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;div&gt;mcuboot overlay&lt;/div&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;/ {
	chosen {
		zephyr,console = &amp;amp;cdc_acm_uart0;
		zephyr,uart-mcumgr = &amp;amp;cdc_acm_uart1;
	};
};

&amp;amp;zephyr_udc0 {
	cdc_acm_uart0: cdc_acm_uart0 {
		compatible = &amp;quot;zephyr,cdc-acm-uart&amp;quot;;
		label = &amp;quot;CDC_ACM_0&amp;quot;;
	};

	cdc_acm_uart1: cdc_acm_uart1 {
		compatible = &amp;quot;zephyr,cdc-acm-uart&amp;quot;;
		label = &amp;quot;CDC_ACM_1&amp;quot;;
	};
};&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Any idea how to do this?&lt;/p&gt;
&lt;p&gt;Thanks for any help.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to enable MCUboot serial log with USB DFU setup?</title><link>https://devzone.nordicsemi.com/thread/522519?ContentTypeID=1</link><pubDate>Tue, 11 Feb 2025 18:14:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d31a92e0-ea79-4711-bdff-a30dba4d6d3b</guid><dc:creator>Saxman58</dc:creator><description>&lt;p&gt;Thanks once again, Sigurd.&amp;nbsp; I had tried the chosen settings before&amp;nbsp;to set just the console to the UART, assuming the mcumgr would stay on the USB, but then get compiler errors.&amp;nbsp; I finally got it to work by being explicit about where to connect each of them with this in the mcuboot.overlay file:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;/ {
    chosen {
        zephyr,uart-mcumgr = &amp;amp;usbd;
        zephyr,console = &amp;amp;uart0;
    };
};
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;...and this in the mcuboot.conf file:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;# Support DFU over USB serial, but not UART.  UART used for logs (console).
CONFIG_MCUBOOT_SERIAL=y
CONFIG_BOOT_SERIAL_UART=n
CONFIG_BOOT_SERIAL_CDC_ACM=y
CONFIG_UART_CONSOLE=y&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Thus both files were more explicit about wanting the logs on the UART and the mcumgr/DFU on the USB port.&amp;nbsp; Now I can see both the bootloader and app logs in the terminal.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to enable MCUboot serial log with USB DFU setup?</title><link>https://devzone.nordicsemi.com/thread/522471?ContentTypeID=1</link><pubDate>Tue, 11 Feb 2025 14:36:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f4c1f9ef-eac1-4f56-b5f1-a22ef78af5e9</guid><dc:creator>Sigurd Hellesvik</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;See here: &lt;a href="https://github.com/nrfconnect/sdk-mcuboot/blob/3c2f2ff12bc20625cd65730b6036d061de4da5f7/boot/zephyr/Kconfig.serial_recovery#L32-L36"&gt;https://github.com/nrfconnect/sdk-mcuboot/blob/3c2f2ff12bc20625cd65730b6036d061de4da5f7/boot/zephyr/Kconfig.serial_recovery#L32-L36&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Looks like you should be able to use chosen &amp;quot;zephyr,uart-mcumgr&amp;quot; for SMP and &amp;quot;zephyr,console&amp;quot; for logs as is done for the application also.&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Sigurd Hellesvik&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>