Programming an STM32F103 board using its USB port (Blue Pill)

While the $2 board is cheap and very commonly found, getting up and running is slightly convoluted. Here is a short guide on how to set it up to program directly from USB.

A generic $2 STM32F103 board on AliExpress (aka Blue Pill)
(source)
python ./stm32loader -p /dev/tty.SLAB_USBtoUART -w ~/Downloads/generic_boot20_pc13.bin

Software guy. When you try to tell computers what to do, you eventually learn about human nature as well. (http://paramaggarwal.com)

Software guy. When you try to tell computers what to do, you eventually learn about human nature as well. (http://paramaggarwal.com)