Skip to main content
wolfram
Associate
April 5, 2011
Question

Problem with Keil uVision 4: ''Failure loading STLinkUSBDriver.dll''

  • April 5, 2011
  • 12 replies
  • 4539 views
Posted on April 05, 2011 at 11:30

Hello,

when i try using the STM32 Discovery board (STM32F100)

with Keil uVision (V4.20.03.0, Target DLL: STLink\ST-LINKIII-KEIL.dll V1.5.6), when i try to debug or flash there always pops up this error:

''Failure loading STLinkUSBDriver.dll''.

This Dll exists in the path C:\Keil\ARM\STLink\,

but it just does not want to work.

Any help is appreciated.

Wolfram

    This topic has been closed for replies.

    12 replies

    wolfram
    wolframAuthor
    Associate
    April 7, 2011
    Posted on April 07, 2011 at 13:14

    Update:

    i found out that the ST-LinkUpgrade.exe shows a similar problem. When

    starting it, there is first this error message:

    ''Cant load library: ST-Link/V2 USB driver is missing''

    and then after pressing ''Device connect'':

    ''The STLinkUSBDriver.dll file is nonexistent or in the wrong position.

    Please check it''.

    So i checked it, the DLL does exist, i copied it also into C:\WINDOWS\system32\,

    but i does not help.

    I also installed the whole stuff on another (Windows XP)-PC, but with the same problems.

    Is there any Path-Variable which has to be adjusted ?

    Or what else is wrong ?

    Wolfram

    simonsimon9
    Visitor II
    April 14, 2011
    Posted on April 14, 2011 at 11:59

    I have same same problem. Do some have solution?

    Regards

    Simon

    rgalbany2
    Associate
    April 19, 2011
    Posted on April 19, 2011 at 07:31

    I have also the same problem (with 3 PC's and 3 different STM32VL Discovery boards), and after 2 weeks to contact with ST, I don't have an answer... 

    Now

    I

    bought

    an

    LPCXpresso to test it and I will leave the STM32

    Try to install the ST-Link Utility and check if occurs the same problem:

    http://www.st.com/internet/com/SOFTWARE_RESOURCES/TOOL/DEVICE_PROGRAMMER/um0892.zip

    wolfram
    wolframAuthor
    Associate
    April 19, 2011
    Posted on April 19, 2011 at 16:28

    @skocir.simon:

    Unfortunately, no :(

    @pantani:

    I installed the ST-Link Utility, but here an error box pops up and says:

    ''Unknown target connected''

    I dunno..

    I tried the IAR-IDE, and this just works...

    rgalbany2
    Associate
    April 20, 2011
    Posted on April 20, 2011 at 09:11

    Wolfram,

    what is the language of your computer?

    Curiously I have the same problem that you with 3 computers with  WinXP-Spanish  but works fine with WinXP in English.

    Nickname14231_O
    Visitor II
    May 2, 2011
    Posted on May 02, 2011 at 14:34

    Hello Wolfram,

    copy the attached driver, rename extension to ''dll'' and paste it over the same name one in C:\Keil\ARM\STLink.

    (maybe backup the original dll prior this action).

    JR

    wolfram
    wolframAuthor
    Associate
    May 3, 2011
    Posted on May 03, 2011 at 10:08

    Hello JR,

    thanks for the new library, but the problem remains the same.

    Wolfram

    wagston
    Visitor II
    May 10, 2011
    Posted on May 10, 2011 at 21:50

    Hey guys,

    I have a solution for this. Man, this is ugly but works...

    1) Download the ST-Link software um0892.zip and install it.

    (

    http://www.st.com/internet/com/SOFTWARE_RESOURCES/TOOL/DEVICE_PROGRAMMER/um0892.zip

    )

    2) Copy the DLL (STLinkUSBDriver.dll) from ''C:\Program Files\STMicroelectronics\STM32 ST-LINK Utility\ST-LINK Utility'' to ''C:\Keil\ARM\STLink''.

    3) That's it!!

    This tool from ST was able to find my device through JTAG-USB but the Keil-MDKv4.20 wasn't. Then I had the idea to try this experience which just solved my problem.

    As I said before, that's a very ugly solution!!

    Regards!

    Wagston.

    ibtissem2
    Visitor II
    May 12, 2011
    Posted on May 12, 2011 at 14:56

    Dear all,

    To use MDK-ARM v4.20 with ST-LINK/V2 properly you need to upload the ST-LINK V2 driver fom the following link:

    http://www.st.com/internet/evalboard/product/251168.jsp

    http://www.st.com/internet/evalboard/product/251168.jsp

    - SW DRIVERS

    For Win7 users, you may also need the attached STLinkUSBDriver.dll which fixed known limitation. You need jsut to overwrite the STLinkUSBDriver.dll located at: [Keil_Install_Directory]\ARM\STLink.

    PS: Both ST-LINK V2 driver and the attached Dll will be integrated in the coming version of MDK-ARM by June.

    Hopefully this helps.

    Best Regards,

    Ibtissem

    .

    lastsamurai
    Associate
    May 17, 2011
    Posted on May 17, 2011 at 02:04

    HI Steahler,

    Thanks for the smart solution.. Although it is a dirty one, working like a charm!

    Cheers,

    Sam