@maxgerhardt Mine look the same. Sorry if I am missing something obvious.
Just to be sure, here is my current platformio.ini with changes back to ST-LINK and com4 commented out.
Okay well now weâre entering voodoo territory. The USB device is there, you have the same driver version as me, with the expected VID and PID, and the fully updated ST-Link firmware version (I assume).
Have you restarted your computer already and then directly opened PlatformIO to make sure only PlatformIO interacts with the STLink, and no other program?
Does disabling antivirus make a difference, if active?
When you download the latest openOCD release from Releases ¡ xpack-dev-tools/openocd-xpack ¡ GitHub (xpack-openocd-0.10.0-15-win32-x64.zip), unpack it, open a terminal / cmd.exe, cd into the main folder and do a
I agree itâs a problem connecting to the ST-Link via USB (and not between ST-Link and target).
OpenOCD searches by PID/VID combination. Either it doesnât find such a combination (unlikely given the details from the device manager) or the device has already been taken by some other process. So I would recommend to search again for anything that interferes or interacts with the device: programs, crashed programs, extensions, virus and security tools etc.
As a note: On Windows, I originally had WinUSB drivers installed. I donât remember installing anything so the device has probably declared this driver and Windows installed it automatically. With those drivers, OpenOCD worked but ST-Link Utility would fail. In the mean time, Iâve installed the ST-Link drivers and now both programs work. So driver issues are less likely.
Another interesting side information would be what Zadig (https://zadig.akeo.ie/) says when you do Options â List All Devices and select the ST-Link Debug (Interface 0) device. For it shows WinUSB drivers v2.1.0.
Using that program you can also try and load a different driver for the device and then again check if OpenOCD is able to pick it up.
On my Windows machine, it looks the same: WinUSB v2.1.0.0.
Interestingly, Zadig could replace it with WinUSB v6.1.7600.1683.
Device manager says that the drivers are provided by STMicroelectronics with signer âSTMICROELECTRONICS (GRENOBLE 2) SASâ, version 2.1.0.0
The driver details point at C:\WINDOWS\system32\DRIVERS\winusb.sys, provided by Microsoft Corporation, version 10.0.19041.1.
So three different version for the same thing?
I donât quite understand how it fits together. Most likely, the STM driver provides an INF file only and then installs stock USB drivers: WinUSB for interface 0, USB MSC for interface 1 and USB CDC ACM for interface 2. Itâs a good thing it doesnât provide any driver code. But it doesnât explain why it ST-Link Utility wouldnât work before updating the driver.
@maxgerhardt That is a bit of a list to work and I will be doing it in the next few hours. Making a holiday visit to my Mother-in-Law. Also, I have a similar setup on one of my laptops and will take that with me along with the hardware and test it also. If THAT works, at least I know it is isolated to my desktop machine and can go after it there. AND have something local to compare with. I know a LOT more now than when I started this thread, thank you sir. I will return with my results.
There is one anomaly I am having⌠the driver for my devices. I tried to update the driver but my Windows tells me I already have the best version installed. When I list available drivers, the one that comes with the firmware update is not listed. SO I am at wits-end to how I can update to the new driver. I tried uninstalling the hardware and removing the software box checked, and then plugging it back in, but the older driver attaches itself again. Sigh.
This is the packaged USB Driver.
This is the list I have available to pick manually from. If I browse the folder that has the newest driver that came with the update, Windows tells me that the best driver is already installed.
The Virtual COM port (VCP) driver isnât very important, thatâs just the serial / UART interface. The firmware is uploaded via the SWD interface that is handled by the âST-Link Debugâ device.
âŚHm. After going through my list above Iâd then suggest you actually uninstall ST-Link Utility, uninstall the device from the device manager, make sure itâs an âunknown deviceâ then after re-plugging it, and then try the drivers that are installed when installing STM32CubeProg - STM32CubeProgrammer software for all STM32 - STMicroelectronics.
OK, I did as you suggested and that was indeed the solution. And not only did it solve my initial issue, but 3 others as well. That interesting extra feature of dragging a firmware.bin file to the NODE_F411RE drive broke in the process as itâs available space was less than the size of the firmware file. But after reinstalling ST-LINK, that has fixed itself as well. And fortunately, I did not need to dig into the version of OpenOCD that was being used by PIO.
I tested upload, and debug features and both work now. THANK YOU!!!
An interesting observation, actually two. But here is the first. When I check the version number of the USB driver now, it still shows 1.0.0.0 dated 2013. But when I look at the version in the ST-LINK utility, it is 5.1.2.0. Here is a picâŚ
The second observation⌠I went to the wrong tab when coming back to this thread and noticed another poster. At first I thought someone piggy-backed on my thread, then realized it was an open tab from my exhausting search for an answer. I did notice though that you two guys were the same two that helped someone else on this similar issue. I am glad you found my thread and was able to help me!!!
Thanks again to the both of you for the assist!! I certainly appreciate your time and effort with helping me!!