Hello everyone,
I working on the device tree of a custom board based on nRF5340. My starting point was the Thingy:53 device tree.
When I try to enable USB CDC for console and shell, I got the following building error with zephyr usb console sample:
/home/bgorostidi/Workspace/Toolchains/nrfConnect_SDK/toolchains/1f9b40e71a/opt/zephyr-sdk/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/12.2.0/../../../../arm-zephyr-eabi/bin/ld.bfd: zephyr/drivers/console/libdrivers__console.a(uart_console.c.obj): in function `uart_console_init': /home/bgorostidi/Workspace/Toolchains/nrfConnect_SDK/v2.4.0/zephyr/drivers/console/uart_console.c:613: undefined reference to `__device_dts_ord_123' /home/bgorostidi/Workspace/Toolchains/nrfConnect_SDK/toolchains/1f9b40e71a/opt/zephyr-sdk/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/12.2.0/../../../../arm-zephyr-eabi/bin/ld.bfd: zephyr/drivers/console/libdrivers__console.a(uart_console.c.obj): in function `console_out': /home/bgorostidi/Workspace/Toolchains/nrfConnect_SDK/v2.4.0/zephyr/drivers/console/uart_console.c:110: undefined reference to `__device_dts_ord_123'
Extract of build/zephyr/include/generated/devicetree_generated.h:
* 122 /soc/peripheral@50000000/usbd@36000 * 123 /soc/peripheral@50000000/usbd@36000/cdc_acm_uart0 * 124 /soc/peripheral@50000000/usbd@36000/cdc_acm_uart1
My device tree:
The only way to successfully build is to disabled uart0 and uart1 in the device tree, but its not acceptable because they will be used in final application.
Thank you for your help.