ULINK: ULINKpro USB Communication Failure after debugging with STLink
Information in this knowledgebase article applies to:
When ST-LINK device driver software was first installed onto PC, ULINKpro was also connected to PC.
One instance of µVision is open, this project is debugging a target using ST-LINK. Another instance of µVision is opened, ULINKpro is connected to PC, and selected as debugger. Normally, JTAG Communication Failure or SWD Communication Failure is reported when a target is not connected. But in rare cases, in Options for Target => Debug tab => Settings => Debug tab, either:
USB Communication Failure //or Firmware Download Failed
is displayed. ULINKpro was successfully debugging other applications, before ST-Link was used. When connecting ULINKpro to PC, I may have seen Windows dialogs reporting:
Installing device driver software //and later Device driver software was not successfully installed
even with most recent version of ULINKpro driver (these drivers are automatically installed with the newest version of MDK). ULINKpro cannot establish connection to PC, even after removing ST-LINK.
When a ULINKpro is also connected, installation of certain ST-LINK drivers permanently disabled ULINKpro's ability to connect to a PC. Root cause is unknown.
Some ULINKpro functionality may still available if the following order is used to connect to a device:
See steps below. Basically, uninstall and reinstall ULINKpro driver software to recover ULINKpro, then separately update ST-Link firmware.
First, exit ST-LINK's debug session in MDK. Disconnect both ST-LINK and ULINKpro from PC. Connect only ULINKpro. In Windows Device Manager, right-click on "Keil ULINKpro" and go to Uninstall. Then click OK. Reconnect ULINKpro to update driver. Users may have to run the following executable: "C:\Keil_v5\ARM\ULINK\InstallULINK.exe". As long as MDK-ARM is installed on machine, there are automated checks to see if more recent software is available, and driver will be reinstalled, if necessary. Disconnect ULINKpro after reinstalling its driver.
Connect ST-LINK. In installation of MDK-ARM, go to /ARM/STLink/ and launch ST-LinkUpgrade.exe. Upgrade to firmware V2.J24.S0 STM32 Debugger or later.
Then you will be able to use ULINKpro and ST-LINK simultaneously.
The following Discussion Forum threads may provide information related to this topic.
Last Reviewed: Friday, September 1, 2017
of your data.