stm32flash command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
stm32flash: command not found
or when using sudo you get the following error message
sudo: stm32flash: command not found
Solutions to stm32flash: command not found
How To Fix stm32flash: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu stm32flash is provided by stm32flash package.
stm32flash is:
stm32flash is a flashing program for the STM32 ARM processors using the ST serial bootloader compliant with application note AN3155.
Features:
- device identification
- write to flash/RAM
- read from flash/RAM
- auto-detect Intel hex or raw binary input format with option to force binary
- flash from binary file
- save flash to binary file
- verify and retry up to N times on failed writes
- start execution at specified address
- software reset the device when finished if -g not specified
- resume already initialized connection (for when reset fails)
- GPIO signalling
- I²C support
To fix this problem, we can install more using the command below.
sudo apt-get -y install stm32flash
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install stm32flash.
sudo apt -y install stm32flash
Or if you have aptitude installed you can use the following command.
sudo aptitude install stm32flash
Summary
In this tutorial we learn how to fix stm32flash command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.