leaflabs/maple-bootloader — pull request #2 by nekromant (2012-06-05 20:54:27+00:00)
Title: Reworked bootloader code

This is my total rework of dfu bootloder code, that might be userful for you.
Most of the 'revolutionary' things are now done, everything should be stable now.

In short, what's changed:
Moved hardware dependant code, easy to add new boards, each can have it's own set of descriptors and start address.
Overall fixes - now works when compiled with -Os, binary as small as 5-6KiB (depending on the feature set)
Tuned dfu poll delays - uploads 80KiB in 3 instead of 20 seconds.
Xilinx Bitbang Serial Uploader driver (yet to be added to mcortex board as an example)
Now easy to add new dfu targets, e.g. fpgas, external memories etc.
Buildsystem: pretty output, support for multiple boards to build in batch, smaller Makefile
Extra RUNAPP altsetting that can be enabled via per-board config - any upload to it results in immediate code execution

I'm still working on getting DFU Upload code running, and adding the SPI flash driver, will send a pull request later.
Regards, Andrew