HokieGeek / USBReallyTinyISP

SMT version of USBTinyISP
0 stars 0 forks source link

Burning the firmware #4

Open HokieGeek opened 8 years ago

HokieGeek commented 8 years ago

https://learn.adafruit.com/usbtinyisp/download

http://www.instructables.com/id/How-to-program-a-AVR-arduino-with-another-arduin/step5/Burning-USBtinyISP-firmware-to-an-attiny2313/

I need a 12Mhz Oscillator

HokieGeek commented 8 years ago

This might also be useful: https://www.evernote.com/shard/s1/sh/29ff1183-5f8c-4804-89ac-341a6d078eab/1519438d16555fdd173236cf100c36a6

HokieGeek commented 8 years ago

Burning the firmware

  1. Unpack the USBTinyISP firmware.
  2. Go to the spi dir
  3. Set the fuses: avrdude -P usb -c usbtiny -p t2313 -b 19200 -U hfuse:w:0xdf:m -U lfuse:w:0xef:m
  4. Attach the 12Mhz oscillator to pins 4 and 5
  5. Burn the firmware: avrdude -P usb -c usbtiny -p t2313 -b 19200 -B 1 -U flash:w:main.hex
HokieGeek commented 8 years ago

Reading from the chip

avrdude -P /dev/ttyUSB0 -c usbtiny -p t2313 -U flash:r:flash.bin:r