Mac OS X Specific
From Uzebox
Contents |
[edit] Links
- CrossPack-AVR - contains GNU compiler suite, a C library for the AVR, the AVRDUDE uploader and several other useful tools
- Ladyada's mac setup guide - for the Fuzebox kit
- Pixen - pixel art editor for Mac - works with Python Script for Generating Tile Data
[edit] Troubleshooting
[edit] Unknown opcode `typedef' errors
First, try switching gcc version from the Terminal:
$ avr-gcc-select 4
If the problem still persists, recompile your AVR toolchain (see below).
[edit] Avr-size: invalid option -- C
From the included Makefile, change this line:
@avr-size -C --mcu=${MCU} ${TARGET}
To this:
@avr-size -A ${TARGET}
[edit] Compiling AVR Toolchain
[edit] Install Xcode
Make sure that you have Apple's Xcode Developer Tools installed first. This is necessary to build the toolchain.
[edit] Install binutils
Download the newest version of binutils.
Extract the file and cd to its folder in the Terminal.
From the Terminal:
./configure --target=avr make sudo make install
[edit] Install gmp
Download the newest version of gmp (needed to compile gcc).
Extract the file and cd to its folder in the Terminal.
From the Terminal:
./configure make sudo make install
[edit] Install mpfr
Download the newest version of gmp (needed to compile mpfr).
Extract the file and cd to its folder in the Terminal.
From the Terminal:
./configure make sudo make install
[edit] Install gcc
Download the newest version of gcc.
Extract the file and cd to its folder in the Terminal.
From the Terminal:
mkdir obj cd obj/ ./configure --target=avr --enable-languages=c,c++ --disable-libssp --disable-nls make sudo make install
[edit] Install avr-libc
Download the newest version of avr-libc.
Extract the file and cd to its folder in the Terminal.
From the Terminal:
./configure CC=avr-gcc --host=avr make sudo make install
[edit] Install libusb-0.1
If you are planning to use an AVRISP mkII USB programmer you must install libusb before compiling avrdude. Otherwise, skip to installing avrdude.
Important: Install the legacy version of libusb
Extract the file and cd to its folder in the Terminal.
From the Terminal:
./configure make sudo make install
[edit] Install avrdude
Download the newest version of avrdude.
Extract the file and cd to its folder in the Terminal.
From the Terminal:
./configure make sudo make install