Solved
How do I enable SWV in my STM32Cube ide?
I am trying to use SWV viewer but in Debugger option, there is no SWV options available. Is it because of some faulty pin configuration? Because i ran a blink led program and it's working fine. Just the SWV, i cannot enable. 
