Anonymous

Project:MSP430 Mac Howto: Difference between revisions

From London Hackspace Wiki
m
no edit summary
No edit summary
mNo edit summary
Line 6: Line 6:


== Building Toolchain ==
== Building Toolchain ==
Make sure you have Xcode installed (for GCC et al)
* 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:  
Download the toolchain and bunutils:  
  $ git clone git://mspgcc4.git.sourceforge.net/gitroot/mspgcc4/mspgcc4
  $ git clone git://mspgcc4.git.sourceforge.net/gitroot/mspgcc4/mspgcc4


Fix to use Curl and current binutils version:
Fix to binutils version:
Change line 136 in <code>mspgcc4/buildgcc.pl<code> to: <code>$BINUTILS_VERSION = "2.21.1";</code>
Change line 65 of <code>mspgcc4/do-binutils.sh<code>: substitute 'wget -c' for 'curl -O' (that's a capital letter o).
Change line 136 in <code>mspgcc4/buildgcc.pl<code> to: $BINUTILS_VERSION = "2.21.1";