cancel
Showing results for 
Search instead for 
Did you mean: 

STLink driver not working for Windows 8 (64 bit)

iduffy
Associate II
Posted on June 28, 2013 at 14:41

I'm not having any luck getting Windows 8 to load the ST Link driver correctly. Other people have posted similar problems but have reported that setting Windows 8 to disable Driver Signature Enforcement fixes their problems. This hasn't worked for me.

I'm using the ST-Link part of an STM32F4 discovery board to program my own STM32F4 based board. It's worked for me for over a year using Windows 7 on my previous laptop which died last week. I'm rebuilding my development environment on a new Windows 8 laptop (Dell Inspiron 15z) and getting the driver to work is frustrating me.

I'm installing st-link_v2_usbdriver downloaded from http://www.st.com/web/en/catalog/tools/PF258167

As an aside, my target board uses USB as a VCP and I've installed the USB VCP driver ok.

Does being 64-bit make any difference?

I've been into the registry and found the entry for the ST-Link in the enum\USB section. This is what it looks like .. it might mean something to somebody.

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Enum\USB\VID_0483&PID_3748]

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Enum\USB\VID_0483&PID_3748\5&2842f95&0&2]

''DeviceDesc''=''STM32 STLink''

''LocationInformation''=''Port_&sharp0002.Hub_&sharp0003''

''Capabilities''=dword:00000004

''ContainerID''=''{27e98665-dfdd-11e2-be75-6817291a1417}''

''HardwareID''=hex(7):55,00,53,00,42,00,5c,00,56,00,49,00,44,00,5f,00,30,00,34,\

  00,38,00,33,00,26,00,50,00,49,00,44,00,5f,00,33,00,37,00,34,00,38,00,26,00,\

  52,00,45,00,56,00,5f,00,30,00,31,00,30,00,30,00,00,00,55,00,53,00,42,00,5c,\

  00,56,00,49,00,44,00,5f,00,30,00,34,00,38,00,33,00,26,00,50,00,49,00,44,00,\

  5f,00,33,00,37,00,34,00,38,00,00,00,00,00

''CompatibleIDs''=hex(7):55,00,53,00,42,00,5c,00,43,00,6c,00,61,00,73,00,73,00,\

  5f,00,46,00,46,00,26,00,53,00,75,00,62,00,43,00,6c,00,61,00,73,00,73,00,5f,\

  00,46,00,46,00,26,00,50,00,72,00,6f,00,74,00,5f,00,46,00,46,00,00,00,55,00,\

  53,00,42,00,5c,00,43,00,6c,00,61,00,73,00,73,00,5f,00,46,00,46,00,26,00,53,\

  00,75,00,62,00,43,00,6c,00,61,00,73,00,73,00,5f,00,46,00,46,00,00,00,55,00,\

  53,00,42,00,5c,00,43,00,6c,00,61,00,73,00,73,00,5f,00,46,00,46,00,00,00,00,\

  00

''ConfigFlags''=dword:00000040

#stm32driver-usb #stlink-driver-not-working
13 REPLIES 13
Posted on June 28, 2013 at 15:27

Aren't ALL x86 Windows 8 64-bit, I guess it's not a

http://windows.microsoft.com/en-us/windows-8/system-requirements

, but I've never encountered a retail PC shipping with 32-bit? The one I was using

https://my.st.com/public/STe2ecommunities/mcu/Lists/cortex_mx_stm32/Flat.aspx?RootFolder=https://my.st.com/public/STe2ecommunities/mcu/Lists/cortex_mx_stm32/ST-LINK%20under%20Windows%208&FolderCTID=0x01200200770978C69A1141439FE559EB459D7580009C4E14902C3CDE46A77F0FFD06506F5B&currentviews=192

certainly was 64-bit.

What does Device Manager indicate about the ST-Link driver state?

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
iduffy
Associate II
Posted on June 28, 2013 at 16:33

When I plug in my Discovery Board an ''STM32 STLink'' appears in Device Manager under  ''Other devices''

