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
make
sudo make install

We use cookies on our website. Some of them are essential for the operation of the site, while others help us to improve this site and the user experience (tracking cookies). You can decide for yourself whether you want to allow cookies or not. Please note that if you reject them, you may not be able to use all the functionalities of the site.