Wednesday 22 September 2010

Installing the GNU ARM Toolkit.

The instructions that seem to work for me best are the ones here http://lejos-osek.sourceforge.net/installation_linux.htm . You only need to install section 1 - install the Ubuntu components suggested, copy the script to a directory, run it and wait quite a while.

I've put the serial port interface on a bit of Veroboard. I've left half the board empty because I want to put a 3.3v regulator on there as well, and drive it from the 5v line.
The Current State of the Development System
In the next post, I will explain how to build and run "blinky" version 2.

I want to learn how the Microcontroller actually works. Because of this, I will keep things fairly close to the metal, rather than use the STM32 Peripheral Library.

3 comments:

  1. Why did you choose GNU ARM as the toolchain? GNU ARM hasn't released any new toolchain version since 2006, so the project seems to be dead -- the gcc is still 4.1.1, so I wonder if it actually supports the Cortex-M3???

    I gave CodeSourcery G++ lite a try, you can download it here: http://www.codesourcery.com/sgpp/lite/arm/
    It is the best supported and freshest toolchain for the ARM I found so far.

    Additionally, I downloaded the GNU ARM Eclipse plugin to be able to use CodeSourcery compiler and tools inside Eclipse.

    As a first test, I made a new project in Eclipse, put your blinky source into it and tried to compile. After adding the path of the bin subdirectory of CodeSourcery to the Build Environment settings in Eclipse (Preferences -> C/C++ -> Build -> Environment), I was able to build your blinky without error.

    So is there any reason not to use CodeSourcery and stick to GNU ARM?

    ReplyDelete
  2. Hi Paul!
    I agree that is is good to use Codesourcy compliner beacause it is newer. I tried both.

    Anyway, thank you very much for your posts, it helped me to start with the STM32!

    Thanks a lot!

    ReplyDelete
  3. You can download the most up to date gcc toolchain from the Linaro project. Linaro is a not-for-profit engineering organization consolidating and optimizing open source Linux software and tools for the ARM architecture. Versions are free and available for Linux, Mac, Windows and source. Go to the BARE-METAL section of http://www.linaro.org/downloads/

    I just compiled nuttx with:
    https://launchpad.net/gcc-arm-embedded/+milestone/4.6-2012-q2-update

    ReplyDelete