Skip to main content
Visitor II
July 27, 2020
Solved

More details on using the Nucleo ST-Link to program other stm32

  • July 27, 2020
  • 4 replies
  • 1355 views

Are there any example on how to configure the ST-Link on the Nucleo-64 to be use? In particular the Blue Pill. A real life example may answer some questions I have after reading the document.

Some things I read you only have to pull the CN2 jumpers if all you need is SWO. Other make it look like you have to remove the 0 ohms resistors. Also the document looks like the SW0 connector power pin is input, not out. It says "from the target".

I have tried to wire the SW0 to the ST-Link connector of the Blue Pill but it did not work. I assume it is a power thing.

I am new to stm32 but have some experience from the ESPxxxx world. So some of my problem could be me filtering my understand from that world. What go me started looking at the stm32, is my 3D printer mother board lost it's boot loader. Now, not only do I want to get the 3Dprinter motherboard running, but learn more about the stm32 world.

    This topic has been closed for replies.
    Best answer by Peter BENSCH

    This thread relates to a so-called Blue Pill, which uses illegally cloned STM32F103. ST resources are only dedicated to supporting genuine ST products. We are not committed to ensuring that clones/fakes products work properly with the firmware we provide.

    We recommend to purchase genuine products from STMicroelectronics and purchase them from known and trusted distributors.

    This thread will now be locked. However, if you face difficulties while using genuine ST products, we’re here to assist you. Please feel free to start a new thread, and our team, along with community members, will be ready to help you with any issues/questions you encounter.

    Thank you for your understanding.

    Regards
    /Peter

    4 replies

    Graduate II
    July 27, 2020

    CN2 jumper definitely need to come off, otherwise you have two devices connected to SWDIO/SWCLK pins.

    I'd probably lose the SWO and NRST solder bridges too

    Disconnecting SWO probably not critical if just using SWDIO/SWCLK connectivity.

    Would suggest connecting SWDIO, SWCLK, NRST and GND

    Connect VDD if you need to power the Blue Pill.

    Visitor II
    July 27, 2020

    For programming stm32, you only need to connect gnd, swdio, swclk from programmer to target MCU. Use a multimeter to check these cconnections. The SWO pin is for advanced debugging and typically can be ignored

    PEnrightAuthor
    Visitor II
    July 27, 2020

    @Community member​ that is what I was expecting. I did disconnect the jumpers and the 0 Ohm (SWO, Rx, Tx, NRST). I know I may not have needed to the the Rx and Tx, but from what I understand a drop of solder and it is back anyway. You said "Connect VDD if you need to power the Blue Pill.".

    Counting from the SW0 (pin 1) down to CN4 silkscreen (pin 6), I would expect to see 3.3v between Pin 1 and 3. I am not powering the Blue Pill nor am I seeing any voltage between pins 1 and 3 with a meter.

    This is the diagram I am basing my assumptions on...

    Technical Moderator
    April 25, 2025

    This thread relates to a so-called Blue Pill, which uses illegally cloned STM32F103. ST resources are only dedicated to supporting genuine ST products. We are not committed to ensuring that clones/fakes products work properly with the firmware we provide.

    We recommend to purchase genuine products from STMicroelectronics and purchase them from known and trusted distributors.

    This thread will now be locked. However, if you face difficulties while using genuine ST products, we’re here to assist you. Please feel free to start a new thread, and our team, along with community members, will be ready to help you with any issues/questions you encounter.

    Thank you for your understanding.

    Regards
    /Peter