Skip to main content
Visitor II
December 14, 2021
Question

I create a PCB with stm32F411 and i obtain: "Can not connect to target" with st-LINK Utility

  • December 14, 2021
  • 13 replies
  • 2873 views

Hello,

For a project, I created a PCB with an STM32F411 using a 10pin JTAG port for SWD programming.0693W00000HoWkxQAF.pngI tried to connect my card using the ST LINK V2 box and the ST Link utility software but I get the following error:

0693W00000HoWeWQAV.pngThe st link works because I can program another card using a stm32F042. I tried all the connection parameters and to play with the BOOT0 pin status but nothing works.

Can anyone help me to program my card?

    This topic has been closed for replies.

    13 replies

    Graduate II
    December 14, 2021

    So F4 in the circuit is non functional, focus on that and wiring to it.

    Check part orientation.

    Check voltage seen on VCAP pins, and placed caps.

    Check VDDA

    Check NRST​

    bvale.2Author
    Visitor II
    December 14, 2021

    I have already checked all this but it does not change anything. And I try with a second board and I have the same result.

    Super User
    December 14, 2021

    Well check again, because something is wrong and most likely it's a hardware issue. How is the board powered?

    The pinout you showed is correct.

    Graduate II
    December 14, 2021

    >>The pinout you showed is correct.

    For a debug header, but the chip needs to be functional to be responsive.Right now seems dead in the water unless any other signs of life can be determined.

    The other secondary method is to probe one of the System Loader's UARTs responds to the 0x7F data pattern at 9600 8E1, in the BOOT0=HIGH cases.

    Focus on causal reasons why chip is dead in the water...

    bvale.2Author
    Visitor II
    December 14, 2021

    I just rechecked I don't see any problem on the welds or anything else on the material.

    My board is powered with stabilized power supply on 5V and on the board I have a converter on 3.3V.

    Graduate II
    December 14, 2021

    Does the ST-LINK see a voltage? VTarget

    What voltage do you see on VCAP?

    Can you take a picture of the IC on the PCB? Points for clear, sharp and in focus.

    bvale.2Author
    Visitor II
    December 14, 2021

    I just rechecked I don't see any problem on the welds or anything else on the material.

    My board is powered with stabilized power supply on 5V and on the board I have a converter on 3.3V.

    Graduate II
    December 14, 2021

    Ok, but you're just repeating what you said 3 hours earlier.

    We have zero visibility into this, assume your design is flawed. Have someone you work with do a walk thru of the design and data sheets with you.

    Review the pin assignments, and net list.

    Super User
    December 15, 2021

    Debugging remotely is a two way street. Tesla is asking you questions which will help find the problem, but if you ignore them we never get the ball rolling.

    Does STM32CubeProgrammer work?

    Posting the entire schematic instead of just the debug port pinout would also help. The pinout you show is correct but that doesn't mean the rest of the design is correct, or that those signals are connected to the correct pins on the chip.

    bvale.2Author
    Visitor II
    December 15, 2021

    >> The other secondary method is to probe one of the System Loader's UARTs responds to the 0x7F data pattern at 9600 8E1, in the BOOT0=HIGH cases.

    Focus on causal reasons why chip is dead in the water...

    Sorry, I don't understand how to do it?

    >> Does the ST-LINK see a voltage? VTarget

    Cube Programmer said Vtarget = 3.2V

    0693W00000HoevKQAR.png 

    >> Can you take a picture of the IC on the PCB? Points for clear, sharp and in focus.

    Here is a part of my wiring diagram, the stm32 CubeIDE configuration and a picture of the board. Pin 1 is on the bottom right. BOOT0 is given to a 10k Ohm resistor for which I can choose to ground or 3.3V

    0693W00000HoeucQAB.png0693W00000Hof4bQAB.jpg0693W00000Hof4hQAB.png 

    Super User
    December 15, 2021

    You've grounded VCAP. That will cause the chip to not function. This pin outputs ~1.2V and needs to be bypassed to GND with a ~2.2uF cap.

    0693W00000Hoj1bQAB.png 

    Review the reference layout documentation.

    https://www.st.com/resource/en/application_note/dm00115714-getting-started-with-stm32f4xxxx-mcu-hardware-development-stmicroelectronics.pdf

    Tesla asked you about this in the very first post.

    > Check voltage seen on VCAP pins, and placed caps.

    Edit: Not only that, but you replied and said that you've checked it.

    > I have already checked all this

    bvale.2Author
    Visitor II
    December 16, 2021

    Sorry I didn't see this feature in the documentation. I unsoldered this pin and soldered a 2.2uF capacitor as indicated. Now the card consumes much less and the value seems to me more coherent (10mA instead of 150mA).

    I still can't connect to the board but I will read the documentation more carefully before coming back to you.

    Thanks for your help