==== Maple mini boot loader ====
Leaflabs have a repository for the maple boot loader and pre-built binaries, however, the repository does not contain working code for the [[:boards:maple|Maple mini]] or its clones.
A patched version of the Maple boot loader for the mini exists elsewhere and this appears to operate.
=== Install ===
Install [[:tools:gccarm|this]] compiler and the [[:tools:stlink|STLink]] programmer.
git clone https://github.com/rogerclarkmelbourne/Arduino_STM32
cd Arduino_STM32/other/maple-bootloader
make TCHAIN=/embedded/arm-cortex/gcc-arm-none-eabi-4_9-2015q1/bin/arm-none-eabi
st-flash write build/maple_boot.bin 0x8000000
=== Test ===
To communicate with the boot loader [[:tools:dfu-util|dfu-util]] can be installed and used.
After initial installation of the boot loader and the first reset, [[:tools:dfu-util|dfu-util]] will fail to operate correctly until the mini is reset once again.
The first time we query the device we will get the following.
Found DFU: [1eaf:0003] ver=0201, devnum=85, cfg=1, intf=0, alt=1, name="UNKNOWN", serial="UNKNOWN"
Found DFU: [1eaf:0003] ver=0201, devnum=85, cfg=1, intf=0, alt=0, name="UNKNOWN", serial="UNKNOWN"
Subsequent queries work as expected.
Found DFU: [1eaf:0003] ver=0201, devnum=88, cfg=1, intf=0, alt=1, name="DFU Program FLASH 0x08005000", serial="LLM 003"
Found DFU: [1eaf:0003] ver=0201, devnum=88, cfg=1, intf=0, alt=0, name="DFU Program RAM 0x20000C00", serial="LLM 003"
=== Resources ===
[[https://web.archive.org/web/20110811161116/http://static.leaflabs.com/pub/leaflabs/maple-bootloader/|Official boot loaders]]
[[https://web.archive.org/web/20150928225110/http://static.leaflabs.com/pub/leaflabs/maple-bootloader/maple_mini_boot.bin|Official boot loader]]