Skip to main content
Visitor II
January 27, 2023
Question

Nucleo-G0B1RE SWD Programming via ST Link V2

  • January 27, 2023
  • 4 replies
  • 2658 views

I would like to program the Nucleo board via the SWD interface or via ST Morpho connections via a ST-Link V2 (pod) programmer, is this possible? I am trying to emulate the programming that will occur in our factory without the use of the USB ST-LINK interface that will not be present on our PCBA. I have tried several methods of connecting the ST-Link V2 to the SWD interface, removed the ST-Link jumpers, applied external power and this did not work. I have also tried directly to the MCU via SWSCLK (PA14), SWDIO (PA13) , DGN, NRST and this did not work either. Any help in point out what I am missing would be greatly appreciated.

Programmer:

https://www.st.com/en/development-tools/st-link-v2.html#overview

    This topic has been closed for replies.

    4 replies

    MStev.7Author
    Visitor II
    January 27, 2023

    This is the output from the programmer CLI

    ST-LINK SN : 34FF68063048553739201643

    ST-LINK FW : V2J29S7

    Board    : --

    Voltage   : 4.20V

    Error: No STM32 target found!

    libusb: error [submit_bulk_transfer] bulk transfer failed (dir = In): pipe is stalled (code = 0xe000404f)

    I have the device wired up as follows:

    0693W00000Y9NO0QAN.png 

    Visitor II
    January 28, 2023

    Well take a spare nucleo, break off the STLink Part, and use Morpho connector to make sure all the required ground, SWDIO, SWCLK, Reset are connected properly. You will need to provide power to the target separately to be in your production situation. (power source jumpers on the target STM32 side).

    MStev.7Author
    Visitor II
    January 30, 2023

    Thank you for the information. I have 5V PWR provided to the MCU via the Morpho connector as well as the jumper in the correct position (CHG) to power up the board. The ST Link on the STLINK portion is disabled via no jumpers on CN4 (ST-Link). With external 5V connected, the ST-Link Programmer connected the MCU is executing my code, however when I try to program the MCU I get the following:

       -------------------------------------------------------------------

                STM32CubeProgrammer v2.10.0

       -------------------------------------------------------------------

    ST-LINK SN : 34FF68063048553739201643

    ST-LINK FW : V2J40S7

    Board    : --

    Voltage   : 4.14V

    Error: No STM32 target found!

    Graduate II
    January 30, 2023

    The pin 1 of the ST-LINK should not be 5V, but rather the voltage of the Target, so either 3.3 or 3V typically.

    Graduate
    January 28, 2023

    Update your ST-link firmware. Version 29 is older then G0 series.

    MStev.7Author
    Visitor II
    January 30, 2023

    I just performed the upgrade and got the same results.

       -------------------------------------------------------------------

                STM32CubeProgrammer v2.10.0

       -------------------------------------------------------------------

    ST-LINK SN : 34FF68063048553739201643

    ST-LINK FW : V2J40S7

    Board    : --

    Voltage   : 4.14V

    Error: No STM32 target found!

    MStev.7Author
    Visitor II
    January 30, 2023

    got it working, thanks all!

    Graduate II
    January 30, 2023

    What did the problem end up being? What did you change?

    This will help others who Google into this thread later

    MStev.7Author
    Visitor II
    January 30, 2023

    0693W00000Y9WqmQAF.png