To install the AVR toolchain on Mac OS (Lion) and an STK500 ISP:
- Install XCode from App Store
- Install Macports
- Update Macports: sudo port selfupdate
- Install avr tools: sudo port install avr-binutils avr-gcc avr-libc avrdude
- Optional: Install the PL2303 kernel driver (for STK500 ISP programmer)
- Optional: Get name of serial port: ls /dev/tty.* (needed for avrdude)
Then, to build/flash Femulator (or other LUFA-type project):
- git clone https://github.com/angryelectron/hack-the-f1.git
- cd hack-the-f1/firmware
- git clone https://github.com/abcminiuser/lufa.git LUFA
- vi Makefile #edit for your MCU, BOARD, and ISP
- make
- make avrdude #or make dfu