The icon next to it has an exclamation mark on a yellow background.

If I bring up the properties window I get ..

General

=======

Device type - Other devices

Manufacturer - Unknown

Location - Port_#0004.Hub_#0003

Driver

======

Driver Provider - Unknown

Driver date - Not available

Driver Version - Not available

Digital Signer - Not digitally signed

Details

=======

ConfigFlags - 00000040 CONFIGFLAG_FAILEDINSTALL

amongst many other properties.

I've had a rummage in \Windows\Inf and found stlink_winusb.inf

It has DriverVer=07/28/2010 in the [Version] section at the top.

This file also refers to WdfCoInstaller01009.dll and WinUSBCoInstaller2.dll in %WinDir%/System32.

I've found these and they have the following details..

WdfCoInstaller01009.dll

File version - 1.9.7600.16385

Size - 1.64 MB

Date modified - 14/07/2009 14:21

WinUSBCoInstaller2.dll

File version - 6.1.7600.16385

Size - 979KB

Date modified - 14/07/2009 07:37

dthedens23
Associate II
Posted on June 28, 2013 at 18:07

I have a Win 8 64 bit VM and I HAD to use the unsigned driver reboot trick to get the ST-Link driver installed.

But it did install and it works on Win 8 64bit.  Don't remember what magic it took to get it installed, it was some time ago and my brain is getting to be more like a FIFO

Posted on June 28, 2013 at 21:20

I've just done this again on two different PCs, using the ST-Link_V2_USBdriver.exe from \Keil\ARM\STLink\USBdriver

http://i.imgur.com/AHLAjNn.png

http://i.imgur.com/IvlslDD.png

If you had previously installed the driver you want to Update, let the machine find it, and then agree to install when the red hazard warning comes up.

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
achourwissem
Associate II
Posted on June 29, 2013 at 10:41

i had this problem before in my 64 bits windows 7 , so i desinstalled the stm driver and i after that i removed the usb and i installed the usb driver (u can find it in KEIL repository) and then i connected my stm to pc and i updated using st-linkupdate

search in this path C:\xxxxx\Keil\ARM\STLink
iduffy
Associate II
Posted on July 01, 2013 at 12:41

Thanks Clive.

I tried reinstalling USB driver from \Keil\ARM etc and got same result as before - i.e. STM32 STLink device installed under 'Other devices' with hazard symbol.

I then did Update driver as you suggested and the device is now called 'STMicroelectronics STLink dongle' under 'USB Serial Bus controllers' as in your screen shot. No hazard symbol and it works.

I got stuck for two days on this. I can do some productive work now! Thanks again.

vicki19880929
Associate III
Posted on July 19, 2013 at 03:39

Hi I have the same problem but Clive's solution didn't fix it.

I'm also using Windows 8, 64 bit laptop.  When I searched for driver update online in the device manager, it shows that:

Windows found driver software for your device (STMicroelectronics STLink dongle) but encountered an error while attempting to install it.

Does anyone have the same problem?  How shall I solve it?  I got stock here for a day...

Thanks a lot!!

vicki19880929
Associate III
Posted on July 19, 2013 at 03:54

I found the solution somewhere in the threads.  Thanks to Clive for your previous post!

unsigned and signed device is really annoying... :(

Posted on July 19, 2013 at 04:06

I posted a link to it earlier in the thread, and I think Ian had already tried that technique, but after he had installed the driver.

/public/STe2ecommunities/mcu/Lists/cortex_mx_stm32/Flat.aspx?RootFolder=https://my.st.com/public/STe2ecommunities/mcu/Lists/cortex_mx_stm32/ST-LINK%20under%20Windows%208&FolderCTID=0x01200200770978C69A1141439FE559EB459D7580009C4E14902C3CDE46A77F0FFD06506F5B&currentviews=192

I found the following page useful to permit the installation of the unsigned ST-LINK driver under Windows 8

http://www.trickday.com/2012/09/how-to-install-unsigned-drivers-in-windows-8/

0690X0000060MnqQAE.gif

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..