Skip to main content
Sm.16
Associate II
May 23, 2019
Solved

can not connect the target MCU,why?

  • May 23, 2019
  • 6 replies
  • 1640 views

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

This topic has been closed for replies.
Best answer by S.Ma

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.

6 replies

Tesla DeLorean
Guru
May 23, 2019

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 (See Profile) Up vote any posts that you find helpful, it shows what's working..
Sm.16
Sm.16Author
Associate II
May 23, 2019

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

Tesla DeLorean
Guru
May 23, 2019

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 (See Profile) Up vote any posts that you find helpful, it shows what's working..
S.Ma
S.MaBest answer
Principal
May 23, 2019

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
Sm.16Author
Associate II
May 24, 2019

Thank you sir.I'm trying on it.

Sm.16
Sm.16Author
Associate II
May 24, 2019

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