Skip to main content
Visitor II
January 9, 2018
Solved

Cannot change settings on STM32 ST-Link Utility

  • January 9, 2018
  • 6 replies
  • 6403 views
Posted on January 09, 2018 at 17:42

I am trying to change the settings on the STM32 ST-Link Utility, jhowever, the software seems to be freezing. I also installed it on another computer and it still doesn't seem to work. The problem is shown in the attached screen shot. Any suggestions as to why?

#st-link-v2 #stm32-st-link-utility #st-link-utility-problem
    This topic has been closed for replies.
    Best answer by toby2
    Posted on January 15, 2018 at 18:29

    for what it is worth, I just came across this problem when trying to work out why my stlinkV2-Isol was not working (another thead,

    https://community.st.com/0D50X00009XkXDFSA3

    ), if I tried to change to hot plug or connect under reset it froze like you say.

    My problem was invalid connections to the target (not all the 0V pins can be used on the -Isol), when I corrected this it works fine again. (ie no freezing on mode change)

    6 replies

    Visitor II
    January 10, 2018
    Posted on January 10, 2018 at 21:44

    I had the same problem. Firstly try another usb cable or remove it again ( sometimes it helps). 

    If it doesn't help it might be a problem with reset from your stlink . I couldn't connect stlink(discovery board) to target for 3 weeks,I tried to buy another one and many other options but it wasn't any diffrence. Finally, I mounted switch between pin rst and ground ( on swd connector on my board), I left only swdio and swclk pin connected to target. Ground was connected from gnd pin discovery to my board swd connector gnd pin. And when you click connect target on STlink utility you have to click switch for a second. When your target is detected properly you should have a possibility to change these options.

    Visitor II
    January 11, 2018
    Posted on January 11, 2018 at 12:01

    And if you managed to start the app update the firmware asap.

    Visitor II
    January 11, 2018
    Posted on January 11, 2018 at 12:04

    I did update it to the latest version, however the problem persisted.

    Visitor II
    January 11, 2018
    Posted on January 11, 2018 at 15:45

    What I do in such cases:

    -start a virtual machine with older stable OS (Windows 7 for example) run the ST-LINK utility inside VM. You need to move USB discovered devices to the VM (available on Virtual Box for example) - this way you can find OS dependency

    -believe that the USB device (the st-link driver) show no errors - this way you can find problem with the driver

    Visitor II
    January 11, 2018
    Posted on January 11, 2018 at 15:48

    But maybe the problem is in hardware because when not totally discovered the app should report nothing. What happens when you disconnect the st-link?

    Visitor II
    January 11, 2018
    Posted on January 11, 2018 at 15:52

    nothing. windows makes the usb device disconnect sound, i no longer see it on the devices manager, and do not find anything via the stm32 utility. 

    then i reconnect it, for a second after i open settings it would seem that it might work and let me change them, then it reverts back to the screenshot i posted and doesn't let me do anything.

    I'll try the vm solution you suggested. but i am afraid it might be a hardware problem with the stand alone st link v2 device
    Visitor II
    January 15, 2018
    Posted on January 15, 2018 at 09:08

    I tried both a new programmer and also one from a Nucleo board. None of them worked.

    :(

     Not sure how to proceed.
    Visitor II
    January 15, 2018
    Posted on January 15, 2018 at 09:15

    Please share some details  - is the software still freezing?

    Visitor II
    January 15, 2018
    Posted on January 15, 2018 at 09:18

    With the new programmer it is still freezing like before, not letting me change the settings, and then not establishing connection.

    With the programmer from the board it is not even detecting it. I am sure it is powered and connected properly. As if nothing is connected at all.
    Visitor II
    January 15, 2018
    Posted on January 15, 2018 at 18:13

    Looked again into my notes:

    -is the st-link discovered by the Device Manager?

    -have you rebooted the pc  - how do you recover from the freezing state? Do you kill the app in the Task Manager?

    -in the history of this case I can see that you were able to update the firmware - do see any changes since then? What happened since then? Is this the same PC?, Did you install new software e.g. AV, Bit9?

    -usb cable replaced?

    Try to look what happened, what changed, do not assume anything, put the pc in the clean state (reboot), be systematic...

    I do not want to spam here...

    Visitor II
    January 16, 2018
    Posted on January 16, 2018 at 16:48

    I managed to get it to work once I connected to a different ground pin.

    toby2Answer
    Visitor II
    January 15, 2018
    Posted on January 15, 2018 at 18:29

    for what it is worth, I just came across this problem when trying to work out why my stlinkV2-Isol was not working (another thead,

    https://community.st.com/0D50X00009XkXDFSA3

    ), if I tried to change to hot plug or connect under reset it froze like you say.

    My problem was invalid connections to the target (not all the 0V pins can be used on the -Isol), when I corrected this it works fine again. (ie no freezing on mode change)

    Graduate
    April 15, 2018
    Posted on April 15, 2018 at 08:07

    I have same problem ....another HW (same DPS) is working, this (CPU is Factory clean) not connected. After Connect application freezed, and i must dis/con to NB ....

    Super User
    April 15, 2018
    Posted on April 15, 2018 at 11:34

    Check if the target chip has all pins properly soldered (especially grounds and supply, including the analog ones) and that there is no short between the signals and any other neighbouring pin or track.

    Use a short cable between STLink and the target (<10cm).

    JW