I have developed an application by using STM32F4-Discovery development kit. Now code is mature and I need to build a custom circuit.

I started building the bare circuit first:

STM32F407 bare circuit test pcb

I soldered the chip on the pcb via a standard 30 Watts soldering iron with a technique like in this video: http://www.youtube.com/watch?v=6YU3v_w7x7o

Since I didn't get the point of connecting 1uF//100nF capacitors between every VDD-VSS pin, I only connected a 4.7uF capacitor to the entry point of power lines.

My pin connection is as follows:

  • VDD <- 11,19,28,50,75,100,21,22,6
  • GND <- 20,10,27,74,99
  • 2.2 uF cap is between 49 and GND
  • 2.2 uF cap is between 73 and GND
  • 10 K resistor is between 94 and GND
  • MCU.72 is connected to STM32F4-Discovery.SWD_connector.4
  • MCU.76 is connected to STM32F4-Discovery.SWD_connector.2
  • MCU.VDD is connected to STM32F4-Discovery.3V
  • MCU.GND is connected to STM32F4-Discovery.GND


I'm expecting to connect the MCU via STM32F4-Discovery's ST-Link/V2, but ST-Link utility is not being connected. I'm not able to get a heartbeat with the MCU.

What is the point I am possibly missing?


(moved to the answer)

  • \$\begingroup\$ What is your question? I read "I did this and used that" but I have no idea what you expect and what didn't happen. \$\endgroup\$
    – Andy aka
    Mar 6, 2014 at 23:56
  • \$\begingroup\$ "I'm expecting to connect the mcu via STM32F4-Discovery's ST-Link/V2, but ST-Link utility is not being connected. " \$\endgroup\$
    – ceremcem
    Mar 6, 2014 at 23:59
  • \$\begingroup\$ Nice cut and paste dude \$\endgroup\$
    – Andy aka
    Mar 7, 2014 at 0:01
  • 6
    \$\begingroup\$ Bypass caps are more critical than you are imagining. You should follow the data sheet closely on their size, count, and placement. Similarly, routing of power and ground is going to be as critical. Those long traces have a lot more inductance than you'd expect. You also need to make sure you've configured the debugger for SWD and not JTAG, and that you've wired any floating pins on the debugger's connector appropriately. \$\endgroup\$
    – RBerteig
    Mar 7, 2014 at 0:18
  • 2
    \$\begingroup\$ What is supply voltage? How much current is being drawn? What is the voltage of the reset pin? What is your clock setup? (The discovery board appears to have a crystal connected, do you need different settings to use the internal RC oscillator?) \$\endgroup\$
    – markrages
    Mar 7, 2014 at 19:10

1 Answer 1


Regarding @RBerteig's advice, I made following circuit:

Test circuit 2


  • There are 1uF+100nF capacitors connected all the VDD and GND pins (as close as possible)
  • Short routes

Temporary Problem: This circuit was not working. I was not able to connect it via ST-Link utility.

Solution: I checked the pins and one pin (SWCLK) was not connected to the PCB. When I soldered the pin, everything works as expected.


Here is the bare circuit schematics:

(note: isteğe bağlı means optional)

bare circuit

  • \$\begingroup\$ Would you mind sharing the schematic with us? \$\endgroup\$
    – Chimera
    Jan 9, 2015 at 20:12
  • \$\begingroup\$ Sure: ceremcem.net/cloud/f/bae82d2a09 \$\endgroup\$
    – ceremcem
    Jan 10, 2015 at 0:07
  • \$\begingroup\$ Are those 5 square through hole pads on the right hand side of the board for SWD? Thanks for the schematic link, it appears to be invalid though. \$\endgroup\$
    – Chimera
    Jan 12, 2015 at 16:58
  • \$\begingroup\$ Sorry for the link, I updated the answer accordingly. Yes, the pads are for Vdd, Gnd, SWCLK, SWDIO (and one more thing that I can not call right now) \$\endgroup\$
    – ceremcem
    Jan 13, 2015 at 11:47
  • 8
    \$\begingroup\$ +1 for solving it yourself, then taking the time to follow up and show us the solution. Second PCB is much nicer. \$\endgroup\$
    – pjc50
    Jan 13, 2015 at 11:58

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.