2024-04-25 06:11 AM
Hi,
I am using an STM32F030C8T6 on a Bluepill PCB with STLink-V2 programmer. I have been successfully programming this board and others like it for a couple of years now.
The issue is that on CubeIDE 1.15 on my laptop, the IDE refuses to program/ detect the ST-Link. ST-Link utility and cube programmer are able to detect the ST-Link easily as well as the STLinkUpgrade function within the CubeIDE can detect the ST-Link.
It gets weirder as when I restart the PC, I can open the CubeIDE and program the STM32 once. If I try to enter the debug mode, the process gets interrupted midway but the Run command succeeds once. After that I get the message. "No ST-Link Detected. Please connect ST-Link and restart the debug session". The hardware works perfectly on two other PCs only my laptop is the issue.
I have tried using other ST-Link devices on this laptop but there is no change.
I've uninstalled and reinstalled CubeIde, CubeMX, ST-Link-server and ST-Link USB bridge but no use.
I've tried updating libusb-1.0.dll but no luck there as well.
I've tried uninstalling all STM32 windows driver packages and installing stsw-link009 - no change.
I even tried installing st-link-servers Version 2-0-2, 2-1-0 and 2-1-1 again, no change.
Snapshots of the successful and unsuccessful downloads are as below. Look forward to some guidance on this as I need the laptop for portable troubleshooting and diagnostics of my microcontroller.
Regards,
Sujoy
Solved! Go to Solution.
2024-07-06 08:22 AM
Update - It was a PC issue. After resetting windows 10 everything works.
2024-04-25 06:45 AM
Please show us photos of your ST-LINK/V2, front and back. If possible, also a screenshot of the STM32CubeProgrammer when the ST-LINK is connected.
Regards
/Peter
2024-07-06 08:22 AM
Update - It was a PC issue. After resetting windows 10 everything works.