You can also capture STM trace over the Trace Port Interface Unit (TPIU).
You can use the stm subcommand with the --input-jtrace-serial-number flag and the serial number of the connected J-Trace probe:
nrfutil trace stm --input-jtrace-serial-number <serial_number> --stdout ascii