Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Python script to load firmware using STM32 bootloader
Branch: master

Merge pull request #1 from domenpuncer/master

Sending it back upstream. Support for stm32f2, mostly simple changes.
latest commit 715d0fd8c1
@jsnyder authored
Failed to load latest commit information.
COPYING3 Include GPL license.
README some notes. Add chip id strings



Python script which will talk to the STM32 bootloader to upload and download firmware.

Original Version by: Ivan A-R <>

Usage: ./ [-hqVewvr] [-l length] [-p port] [-b baud] [-a addr] [file.bin]
    -h          This help
    -q          Quiet
    -V          Verbose
    -e          Erase
    -w          Write
    -v          Verify
    -r          Read
    -l length   Length of read
    -p port     Serial port (default: /dev/tty.usbserial-ftCYPMYJ)
    -b baud     Baud speed (default: 115200)
    -a addr     Target address

    ./ -e -w -v example/main.bin

Example: -e -w -v somefile.bin

This will pre-erase flash, write somefile.bin to the flash on the device, and then perform a verification after writing is finished.

Something went wrong with that request. Please try again.