Skip to content

Instantly share code, notes, and snippets.

@manaskarekar
Last active January 26, 2018 13:45
Show Gist options
  • Select an option

  • Save manaskarekar/4849e19285cdd05347a1fe00f4f7a6fb to your computer and use it in GitHub Desktop.

Select an option

Save manaskarekar/4849e19285cdd05347a1fe00f4f7a6fb to your computer and use it in GitHub Desktop.
Maple mini setup instructions

Note: These are old instructions (mid 2017)

Some notes on the Maple Mini

(http://wiki.stm32duino.com/index.php?title=Maple_Mini)

  • The install.sh script needs to be run from the folder.

Steps for Linux Installation:

  • The install.sh steps
  • Download the Arduino_STM32 libraries and unzip them into arduino-1.8.3/hardware folder.
  • Go in to Arduino IDE > Boards Manager > Search for Zero and install. This should install the arm-none-eabi-g++ toolchain.

NOTE: The board may not be detected by Arduino IDE, but you can still upload to it.

Bootloader flashing over a USB connection:

  • Download maple_mini_boot20.bin (or the right one for your board)

  • In a terminal:

    git clone git://git.code.sf.net/p/dfu-util/dfu-util

    cd dfu-util

    sudo apt-get install autoconf

    sudo apt-get install libusb-1.0.0 libusb-1.0.0-dev

    sudo apt-get pkg-config

  • Add following to makefile.am

    ACLOCAL_AMFLAGS = -I /opt/local/share/aclocal

  • In a terminal:

    ./autogen.sh

    ./configure

    make

    sudo make install

    lsusb #lists out the 1eaf board identifier, used next

    sudo dfu-util -d [1eaf:0003] -a 1 -v -D ~/Downloads/maple_mini_boot.bin

  • To upload your sketch:

    • Press reset on the board. The LED will blink fast, then slow.
    • When the LED is blinking slow: it's in the boot mode.
    • Hit the upload button on the arduino ide during this stage.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment