Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
5 years, 11 months ago.
Can I program an external board using SWD connector from NUCLEO F103RB board from STM?
Hello guys. Im developing a hardware project and I dont have sure and idea if I can use any of SWD connector pins from Nucleo F103Rb board to boot, to program using Mbed plattform an external board that Im developing. Im using a STM32F401RBT6 ucro on my project and I dont have sure too which pin I need to use to program/boot. I downloaded sch files from Nucleo F103RB board and opened on Altium Design to check it. Looking the board the unique connectors I should use to program, to boot stm32F401RBT6 for my project is that SWD connector. I dont have sure if I need whole hardware interface to make mbed works or if i can use development board kit as Nucleo F103RB that I have here to program an external board using that SWD connector and how to do it.
1 Answer
5 years, 11 months ago.
Hello Didan,
- Remove the two jumpers from the CN2 connector on the NUCLEO-F103RB
- Connect the CN4 connector of NUCLEO-F103RB board to the STM32F401RBT6 board as follows:
CN4 Connector on the NUCLEO-F103RB | STM32F401RBT6 |
SWCLK (pin 2) | PA14 |
GND (pin 3) | GND |
SWDIO (pin 4) | PA13 |
NRST (pin 5) | NRST |
- Provide power for the STM32F401RBT6 board (The VDD_TARGET pin (pin 1) on the NUCLEO-F103RB board CN4 connector does not work as source of power).
- Connect the NUCLEO-F103RB board to your PC over a USB cable.
- Save the binary compiled for the STM32F401RBT6 to the NUCLEO-F103RB virtual disk.
For more details have a look at the User Manual, chapter 6.2.4 Using ST-LINK/V2-1 to program and debug an external STM32 application.
The following links could be of help as well:
- https://os.mbed.com/users/hudakz/code/STM32F103C8T6_Hello/
- https://os.mbed.com/users/hudakz/code/MapleMini_Hello/
- https://os.mbed.com/questions/83314/Can-I-program-a-STM32F411RC-chip-using-t