I guess you probably know, but AFAIK, the SWO output is not enabled by default, on any STM32.
There are two ways to enable it: if you use a debugger, most often, the debugger will configure SWO through JTAG/SWD. If you want SWO to work "standalone" without a debugger, you need to configure it in software.
So, can you tell us how you proceed here. Are you using a debugger, or are you configuring SWO in software? Can you give more details?