cancel
Showing results for 
Search instead for 
Did you mean: 

How to program an STM32 using the on-board ST-LINK/V2-1 of the NUCLEO-WB55RG

STTwo-32
ST Employee

Introduction

The NUCLEO-WB55RG has an on-board ST-LINK/V2-1 debugger/programmer. This ST-LINK/V2-1 is integrated on the same SoC as the MCU. This means that we cannot separate the hardware design into two parts; ST-LINK, and target MCU. For this reason, some developers may think that we cannot use the embedded ST-LINK/V2-1 to program an external MCU. We can in fact do this, and this article shows you how.

1. Boards used

A NUCLEO-WB55RG that integrates our ST-LINK:

STTwo32_0-1729838267128.png

NUCLEO-F103RB without an ST-LINK/V2-1 (after cutting the ST-LINK part of the board):

ST link and target MCU.jpg

2. Pin connections

First, we need to power our NUCLEO-F103RB. To do so, we use the VIN pin of the connector CN6. Connect it to the 5V pin of our NUCLEO-WB55RG (available on the connector CN6) directly after fitting the jumper JP5 of my board to pin 2 and 3. Finally, we connect the pins as follows:

NUCLEO-WB55RG (JP5) NUCLEO-F103RB
GND GND
NRST NRST
SWDIO PA13
SWCLK PA15
SWO PB3
T-VDD VDD

Note: Use the pins on the left of the JP5 (the on-board ST-LINK/V2-1 pins).
Do not use the MCU pins on the right side of the board. 

Related links

Version history
Last update:
‎2024-12-05 07:55 AM
Updated by: