
Simon Schubert writes, “I am happy to announce that we have a self-hosted toolchain: The MC HCK can now act as SWD debug adapter for other MC HCKs, without requiring any other external debug adapters or development boards.”
The MC HCK (pronounced: “McHack” [mæk hæk]) is a small, cheap, and versatile ARM Cortex-M4 based microcontroller platform.
The MC HCK is entirely open source and created by the community, from geeks, for geeks.

Saw the MC HCK post last month about self-programming the M4 via ARM SWD (two physical devices reqd.).
FYI there is a new post about how they’re flashing MC HCK (is that the right name?) chips via a carrier with bootloader (and likely HW pin/fuse-like config too) prior to shipment.
Their post dated 12 Sep 2013 – here:
https://mchck.org/blog/2013-09-12-mc_hck_flashing_rig/
I found the reference to their use of the Ragel State Machine Compiler in their implementation. Speaking as an old dog, I remember doing something similar/same raw in Perl ages ago.
http://www.complang.org/ragel/
http://en.wikipedia.org/wiki/Ragel
Before delving deep, put your RegEx tin-foil hats on ;-)