Jump to content
Sign in to follow this  
jsolarski

MSP430 tools for linux

Recommended Posts

Original Post http://justinstech.org/2010/07/msp430-tools-for-linux/

The MSP430, has a working compiler and tool chain for the MSP430 uC

 

you can find the Tools here http://mspgcc4.sourceforge.net/

and you can find the debugger/programmer here http://mspdebug.sourceforge.net/

 

 

sources used -

http://losinggeneration.homelinux.org/2010/07/02/msp430-launchpad-on-linux/

http://eclecti.cc/hardware/using-the-ti-msp430-launchpad-with-ubuntu-10-04

Share this post


Link to post
Share on other sites

Im a CLI kind of guy, and rarely use GDB, personally i get the same functionality from mspdebug as GDB, except GDB would be better for more advanced debugging of your code, as for eclipse one of these days i will load it up, but i like my simple gedit for now

Share this post


Link to post
Share on other sites
Im a CLI kind of guy, and rarely use GDB, personally i get the same functionality from mspdebug as GDB, except GDB would be better for more advanced debugging of your code, as for eclipse one of these days i will load it up, but i like my simple gedit for now

Yes, I know it's several months later but I just installed the mspgcc4 compiler and I've test compiled a launchpad program. I hope to upload the program to one of the boards I have setup for this. I needed to deviate from the above descriptions to install mspgcc4 and compile the test program. My install on my Ubuntu 'desktop' went well but my server setup failed miserably. :?:

 

jsolarski, you do know the gdb is a terminal program and pretty close to the CLI? Insight is the GUI based interface to gdb.

 

Just one additional question, I have both the RF2500 and the ez430 stick.What are the pin outs of the tiny connectors and where can I buy them or a converter? I take it they're SPY-Wire? Sorry for not doing enough investigation but I picked up the bits and peices a few months ago and I've just getting around to putting them to use.

Share this post


Link to post
Share on other sites

CLI is a terminal, CLI = command line interface. And as for insight i have not had any luck with compiling it, its not something that I am interested in learning at this time. And of course compiling on a different system you will have to use what works for you,

What was the error that was on your server when compiling it? lol I learned a few new ones recompiling on my new system.

 

The pin out i don't know off hand and i know you can buy the connectors, I just don't know where. But the pins are VCC tx rx rst test, you can get the exact pin out from one of the manuals or datasheet and yes it is spy by wire (sbw). And if you run into any problems I am sure some one here can help :)

 

 

And I have also successfully installed it in ubuntu 10.10 64bit :)

Share this post


Link to post
Share on other sites
CLI is a terminal, CLI = command line interface

What was the error that was on your server when compiling it? lol I learned a few new ones recompiling on my new system.

I tend to ssh/telnet to my boxes so 'terminal' is a loose euphemism for access to shell/CLI. I do a lot of work with routers (Cisco/Juniper). I also use screen an awful lot.

 

What was the error that was on your server when compiling it? lol I learned a few new ones recompiling on my new system.

I'm doing this from memory but something to the effect that gcc can't compile an executable. There were two errors in the log, one was -V needed an option and the other was -Qy wasn't supported.

Share this post


Link to post
Share on other sites

Okay, I've attempted to recompiled mspgcc4 on my server and got this error:

 

/opt/msp430-gcc-4.4.5/msp430/bin/as: unrecognized option '-Qy'

 

I did a google search on the topic and didn't find a solution just that as doesn't support -Qy.

 

The good news is that I have a working setup so I can start coding, I'm just not happy about the failed compile.

Share this post


Link to post
Share on other sites

The command is :

 

buildgcc-4.4.5_gdb_7.2.sh

 

Which in turn is:

 

#!/bin/sh
cd "$(dirname $0)"/..
set -eu

sh do-binutils.sh "/opt/msp430-gcc-4.4.5" "2.21" "http://ftp.uni-kl.de" "build"
sh do-gcc.sh "/opt/msp430-gcc-4.4.5" "4.4.5" "http://ftp.uni-kl.de" "build" "gcc-4.x" "4.3.1" "2.4.2"
sh do-libc.sh "/opt/msp430-gcc-4.4.5" "build" "http://sourceforge.net/projects/mspgcc4/files/msp430-libc/msp430-libc-ti_20110213.tar.bz2"
sh do-gdb.sh "/opt/msp430-gcc-4.4.5" "6.8-1" "http://ftp.uni-kl.de" "build" insight
sh do-gdb.sh "/opt/msp430-gcc-4.4.5" "7.2" "http://ftp.uni-kl.de" "build" gdb
sh stripbin.sh "/opt/msp430-gcc-4.4.5"
echo "Creating binary package..."
cd "/opt/msp430-gcc-4.4.5" && tar cf - * | bzip2 -c > "/opt/crosstool/mspgcc4/msp430-gcc-4.4.5_gdb_7.2.tar.bz2"
ls -ldq "/opt/crosstool/mspgcc4/msp430-gcc-4.4.5_gdb_7.2.tar.bz2"
cd "/opt/crosstool/mspgcc4"

 

I'm compiling from the git.

Share this post


Link to post
Share on other sites
Its kind of tough to say where its happening, as its calling other scripts. Can you trace which scripts its calling?

Actually yes but it will not make much more sense. When configure is running the fails at gcc conftext.c. When I went digging further I found that gcc was actually i686-[c-gnu-gcc. So I dug into configure much further and found the exact details of the command line. Weird, when I compile helloworld.c from the command line it works yet if I compile conftest.c (copied out of configure) I get "exec: 78: : Permission denied". Dang, borked as/gas ...

 

ARGH! Path problems, seems a :: got into my path and Bash interprets that as '.' . In the directory where mspgcc4 gets compiled is a 'as' script. Man that is maddening! I corrected the path problem and I'm recompiling. I ran into a new error but I think I should clean up and start over (may delete the directory and restart with git).

Share this post


Link to post
Share on other sites

Thanks for the help! After fixing my path and installing zlib I'm now able to compile mspgcc4! I've also been able to compile a msp430 program. Yeah! :ugeek:

Share this post


Link to post
Share on other sites
You figured it out yourself. Have fun and thanks for the update.

But I only figured it out when I was forced to think it through enough to explain what was going on (typical). Then I was forced to prove my answers. I hate posting something and then getting asked the obvious question (did you do this or that). I can make enough of a fool of myself without the extra added effort. :)

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

×
×
  • Create New...