Building ARM Toolchain

From Open-BLDC

Jump to: navigation, search

Originally this was a complete walkthrough the compilation and installation process of the ARM Toolchain. Now there is a script called Summon ARM Toolchain that does everything automatically. You only have to:

> wget http://github.com/esden/summon-arm-toolchain/raw/master/summon-arm-toolchain

Edit the downloaded file to match your needs and:

> chmod +x summon-arm-toolchain
> ./summon-arm-toolchain

Apart from the standard development tools linux users should install the following extra packages: libgmp3-dev and libmpfr-dev

For Debian/Ubuntu:

> apt-get install libgmp3-dev libmpfr-dev

Also binutils 2.19.1 needs a patch as described here: http://www.mail-archive.com/bug-binutils@gnu.org/msg06475.html

After that you should have a complete smooth ARM toolchain that should work with STM32.

This script should work on Linux and Mac OS X.

Have fun.

Personal tools