I am using the board nRF5340 Soc, which by default exports two VCOM ports via the J-Link OB debugger. Currently:
- VCOM1 (UART0) is used for both logging and serial communication by default.
- VCOM2 mainly logs boot information.
Goal:
I want to separate logging and serial communication as follows:
- VCOM1 (UART0) → Only for logs (debug messages).
- VCOM2 (UART1) → Only for serial read/write communication.
Questions:
- Is there an internal J-Link OB forwarding mechanism that could be causing this issue?
- Are there any Zephyr configurations or Nordic-specific settings required to properly separate logs and serial communication?
- What is the best way to ensure logs stay on VCOM1 and serial communication happens only on VCOM2?
Any guidance or recommendations would be greatly appreciated. Thanks!