2025-09-15 3:23 AM
Hello,
I am experiencing a consistent connection issue with my development setup:
Hardware/Software Configuration:
MCU: STM32 (exact model: STM32G474VET6)
Debugger: STLINK-V3
IDE: STM32CubeIDE
Programmer: STM32CubeProgrammer
Operating System: Window
Problem Description:
When connecting my STLINK-V3 to STM32CubeIDE, the IDE fails to detect or connect to the target device. It typically shows error messages like “No ST-LINK detected” or “No target found.”
However, when I use STM32CubeProgrammer, the STLINK-V3 is detected and connects to my target MCU without any issues. All programming and memory read functions work perfectly.
While many boards face connection issues with STLINK-V3 in STM32CubeIDE, some boards succeed to be connected.
Questions:
Has anyone experienced similar issues where STM32CubeIDE fails but CubeProgrammer succeeds with STLINK-V3?
Are there recent changes in CubeIDE or driver packages that could explain this?
Any additional steps or patches recommended for resolving this mismatch?
2025-09-15 3:26 AM - edited 2025-09-15 3:27 AM
Please show the logs from CubeIDE, and screenshots of the errors.
PS:
Also, what versions, and on what Host?
How to write your question to maximize your chances to find a solution
2025-09-15 4:41 AM - edited 2025-09-15 4:43 AM
Hi,
> While many boards face connection issues with STLINK-V3 in STM32CubeIDE, some boards succeed to be connected.
The IDE checking the cpu is "genuine STM" , so it refuses connect on all cpus that might be not from STM.
CubeProgrammer connects -if possible- also to other ARM cpus.
But here , on (i assume) genuine STM32G474VET6 , it should connect also in IDE .
Maybe try: set debug to using openOCD (i had some strange "no target.." , but switching the debug to OCD - it works. And even switching back the debug setting, it works. This happened also on boards, working before....and then also working again. So dont ask me "why" .)
so try: (and adjust the settings...see:)