Problems with ST-LINK/V2
Hi,
I recently bought a ST-LINK/V2 dongle and it didn't work. I checked the insides of it to see that the microcontroller inside wasn't an ST one, but a Geehy clone microcontroller. I bought another, which was not a dongle, it was the larger white version. I made sure it was authentic. This gave me the same problems as the first one. I am trying to program an STM32F030F4P6 microcontroller for my custom board using SWD with 4 pins: CLK, DIO, 3V3 and GND. They are connected using screw terminals, which I have connected to the ST-LINK/V2 via jumper wires to pins 9, 7, 19, 20. Same order as above. I have not been able to program it once. I have verified with a multimeter that the jumper wires are connected to the corresponding pins on the MCU. I have made sure that VDD and VDDA are connected. Boot0 is low, NRST is high. I have attempted to program it using different IDE's, which include STM32CubeIDE and Keil microVision 5.
When I connect the ST-LINK to my Windows 11 PC and open STM32 ST-LINK utility and try to connect, it gives me and error, which says: "Can not connect to target! If you're trying to connect to an STM32W1xx, please" and so forth. When I go to settings, it recognizes the firmware version and serial number of the ST-LINK.
When I try to download my code onto the MCU, it tells me "Target no device found, Error in initializing ST-LINK device. Reason: No device found on target." The first time I tried to program it, STM32CubeIde suggested a firmware update to the ST-LINK/V2, which was successful.
The ST-LINK/V2 has a constant red light on. I believe this means, that it is connected, but not exchanging information?
This is the first time I am programming an STM32 microcontroller, and would greatly appreciate your help. I will provide additional information if requested.
Best regards,
Juhani
