1. Summary
  2. Files
  3. Support
  4. Report Spam
  5. Create account
  6. Log in

Linux installation

From mspgcc

Jump to: navigation, search

The material on this page refers to the unsupported mspgcc3 toolchain. Please follow the links from MSPGCC_Wiki

You have two options when installing the mspgcc toolchain in Linux. Either you can install a pre-packaged version, or you can build it from source. The pre-packaged versions are recommended for those who aren't interested in developing the toolchain itself.

Contents

Packages

Fedora

The material on this page refers to the unsupported mspgcc3 toolchain. Please follow the links from MSPGCC_Wiki

Most of mspgcc is in the Fedora repositories now. Run the following:

su -c "yum install msp430-libc mspdebug"

GDB isn't yet in the repositories, but you can get it here. You can install it by running:

su -c "rpm -Uvh http://users.ecs.soton.ac.uk/rds/rpm/mspgcc/msp430-gdb-6.8-1.20090621cvs.fc14.i686.rpm"

That's all you'll need to do.

cdk4msp also has the complete toolchain, but it's outdated.

Ubuntu

The material on this page refers to the unsupported mspgcc3 toolchain. Please follow the links from MSPGCC_Wiki

There are some packages for mspgcc in the Ubuntu repositories, but they don't have all the recommended patches to support all targets. There is word that some are on the way.

Packaging mspgcc

The material on this page refers to the unsupported mspgcc3 toolchain. Please follow the links from MSPGCC_Wiki

If you're interested in packaging mspgcc yourself, there is some information in the packaging directory in mspgcc's CVS.

Building from Source

The material on this page refers to the unsupported mspgcc3 toolchain. Please follow the links from MSPGCC_Wiki

The latest version can be installed from source. The idea of this how-to is taken from packaging folder here README-MAINTAINER.txt. Note that the examples and docs will not be installed. But as the sources have been checked out anyway, the examples can be found there.

This How-To was tested on a clean kubuntu 8.10 set up.

Prearrangement

Install the necessary packages from the ubuntu-repository.

 sudo apt-get install cvs gcc-3.4 patch ncurses-dev

Prepare the directory, where mspgcc will be installed, The idea of the makefile is to install the tool chain to /opt/mspgcc. That way it is also easy to remove the files later. Please replace $USER with your current username

 sudo mkdir -p /opt/mspgcc
 sudo chown $USER.$USER /opt/mspgcc
 mkdir -p /opt/mspgcc/sf
 cd /opt/mspgcc/sf

Get the Sources and build the Package

We get the sources from sourceforge cvs. Building is easy, while we are using the prepared buildscript from cvs. The requested passwort is empty <enter>.

 cvs -d:pserver:anonymous@mspgcc.cvs.sourceforge.net:/cvsroot/mspgcc login
 cvs -z3 -d:pserver:anonymous@mspgcc.cvs.sourceforge.net:/cvsroot/mspgcc co -P .
 cd packaging
 make folders
 CC=gcc-3.4 make build

This step needs some time. Please have a look at the log files in /opt/mspgcc/sf/packaging/build and /opt/mspgcc/bin that the build process was successfull.

Refinishing

Add path to mspgcc

Append line in ``/etc/environment``, so that the commands of the toolchain are found:

 kdesudo kate /etc/environment

Append the path to the line

 PATH="...:/opt/mspgcc/bin"

You have to reboot to see the result of that change.

Get additional Components

Some parts of the mspgcc toolchain (gdbproxy, msp430 jtag driver) are not available in cvs. Get the binaries from http://www.soft-switch.org/downloads/mspgcc/.

 cd /opt/mspgcc/bin
 wget http://www.soft-switch.org/downloads/mspgcc/msp430-gdbproxy
 chmod 777 msp430-gdbproxy
 cd /usr/lib
 sudo wget http://www.soft-switch.org/downloads/mspgcc/libHIL.so
 sudo wget http://www.soft-switch.org/downloads/mspgcc/libMSP430.so

Check the availability of interfaces

Before starting debugging check, that your required interface is available and that you have the requested user rights. Especial on Ubuntu there is (was?) a specific problem with the usb-driver for the TI-USB-FET (see unable to mount the ti_usb_3410).

Other Resources

The material on this page refers to the unsupported mspgcc3 toolchain. Please follow the links from MSPGCC_Wiki

  • Another how-to (in german) can be found on www.mikrocontroller.net.
  • The Windows msp430-gdbproxy on Linux Howto describes, how Linux users can use the Windows version of msp430-gdbproxy together with the MSP-FET430UIF JTAG Tool to be able to debug recent MSP430 families. The Linux version of msp430-gdbproxy is unfortunately somewhat outdated.
  • Building MSPGCC on Intel based Mac is described here.

The material on this page refers to the unsupported mspgcc3 toolchain. Please follow the links from MSPGCC_Wiki

Personal tools