2017-07-13 06:41 AM
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.2017-07-17 01:33 AM
Problem solved, I can now upload code into the MCU. Thank you!