cancel
Showing results for 
Search instead for 
Did you mean: 

Error al programar con STM32 ST LINK/V2

JMach.11
Associate

Error : Cannot communicate with the device !

Check the SWIM cable connection and check all the needed pin connections on the SWIM connector.

If the application code uses Swim Disable and Reset pin as Output or has disabled SWIM Clock Divider:

Try Now to SWITCH OFF and ON the application Power Supply while NRST Reset pin is forced low.

 como puedo solucionar este problema

5 REPLIES 5

>> How can I solve this problem?

You've really not described anything about your situation/context

What board are you using?

How is the ST-LINK connected?

Is this a stand-alone ST-LINK? Make sure the VDD line is connected, along with a a ground, so the ST-LINK can drive the signals properly.

Is the board properly powered?

Is the STM32 chip even functional?

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
JMach.11
Associate
  • Using board STM ST LINK/V2
  • My connection is correct how view in the image (SWIM connector)
  • The LED on my board shows me conection, but in the end it gives me the color orange
  • How can I know if my STM32 chip is functional, how can I verify it?

Your board, to which you are attaching the ST-LINK/V2, we're established you're using the ST-LINK/V2 but nothing about the board/design of what you're connecting it too.

You'd want to use the 20-pin JTAG header, or a subset of the pins there, ie VDD, GND, NRST, SWDIO, SWCLK, and optional SWO

Describe your connectivity. Take a picture, or diagram, whatever is easier.

>>How can I know if my STM32 chip is functional, how can I verify it?

STM32 describes hundreds of different parts, be specific on the full part number.

It won't start an external oscillator, so can't scope that.

Check the VDDA pin voltage.

Check the NRST level.

Check the VCAP pin voltages if using an STM32 part using them

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
Pavel A.
Evangelist III

SWIM connector is for STM8. It is not used for STM32's.

-- pa

Long distance up-hill skiing this one...

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