Jump to content
43oh

Definitive guide to installing/using mspgcc4?


Recommended Posts

Ok, I've been a CCS user for a while now but I'm near my 16K limit. 15636B to be exact. The idea of coughing up $495 for the unlimited version is putting a damper on my "I want a new, super bad a** R/C helicopter" budget.

 

After researching and attemping several different ways to install MSPGCC4, I'm still using CCS. Does anyone have a definitive and exact installation tutorial for MSPGCC4? Every link I have found usually fails part of the way through the install and I give up. It's why I left linux -just got tired of chasing libraries. (Not trying to start a flamewar, I've used FreeBSD since the late 90s using remote installs via dialup. whoohoo!) I'd really like to use MSPGCC4 on my Win 7 64 bit machine and my MacWinPro using WinXP 32bit. I'd like to follow a step by step, exact install that works on the first try with no frustrations. Please help me on this! :?:

Link to post
Share on other sites

I usually use this site for reinstalling it

http://mspgcc4.sourceforge.net/

 

 

using

git clone git://mspgcc4.git.sourceforge.net/gitroot/mspgcc4/mspgcc4
cd mspgcc4 && perl buildgcc.pl 

 

on a clean install, i needed libusb dev files, and a few others but nothing really major.

 

 

if you rebuild it, I can help you with the errors that come up

Link to post
Share on other sites

Have you tried the precompiled version of mspgcc4 for Windows here? http://sourceforge.net/projects/mspgcc4/files/Windows/

 

The stable release s a bit outdated, but the only other way you'll probably be able to do it is compile it from source using their build script.

 

You might also want to try the files that are located in the "mingw32" folder. Looks like they might have built it from CVS or SVN back in March: http://sourceforge.net/projects/mspgcc4 ... s/mingw32/

 

Otherwise, you might want to wait a bit and see what's happening with the official mspgcc. I just built the "Uniarch" release from SVN last night and I'm playing around with it on Ubuntu right now. Not sure how to tackle it on Windows though unless you were to build it yourself on Cygwin.

 

You still might at least want to take a peak at the links I posted above. It might be able to get you started since they are already compiled. Be aware that some of the syntax is a bit different from CCS. Here is a good example from Justin's Tech, regarding the difference in the way interrupts are handled: http://justinstech.org/2010/09/msp430-c ... or-mspgcc/

Link to post
Share on other sites
Sergio had mailed this to me, a couple days back. I still have to blog it, but its at git and very readable:

https://github.com/sergiocampama/Launch ... /README.md

 

I can confirm that this guide works on Ubuntu 10.4 (I installed it last night). There are a few things that I might do just a bit differently, but it seems to work quite well. I'm testing it today but ran out of time for the night.

 

By the way.. I probably should have posted this link, but didn't do it since I was under the impression that gwdeveloper wanted to use Windows (so I only posted the links to the Windows binaries). Thanks for posting it.

Link to post
Share on other sites
I can confirm that this guide works on Ubuntu 10.4 (I installed it last night).

 

There are binaries for 11.04 and the next one on LaunchPad (no, the other one :)). With a bit of massaging they compile on 10.04. Kaeso (the maintainer of these packages) said he would be looking into making backports easier, but the steps needed are more of a nuisance than a real problem if you want to follow this route.

Link to post
Share on other sites
Otherwise, you might want to wait a bit and see what's happening with the official mspgcc.

It's alive and kicking (and this just makes the whole GCC/MSP430 issue a tad bit more muddy...), the first official release was just a week or two back. This (Uniarch, though this qualifier will eventually be lost) is considered to be the preferred one.

Link to post
Share on other sites
Sergio had mailed this to me, a couple days back. I still have to blog it, but its at git and very readable:

https://github.com/sergiocampama/Launch ... /README.md

 

I can confirm that this guide works on Ubuntu 10.4 (I installed it last night). There are a few things that I might do just a bit differently, but it seems to work quite well. I'm testing it today but ran out of time for the night.

 

By the way.. I probably should have posted this link, but didn't do it since I was under the impression that gwdeveloper wanted to use Windows (so I only posted the links to the Windows binaries). Thanks for posting it.

 

what would you do differently? im always open to suggestions... as I'm not a hardcore linux user, I just use what i've learned in the last couple years...

Link to post
Share on other sites

what would you do differently? im always open to suggestions... as I'm not a hardcore linux user, I just use what i've learned in the last couple years...

 

It's perfectly fine. I'm just a cranky ex-Slackware user that's just getting back into getting my hands dirty again with software (I've been lazy with my Linux machines for the past two years).

 

I really appreciate that you've posted the detailed guide and I am glad that I can personally thank you for posting it. You saved me a lot of time since I was able to just copy and paste each step right into the terminal.

Link to post
Share on other sites
Thank you for all the points guys. I'm going to install a Ubuntu vmware machine and follow Sergio's guide to get it going. I'll post here if I get stumped on anything.

 

gwdeveloper: Please read this post first (from Justin). http://justinstech.org/2011/06/msp430-u ... r-mspgcc4/

 

I've been playing around with Uniarch for the past few hours and I am starting to consider going back to mspgcc4 for a while. I'm having a few issues with some differences in the compiler and things that *might* be bugs (I'm trying to work that out). What I can tell you is that my experience has been the same as Justin's. Unless you really need support for the newest chips, it might be worthwhile to just use mspgcc4. The latest build scripts will get you a working install with support for chips released up to around March or April. And for me, that works fine for what I use it for.

 

But I can say that Uniarch does indeed work, but I'm not too sure that it's right for me (yet).

 

If you decide to use mspgcc4, you can get instructions from this page: http://www.43oh.com/2010/11/a-step-by-s ... der-linux/ . Even if you don't use Eclipse, just simply installing gcc and mspdebug should get you up and running pretty quickly.

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.

×
×
  • Create New...