help - stlink can not connect to target
ive been trying to get my first board with a stm32 running. Im using an stm32f031k6 and an STlink v2 and I keep on getting the "can not connect to target" error. It seems like I can connect through the stlink utility to the programmer, and I've checked and double checked the connections between the board / programmer. Ive tried changing the utlity link options but no change, the only thing i can think of its a problem on the board so I have a few questions about the board layout -
- im using connection via the reset, swclk, gnd, swdio and 3.3v - is this sufficient?
- im using an external 20MHz crystal, is this ok? It seems to indicate you can go up to 32MHz on the datasheet
- does the reset pin need a pull up or pull down, or do any of the other pins?
- does the board need to be connected to the power in addition to the programmer for programming? (ive tried this both ways, neither works but its useful to know anyways)
any help much appreciated
