snow leopard: install stm32duino

Apple Mac OSX
Post Reply
denis
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: http://wiki.stm32duino.com/index.php?title=Installation
3) Patch files: ~/Documents/Arduino/hardware/Arduino_STM32/STM32F*/platform.txt
Add line:

Code: Select all

runtime.tools.arm-none-eabi-gcc.path={runtime.ide.path}/hardware/tools/gcc-arm-none-eabi-4.8.3-2014q1
Before line:
compiler.path={runtime.tools.arm-none-eabi-gcc.path}/bin/
4) Install libusb and dfu-util with macports (or any other way) https://www.macports.org/.

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 .
cd
: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
RogerClark
Posts: 7422
Joined: Mon Apr 27, 2015 10:36 am
Location: Melbourne, Australia
Contact:

Re: snow leopard: install stm32duino

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

Thanks

Post Reply