Monday, November 26, 2012
Tuesday, November 6, 2012
Clock-It Kit Clone
Burning an ATMEGA328 Clock-It kit form spark fun using AVRDUDE and the USBtiny by Adafruit. I copied the firmware in the original kit and cloned it to make more kit, we redesigned the board to a single sided PCB with 9 jumpers. This made it easy for students to mill out on our T-Tech milling machine.
Come to find out there are three hex files you need using AVRDUDE, the main program hex file and lfuse and hfuse configure memory hex files. Most of the time I just copy with a universal programmer simple one click but this time it the programmer was broken. So with the usbtiny was a simple connection to the ISP bus.
Here is my redesign of the Clock-it Kit, note there is no ISP connector so programming it in circuit is not possible.
Come to find out there are three hex files you need using AVRDUDE, the main program hex file and lfuse and hfuse configure memory hex files. Most of the time I just copy with a universal programmer simple one click but this time it the programmer was broken. So with the usbtiny was a simple connection to the ISP bus.
Here is my redesign of the Clock-it Kit, note there is no ISP connector so programming it in circuit is not possible.
Find and test
communications to chip
sudo avrdude -c
usbtiny -p m328p
Erase Chip
sudo avrdude -c
usbtiny -p m328p -e
Burn Main Hex file
program
sudo
avrdude -c usbtiny -p m328p
-U flash:w:clockit-v11.hex
Burn Fuses
sudo avrdude -c
usbtiny -p m328p -U lfuse:w:0xe6:m -U hfuse:w:0xdf:m
Subscribe to:
Posts (Atom)