Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
9 years, 7 months 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:
1 Answer
9 years, 7 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.
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 2015Maybe 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