STM32 Toolchain on OS X

This tutorial explains how to get your first led-blink program running on an STM32-Chip.

Required Materials

I used the Olimex prototyping board because it's simple and cheap, but any other STM32 dev-board should work as well

Installing the software

  • Install libusb
sudo port install libusb
sudo port install libusb-compat
Download OpenOCD from the projects website After unpacking the archive, you just need to run the following commands (I use MacPorts for libusb which is installed in /opt/local, this might be different from your setup)
./configure -includedir=/opt/local/include --prefix=/opt/local –-enable-usbprog
sudo make install
Cookies make it easier for us to provide you with our services. With the usage of our services you permit us to use cookies.
More information Ok