I'm trying to enable USB for console and SW update over USB but failing miserably.
I'm getting errors:
zephyr/drivers/console/libdrivers__console.a(uart_console.c.obj): in function `uart_console_init': v2.4.2\zephyr\drivers\console\uart_console.c:613: undefined reference to `__device_dts_ord_124'
and
zephyr/drivers/console/libdrivers__console.a(uart_console.c.obj): in function `console_out': zephyr\drivers\console\uart_console.c:110: undefined reference to `__device_dts_ord_124'
My related .dts definitions are as follows:
/ { chosen { zephyr,console = &cdc_acm_uart0; zephyr,shell-uart = &cdc_acm_uart0; zephyr,uart-mcumgr = &cdc_acm_uart0; zephyr,bt-mon-uart = &cdc_acm_uart0; zephyr,bt-c2h-uart = &cdc_acm_uart0; zephyr,bt-hci-rpmsg-ipc = &ipc0; // nordic,802154-spinel-ipc = &ipc0; // zephyr,ieee802154 = &ieee802154; }; }; zephyr_udc0: &usbd { compatible = "nordic,nrf-usbd"; status = "okay"; cdc_acm_uart0: cdc_acm_uart0 { compatible = "zephyr,cdc-acm-uart"; status = "okay"; }; };
The flags that trigger the error are:
CONFIG_CONSOLE=y
CONFIG_UART_CONSOLE=y
CONFIG_MCUMGR_TRANSPORT_UART=y
CONFIG_UART_CONSOLE_MCUMGR=y
CONFIG_RTT_CONSOLE=y
When looking the driver code, it should pick zephyr,console definition but for some reason, it is not included in the build...