Skip to main content
Visitor II
April 2, 2020
Question

Error al programar con STM32 ST LINK/V2

  • April 2, 2020
  • 3 replies
  • 1418 views

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

    This topic has been closed for replies.

    3 replies

    Graduate II
    April 2, 2020

    >> 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?

    JMach.11Author
    Visitor II
    April 2, 2020
    • 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?

    Graduate II
    April 2, 2020

    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

    Super User
    April 2, 2020

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

    -- pa

    Graduate II
    April 2, 2020

    Long distance up-hill skiing this one...