|
I've been working on a project involving a Luminary Micros LM3S chip using one of their LM3S6965 Eval Kits as a JTAG interface for debugging (programming is primarily achieved over ethernet).
Unfortunately, with a small collection of hardware issues, I've set this environment up several times over the last couple of months, and decided that it's about time I documented it properly for next time. Or possibly for someone else.
"But Julian!", I hear you say, "There is already a perfectly good sample project for the LM3S6965 kit for use with FreeRTOS. It even uses OpenOCD!"
Quite true. Of course, it's finished, works and is aimed at FreeRTOS. This, on the other hand, is still a work in progress and follows my quirks. YMMV, as they say.
On with the show...
The OS, accessories, hardware and etcThese steps were all followed on an Acer Aspire 3683WXMi (apparently) with its standard Microsoft Windows XP Home (SP3) installation.
As mentioned above we've got a standard EKK LM3S6965 that we're using as a JTAG interface (via USB). In fact it's the same whether programmjing the EK itself, or using it to program something else.
Traditionally I use TortoiseSVN for all my Windows subversions. I've also had fun using Subclipse with Eclipse (generally under Linux). Since this is a Windows instance I'm not going to cover SVN integration at all. But I do recommend it.
EclipseDownloading & InstallingLets start at the very beginning. Eclipse comes in many varieties. You can see a list of these on the download page at the Eclipse site.
For this round we're using Galileo, and I acquired "eclipse-cpp-galileo-SR1-win32.zip" straight off the Eclipse site - no messing around with things like Amazon Web Services.
One of the nice things about Eclipse is being able to download a zip, unpack it, and just run the thing. No fluffy installers with obscure requirements for runtimes, admin privileges or moon phases.
So when you've got the file, unpack the zip somewhere handy. Perhaps put a shortcut to the main Eclipse program somewhere even handier. You are the master of your own destiny.
ConfigurationUpdate!You've got the program now, so why not run it, accept the default workspace (or point it to another one, if you have one), go to the "Help" menu and "Check for updates"
Screenshots and everything. How could you ask for more?
Okay, you should have found there were no updates. I guess that's the price you pay for downloading the current version and not reading ahead. Unless you did, in which case: Well done!
GDB Hardware Debugging SupportWe need to add the GDB Hardware debugging for use with OpenOCD. Go (back) to the "Help" menu and "Install New Software...". You may find you have to enable the CDT Software Site. The appropriate one is selected in the screenshot below.
Then you need to find the GDB entry in the list of all the things that you could install.
I suggest copying the example in the screenshot below - selecting "All Available Sites" and using the filter box with the word 'hardware'. It brings up the one we're after very quickly. Tick it, install it, enjoy.
[It's your choice whether to restart Eclipse or not after the install. It always likes to start again.]
Sourcery G++ Lite EditionThis is the cheap version. It's free, command-line based and unsupported. Apparently it is sponsored by CodeSourcery's hardware partners. Whoever they are, you should consider buying some of their stuff. Really.
We want the ARM version of CodeSourcery's G++ (lite) tools.
Download the install, run it. So far so good. I accepted all the defaults. Except I picked 'custom' install. Then accepted the defaults for that. Easy.
OpenOCDNext is OpenOCD.
What do you mean "Where's the rest of it?" Does this page really look finished to you?? |