This is an old revision of the document!
Table of Contents
Development tools
ARM GNU C/C++ toolchain for bare-metal devices
Download the arm-none-eabi-gcc-4.9 toolchain from the GNU ARM Embedded Toolchain project (currently tested with the 14.07 release https://launchpad.net/gcc-arm-embedded/+milestone/4.9-2014-q4-major ).
Extract the archive (e.g. to ~/toolchains ).
Update your PATH to find the newly installed toolchain. In your ~/.profile
(for bash) or your ~/.zshrc
(for zsh) , add
PATH="$HOME/toolchains/gcc-arm-none-eabi-4_9-2014q4/bin:$PATH"
Restart your session so that is sourced again, and verify that you are running the correct arm-none-eabi-gcc version:
$ arm-none-eabi-gcc --version arm-none-eabi-gcc (GNU Tools for ARM Embedded Processors) 4.9.3 20141119 (release) [ARM/embedded-4_9-branch revision 218278] Copyright (C) 2014 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Add compiler to Code::Blocks
If you want to use an IDE like Code::Blocks, you can configure it to use the newly installed toolchain.
- Settings > Compiler
- Copy “GNU GCC Compiler”, call the new compiler “Quimesis ARM Linux Compiler”
- Toolchain executables:
- Compiler's installation directory: $HOME/toolchain/usr/bin
- C compiler: arm-linux-gcc
- C++ compiler: arm-linux-g++
- Linker for dynamic libs: arm-linux-g++
- Linker for static libs: arm-linux-ar
When you create your project in Code::Blocks, be sure to select the “Quimesis ARM Linux Compiler”.
Libraries for host developments
- libfuse-dev
Run a 32-bit toolchain on a 64-bit Ubuntu
sudo apt-get install lib32stdc++6 sudo apt-get install lib32z1
Windows tools
ST/Link v2 windows driver: STSW-LINK009 : http://www.st.com/web/en/catalog/tools/PF260219
ST/Link Utility: STSW-LINK004 : http://www.st.com/web/en/catalog/tools/PF258168
GDB server for emIDE: http://emide.org/files/stlinkgdbserver.7z