cancel
Showing results for 
Search instead for 
Did you mean: 

can not connect the target MCU,why?

Sm.16
Associate II

programmed in IAR, for debugging im using stm32-utility,in this when i try to connect the target it shows can not connect to the target.

What i did in this is

1.connected the jtag pins with respective.

2.power supply 3.3v

3.NRST is high

4.BOOT0 is high

1 ACCEPTED SOLUTION

Accepted Solutions
S.Ma
Principal

Just connect Vdd, GNB (all of the STM32 supply pins)

Connect only SWDIO and SWDCLK and try in SWD mode (2 wires)

If the STM32 is not programmed with a crazy code or a code which goes to low power stop mode, this should be enough.

The STM32 has internal backup clock (HSI).

If this is no go, grab an oscilloscope and check pin by pin. Brute force debug faster sometime.

View solution in original post

6 REPLIES 6

Likely because the part isn't functioning, or you have the connections wrong.

Is this a custom board?

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
Sm.16
Associate II

not a custom board. mounted stm32f103r8t7 separately on a breakout board and interfaced the stlink v2 through jtag pins as per the below connection.0690X000008wJebQAE.png

I'm familiar with the JTAG header, it is what you've built that is at issue. Diagram THAT

Make sure you can measure voltage on Pin 1 and 2.

If you need a 3.3V supply connect in Pin 19

Make sure ALL supply pins are wired up to the STM32

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
S.Ma
Principal

Just connect Vdd, GNB (all of the STM32 supply pins)

Connect only SWDIO and SWDCLK and try in SWD mode (2 wires)

If the STM32 is not programmed with a crazy code or a code which goes to low power stop mode, this should be enough.

The STM32 has internal backup clock (HSI).

If this is no go, grab an oscilloscope and check pin by pin. Brute force debug faster sometime.

Sm.16
Associate II

Thank you sir.I'm trying on it.

Sm.16
Associate II

Thanks for both of you.I detected the stm32 via st-link utility with your help.