Skip to main content
Graduate II
November 14, 2019
Solved

ST-Link utility fails to reset device after programming

  • November 14, 2019
  • 2 replies
  • 1527 views

Hi everyone,

I have a problem with the ST-Link V2-1 that are embedded on the nucleo boards. I use the ST-Link utility CLI as an external tool in Atollic TrueStudio to program my nucleo boards. However after the programming operation finishes, the CLI cannot reset the MCU. I tried from the command line and the result is the same.

I connect under reset (with hardware reset) to the MCU. The connection to the MCU happens all the time, no problem programming at all. The cli version is 3.5.0.0. I believe I did not have this problem with the previous version of the utility...

Has anybody experienced this behaviour ? Did anybody has a fix for it ?

Also this problem does not exist with the ST-Link V2 programming pod.

Best regards.

    This topic has been closed for replies.
    Best answer by Mike_ST

    1) Please make sure the nucleo ST-Link firmware is up to date.

    2) If you can, move to STM32CubeProgrammer. It has CLI as well.

    3) What is your command line ?

    4) What is you MCU ?

    2 replies

    Mike_STAnswer
    Technical Moderator
    November 14, 2019

    1) Please make sure the nucleo ST-Link firmware is up to date.

    2) If you can, move to STM32CubeProgrammer. It has CLI as well.

    3) What is your command line ?

    4) What is you MCU ?

    KraalAuthor
    Graduate II
    November 14, 2019

    Hi Mike,

    Thank you for replying.

    1) Yes it is up to date V2J34M25

    2) Tried it again today and it was both faster and could reset the MCU after programming (compared to ST-Link Utility)

    3) -c SWD UR -ME -P whatever.hex -V -Rst

    4) F042 and F072

    So I will use the CubeProgrammer for the time being, but I don't understand why the ST-Link Utility has regressed to the point where it does not support this anymore...

    Best regards.