cancel
Showing results for 
Search instead for 
Did you mean: 

Programming the STM32WB55RG using the ST-LINK/V2-1 of a separate board

STTwo-32
ST Employee

Introduction

On the NUCLEO-WB55RG, we have an embedded ST-LINK/V2-1. However, for several reasons, users may want to use an external ST-LINK for debugging or programming. In this article, I demonstrate a simple use case of programming an STM32WB55RG Nucleo board with the on-board ST-LINK/V2-1 of a NUCLEO-F103RB.

1. Boards used

A STM32WB55RG that we program:

STTwo32_0-1729838267128.png

The ST-LINK part of a Nucleo board with the reference MB1136 (NUCLEO-F103RB in this case):

STTwo32_0-1735223503336.jpeg

 

2. Pin connections

First, we need to disconnect both jumpers of the CN2 of our NUCLEO-F103RB.

STTwo32_2-1729838335000.png

 

Fit the jumper JP1 of the NUCLEO-WB55RG to select the USB MCU as 5 V source. Remove all the jumpers from the JP5.

STTwo32_3-1729838357994.png

 

Finally, connect the pins from the CN4 of the NUCLEO-F103RB to the pins of the JP5 of the NUCLEO-WB55RG. Follow the description in the table below.

 

CN4 of the NUCLEO-F103RB

JP5 of the NUCLEO-WB55RG

GND GND
NRST NRST
SWDIO PA13
SWCLK PA14
SWO PB3
VDD_TARGET VDD

 

Important note

Use the pins on the right of the JP5 (the STM32WB pins). Do not use the on-board ST-LINK pins (the pins on the left of the NUCLEO-WB55RG).STTwo32_4-1729838572996.png

Power your NUCLEO-WB55RG through the connector CN1 (or any other powering way, but ensure you have the correct jumper settings).

STTwo32_5-1729838867859.png

Related links

Comments
ALABSTM
ST Employee

Hi,

Interesting article, indeed. Would it be possible to add the elements below?

  • A figure showing the two boards, side by side, plus the connections listed in the table above using colored lines? This would be helpful.
  • A description of what should be done after all connections have been done. I suppose I should connect the 'NUCLEO-F103RB' board to my laptop. Then, I would see the 'STM32WB55RG Nucleo' board is the one detected. Finally, I would flash this latter using some toolchain. Am I correct?

Thank you,

STTwo-32
ST Employee

Hello @ALABSTM 

Thank you so much for your feedback, I will process for the edit to add those details.

Best Regards.

STTwo-32

Version history
Last update:
‎2025-01-23 06:52 AM
Updated by:
Contributors