Keil Logo

ULINK: ULINKpro USB Communication Failure after debugging with STLink


Information in this knowledgebase article applies to:

  • MDK-ARM
  • Debug Adapter: ULINKpro, on-board ST-LINK
  • V2.J23.S0 through V2.J23.S4 STM32 Debugger
  • Boards: ST Nucleo F303K8, STM32F429I Discovery or Eval

SYMPTOM

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.

CAUSE

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.

WORKAROUND

Some ULINKpro functionality may still available if the following order is used to connect to a device:

  1. Power up board
  2. Connect ULINKpro to board
  3. Connect ULINKpro to PC

RESOLUTION

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.

MORE INFORMATION

SEE ALSO

FORUM THREADS

The following Discussion Forum threads may provide information related to this topic.

Last Reviewed: Friday, September 1, 2017


Did this article provide the answer you needed?
 
Yes
No
Not Sure
 
  Arm logo
Important information

This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies.

Change Settings

Privacy Policy Update

Arm’s Privacy Policy has been updated. By continuing to use our site, you consent to Arm’s Privacy Policy. Please review our Privacy Policy to learn more about our collection, use and transfers
of your data.