Open source flash program for STM32 using the ST serial bootloader
brew install stm32flash
stm32flash