snow leopard: install stm32duino

Apple Mac OSX
Post Reply
Posts: 17
Joined: Wed May 11, 2016 8:38 pm

snow leopard: install stm32duino

Post by denis » Sun Jun 26, 2016 8:51 pm

To install stm32duino on mac OSX snow leopard:
1) Install arduino 1.6.1 (The last version working on snow leopard).
2) Install stm32duino as specified in wiki:
3) Patch files: ~/Documents/Arduino/hardware/Arduino_STM32/STM32F*/platform.txt
Add line:

Code: Select all{runtime.ide.path}/hardware/tools/gcc-arm-none-eabi-4.8.3-2014q1
Before line:
4) Install libusb and dfu-util with macports (or any other way)

Code: Select all

sudo port install libusb dfu-util
5) Create a link for /usr/local/lib/libusb-1.0.0.dylib to the libusb install with macport:

Code: Select all

cd /usr/local/lib/ ; sudo ln -s /opt/local/lib/libusb-1.0.0.dylib . ; cd
6) change dfu-util. The one provide by stm32duino does not work on snow loepard.

Code: Select all

cd ~/Documents/Arduino/hardware/Arduino_STM32/tools/macosx/
mv dfu-util dfu-util.old
mkdir dfu-util
cd dfu-util
ln -s /opt/local/bin/dfu-util .
ln -s /opt/local/bin/dfu-suffix .
ln -s /opt/local/bin/dfu-prefix .
:D a) compilation works.
:D b) upload with "STM32duino bootloard" works.
:D c) upload using stlink works.
:( d) upload with "BMP" cannot works, there is no port for the BMP (/dev/cu.*)
I don't know if there is a driver for black magic probe on snow leopard.
e) Serial upload was not tested, I never use it.
Last edited by denis on Tue Jun 28, 2016 12:21 pm, edited 1 time in total.

User avatar
Posts: 7680
Joined: Mon Apr 27, 2015 10:36 am
Location: Melbourne, Australia

Re: snow leopard: install stm32duino

Post by RogerClark » Sun Jun 26, 2016 9:38 pm


Post Reply