Flash a program to an stm32-based altos device using st-flash
ao-flash-stm file.elf
ao-flash-stm loads the specified .elf file into the target device flash memory.
ao-flash-stm converts the specified .elf file into a raw binary file and then uses st-flash to load it into the target device via a connected STlink debugging dongle. If st-flash is not available, ao-flash-stm will emit an error message and terminate.
st-flash(1)
Keith Packard