cancel
Showing results for 
Search instead for 
Did you mean: 

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

Zhiyong Wu
Associate II
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.
10 REPLIES 10
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 Venmo
Up vote any posts that you find helpful, it shows what's working..
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.

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 Venmo
Up vote any posts that you find helpful, it shows what's working..
Posted on July 13, 2017 at 18:34

Thanks! I will try it tomorrow by adding power to VDDA/VREF+ and add a capacitor from VCAP to ground.

Posted on July 14, 2017 at 17:11

Hi Clive One, I have tried what you said today, by adding power to VDDA/VERF+, The FAIL.TXT has gone, however, when I upload code from Keil (I am using STM32Cube MX combined with Keil to program the MCU), it returned with Core is held in reset. And I am not able to upload any code.

0690X00000607YUQAY.png0690X00000607VkQAI.png0690X00000607b3QAA.png

And then I tried to add a 4.7uF capacitor between VCAP (Pin 30) and GND, as soon as added it, the FAIL.TXT Jumps out again, original problem has come up again.

Is there anything else I've missed? I will read through the document that you recommended, but if you have any suggestions, that would be great.

PS. I have checked my custom made PCB, before I connect the programmer to the PCB, the following connection has already made:

the NRST (PIN 7) of MCU is connected to GND with BOOT0 (PIN 60)

OSC_IN (PIN 5) and OSC_OUT (PIN 6) are also connected to GND

VDDA/VERF+ (Pin 13) and VBAT (Pin 1) are connected to 3.6V

VSSA/VREF- (Pin 12) is connected to 100uF capacitor and the capacitor is then connected to GND.

Thank you!

Posted on July 14, 2017 at 17:56

VSSA should connect to GROUND

Check voltage levels on VCAP pin and NRST pin.

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
Posted on July 15, 2017 at 06:34

I don't have the PCB with me at the moment, but as I remembered, the VSSA is connected to Ground through a 100uF capacitor, I am not sure if the capacitor will make any difference.

Not sure about the voltage level on VCAP pin. However, the NRST and BOOT0 are connected together to the Ground, so I think there is no voltage level on NRST pin.

Posted on July 15, 2017 at 06:48

VSSA should not 'go through' the capacitor to ground, it should be at ground potential.

NRST should not be connected to ground permanently.

If you hold NRST low the device is not going to function, because you're 'Holding the Core in Reset'

Perhaps you have someone with some electronics experience/qualifications who can help you

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
Posted on July 15, 2017 at 06:59

Thanks a lot, that make sense to me. The PCB was designed by my friend, however he recently just left this project and I am taking his job over, I am not sure why he made those connections, I will try to get myself familiar with the document through the weekend and try it again on Monday.