To install the AVR toolchain on Mac OS (Lion) and an STK500 ISP:

  1. Install XCode from App Store
  2. Install Macports
  3. Update Macports: sudo port selfupdate
  4. Install avr tools: sudo port install avr-binutils avr-gcc avr-libc avrdude
  5. Optional: Install the PL2303 kernel driver (for STK500 ISP programmer)
  6. Optional: Get name of serial port: ls /dev/tty.* (needed for avrdude)

Then, to build/flash Femulator (or other LUFA-type project):

  1. git clone https://github.com/angryelectron/hack-the-f1.git
  2. cd hack-the-f1/firmware
  3. git clone https://github.com/abcminiuser/lufa.git LUFA
  4. vi Makefile  #edit for your MCU, BOARD, and ISP
  5. make
  6. make avrdude  #or make dfu
Tagged with →  
Share →

Leave a Reply

Your email address will not be published.