bootloader install: https://themegaroboticsth.wordpress.com/tutorial/programming-stm32f103-using-usb-port/

stm32flash /dev/ttyUSB0

stm32flash 0.7

http://stm32flash.sourceforge.net/

Interface serial_posix: 57600 8E1 Version : 0x22 Option 1 : 0x00 Option 2 : 0x00 Device ID : 0x0410 (STM32F10xxx Medium-density)

  • RAM : Up to 20KiB (512b reserved by bootloader)
  • Flash : Up to 128KiB (size first sector: 4x1024)
  • Option RAM : 16b
  • System RAM : 2KiB

https://github.com/rogerclarkmelbourne/STM32duino-bootloader/blob/master/binaries/generic_boot20_pc13.bin

stm32flash -w generic_boot20_pc13.bin -v -g 0 /dev/ttyUSB0 stm32flash 0.7

http://stm32flash.sourceforge.net/

Using Parser : Raw BINARY Size : 22268 Interface serial_posix: 57600 8E1 Version : 0x22 Option 1 : 0x00 Option 2 : 0x00 Device ID : 0x0410 (STM32F10xxx Medium-density)

  • RAM : Up to 20KiB (512b reserved by bootloader)
  • Flash : Up to 128KiB (size first sector: 4x1024)
  • Option RAM : 16b
  • System RAM : 2KiB Write to memory Erasing memory Wrote and verified address 0x080056fc (100.00%) Done.

Starting execution at address 0x08000000… done.