STM32_Programmer_CLI.exe not found. Error solution

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:
insert image description here

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
insert image description here
of the STM32CubeProgrammer file. Copy the bin file directory
insert image description here
to win11 and directly search for advanced system settings in the search box, open it, and click Environment Variables.
insert image description here
Double-click the path in the system variable
insert image description here
and click New to copy the directory of the bin file just now, and click OK.
insert image description here

The problem was solved after restarting the Arduino.

The reference article is as follows: STM32CubeProgrammer not found error handling method

Guess you like

Origin blog.csdn.net/qq_43589852/article/details/127239242