I have a custom board (nrf5340) and can debug it, but it will not print to J-Link RTT Viewer. The main looks like this and I tested with a breakpoint on the LOG_DBG using my J-Link Plus, so I know it's getting there.
I have this in the prj.conf:
it's making it impossible to work with this board.