A study of GCC and the TI Stellaris

hard-look-at-stellaris-and-gcc

There are several things that we really like about the TI Stellaris. We think the peripheral library — called Stellarisware — has a pretty intuitive API that makes it easy to get into. But we’re also quite impressed that the software comes with makefiles that build the libraries and examples using your own GCC cross compiling toolchain. We spent quite a bit of time pawing through those makefiles and the¬†makedefs settings file to figure out how TI was doing things. Now if you don’t want to do that sleuthing yourself you can head on over to the GCC with TI Stellaris Launchpad guide which [Brandon] just published.

Shown above is the helpful chart of compiler flags which he pulled from the files with his added comments on what each does. He did the same for the linker flags, and then discusses the program calls made during compilation and linking. He then delves into how the driver library on the chip’s ROM can be accessed in code. This is just the first in a four-part series he plans to write. We can’t wait to see what he has to say about the hardware FPU as we haven’t had time to explore that for ourselves quite yet.

Comments

  1. Hack Man says:

    There are several things that we really like about the TI Stellaris too. Like the extra anal.

  2. wfwefwf says:

    GCC isn’t TI’s official compiler for the Stellaris, is it?

  3. Peter says:

    Just received my Stellaris Launchpad today. I have collected three Launchpads so far (missing the Fraunchpad I guess) and am a bit dismayed at the three different styles of headers: Stellaris with females on the bottom, males on top, C2K with males top and bottom, and dealers choice with the MSP430 (I chose females before TI settled on males on top).

  4. Cyril says:

    Props Mike for taking the time ;)
    It’s the longer and harder route but max learning is the profit

  5. doragasu says:

    Forget Makefiles, just use Eclipse. This is my Eclipse setup guide: http://kernelhacks.blogspot.com.es/2012/11/the-complete-tutorial-for-stellaris_25.html

    Pretty useful, specially for debugging.

  6. EEHusky says:

    New post about the system calls needed to work with the heap and UARTs, this will let you use printf and if you need it for what ever reason, malloc.
    http://eehusky.wordpress.com/2012/12/17/using-gcc-with-the-ti-stellaris-launchpad-newlib/
    (I ran my source cleaner on this one so there shouldn’t be any anal in it)

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.

Join 92,435 other followers