2020-08-17 07:03 AM
On Windows 10, I just updated (again) to the 1.4.2 version, hoping to solve this issue, yet nothing changed.
Already tried a clean install (again) and re-installed the latest STM32CubeProgrammer: nothing changed.
Will ST handle this sooner or later please? Or at least give some help in diagnosing the problem? Thanks
Solved! Go to Solution.
2020-08-18 04:12 AM
Do you have ST-LINK connected directly to USB port on PC or via a hub?
If a hub is used try to connect ST-LINK / board directly to PC.
2020-08-18 04:29 AM
I located it in the C:\Program Files (x86)\STMicroelectronics\stlink_server folder and tried to start it, here's the console output:
PS C:\Program Files (x86)\STMicroelectronics\stlink_server> .\stlinkserver.exe
Info : default port : 7184
Info : 127.0.0.1:7184
Error: bind failed. Error = 10048, exit
2020-08-18 04:30 AM
All of my attempts have been done with the boards connected to the PC(s). I tried:
2020-08-18 04:32 AM
Sorry my bad. I had another instance running in the task manager: so yes, it starts and stays open...
2020-08-18 04:38 AM
Did you try with other USB port and connect only one board at a time.
2020-08-18 04:53 AM
I always tried one board at time and tried all the USB ports in the PC. I kept trying but it seems the ST-LINK GDB server is not starting when i add the -t option, with "Reason: ST-LINK DLL Error".
If i remove that option it works though...
2020-08-18 05:07 AM
Can you check in debug configuration, with "Shared STLink" option checked that you can see the STLink's Serial Nb.
With stlink gdb server, you can click on ST-Link S/N and then scan button and see if the SN text window is populated.
With openocd, you have a window in the bottom displaying all the STLinks connected.
2020-08-18 05:25 AM
Just checked it now. I tried both ST-LINK GDB and OpenOCD, both times having the "Shared STLink" checked.
ST-LINK GDB: I can see the serial number, but can't start the debug session.
ST-LINK OpenOCD: as I click the scan button, no boards gets detected, and the debug session doesn't start either.
Here some screenshots, hope they helps...
2020-08-18 05:37 AM
Thanks for the tests, so it seems stlink server has issues to recognize your STlinks.
One thing you can try is to update your USB drivers to the latest version available.
Not the STLink USB driver but the USB driver of the Hub or usb inside the PC.
2020-08-18 05:46 AM
Thank you for your help. I will see if there are driver updates available, even though I'm letting Windows Update deploy them and have the Intel Driver Assistant keeping them up to date too.
But, you have to consider that before the 1.4 update all worked fine, and even now the CubeProgrammer, ST-Link Utility and even ST-LINK GDB Server (when started manually without the -t shared option) works fine so I'm doubtful that a driver is causing this. Moreover, this same issue appeared on an older PC that I also updated to 1.4.
Right now I could just start the GDB server manually and then having the IDE connecting to it, but I'd really like to sort this issue out or at least know what is wrong, or I can't be sure that future upgrades will keep working...