Skip to content

Instantly share code, notes, and snippets.

@ashgti
Created February 22, 2012 00:23
Show Gist options
  • Save ashgti/1880143 to your computer and use it in GitHub Desktop.
Save ashgti/1880143 to your computer and use it in GitHub Desktop.
$ avrdude -p at90usb82 -F -P usb -c avrispmkii -U flash:w:UNO-dfu_and_usbserial_combined.hex -U lfuse:w:0xFF:m -U hfuse:w:0xD9:m -U efuse:w:0xF4:m -U lock:w:0x0F:m
avrdude: stk500v2_recv_mk2: error in USB receive
avrdude: AVR device initialized and ready to accept instructions
Reading | ################################################## | 100% 0.00s
avrdude: Device signature = 0xffffff
avrdude: Yikes! Invalid device signature.
avrdude: Expected signature for AT90USB82 is 1E 93 82
avrdude: NOTE: FLASH memory has been specified, an erase cycle will be performed
To disable this feature, specify the -D option.
avrdude: erasing chip
avrdude: stk500v2_command(): command failed
avrdude: stk500v2_program_enable(): bad AVRISPmkII connection status: Target not detected
avrdude: reading input file "UNO-dfu_and_usbserial_combined.hex"
avrdude: input file UNO-dfu_and_usbserial_combined.hex auto detected as Intel Hex
avrdude: writing flash (7440 bytes):
Writing | # | 1% 0.06savrdude: stk500v2_command(): warning: Sampling of the RDY/nBSY pin timed out
avrdude: stk500v2_paged_write: write command failed
Writing | ################################################## | 100% 7.00s
avrdude: 7440 bytes of flash written
avrdude: verifying flash memory against UNO-dfu_and_usbserial_combined.hex:
avrdude: load data flash data from input file UNO-dfu_and_usbserial_combined.hex:
avrdude: input file UNO-dfu_and_usbserial_combined.hex auto detected as Intel Hex
avrdude: input file UNO-dfu_and_usbserial_combined.hex contains 7440 bytes
avrdude: reading on-chip flash data:
Reading | ################################################## | 100% 3.68s
avrdude: verifying ...
avrdude: verification error, first mismatch at byte 0x0000
0x9c != 0xff
avrdude: verification error; content mismatch
avrdude: safemode: Fuses OK
avrdude done. Thank you.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment