9 years ago.

"Disconnect from SWV Trace port!" Error

I am getting a "Disconnect from SWV Trace port!" message whenever I try to read from a STMF401RE using SWO. I am using my own board, but the SWO pin is connected the the appropriate pin on the programer. Does anyone have any ideas or experience as to what could be wrong? I have the clock set to 84000000Hz on the Serial Wire View in ST-Link and I have been able to program and use this board without problems.

Question relating to:

I get the same result when I try to run this example on my NucleoF401 board, my version of STLink is: V2.J23.M9 STM32 Debug+Mass storage.

posted by Johan Hedlund 20 May 2015

Maybe the issue is the old ST-Link firmware on your board. The current version is V2J27M15 and it runs fine with SWO on platforms like the F103 and F446. Try updating the nucleo STLINK firmware with the latest version found on the ST website.

posted by Wim Huiskamp 03 Apr 2016

1 Answer

8 years, 11 months ago.

I can confirm that this is a limitation of the ST-link probe on the Nucleo board. It can not read SWO output and shows the error message "Disconnect from SWV Trace port". I have suceeded viewing the SWO output using an external ST-link V2 probe connected to the nucleo board.

Can you provide a link to the ST-link V2 probe that you used? It would be useful for debugging on my own board.

posted by Krzysztof Sitko 12 Jun 2015