OS X‎ > ‎

Building uniarch

Uniarch is the path of new development for mspgcc with the goal of making it easier to add support for new chips.  More details can be found in the official Announcement of Uniarch.

  • The X11 (X Windows) package in the system install.  You will need your system install disk (Leopard, etc.) if this is not installed on your system.
  • Xcode Version 3 (still free) or Version 4.
  • MacPorts with the following packages installed: gmp, mpfr, libmpc, libiconv, dejagnu, libusb-compat, libelf
You should also be able to use Homebrew or Fink, but these are untested.

I have found the provided build instructions to be quite accurite requiring very little changes.

It is not necessary to perform the steps in the maintenance section.

The configure command for gcc must be modified to add the locations of the libraries installed by MacPorts.  The default install location for MacPorts is /opt/local, so you must supply CFLAGS and LDFLAGS as appropriate:

../../../gcc/configure --target=msp430 --enable-languages=c,c++ --prefix=${MSP430_ROOT}/install/dev \
   CFLAGS=-I/opt/local/include LDFLAGS=-L/opt/local/lib \
   2>&1 | tee co


You will also need to build the latest version of mspdebug in order to program the latest chips

git clone git://mspdebug.git.sourceforge.net/gitroot/mspdebug/mspdebug

make PREFIX=/whereever install


You will also need a patched gdb

the build instructions below do not work.  Use the gdb that comes with mpgcc4 until we can figure this one out.

git clone git://mspgcc.git.sourceforge.net/gitroot/mspgcc/gdb

git checkout remotes/origin/legacy/release/gdb-7.2

make install


Data Display Debugger - visual debugger

Can be built from MacPorts

How to invoke:

ddd –debugger msp430-gdb foo.elf