2025-12-21 3:50 AM - edited 2025-12-21 3:58 AM
Hello,
recently I made a board for a project and was planning to flash firmware with ST-LINK/V2. However, when I wanted to flash a test program I got a message from Console:
Target no device found
Error in initializing ST-LINK device.
Reason: No device found on target.
I checked all the connections and VDD pins with decoupling caps and looks like everything is properly connected. Yet still I don't understand what is the reason of not connecting. Schematic of the project:
Physical connections:
Attached as connections.jpeg
I upgraded ST-LINK tool to the latest version and the MCU I am using is STM32G474CET3
ST-LINK/V2 model: B202533
Most of the design is just copied from the Reference design STM32G4 Series document.
Any help is highly appreciated.
Solved! Go to Solution.
2025-12-21 6:29 AM - edited 2025-12-21 6:29 AM
Pins 1 or 2 need to be connected to VDD in order for the level shifters to work. It is not optional.
Voltage needs to be reported correctly in STM32CubeProgrammer.
2025-12-21 4:28 AM
Primary SWD is short single wire debug, not 20 wires... but right connection require minimum info blocked on image. Is your V2 ISOL ?
2025-12-21 4:47 AM
It is regular ST-Link/V2.
Here is the link from Mouser, where I bought it from:
2025-12-21 6:29 AM - edited 2025-12-21 6:29 AM
Pins 1 or 2 need to be connected to VDD in order for the level shifters to work. It is not optional.
Voltage needs to be reported correctly in STM32CubeProgrammer.
2025-12-21 7:43 AM
Okay providing +3V3 to pins 1 and 2 solved the problem. But just temporarily. I can flash the program but I am unable to see register content , Live Variables, Variables, literally everything is greyed out. This is my .ioc:
2025-12-21 7:51 AM
If you have a new problem, mark a solution here and ask it in a new thread. Provide a relevant screenshot. Nothing is grayed out in the screenshot you provided.