Skip to main content
Zhiyong Wu
Associate II
July 13, 2017
Question

Use ST_Link Programmer from Nucleo 64 F411RE Board to program a Stand Alone STM32F411RE Chips

  • July 13, 2017
  • 1 reply
  • 3992 views
Posted on July 13, 2017 at 15:41

Hi, I have a ST_Link Programmer that was cut off from STM32F411RE Nucleo 64 Board (zero ohms resistors SB12, 13, 14, and 15 have been also removed). I have been use it to program other STM series Board with no problem.

Currently I am doing a project that is using STM32F411RE Nucleo 64 Board and I have a custom made PCB with STM32F411RE chips on it. I tried to use the same ST_Link Programmer to program the chips by connect the 8 pins from the programmer to the chips, but it does not work. The pins are connected the same as how I connect my programmer to the nucleo board.

When I connect the programmer to STM32F411RE Nucleo 64 Board:

Programmer

- - - - - - - - - - - - - - - - - - - - - - - - - - - - -

Board

Left Pin from JP1 (next to USB Power)- - - - - - -VDD (CN7-5)

SWCLK (CN4-2)- - - - - - - - - - - - - - - - - - - - - - - - -PA14 (CN7-15)

GND (CN4-3)- - - - - - - - - - - - - - - - - - - - - - - - - - -GND (CN7-8)

SWDIO (CN4-4)- - - - - - - - - - - - - - - - - - - - - - - - -PA13 (CN7-13)

NRST (CN4-5)- - - - - - - - - - - - - - - - - - - - - - - - - -NRST (CN7-14)

SWO (CN4-6)- - - - - - - - - - - - - - - - - - - - - - - - - - -PB3 (CN10-31)

TX (CN3-1)- - - - - - - - - - - - - - - - - - - - - - - - - - - - -PA3 - RX (CN10-37)

RX (CN3-2)- - - - - - - - - - - - - - - - - - - - - - - - - - - - -PA2 - TX (CN10-35)

With the connection above, I can program my Nucleo board with external ST-Link programmer that I cut off before. Everything works fine.

And then I connected the same programmer to my STM32F411RE Chips with the same pins as following:

Programmer

- - - - - - - - - - - - - - - - - - - - - - - - - - - -

STM32F411RE MCU

Left Pin from JP1 (next to USB Power)- - - - - - - - - - - -VDD (Pin 19)

SWCLK (CN4-2)- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -PA14 (Pin 49)

GND (CN4-3)- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -VSS (Pin 18)

SWDIO (CN4-4)- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -PA13 (Pin 46)

NRST (CN4-5)- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -NRST (Pin 7)

SWO (CN4-6)- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -PB3 (Pin 55)

TX (CN3-1)- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -PA3 - RX (Pin 17)

RX (CN3-2)- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -PA2 - TX (Pin 16)

This time, when I connect the program to my computer, same storage disk (NODE_F411RE (D:)) has jumped out, however, in stead of usual two files (

DETAILS.TXT and

MBED.HTM), there is one additional file called

FAIL.TXT, and when I opened it out, it shows:

The interface firmware FAILED to reset/halt the target MCU.

I am not sure how to fixed this, if anyone can help, that would be appreciated.

Thank you

Note: this post was migrated and contained many threaded conversations, some content may be missing.
    This topic has been closed for replies.

    1 reply

    Tesla DeLorean
    Guru
    July 13, 2017
    Posted on July 13, 2017 at 16:50

    More indicative of VDDA/VREF+ not being powered. Also want capacitors on VCAP pin(s).

    Tips, Buy me a coffee, or three.. PayPal VenmoUp vote any posts that you find helpful, it shows what's working..
    Zhiyong Wu
    Associate II
    July 13, 2017
    Posted on July 13, 2017 at 17:18

    Hi, thanks for the reply. So do I connect Left Pin from JP1 (power) to VDDA/VREF+?  What is VCAP pin(s)? and what size of capacitors that I should use? Thank you.

    Tesla DeLorean
    Guru
    July 13, 2017
    Posted on July 13, 2017 at 17:46

    There's a manual for the part that's worth reviewing

    http://www.st.com/content/ccc/resource/technical/document/datasheet/b3/a5/46/3b/b4/e5/4c/85/DM00115249.pdf/files/DM00115249.pdf/jcr:content/translations/en.DM00115249.pdf

     

    Single VCAP pin (30) would need a 4u7F, it's the bulk capacitor for the 1.25V regulator powering the core. The VDDA/VREF+ powers the analogue circuitry (so POR and PLL/VCO as I recall), no power there device held in reset indefinitely.

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