STLink-V2 Issue
I am having trouble communicating with a STM32F042K6T6 microcontroller (on a custom soldered board) via a ST-LINK V2. Whenever I try to connect I receive the error: “Cannot connect to target!�? The STLink V2 does register and I can see it in the software.
Here is what I have connected (I am using the LQFP32 package):
3.3V to VDD, VDDA, and VDDIO2 (all tied together)
SWCLK to CLK/PA13
GND to VSS (both pins 1 and 16)
SWDIO to DIO/PA14
No other pin is connected
Here are the software versions:
STM32 ST-Link Utility-v4.5.0.0
STMLinkUSBDriver.dll-v5.1.2.0
ST-LINK_CLI.exe v3.5.0.0
STLINK V2 Firmware-V2J34S7
What I have tried:
I have soldered another microcontroller to an empty board without any components and tried to connect to it. However, there was no difference.
I have tried all different frequencies of both JTAG and SWD, and all three modes (Normal, Hot Plug, Connect Under Reset) and all three reset modes (System Software, Hardware, and Core. However, nothing seems to change.
I have tried to connect PB8-BOOT0 (pin 2) to both GND and to 3.3V.
I have tried to use external 3.3V to give it more current.
What I am wondering:
Is there a way to make sure that the chip still works to confirm that I have not plugged anything backwards and killed it?
What am I doing wrong?
