Skip to main content
CHand.3
Associate
February 27, 2023
Solved

I can't make stm32_programmer_cli work. Please help?

  • February 27, 2023
  • 2 replies
  • 941 views

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.

This topic has been closed for replies.
Best answer by Tesla DeLorean

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

2 replies

Tesla DeLorean
Tesla DeLoreanBest answer
Guru
February 27, 2023

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 VenmoUp vote any posts that you find helpful, it shows what's working..
CHand.3
CHand.3Author
Associate
February 27, 2023

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.