Project:MSP430 Mac Howto: Difference between revisions

From London Hackspace Wiki
mNo edit summary
m (Montyphy moved page MSP430 Mac Howto to Project:MSP430 Mac Howto)
 
(10 intermediate revisions by 2 users not shown)
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. This is in preparation for development of [[Project:HackSat1|HackSat1]].


== USB Driver ==
After trying to get GCC compiled for a couple of hours I came across http://osx-launchpad.blogspot.com - which just seems to work. The [http://processors.wiki.ti.com/index.php/Category:Mac_OS_X_Support_-_MSP430 TI Mac page] is also handy if you want to use VMs on your Mac.
* Downloaded binary from http://e2e.ti.com/support/interface/digital_interface/f/130/t/55982.aspx
* Installed as per included instructions


== Building Toolchain ==
''Thanks to Morris for providing the LaunchPad (he bought several MSP430 dev kits for the space).''
* 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
[[Category:Projects]]
$ 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.

Latest revision as of 15:16, 3 June 2013

This page documents Flux's attempt to get the TI LaunchPad working on a MacBook Air running Mac OS X Lion 10.7.2. This is in preparation for development of HackSat1.

After trying to get GCC compiled for a couple of hours I came across http://osx-launchpad.blogspot.com - which just seems to work. The TI Mac page is also handy if you want to use VMs on your Mac.

Thanks to Morris for providing the LaunchPad (he bought several MSP430 dev kits for the space).