Trying to exploit the Console over CDC ACM UART example and add I2C support

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'm not able to make the two work together-

static assertion failed: "Console device is not ACM CDC UART device"

I'm using nRF52840DK to develop this.

content of the device overlay file -

&i2c0 {
    status = "okay";
    pinctrl-0 = <&i2c0_default>;
	pinctrl-1 = <&i2c0_sleep>;
    pinctrl-names = "default", "sleep";
    as5600: as5600@36{
        compatible = "ams,i2c-device";
        status = "okay";
        reg = < 0x36 >;
    };
};

&pinctrl {
	/omit-if-no-ref/ i2c0_default: i2c0_default {
		group1  {
			psels = <NRF_PSEL(TWIM_SCL, 0, 2)>,
					<NRF_PSEL(TWIM_SDA, 0, 31)>;
		};
	};

	/omit-if-no-ref/ i2c0_sleep: i2c0_sleep {
		group1  {
			psels = <NRF_PSEL(TWIM_SCL, 0, 2)>,
					<NRF_PSEL(TWIM_SDA, 0, 31)>;
			low-power-enable;
		};
	};
};

Any suggestions on how to approach this ?

Parents Reply Children
Related