Skip to content
Implementation of the ARM SWD (Serial Wire Debug) protocol in Python for use with low-cost development boards to manage and flash Cortex CPUs
Branch: master
Clone or download
#2 Compare This branch is 18 commits ahead of bgamari:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
nuc1xx-firmware
stm32-firmwares
.gitignore
BeagleBoneGPIO.py
BeagleBoneSys.py
DebugPort.py
EFM32.py
LICENSE
NUC1XX.py
PirateSWD.py
README
STM32.py
SWDAdapterBase.py
SWDCommon.py
SWDErrors.py
SWDProtocol.py
adapter_factory.py
flashEFM32.py
flashSTM32.py
mchck_swd.py
simplejtag_l0.py
swd-identify
test.py

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.

UPDATES:
* Added 6/7/2011 by hugovincent: Energy Micro EFM32 support.
You can’t perform that action at this time.