How to restart ST Link automatically.
Hello all
I am quite new to STLink. I am trying to program a microcontroller using STLink/V2. In normal situations it works perfectly. but at times i do have a communication error with STLink and it shows' USB communication error'. The settings are all unchanged but still a communication error occurs between STLink & computer.
After sometime i noticed that when I unplug the usb cable and plug it again, the STLink & the programming works again.
So i tried using DEVCON.EXE utility from cmd line to enable & disable the STLink USB port automatically, before starting programming each time. It works in a way, but for that i need Admin rights, which is not available on the account where i use the final application.
So i would like to know whether there is some option within STLink to restart the STLink or to enable/disable the USB port.
Thanks
Bk
