| Crates.io | stm32cubeprogrammer-cli |
| lib.rs | stm32cubeprogrammer-cli |
| version | 0.1.0 |
| created_at | 2025-02-17 19:50:35.616623+00 |
| updated_at | 2025-02-17 19:50:35.616623+00 |
| description | CLI for the STM32CubeProgrammer API |
| homepage | |
| repository | https://github.com/ckrenslehner/stm32cubeprogrammer-rs |
| max_upload_size | |
| id | 1559289 |
| size | 66,048 |
This CLI aims to provide a simple interface for setting up stm32 targets.
All commands above can be combined in a single command line invocation by chaining them. If you need other commands, feel free to open an issue or a pull request. :smile:
Where installation_dir is the path to the root directory of the STM32CubeProgrammer installation.
E.g. C:\Program Files\STMicroelectronics\STM32Cube\STM32CubeProgrammer
stm32cubeprogrammer-cli --stm32-cube-programmer-dir `installation_dir` reset
You can also pass the directory to the STM32CubeProgrammer installation using the STM32_CUBE_PROGRAMMER_DIR environment variable.
STM32_CUBE_PROGRAMMER_DIR=`installation_dir` stm32cubeprogrammer-cli reset
You can chain multiple commands together.
STM32_CUBE_PROGRAMMER_DIR=`installation_dir` stm32cubeprogrammer-cli unprotect reset flash-hex `path_to_hex_file` protect
Use the --list flag to list available probes.
stm32cubeprogrammer-cli --stm32-cube-programmer-dir `installation_dir` --list
Use --help to see all supported commands and options (or see [crate::parse::Options])
stm32cubeprogrammer-cli --help
The CLI outputs a JSON object (see [crate::output::Output]) which contains information about the selected probe, general information about the target, and the output of each command.
The output is printed to stdout.
There needs to be a Stm32CubeProgrammer installation on your system. The crates are tested using Stm32CubeProgrammer version 2.18.0.
Windows and Linux are supported and tested.
This crate is supplied as is without any warranty. Use at your own risk.
License: MIT