<?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>Trying to exploit the Console over CDC ACM UART example and add I2C support</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/124782/trying-to-exploit-the-console-over-cdc-acm-uart-example-and-add-i2c-support</link><description>I have successfully implemented an I2C interface example for AS5600 chip now I want to redirect the printk logs to UART over USB. For some reason I&amp;#39;m not able to make the two work together- 
 static assertion failed: &amp;quot;Console device is not ACM CDC UART</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 06 Oct 2025 09:47:05 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/124782/trying-to-exploit-the-console-over-cdc-acm-uart-example-and-add-i2c-support" /><item><title>RE: Trying to exploit the Console over CDC ACM UART example and add I2C support</title><link>https://devzone.nordicsemi.com/thread/550668?ContentTypeID=1</link><pubDate>Mon, 06 Oct 2025 09:47:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8f8d1560-2c14-4205-aa31-bf54ebb154be</guid><dc:creator>Tanmoy</dc:creator><description>&lt;p&gt;Thank you for your answer. This worked !&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Trying to exploit the Console over CDC ACM UART example and add I2C support</title><link>https://devzone.nordicsemi.com/thread/550666?ContentTypeID=1</link><pubDate>Mon, 06 Oct 2025 09:29:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1e8e6363-bd74-4558-ad7f-84871da91761</guid><dc:creator>Kazi Afroza Sultana</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;The static assertion error &amp;#39;&amp;#39;console device is not ACM CDC UART device&amp;#39;&amp;#39; means that CDC ACM UART is not defined in the overlay (&lt;a href="https://docs.nordicsemi.com/bundle/ncs-latest/page/zephyr/connectivity/usb/device/usb_device.html#cdc_acm"&gt;USB device support (deprecated)&lt;/a&gt;).&lt;/p&gt;
&lt;p&gt;Add the following lines in the devicetree overlay file alongside of your i2c configuration&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;/ {
    chosen {
        zephyr,console = &amp;amp;cdc_acm_uart0;
    };
};

&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;;
    };
};&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Trying to exploit the Console over CDC ACM UART example and add I2C support</title><link>https://devzone.nordicsemi.com/thread/550638?ContentTypeID=1</link><pubDate>Sat, 04 Oct 2025 20:37:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f58bd3f6-0e61-4e61-b9c4-21b1010c8f3a</guid><dc:creator>Tanmoy</dc:creator><description>&lt;p&gt;Content of prj.conf&lt;pre class="ui-code" data-mode="text"&gt;
CONFIG_I2C=y

CONFIG_SERIAL=y
CONFIG_CONSOLE=y
CONFIG_UART_CONSOLE=y
CONFIG_STDOUT_CONSOLE=y
CONFIG_UART_LINE_CTRL=y

CONFIG_USB_DEVICE_STACK_NEXT=y
CONFIG_CDC_ACM_SERIAL_INITIALIZE_AT_BOOT=y
CONFIG_CDC_ACM_SERIAL_PID=0x0004
CONFIG_CDC_ACM_SERIAL_PRODUCT_STRING=&amp;quot;USB Device&amp;quot;
&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>