2024-02-14 11:10 AM - edited 2024-02-14 11:15 AM
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.
Solved! Go to Solution.
2024-02-14 12:28 PM - edited 2024-02-22 12:33 PM
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.
2024-02-14 11:14 AM
> 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:\>
2024-02-14 11:23 AM
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.
2024-02-14 12:28 PM - edited 2024-02-22 12:33 PM
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.
2024-02-21 11:57 PM
Hi @Pavel A. ,
I will try with some experiment to reduce the size. Thank you.