Table of Contents

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 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 this compiler and the 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 dfu-util can be installed and used.

After initial installation of the boot loader and the first reset, 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

Official boot loaders

Official boot loader