cancel
Showing results for 
Search instead for 
Did you mean: 

Nucleo-G0B1RE SWD Programming via ST Link V2

MStev.7
Associate II

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

9 REPLIES 9
MStev.7
Associate II

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 

S.Ma
Principal

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).

gbm
Lead III

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

My STM32 stuff on github - compact USB device stack and more: https://github.com/gbm-ii/gbmUSBdevice

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!

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!

MStev.7
Associate II

got it working, thanks all!

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.

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..

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

This will help others who Google into this thread later

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..

0693W00000Y9WqmQAF.png