Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
interfaces:usbasp [2014/12/20 18:46]
darron created
interfaces:usbasp [2021/09/13 13:20]
darron
Line 2: Line 2:
 <wrap right> <wrap right>
 {{:interfaces:usbasp.jpg?200}} {{:interfaces:usbasp.jpg?200}}
 +\\ \\
 +{{:interfaces:usbasp2.jpg?200}}
 </wrap> </wrap>
  
Line 7: Line 9:
  
 This is a cheap programmer. This is a cheap programmer.
 +
 +Some boards contain jumpers to disable power delivery to the
 +target device, otherwise they always supply power.
 +
 +=== Linux ===
 +
 +== udev ==
 +<code>
 +SUBSYSTEMS=="usb",\
 +    ATTRS{idVendor}=="16c0",\
 +    ATTRS{idProduct}=="05dc",\
 +    MODE:="0666"
 +</code>
 +
 +== Update firmware ===
 +
 +Generic USBASP comes with an old firmware, you can upgrade it using a USBtiny like this
 +<code>
 +avrdude -c usbtiny -p atmega8 -e -U flash:w:usbasp.atmega8.2011-05-28.hex
 +
 +</code>
 +
 +== Program ==
 +<code>
 +$ avrdude -c usbasp -B 5 -p m328p -D
 +
 +avrdude: set SCK frequency to 187500 Hz
 +avrdude: AVR device initialized and ready to accept instructions
 +
 +Reading | ################################################## | 100% 0.01s
 +
 +avrdude: Device signature = 0x1e950f (probably m328p)
 +
 +avrdude: safemode: Fuses OK (E:FD, H:DA, L:FF)
 +
 +avrdude done.  Thank you.
 +</code>
 +
 +=== Resources ===
 +
 +[[https://www.fischl.de/usbasp/|Project page]]
 +
 +[[http://www.fischl.de/usbasp/bilder/usbasp_circuit.png|Schematic]]
 +
 +[[http://www.fischl.de/usbasp/usbasp.2011-05-28.tar.gz|Updated firmware]]
 +
 +