cancel
Showing results for 
Search instead for 
Did you mean: 

I can't make stm32_programmer_cli work. Please help?

CHand.3
Associate II

The program can't find any ST-Link connections:

0693W00000aHl7bQAC.pngBut I can use the STM32CubeProgrammer to flash my board via ST-Link/V2 SWD.

0693W00000aHl6iQAC.pngCould you please help me to figure out what is missing?

I need to write a program to flash the board and I can't even see it! Please help.

Thank you.

1 ACCEPTED SOLUTION

Accepted Solutions

The ST-LINK is using the SWD interface, the "USB" connectivity is looking for STM32 directly connect via USB, either in Boot Loader mode, or with DFU Device Firmware.

STM32_Programmer_CLI -c port=swd

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

View solution in original post

2 REPLIES 2

The ST-LINK is using the SWD interface, the "USB" connectivity is looking for STM32 directly connect via USB, either in Boot Loader mode, or with DFU Device Firmware.

STM32_Programmer_CLI -c port=swd

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

OMG... Of course!!!

I did not know that parameter. I need to improve my skills by looking for information in the manuals. Thank you very much.