AVR Drivers: Difference between revisions

Jump to navigation Jump to search
need GND to be connected
(need GND to be connected)
Line 105: Line 105:
         Double check connections and try again, or use -F to override
         Double check connections and try again, or use -F to override
         this check.
         this check.
 
   avrdude done.  Thank you.
   avrdude done.  Thank you.




So if you get that, check your clip wiring and make sure your clip is getting a good connection. The clips are very finicky and sometimes needs some repairs. You can check continuity with a DMM from the tooth back to the pad on the USB board. Once you get the message that everything is working, you can move on to the next section.
So if you get that, check your clip wiring and make sure your clip is getting a good connection. The clips are very finicky and sometimes needs some repairs. You can check continuity with a DMM from the tooth back to the pad on the USB board.  
 
If everything is working you will get a message like the following:
 
  avrdude: warning: cannot set sck period. please check for usbasp firmware update
  .
  avrdude: AVR device initialized and ready to accept instructions
 
  Reading | ################################################## | 100% 0.03s
 
  avrdude: Device signature = 0x1e9007
  avrdude: current erase-rewrite cycle count is 808793655 (if being tracked)
 
  avrdude: safemode: Fuses OK
 
  avrdude done.  Thank you.
 
Once you get the message that everything is working, you can move on to the next section.
 


==Download settings==
==Download settings==
Use the software and hardware to download the existing program from the Atmel chip on the flashlight driver. You will need this if your programming doesn't work and you want to reset the driver to how it was originally. Get fuse settings too.
Use the software and hardware to download the existing program from the Atmel chip on the flashlight driver. You will need this if your programming doesn't work and you want to reset the driver to how it was originally. Get fuse settings too.


<PRE style="white-space:normal;">avrdude -pt13 -c usbasp -u -Uflash:r:flash-dump.hex:i -Ueeprom:r:eeprom-dump.hex:i -Ulfuse:r:lfuse-dump.hex:i -Uhfuse:r:hfuse-dump.hex:i</PRE>
<PRE style="white-space:normal;">avrdude -p t13 -c usbasp -u -Uflash:r:flash-dump.hex:i -Ueeprom:r:eeprom-dump.hex:i -Ulfuse:r:lfuse-dump.hex:i -Uhfuse:r:hfuse-dump.hex:i</PRE>


The command above will create 4 files on your hard drive for the flash memory contents, eeprom, high fuses, and low fuses.
The command above will create 4 files on your hard drive for the flash memory contents, eeprom, high fuses, and low fuses.
confirmed, developer
1,668

edits

Navigation menu