Guide To Developing With The Stellaris Launchpad On A Linux Box

So you picked up your very own Stellaris Launchpad, a TI ARM dev board which can be in your hands for just five bones. They do distribute several free IDEs which are not size-limited but perhaps you’re more of a text editor and command line sort of person. Well you’re in luck. There’s now a guide to show you how to code for and program the Stellaris Launchpad from a Linux box with using one of the IDEs.

There are two main things that are needed to accomplish this. The first is a cross-compiling toolchain for the ARM architecture; something that has been readily available for quite some time. The second is a way to talk to the in-built Stellaris programmer from a Linux machine. The hardware uses the ICDI protocol, and as we reported last week the lm4tools project can be used for this purpose. The guide also covers building the StellarisWare package. It’s not a requirement, but it makes using the peripherals much easier and provides names for the I/O pins, etc.

Our favorite for debugging microcontroller projects is OpenOCD. From this thread post it looks like there is now ICDI support in the development branch of the software if you don’t mind compiling from source.

42 thoughts on “Guide To Developing With The Stellaris Launchpad On A Linux Box

      1. I don’t know if your comment is bullshit or you live on a different internet…but the last i’ve seen these for $5 was some time ago. Moreover, i ordered mine a day or two after it was announced, and it’s scheduled to arrive nov 8.

      2. I am not joking, mine are arriving today. Check out Avnet Express and search for stellaris launchpad, here is a link to the product page: http://avnetexpress.avnet.com/store/em/EMController?langId=-1&storeId=500201&catalogId=500201&term=Stellaris%2Blaunchpad&x=0&y=0&searchType=&advAction=&N=0&Ne=100000&action=products

        They did go up a little since I posted, they are $5.60 when I checked this morning and you do need to pay $8 shipping right now (which is why i bought 3, hate to pay more for shipping than product) but it is still an incredible deal! Only 268 left in stock and it is three business days to ship.

    1. Hey I think that happened to me too. Do you know the details to wtf is going on? I’m getting pretty pissed hearing everybody got their board when I ordered mine the day of it was announced.

      I’m about to say FK YOU ti and start the planned project with another god damn platform.

      1. Don’t feel too bad.
        I’m still waiting on the original launchpad to ship. Ya… like two YEARS ago.
        They wont reply to any mails about it and the order number has been recycled since. What?
        I did however get the new one today.
        If you order from TI and anything funky happens with your order, expect it to be lost and get on them asap via phone.

  1. Anybody thinking about to release code based on the CMSIS style device header should think twice. . At least the file you get via http://www.ti.com/tool/cmsis_dsp_headers contain nasty disclaimers The disclaimers only talk about ” object or executable versions only” and tells “You shall maintain the source code versions of the Licensed Materials”.

    So again, be warned!

    1. The “driverlib” code (headers and C functions) seem to be under the BSD license. But the sample programs as well as startup code and linker scripts explicitly prevent mixing with “viral” licenses :( Any idea how this problem can be solved? (the startup/linker scripts are trivial programs – maybe we can just do a rewrite?)

    1. I hear you man. All of these MFers from crazy places over the world getting theirs with 2day shipping, yet I’m in the same shipping zone of TI’s headquarters, ordered the day it was announced, and have to wait till nov 8.

      I’ll fcking remember this TI the next time I select components for a project at work…

  2. I have just started to read the Stellaris documentation (http://processors.wiki.ti.com/index.php/Reading_Stellaris_Documentation)

    I have just discovered that I have to make a huge investment if I am going to get the best out of these $4.99 boards.

    The datasheet for the chip is 1168 pages, the library guide another 518 pages, another 330 pages of ROM functions – there is 30 ROM functions just for using the GPIO pins!

    Compare that with the Raspberry Pi – it may not be anything like a decent micro-controller, but the only documentation I needed to get started was how to ‘dd’ the boot image onto a SD card…

    So it is tough call time – do I even bother to open the box at all, or just put them in the bottom draw?

    1. You don’t have to read the +1K page of a UC datasheet unless you have time, or really want to.

      You need to use GPIO? check the chapter on gpio, look for a good example then modifi it for what you need. Or google it.

      Same thing with every other peripheral.

      1. Yeah, I guess you are right – The Pi is 4x the usual price, 10x the clock, 8,000x the storage (SD card), 8,000x the RAM, has Ethernet & Video, no need for a Laptop/PC to code on… but only 1% the I/O :-)

        But if somebody were to code some firmware for the Stellaris to turn it into an USB I/O expander for the Pi (and other Linux boards), maybe with some PLC-like programmable functionality, that would be a pretty sweet.

    2. Thing is, it’s not actually all that complicated to get started — you just need to have a good walkthrough. I was up and running on the last Stellaris board I got in an hour or two at most.

      Maybe someone should do some step-by-step walkthroughs!

    3. If you’re just looking to get started, the only document I would read is the Stellaris Peripheral Driver Library document (spmu019u). It’s perfect for someone who is already familiar with microcontrollers and just wants to get their feet wet. It explains all the library functions along with lots of examples.

      Copying an existing example and then using this document should allow you do most of what you’ll want to use this micro for.

      1. Very good post AmosSam! Btw, I use homebrew instead of macports to manage my packages and it also works well. I develop lm4flash on a Mac, so it has been working on the Mac from day one!

  3. Newark actually has these for six dollars or so apiece, but isn’t expecting any stock until mid November. I’ve got two on order from TI that aren’t scheduled to ship until 12/17, so I’ll pick up one from Newark and have a few units to play with.

    I’m really excited to read all these updates because my preferred dev environment is my Mac, however I’m going to try to get everything working in combination with Eclipse CDT. Curious to hear whether anyone has given this a try yet!

    1. first, sorry for reporting your comment martytoof, wrong link clicked! :-(

      I’m also working in Eclipse, so that is my final goal with this, but I’ll first try to setup gdb and then to setup Eclipse… I’ll post to my blog any attempts made…

Leave a Reply

Please be kind and respectful to help make the comments section excellent. (Comment Policy)

This site uses Akismet to reduce spam. Learn how your comment data is processed.