Project:MSP430 Mac Howto: Difference between revisions

From London Hackspace Wiki
mNo edit summary
mNo edit summary
Line 19: Line 19:


Compile the build tools (select default options for everything apart from Insight - it won't compile by default on the Mac):
Compile the build tools (select default options for everything apart from Insight - it won't compile by default on the Mac):
$ cd mspgcc4 && perl buildgcc.pl
Currently fails with:
Running configure in multilib subdir msp3
pwd: /Users/flux/Documents/hacksat1/sw/toolchain/mspgcc4/build/gcc-4.4.5-build/msp430
mkdir msp3
configure: creating cache ./config.cache
checking for --enable-version-specific-runtime-libs... no
checking for a BSD-compatible install... /usr/bin/install -c
checking for gawk... no
checking for mawk... no
checking for nawk... no
checking for awk... awk
checking build system type... x86_64-apple-darwin11.2.0
checking host system type... msp430-unknown-none
checking for msp430-ar... /opt/msp430-gcc-4.4.5/msp430/bin/ar
checking for msp430-lipo... msp430-lipo
checking for msp430-nm... /Users/flux/Documents/hacksat1/sw/toolchain/mspgcc4/build/gcc-4.4.5-build/./gcc/nm
checking for msp430-ranlib... /opt/msp430-gcc-4.4.5/msp430/bin/ranlib
checking for msp430-strip... /opt/msp430-gcc-4.4.5/msp430/bin/strip
checking whether ln -s works... yes
checking for msp430-gcc... /Users/flux/Documents/hacksat1/sw/toolchain/mspgcc4/build/gcc-4.4.5-build/./gcc/xgcc -B/Users/flux/Documents/hacksat1/sw/toolchain/mspgcc4/build/gcc-4.4.5-build/./gcc/ -B/opt/msp430-gcc-4.4.5/msp430/bin/ -B/opt/msp430-gcc-4.4.5/msp430/lib/ -isystem /opt/msp430-gcc-4.4.5/msp430/include -isystem /opt/msp430-gcc-4.4.5/msp430/sys-include  -mmcu=msp3
checking for suffix of object files... configure: error: in `/Users/flux/Documents/hacksat1/sw/toolchain/mspgcc4/build/gcc-4.4.5-build/msp430/msp3/libgcc':
configure: error: cannot compute suffix of object files: cannot compile
See `config.log' for more details.
make[1]: *** [configure-target-libgcc] Error 1
make: *** [all] Error 2
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" exited with status code 2.
Failed to execute 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" at buildgcc.pl line 248, <STDIN> line 10.

Revision as of 20:59, 1 November 2011

This page documents Flux's attempt to get the TI LaunchPad working on a MacBook Air running Mac OS X Lion 10.7.2.

USB Driver

Building Toolchain

$ ./configure --without-ssl
$ sudo make install

Download the toolchain and bunutils:

$ git clone git://mspgcc4.git.sourceforge.net/gitroot/mspgcc4/mspgcc4

Fix to binutils version: Change line 136 in mspgcc4/buildgcc.pl to: $BINUTILS_VERSION = "2.21.1";

Compile the build tools (select default options for everything apart from Insight - it won't compile by default on the Mac): $ cd mspgcc4 && perl buildgcc.pl

Currently fails with:

Running configure in multilib subdir msp3
pwd: /Users/flux/Documents/hacksat1/sw/toolchain/mspgcc4/build/gcc-4.4.5-build/msp430
mkdir msp3
configure: creating cache ./config.cache
checking for --enable-version-specific-runtime-libs... no
checking for a BSD-compatible install... /usr/bin/install -c
checking for gawk... no
checking for mawk... no
checking for nawk... no
checking for awk... awk
checking build system type... x86_64-apple-darwin11.2.0
checking host system type... msp430-unknown-none
checking for msp430-ar... /opt/msp430-gcc-4.4.5/msp430/bin/ar
checking for msp430-lipo... msp430-lipo
checking for msp430-nm... /Users/flux/Documents/hacksat1/sw/toolchain/mspgcc4/build/gcc-4.4.5-build/./gcc/nm
checking for msp430-ranlib... /opt/msp430-gcc-4.4.5/msp430/bin/ranlib
checking for msp430-strip... /opt/msp430-gcc-4.4.5/msp430/bin/strip
checking whether ln -s works... yes
checking for msp430-gcc... /Users/flux/Documents/hacksat1/sw/toolchain/mspgcc4/build/gcc-4.4.5-build/./gcc/xgcc -B/Users/flux/Documents/hacksat1/sw/toolchain/mspgcc4/build/gcc-4.4.5-build/./gcc/ -B/opt/msp430-gcc-4.4.5/msp430/bin/ -B/opt/msp430-gcc-4.4.5/msp430/lib/ -isystem /opt/msp430-gcc-4.4.5/msp430/include -isystem /opt/msp430-gcc-4.4.5/msp430/sys-include  -mmcu=msp3
checking for suffix of object files... configure: error: in `/Users/flux/Documents/hacksat1/sw/toolchain/mspgcc4/build/gcc-4.4.5-build/msp430/msp3/libgcc':
configure: error: cannot compute suffix of object files: cannot compile
See `config.log' for more details.
make[1]: *** [configure-target-libgcc] Error 1 
make: *** [all] Error 2
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" exited with status code 2.
Failed to execute 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" at buildgcc.pl line 248, <STDIN> line 10.