Project:MSP430 Mac Howto: Difference between revisions

From London Hackspace Wiki
mNo edit summary
(Replaced content with "This page documents Flux's attempt to get the TI LaunchPad working on a MacBook Air running Mac OS X Lion 10.7.2. I just used the toolchain and kext from http:...")
Line 1: Line 1:
This page documents [[User:Flux|Flux's]] attempt to get the TI LaunchPad working on a MacBook Air running Mac OS X Lion 10.7.2.
This page documents [[User:Flux|Flux's]] attempt to get the TI LaunchPad working on a MacBook Air running Mac OS X Lion 10.7.2.


== USB Driver ==
I just used the toolchain and kext from http://osx-launchpad.blogspot.com/
* Downloaded binary from http://e2e.ti.com/support/interface/digital_interface/f/130/t/55982.aspx
* Installed as per included instructions
 
== Building Toolchain ==
* Make sure you have Xcode installed (for GCC et al) - you can download it from the App Store
* Install wget - just download (e.g. http://ftp.gnu.org/gnu/wget/wget-1.13.tar.gz) and compile:
 
$ ./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 <code>mspgcc4/buildgcc.pl</code> to: <code>$BINUTILS_VERSION = "2.21.1";</code>
 
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 21:38, 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.

I just used the toolchain and kext from http://osx-launchpad.blogspot.com/