Flashing and debugging STM32 microcontrollers under Linux

One of my interests is electronics and microcontrollers, and since I mainly use Linux for developing I wanted to find a way to do programming and debugging for ARM microcontrollers, more specifically STM32 (STM32F4 Discovery, STM32F413 Nucleo and small boards like blue pill or red pill), which are the ones I use the most. And ideally using open source, non proprietary and packages already in my distro (Ubuntu 18.04). The method below works out of the box for development cards with an onboard Read more [...]