Freaklabs chibi.

Some notes from freaklab site itself:

ChibiDebuggingLog

Programming notes on the chibi:

On Ubuntu

works with the latest (9.10) and the previous (9.04), aka karmik kuala and jaunty jackalope. For 9.04 I had to build dfu-programmer from source since the older version doesn't support the atmega32u4.

sudo apt-get install avr-libc dfu-programmer make

Notes:

  1. avr-libc drags in the binutils-avr and gcc-avr packages
  2. most developers would already have make installed, but for completeness. I haven't tested it from a new install, I'm trying to guess - these instructions need testing. Someone has to do that yet (wink).

Usage - to compile just do the usual (your make files work out of the box for the ths lessons) to program the "trick" (actually just the requirements from the datasheet):

I used these lines in the Makefile:

#---------------- Programming Options (dfu-programmer) ----------------
DFUPROGRAMMER = sudo dfu-programmer
DFUPROGRAMMER_FLAGS = atmega32u4

# Program the device. (these need to be '''Tabs''' before the $(DFUPROGRAMMER)
program: $(TARGET).hex $(TARGET).eep
    $(DFUPROGRAMMER) $(DFUPROGRAMMER_FLAGS) erase; echo 0
    $(DFUPROGRAMMER) $(DFUPROGRAMMER_FLAGS) flash $(TARGET).hex


CategoryElectronics

Chibi (last edited 2010-09-03 12:32:11 by AlonLevy)