2023-01-27 01:29 PM
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
2023-01-27 03:48 PM
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:
2023-01-27 07:35 PM
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).
2023-01-28 12:08 AM
Update your ST-link firmware. Version 29 is older then G0 series.
2023-01-30 07:49 AM
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!
2023-01-30 07:53 AM
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!
2023-01-30 11:32 AM
got it working, thanks all!
2023-01-30 12:41 PM
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.
2023-01-30 12:41 PM
What did the problem end up being? What did you change?
This will help others who Google into this thread later
2023-01-30 02:28 PM