µVISION DEBUGGER: ST-LINK USB communication error
Information in this knowledgebase article applies to:
I have installed MDK 5.11a and I am trying to debug my application on my ST-Discovery board with its on-board ST-LINK. When I start a debug session or a flash download in µVision I get the following error:
What's the reason for this error and how can I solve it?
There is an incompatibility between ST-Link Firmware version V2.J21.S0 and the µVision ST-Link Debugger driver (ST-LINKIII-KEIL_SWO.dll) version 126.96.36.199 which is part of MDK-ARM 5.11a. There are two ways to solve this problem:
This issue will be fixed in MDK-ARM versions higher than 5.11a.
Note: If you are using another version of MDK, consider the following options:
Request the files attached to this knowledgebase article.
Last Reviewed: Thursday, September 14, 2017
of your data.