This shows you the differences between two versions of the page.

Link to this comparison view

eridani:userstart:mactoolchain [2014/08/01 20:14] external edit
eridani:userstart:mactoolchain [2014/10/16 19:18] (current)
teholabswikimaster old revision restored (2012/02/03 14:45)
Line 1: Line 1:
-XLRoWL ​[url=http://pyakdtkaaqzo.com/]pyakdtkaaqzo[/url][link=http://hcxfazortrhl.com/]hcxfazortrhl[/link], ​http://vsbtzucqnmby.com/+====Mac Toolchain==== 
 +==Note: This is an unofficial toolchain! Untested by the Eridani team!== 
 +Mac is not a supported platform for any of the tools we use on windows or linux as tested binaries. However they are just copies of the gcc source that are pre-compiled and tested. 
 +This builds a toolchain that will compile and flash code on the Eridani board. This is only for the USB-Serial toolchain as I do not have a JTAG debugger. The build script is capable of of building openocdbut that is untested. 
 +This has only been tested on my 10.6 machine. 
 +Command Prompt Experience 
 +FTDI Basic or similar 
 +Xcode with unix dev tools installed 
 + - You should be able to run GCC from the command line 
 +MacPorts ​http://www.macports.org/​install.php 
 + - ''​port -v %%<<<​%% quit''​ in the terminal should return "​MacPorts 1.9.2" or newer 
 +A decent text editor. Not TextEdit! ( I use TextMate, but TextWrangler is free and good ) 
 +We need these to compile gcc 
 + - ''​port sync; port install gmp mpfr libmpc wget libftdi''​ 
 +You want to download the code script from https://​github.com/esden/summon-arm-toolchain The current branch should be functionalbut if it does not work I used commit 5b0f38af04c7128438ae (Current at time of writing) 
 +You want to change some options in the script before you run it: 
 +<code bash> 
 +TARGET=arm-none-eabi #​ Or: TARGET=arm-elf 
 +PREFIX=${HOME}/​sat #​ Install location of your final toolchain # I put mine in /​opt/​arm-none-eabi 
 +DARWIN_OPT_PATH=/​opt/​local #​ Path in which MacPorts or Fink is installed 
 +# Set to '​sudo'​ if you need superuser privileges while installing 
 +SUDO= # should be set if you install outside of $HOME 
 +# Set to 1 to be quieter while running 
 +# Set to 1 to use linaro gcc instead of the FSF gcc 
 +# Set to 1 to enable building of OpenOCD 
 +OOCD_EN=1 #Set to 0 
 +# Set to 1 to build libstm32 provided by ST 
 +# Set to 1 to build libopenstm32 an open source library for stm32 
 +LIBOPENSTM32_EN=1 # Set to 0, not an stm32 
 +# Make the gcc default to Cortex-M3 
 +DEFAULT_TO_CORTEX_M3=0 # Set to 1, this is the right CPU core 
 +In terminal you want to cd into the directory you downloaded the script and then run it. Just leave it running and continue with the rest of this guide.  
 +You want "​StellarisWare complete (all boards, all components) Firmware Development Package"​ from http://www.luminarymicro.com/products/software_updates.html 
 +It is an exe but you can unzip it from the commandline unzip or with anything besides the built-in graphical tool. Put it somewhere you will be able to find it. 
 +The source is on Luminary Micro'​s download page http://www.luminarymicro.com/products/​software_updates.html under "​application note source",​ it is SW01242-680. 
 +You want to decompress that and then cd into it a few levels until you see a makefile. At that point you just run "​make"​ and copy the resultant binary somewhere in your $PATH 
 +Hopefully, gcc is done compiling now. Make sure that where you installed it is actually in your $PATH. It should be called "​arm-none-eabi-gcc"​.  
 +Now just follow the ubuntu instructions [[toolchain:​seriallin]] from examples on. The only different thing there is the COMPORT. You will want to use something like /​dev/​tty.usbserial-<​something>​ rather than /​dev/​ttyUSB0. Hopefully it works.
eridani/userstart/mactoolchain.txt · Last modified: 2014/10/16 19:18 by teholabswikimaster
Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki