STM32 Primer - Toolchain
We are going to use the GNU toolchain based Sourcery CodeBench Lite for ARM EABI for development in this primer. It is intended to produce raw binaries for boards without an operating system, or that run an RTOS or boot loader. It has the following components included:
- GNU C Compiler (GCC)
- GNU C++ Compiler (G++)
- GNU assembler and linker
- GNU Binary Utilities (Binutils)
- GNU Debugger (GDB)
me@pandafruits:~$ sudo /bin/bash ./arm-2012.03-56-arm-none-eabi.binHere are some screenshots from my installation:
Choose minimal install, as I don't need an IDE ...
I changed installation directory to '/usr/local/' as per convension ...
Add to PATH ...
Installing ...
To test the installation, do:
me@pandafruits:~$ arm-none-eabi-gcc arm-none-eabi-gcc: fatal error: no input files compilation terminated.
Of course, we didn't give a source file so it failed. But we know that it's been successfully installed and is in PATH. If somehow the shell complains about not being able to find the command, you may need to manually add the following line to the '.profile' file in you home directory:
export PATH=$PATH:/usr/local/Sourcery_CodeBench_Lite_for_ARM_EABI/bin
Next I'll test the toolchain and the hardware with some code.