Note: These are old instructions (mid 2017)
(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.