An implementation of the SWD protocol using the Bus Pirate
Switch branches/tags
Nothing to show
Clone or download
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
stm32-firmwares Reorganized example files Oct 4, 2010
LICENSE Added README and LICENSE Oct 4, 2010
PirateSWD.py Split into separate files. Oct 4, 2010
README Added README and LICENSE Oct 4, 2010
STM32.py Split into separate files. Oct 4, 2010
SWDCommon.py Split into separate files. Oct 4, 2010
SWDErrors.py Split into separate files. Oct 4, 2010
flashSTM32.py Split into separate files. Oct 4, 2010

README

Pirate-SWD
----------

This is a basic implementation of the SWD protocol using the Bus Pirate.

The 'PirateSWD', 'DebugPort' and 'MEM_AP' classes should be portable to
all ARM chips supporting the SWD protocol.

Also included is a 'STM32' class, which encapsulates some basic operations
on the STM32 microcontroller, allowing it to be halted and reset, and the
flash memory programmed with a sequence of words.

There are some example firmware files for the STM32VLDISCOVERY board, as
I mainly developed this code so I could program mine from Linux without
bothering with the embedded bootloader.