Skip to main content
Associate III
February 14, 2024
Solved

start CubeProgrammer CLI from a custom folder path

  • February 14, 2024
  • 2 replies
  • 2521 views

Hi,

I'm working on download an ".elf" file on MCU without using the CUBE Programmer Application.

I need to start the "STM32_Programmer_CLI.exe" from any folder path, other then the default:

C:\Program Files\STMicroelectronics\STM32Cube\STM32CubeProgrammer\bin

I don't want to move on the work directory the entire "...\STM32Cube\STM32CubeProgrammer"  that is 750 MB (in this way it works).

I already tried with the only "bin" folder, but it does not work.

Anybody know what files and folders are strictly necessary to do this?

Thank you.

 

This topic has been closed for replies.
Best answer by Pavel A.

It needs some data files in directories relative to its own location (assumed in the 'bin' subdir). Start from compete installation and experiment what you can delete. Also, your partner can use J-Flash, it has much smaller footprint ~ 150 MB but requires expensive J-Link.

 

 

2 replies

TDK
Super User
February 14, 2024

> I need to start the "STM32_Programmer_CLI.exe" from any folder path, other then the default:

You don't have to be in the bin folder to start it. You can start it from any folder. Use the full path to the exe and include it within quotes if there are spaces in the path. For example:

C:\>"C:\Program Files\STMicroelectronics\STM32Cube\STM32CubeProgrammer\bin\STM32_Programmer_CLI.exe" /?
 -------------------------------------------------------------------
 STM32CubeProgrammer v2.15.0
 -------------------------------------------------------------------


C:\>

 

"If you feel a post has answered your question, please click ""Accept as Solution""."
DAUSILIAuthor
Associate III
February 14, 2024

Thank you so much  for the quick answer.

I need to use the "STM32_Programmer_CLI.exe" to distribute the .elf file to my board supplier. He has to program the MCU, but he is not a developer, so he hasn't the CUBE Programmer Application.

For this reason I need to reduce the dimension and start "STM32_Programmer_CLI.exe" from any folder.

Pavel A.
Pavel A.Best answer
Super User
February 14, 2024

It needs some data files in directories relative to its own location (assumed in the 'bin' subdir). Start from compete installation and experiment what you can delete. Also, your partner can use J-Flash, it has much smaller footprint ~ 150 MB but requires expensive J-Link.

 

 

DAUSILIAuthor
Associate III
February 22, 2024

Hi @Pavel A. ,

I will try with some experiment to reduce the size. Thank you.