User Tools

Site Tools


tutorials:learn:avr:setup-mac.html

Differences

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

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
tutorials:learn:avr:setup-mac.html [2010/10/18 21:19]
daigo
tutorials:learn:avr:setup-mac.html [2016/01/28 18:05] (current)
Line 12: Line 12:
  
  
-The following two methods both place all of the files in the /​usr/​local/​bin directory in the hard driver. Unfortunately that directory is not in the default path. That means that when you type avrdude into the terminal it cant figure out where to look. In this prep-step you'll change the profile of your Terminal to add /​usr/​local/​bin to the path. +The following two methods both place all of the files in the **/​usr/​local/​bin** directory in the hard driver. Unfortunately that directory is not in the default path. That means that when you type **avrdude** into the terminal it cant figure out where to look. In this prep-step you'll change the profile of your Terminal to add **/​usr/​local/​bin** to the path. 
  
 Find the **Terminal** program, you'll be using this to do most of this stuff. Its in the Applications/​Utilities folder Find the **Terminal** program, you'll be using this to do most of this stuff. Its in the Applications/​Utilities folder
Line 18: Line 18:
 {{  http://​www.ladyada.net/​images/​minipov3/​findterminal.jpg?​nolink&​438x351 ​ |}}  {{  http://​www.ladyada.net/​images/​minipov3/​findterminal.jpg?​nolink&​438x351 ​ |}} 
  
-In the new Terminal window, type in **echo $SHELL** and press return ​   ​+In the new Terminal window, type in<strong class="​style4"> ​echo $SHELL ​</​strong>​and press return ​   ​
  
-If the output is /bin/bash then type the following command: ​ \\ echo '​PATH=$PATH:/​usr/​local/​bin'​ >> ~/​.bash_profile ​ \\ all on one line. Press return.+If the output is **/bin/bash** then type the following command: ​ \\ **echo '​PATH=$PATH:/​usr/​local/​bin'​ >> ~/​.bash_profile**  \\ all on one line. Press return.
  
-If the output is /bin/csh or /bin/tcsh then type the following command: ​ \\ echo 'set path = ($path /​usr/​local/​bin)'​ >> ~/.cshrc \\ all on one line. Press return. ​   ​+If the output is **/bin/csh** or **/​bin/​tcsh ​**then type the following command: ​ \\ **echo 'set path = ($path /​usr/​local/​bin)'​ >> ~/.cshrc** \\ all on one line. Press return. ​   ​
  
-Close any **Terminal** windows and open up a new one. This makes sure the .bash_profile or .cshrc is reloaded. Now type in **echo $PATH** (for bash) or **echo $path **(for t/csh) you should get something like the following:+Close any **Terminal** windows and open up a new one. This makes sure the **.bash_profile** or **.cshrc ​**is reloaded. Now type in **echo $PATH** (for bash) or **echo $path **(for t/csh) you should get something like the following:
  
 {{  http://​www.ladyada.net/​images/​avrtutorial/​echopath.gif?​nolink&​515x210 ​ |}} {{  http://​www.ladyada.net/​images/​avrtutorial/​echopath.gif?​nolink&​515x210 ​ |}}
Line 30: Line 30:
  
  
-The important thing is that at the end of the line is **/​usr/​local/​bin**+The important thing is that at the end of the line is <strong class="​style4">​/​usr/​local/​bin</​strong>​
  
  
Line 116: Line 116:
  
  
-[[http://​tinyurl.com/​26bl7xa| Leah Buchley has an excellent tutorial]], and you should follow it. I've reduplicated it here in case the site goes down. (also with a few minor '​improvements'​ and images ​+[[http://​tinyurl.com/​26bl7xa/​%7Ebuechley/​diy/​avr_mac_osx.html| Leah Buchley has an excellent tutorial]], and you should follow it. I've reduplicated it here in case the site goes down. (also with a few minor '​improvements'​ and images ​
  
  
Line 158: Line 158:
  
  
- \\ Step 3. Download & install gcc (the C compiler) ​\\ First, download the current release of gcc from: [[http://​gcc.gnu.org/​mirrors.html|http://​gcc.gnu.org/​mirrors.html]] currently thats gcc 4.2.0+ ==== Step 3. Download & install gcc (the C compiler) ​==== 
 + 
 + First, download the current release of gcc from: [[http://​gcc.gnu.org/​mirrors.html|http://​gcc.gnu.org/​mirrors.html]] currently thats gcc 4.2.0
  
 {{  http://​www.ladyada.net/​images/​minipov3/​dlgcc42.jpg?​nolink&​443x210 ​ |}} {{  http://​www.ladyada.net/​images/​minipov3/​dlgcc42.jpg?​nolink&​443x210 ​ |}}
Line 166: Line 168:
 {{  http://​www.ladyada.net/​images/​minipov3/​gccls.jpg?​nolink&​515x364 ​ |}} {{  http://​www.ladyada.net/​images/​minipov3/​gccls.jpg?​nolink&​515x364 ​ |}}
  
-Next, c reate another directory to install gcc into.  \\ type: **cd .. **//<​return>//​ to go back into the home directory, then \\ type: ** mkdir avrgcc-4.2** //<​return>​ //​(substituting your gcc version for the 4.2)  \\ Navigate to the folder you created. ​ \\ type: **cd avrgcc-4.2**//​ <​return>​ // (or whatever you named your folder) \\ Configure gcc for AVR.  \\ Type:** ../​gcc-4.2.0/​configure --target=avr --enable-languages=c --disable-libssp** \\    (substituting the name of the folder you decompressed for the gcc-4.2.0) \\    **thanks to [[http://​web.media.mit.edu/​%7Eraphael|Seth Raphael]] for the --disable-libssp tip +Next, c reate another directory to install gcc into.  \\ type: **cd .. **//<​return>//​ to go back into the home directory, then \\ type: ** mkdir avrgcc-4.2** //<​return>​ //​(substituting your gcc version for the 4.2)  \\ Navigate to the folder you created. ​ \\ type: **cd avrgcc-4.2**//​ <​return>​ // (or whatever you named your folder) \\ Configure gcc for AVR.  \\ Type:** ../​gcc-4.2.0/​configure --target=avr --enable-languages=c --disable-libssp** \\    (substituting the name of the folder you decompressed for the gcc-4.2.0) \\    ​%%**%%thanks to [[http://​web.media.mit.edu/​%7Eraphael|Seth Raphael]] for the --disable-libssp tip 
  
 {{  http://​www.ladyada.net/​images/​minipov3/​gccconfig.jpg?​nolink&​515x364 ​ |}} {{  http://​www.ladyada.net/​images/​minipov3/​gccconfig.jpg?​nolink&​515x364 ​ |}}
Line 180: Line 182:
 {{  http://​www.ladyada.net/​images/​minipov3/​gccinstall.jpg?​nolink&​515x364 ​ |}} {{  http://​www.ladyada.net/​images/​minipov3/​gccinstall.jpg?​nolink&​515x364 ​ |}}
  
- \\ Step 4. Download and install avr-libc (an essential C library for AVR chips)+ ==== Step 4. Download and install avr-libc (an essential C library for AVR chips) ​====
  
 Download the current release of avr-libc from : [[http://​download.savannah.gnu.org/​releases/​avr-libc/​|http://​savannah.nongnu.org/​projects/​avr-libc/​]] Download the current release of avr-libc from : [[http://​download.savannah.gnu.org/​releases/​avr-libc/​|http://​savannah.nongnu.org/​projects/​avr-libc/​]]
Line 202: Line 204:
 {{ http://​www.ladyada.net/​images/​minipov3/​avrlibcinstall.jpg?​nolink&​515x280 |}} {{ http://​www.ladyada.net/​images/​minipov3/​avrlibcinstall.jpg?​nolink&​515x280 |}}
  
-**Step 5. Download and install avrdude (the software that loads programs from your machine onto the chips)**+ ​==== ​Step 5. Download and install avrdude (the software that loads programs from your machine onto the chips) ​====
  
 Download the current release of avrdude from : [[http://​download.savannah.gnu.org/​releases/​avrdude/​|http://​download.savannah.gnu.org/​releases/​avrdude/​]] Download the current release of avrdude from : [[http://​download.savannah.gnu.org/​releases/​avrdude/​|http://​download.savannah.gnu.org/​releases/​avrdude/​]]
/home/ladyada/public_html/wiki/data/attic/tutorials/learn/avr/setup-mac.html.1287436743.txt.gz · Last modified: 2016/01/28 18:05 (external edit)