Skip to main content
Visitor II
October 2, 2011
Question

ST link not working

  • October 2, 2011
  • 10 replies
  • 2796 views
Posted on October 02, 2011 at 14:29

Hi everyone,

I recently bought a STM32 discovery board and it seems that the ST-link is not functioning properly when I run ST-link utility it says no ST link detected, I made sure that it is in SWD mode and I have got two jumpers connected on CN3(I have attached a photo of my setup). I am new to this and I'm not sure what might be going wrong so any help will be appreciated. 

#st-link-not-connected-discovery
    This topic has been closed for replies.

    10 replies

    rajan2Author
    Visitor II
    October 2, 2011
    Posted on October 02, 2011 at 23:30

    Well I found a fix to my problem in STM discovery thread, my board was working fine with STVP so I replaced ST utility's/ GDB server's STLinkUSBDriver.dll with the one in STVP install dir and its working perfectly now.

    Visitor II
    November 12, 2011
    Posted on November 12, 2011 at 17:42

    Thanks for an idea.

    Go to C:\Program Files\Atollic\TrueSTUDIO for STMicroelectronics STM32 Lite 2.2.0\Servers\ST-LINK_gdbserver

    Rename STLinkUSBDriver.dll to STLinkUSBDriver_too_new.dll

    Get from yours personal archive right STLinkUSBDriver.dll

    versions: ''too new'' = 4.2.2.0 ; ''good'' = 4.0.1.2

    Regards

    Visitor II
    November 29, 2011
    Posted on November 29, 2011 at 23:34

    I had the same problem and was trying all kind of solutions (connecting boot pin, installing old ST LINK drivers, removing all kind of software, because it was working before). Nothing helped.

    As it appears, DEAMON Tools or more particularly virtual drives are conflicting with latest ST LINK 4.2.2. After uninstalling it, all started to work. As it appears, it was possible to assign different drive letters. Good article on this here:

    http://www.atollic.com/index.php/kb/kbdebugging/3-debugging/28-kb_st_link_connection_error

    Visitor II
    December 11, 2011
    Posted on December 11, 2011 at 14:42

    Graduate II
    December 11, 2011
    Posted on December 11, 2011 at 16:44

    Is anywhere 4.0.1.2 version available?

     

    Packaged with several IDE that support ST-LINK. I've attached

    Visitor II
    December 11, 2011
    Posted on December 11, 2011 at 18:21

    Packaged with several IDE that support ST-LINK. I've attached

    Thanks for reply. Which one exactly? Attolic has 4.2.2.0 version.

    Graduate II
    December 12, 2011
    Posted on December 12, 2011 at 01:10

    Thanks for reply. Which one exactly? Attolic has 4.2.2.0 version.

    Then obviously an EARLIER version of Atollic, from the March/April 2010 time frame, or something like Keil 4.12, but I ATTACHED the 4.0.1.2 DLL to the preceding post to negate the need to actually search for it.

    Visitor II
    March 9, 2012
    Posted on March 09, 2012 at 23:43

    Can't find the attachment, can you please re-upload it? Thanks!

    Graduate II
    March 10, 2012
    Posted on March 10, 2012 at 06:44

    https://my.st.com/public/STe2ecommunities/mcu/Lists/STM32VLDiscovery/DispForm.aspx?ID=936&RootFolder=/public/STe2ecommunities/mcu/Lists/STM32VLDiscovery/ST link not working&Source=https://my.st.com/public/STe2ecommunities/mcu/Lists/STM32VLDiscovery/Flat.aspx?RootFolder%3D%252fpublic%252fSTe2ecommunities%252fmcu%252fLists%252fSTM32VLDiscovery%252fST%2520link%2520not%2520working%26FolderCTID%3D0x01200200770978C69A1141439FE559EB459D758000491D59B8574F8049B5DFA3E8B21CBA51%26TopicsView%3Dhttps%253A%252F%252Fmy%252Est%252Ecom%252Fpublic%252FSTe2ecommunities%252Fmcu%252FLists%252FSTM32VLDiscovery%252FAllItems%252Easpx%26currentviews%3D681

    Visitor II
    July 27, 2012
    Posted on July 27, 2012 at 03:04

    I find a short video about this problem which advices some ways to solving this problem. I was approached last piece of advice

     Here is the Youtube Link 

    http://www.youtube.com/watch?v=2mNc-v-OWSY&feature=plcp