Hello!
I have a custom board that I am trying to set up but I'm not entirely sure what to do.
In my board, I have an nRF5340 SoC, that has 2 interfaced with the external world: a micro USB port (connections are done exactly like the DK), and a UART with RX in PIN 1.00, and TX in PIN 1.01.
I want to use the micro USB to print something to a console as a "debugging" tool, and the more classic UART to print some different stuff.
What are the devicetree and defconfig configurations for this kind of usecase? I think I should set two different UART interface in the dts (&uart0 and &uart1?), but how do I tell one UART to go trough USB? In the DK dts I can see
chosen { zephyr,console = &uart0; zephyr,shell-uart = &uart0; zephyr,uart-mcumgr = &uart0; zephyr,bt-mon-uart = &uart0; zephyr,bt-c2h-uart = &uart0; zephyr,bt-hci-rpmsg-ipc = &ipc0; };
but I can't figure out what exactly I need to use in my custom board.
Any help would be appreciated