STM32_Programmer_CLI.exe not found. Error solution
question
STM32_Programmer_CLI.exe not found. Please install it or add \bin' to your PATH environment: https://www.st.com/en/development-tools/stm32cubeprog.html Aborting! Error uploading project
Arduino has the above error when programming the program. Install STM32CubeProgrammer and configure environment variables.
Solution
Install STM32CubeProgrammer
I saw STM32_Programmer_CLI.exe after installing STM32CubeProgrammer on other blogs. So this problem can be solved by installing STM32CubeProgrammer.
You can go to the official website of STM32CubeProgrammer to download the installation package. During the installation process, I click next all the way.
Installed as shown in the following interface:
Configure environment variables
After installation, find the installation location of STM32CubeProgrammer, and find the path of the bin file home.
Right-click the icon properties to see the location
of the STM32CubeProgrammer file. Copy the bin file directory
to win11 and directly search for advanced system settings in the search box, open it, and click Environment Variables.
Double-click the path in the system variable
and click New to copy the directory of the bin file just now, and click OK.
The problem was solved after restarting the Arduino.
The reference article is as follows: STM32CubeProgrammer not found error handling method