This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
tutorials:learn:avr:setup-mac.html [2010/10/18 21:49] daigo |
tutorials:learn:avr:setup-mac.html [2016/01/28 18:05] (current) |
||
---|---|---|---|
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/]] |