hyvok@ubuntuloora:~/Documents/Electronics/gpib_adapter/src$ avrdude -c buspirate -p m16u4 -P /dev/ttyUSB0 -U lfuse:w:0xE2:m -U hfuse:w:0xD8:m -U efuse:w:0xF8:m -vvv avrdude: Version 5.11.1, compiled on Oct 30 2011 at 10:37:28 Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/ Copyright (c) 2007-2009 Joerg Wunsch System wide configuration file is "/etc/avrdude.conf" User configuration file is "/home/hyvok/.avrduderc" User configuration file does not exist or is not a regular file, skipping Using Port : /dev/ttyUSB0 Using Programmer : buspirate AVR Part : ATmega16U4 Chip Erase delay : 9000 us PAGEL : PD7 BS2 : PA0 RESET disposition : dedicated RETRY pulse : SCK serial program mode : yes parallel program mode : yes Timeout : 200 StabDelay : 100 CmdexeDelay : 25 SyncLoops : 32 ByteDelay : 0 PollIndex : 3 PollValue : 0x53 Memory Detail : Block Poll Page Polled Memory Type Mode Delay Size Indx Paged Size Size #Pages MinW MaxW ReadBack ----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- --------- eeprom 65 10 8 0 no 512 8 0 9000 9000 0x00 0x00 Block Poll Page Polled Memory Type Mode Delay Size Indx Paged Size Size #Pages MinW MaxW ReadBack ----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- --------- flash 65 6 128 0 yes 16384 128 128 4500 4500 0x00 0x00 Block Poll Page Polled Memory Type Mode Delay Size Indx Paged Size Size #Pages MinW MaxW ReadBack ----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- --------- lfuse 0 0 0 0 no 1 0 0 9000 9000 0x00 0x00 Block Poll Page Polled Memory Type Mode Delay Size Indx Paged Size Size #Pages MinW MaxW ReadBack ----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- --------- hfuse 0 0 0 0 no 1 0 0 9000 9000 0x00 0x00 Block Poll Page Polled Memory Type Mode Delay Size Indx Paged Size Size #Pages MinW MaxW ReadBack ----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- --------- efuse 0 0 0 0 no 1 0 0 9000 9000 0x00 0x00 Block Poll Page Polled Memory Type Mode Delay Size Indx Paged Size Size #Pages MinW MaxW ReadBack ----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- --------- lock 0 0 0 0 no 1 0 0 9000 9000 0x00 0x00 Block Poll Page Polled Memory Type Mode Delay Size Indx Paged Size Size #Pages MinW MaxW ReadBack ----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- --------- calibration 0 0 0 0 no 1 0 0 0 0 0x00 0x00 Block Poll Page Polled Memory Type Mode Delay Size Indx Paged Size Size #Pages MinW MaxW ReadBack ----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- --------- signature 0 0 0 0 no 3 0 0 0 0 0x00 0x00 Programmer Type : BusPirate Description : The Bus Pirate Detecting BusPirate... avrdude: buspirate_send_bin(): 0x23 0x0a avrdude: buspirate_readline(): # avrdude: buspirate_readline(): RESET avrdude: buspirate_readline(): ** avrdude: buspirate_readline(): Bus Pirate v3a ** Bus Pirate v3a avrdude: buspirate_readline(): Firmware v5.10 (r559) Bootloader v4.4 ** Firmware v5.10 (r559) Bootloader v4.4 avrdude: buspirate_readline(): DEVID:0x0447 REVID:0x3046 (24FJ64GA002 B8) ** DEVID:0x0447 REVID:0x3046 (24FJ64GA002 B8) avrdude: buspirate_readline(): http://dangerousprototypes.com ** http://dangerousprototypes.com avrdude: ser_recv(): programmer is not responding avrdude: buspirate_readline(): HiZ> ** BusPirate: using BINARY mode avrdude: buspirate_send_bin(): 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 avrdude: buspirate_recv_bin(): 0x42 0x42 0x49 0x4f 0x31 BusPirate binmode version: 1 avrdude: buspirate_send_bin(): 0x01 avrdude: buspirate_recv_bin(): 0x53 0x50 0x49 0x31 BusPirate SPI version: 1 avrdude: buspirate_send_bin(): 0x4b avrdude: buspirate_recv_bin(): 0x01 avrdude: buspirate_send_bin(): 0x60 avrdude: buspirate_recv_bin(): 0x01 avrdude: buspirate_send_bin(): 0x8a avrdude: buspirate_recv_bin(): 0x01 avrdude: buspirate_send_bin(): 0x4a avrdude: buspirate_recv_bin(): 0x01 avrdude: buspirate_send_bin(): 0x13 avrdude: buspirate_recv_bin(): 0x01 avrdude: buspirate_send_bin(): 0xac 0x53 0x00 0x00 avrdude: buspirate_recv_bin(): 0x00 0x00 0x53 0x00 avrdude: AVR device initialized and ready to accept instructions Reading | | 0% 0.00savrdude: buspirate_send_bin(): 0x13 avrdude: buspirate_recv_bin(): 0x01 avrdude: buspirate_send_bin(): 0x30 0x00 0x00 0x00 avrdude: buspirate_recv_bin(): 0x00 0x30 0x00 0x1e avrdude: buspirate_send_bin(): 0x13 avrdude: buspirate_recv_bin(): 0x01 avrdude: buspirate_send_bin(): 0x30 0x00 0x01 0x00 avrdude: buspirate_recv_bin(): 0x00 0x30 0x00 0x94 Reading | ################# | 33% 0.01savrdude: buspirate_send_bin(): 0x13 avrdude: buspirate_recv_bin(): 0x01 avrdude: buspirate_send_bin(): 0x30 0x00 0x02 0x00 avrdude: buspirate_recv_bin(): 0x00 0x30 0x00 0x88 Reading | ################################################## | 100% 0.01s avrdude: Device signature = 0x1e9488 avrdude: buspirate_send_bin(): 0x13 avrdude: buspirate_recv_bin(): 0x01 avrdude: buspirate_send_bin(): 0x50 0x00 0x00 0x00 avrdude: buspirate_recv_bin(): 0x00 0x50 0x00 0x5e avrdude: safemode read 1, lfuse value: 5e avrdude: buspirate_send_bin(): 0x13 avrdude: buspirate_recv_bin(): 0x01 avrdude: buspirate_send_bin(): 0x50 0x00 0x00 0x00 avrdude: buspirate_recv_bin(): 0x00 0x50 0x00 0x5e avrdude: safemode read 2, lfuse value: 5e avrdude: buspirate_send_bin(): 0x13 avrdude: buspirate_recv_bin(): 0x01 avrdude: buspirate_send_bin(): 0x50 0x00 0x00 0x00 avrdude: buspirate_recv_bin(): 0x00 0x50 0x00 0x5e avrdude: safemode read 3, lfuse value: 5e avrdude: safemode: lfuse reads as 5E avrdude: buspirate_send_bin(): 0x13 avrdude: buspirate_recv_bin(): 0x01 avrdude: buspirate_send_bin(): 0x58 0x08 0x00 0x00 avrdude: buspirate_recv_bin(): 0x00 0x58 0x08 0x99 avrdude: safemode read 1, hfuse value: 99 avrdude: buspirate_send_bin(): 0x13 avrdude: buspirate_recv_bin(): 0x01 avrdude: buspirate_send_bin(): 0x58 0x08 0x00 0x00 avrdude: buspirate_recv_bin(): 0x00 0x58 0x08 0x99 avrdude: safemode read 2, hfuse value: 99 avrdude: buspirate_send_bin(): 0x13 avrdude: buspirate_recv_bin(): 0x01 avrdude: buspirate_send_bin(): 0x58 0x08 0x00 0x00 avrdude: buspirate_recv_bin(): 0x00 0x58 0x08 0x99 avrdude: safemode read 3, hfuse value: 99 avrdude: safemode: hfuse reads as 99 avrdude: buspirate_send_bin(): 0x13 avrdude: buspirate_recv_bin(): 0x01 avrdude: buspirate_send_bin(): 0x50 0x08 0x00 0x00 avrdude: buspirate_recv_bin(): 0x00 0x50 0x08 0xf3 avrdude: safemode read 1, efuse value: f3 avrdude: buspirate_send_bin(): 0x13 avrdude: buspirate_recv_bin(): 0x01 avrdude: buspirate_send_bin(): 0x50 0x08 0x00 0x00 avrdude: buspirate_recv_bin(): 0x00 0x50 0x08 0xf3 avrdude: safemode read 2, efuse value: f3 avrdude: buspirate_send_bin(): 0x13 avrdude: buspirate_recv_bin(): 0x01 avrdude: buspirate_send_bin(): 0x50 0x08 0x00 0x00 avrdude: buspirate_recv_bin(): 0x00 0x50 0x08 0xf3 avrdude: safemode read 3, efuse value: f3 avrdude: safemode: efuse reads as F3 avrdude: buspirate_send_bin(): 0x13 avrdude: buspirate_recv_bin(): 0x01 avrdude: buspirate_send_bin(): 0xa0 0x01 0xfc 0x00 avrdude: buspirate_recv_bin(): 0x00 0xa0 0x01 0xff avrdude: buspirate_send_bin(): 0x13 avrdude: buspirate_recv_bin(): 0x01 avrdude: buspirate_send_bin(): 0xa0 0x01 0xfd 0x00 avrdude: buspirate_recv_bin(): 0x00 0xa0 0x01 0xff avrdude: buspirate_send_bin(): 0x13 avrdude: buspirate_recv_bin(): 0x01 avrdude: buspirate_send_bin(): 0xa0 0x01 0xfe 0x00 avrdude: buspirate_recv_bin(): 0x00 0xa0 0x01 0xff avrdude: buspirate_send_bin(): 0x13 avrdude: buspirate_recv_bin(): 0x01 avrdude: buspirate_send_bin(): 0xa0 0x01 0xff 0x00 avrdude: buspirate_recv_bin(): 0x00 0xa0 0x01 0xff avrdude: reading input file "0xE2" avrdude: writing lfuse (1 bytes): Writing | | 0% 0.00savrdude: buspirate_send_bin(): 0x13 avrdude: buspirate_recv_bin(): 0x01 avrdude: buspirate_send_bin(): 0x50 0x00 0x00 0x00 avrdude: buspirate_recv_bin(): 0x00 0x50 0x00 0x5e avrdude: buspirate_send_bin(): 0x13 avrdude: buspirate_recv_bin(): 0x01 avrdude: buspirate_send_bin(): 0xac 0xa0 0x00 0xe2 avrdude: buspirate_recv_bin(): 0x00 0xac 0xa0 0x00 avrdude: buspirate_send_bin(): 0x13 avrdude: buspirate_recv_bin(): 0x01 avrdude: buspirate_send_bin(): 0x50 0x00 0x00 0x00 avrdude: buspirate_recv_bin(): 0xe2 0x50 0x00 0x5e avrdude: buspirate_send_bin(): 0x13 avrdude: buspirate_recv_bin(): 0x01 avrdude: buspirate_send_bin(): 0x50 0x00 0x00 0x00 avrdude: buspirate_recv_bin(): 0x00 0x50 0x00 0x5e avrdude: buspirate_send_bin(): 0x13 avrdude: buspirate_recv_bin(): 0x01 avrdude: buspirate_send_bin(): 0x50 0x00 0x00 0x00 avrdude: buspirate_recv_bin(): 0x00 0x50 0x00 0x5e avrdude: buspirate_send_bin(): 0x13 avrdude: buspirate_recv_bin(): 0x01 avrdude: buspirate_send_bin(): 0x50 0x00 0x00 0x00 avrdude: buspirate_recv_bin(): 0x00 0x50 0x00 0x5e avrdude: buspirate_send_bin(): 0x13 avrdude: buspirate_recv_bin(): 0x01 avrdude: buspirate_send_bin(): 0x50 0x00 0x00 0x00 avrdude: buspirate_recv_bin(): 0x00 0x50 0x00 0x5e avrdude: buspirate_send_bin(): 0x13 avrdude: buspirate_recv_bin(): 0x01 avrdude: buspirate_send_bin(): 0x50 0x00 0x00 0x00 avrdude: buspirate_recv_bin(): 0x00 0x50 0x00 0x5e avrdude: buspirate_send_bin(): 0x13 avrdude: buspirate_recv_bin(): 0x01 avrdude: buspirate_send_bin(): 0x50 0x00 0x00 0x00 avrdude: buspirate_recv_bin(): 0x00 0x50 0x00 0x5e avrdude: buspirate_send_bin(): 0x13 avrdude: buspirate_recv_bin(): 0x01 avrdude: buspirate_send_bin(): 0x50 0x00 0x00 0x00 avrdude: buspirate_recv_bin(): 0x00 0x50 0x00 0x5e avrdude: buspirate_send_bin(): 0x13 avrdude: buspirate_recv_bin(): 0x01 avrdude: buspirate_send_bin(): 0x50 0x00 0x00 0x00 avrdude: buspirate_recv_bin(): 0x00 0x50 0x00 0x5e avrdude: buspirate_send_bin(): 0x13 avrdude: buspirate_recv_bin(): 0x01 avrdude: buspirate_send_bin(): 0x50 0x00 0x00 0x00 avrdude: buspirate_recv_bin(): 0x00 0x50 0x00 0x5e avrdude: buspirate_send_bin(): 0x13 avrdude: buspirate_recv_bin(): 0x01 avrdude: buspirate_send_bin(): 0x50 0x00 0x00 0x00 avrdude: buspirate_recv_bin(): 0x00 0x50 0x00 0x5e avrdude: buspirate_send_bin(): 0x13 avrdude: buspirate_recv_bin(): 0x01 avrdude: buspirate_send_bin(): 0x50 0x00 0x00 0x00 avrdude: buspirate_recv_bin(): 0x00 0x50 0x00 0x5e avrdude: buspirate_send_bin(): 0x13 avrdude: buspirate_recv_bin(): 0x01 avrdude: buspirate_send_bin(): 0x50 0x00 0x00 0x00 avrdude: buspirate_recv_bin(): 0x00 0x50 0x00 0x5e avrdude: buspirate_send_bin(): 0x13 avrdude: buspirate_recv_bin(): 0x01 avrdude: buspirate_send_bin(): 0x50 0x00 0x00 0x00 avrdude: buspirate_recv_bin(): 0x00 0x50 0x00 0x5e avrdude: buspirate_send_bin(): 0x13 avrdude: buspirate_recv_bin(): 0x01 avrdude: buspirate_send_bin(): 0x50 0x00 0x00 0x00 avrdude: buspirate_recv_bin(): 0x00 0x50 0x00 0x5e avrdude: buspirate_send_bin(): 0x13 avrdude: buspirate_recv_bin(): 0x01 avrdude: buspirate_send_bin(): 0x50 0x00 0x00 0x00 avrdude: buspirate_recv_bin(): 0x00 0x50 0x00 0x5e avrdude: buspirate_send_bin(): 0x13 avrdude: buspirate_recv_bin(): 0x01 avrdude: buspirate_send_bin(): 0x50 0x00 0x00 0x00 avrdude: buspirate_recv_bin(): 0x00 0x50 0x00 0x5e avrdude: buspirate_send_bin(): 0x13 avrdude: buspirate_recv_bin(): 0x01 avrdude: buspirate_send_bin(): 0x50 0x00 0x00 0x00 avrdude: buspirate_recv_bin(): 0x00 0x50 0x00 0x5e avrdude: buspirate_send_bin(): 0x13 avrdude: buspirate_recv_bin(): 0x01 avrdude: buspirate_send_bin(): 0x50 0x00 0x00 0x00 avrdude: buspirate_recv_bin(): 0x00 0x50 0x00 0x5e avrdude: buspirate_send_bin(): 0x13 avrdude: buspirate_recv_bin(): 0x01 avrdude: buspirate_send_bin(): 0x50 0x00 0x00 0x00 avrdude: buspirate_recv_bin(): 0x00 0x50 0x00 0x5e ***failed; Writing | ################################################## | 100% 0.07s avrdude: 1 bytes of lfuse written avrdude: verifying lfuse memory against 0xE2: avrdude: load data lfuse data from input file 0xE2: avrdude: input file 0xE2 contains 1 bytes avrdude: reading on-chip lfuse data: Reading | | 0% 0.00savrdude: buspirate_send_bin(): 0x13 avrdude: buspirate_recv_bin(): 0x01 avrdude: buspirate_send_bin(): 0x50 0x00 0x00 0x00 avrdude: buspirate_recv_bin(): 0x00 0x50 0x00 0x5e Reading | ################################################## | 100% 0.00s avrdude: verifying ... avrdude: verification error, first mismatch at byte 0x0000 0xe2 != 0x5e avrdude: verification error; content mismatch avrdude: buspirate_send_bin(): 0x13 avrdude: buspirate_recv_bin(): 0x01 avrdude: buspirate_send_bin(): 0x50 0x00 0x00 0x00 avrdude: buspirate_recv_bin(): 0x00 0x50 0x00 0x5e avrdude: safemode read 1, lfuse value: 5e avrdude: buspirate_send_bin(): 0x13 avrdude: buspirate_recv_bin(): 0x01 avrdude: buspirate_send_bin(): 0x50 0x00 0x00 0x00 avrdude: buspirate_recv_bin(): 0x00 0x50 0x00 0x5e avrdude: safemode read 2, lfuse value: 5e avrdude: buspirate_send_bin(): 0x13 avrdude: buspirate_recv_bin(): 0x01 avrdude: buspirate_send_bin(): 0x50 0x00 0x00 0x00 avrdude: buspirate_recv_bin(): 0x00 0x50 0x00 0x5e avrdude: safemode read 3, lfuse value: 5e avrdude: safemode: lfuse reads as 5E avrdude: buspirate_send_bin(): 0x13 avrdude: buspirate_recv_bin(): 0x01 avrdude: buspirate_send_bin(): 0x58 0x08 0x00 0x00 avrdude: buspirate_recv_bin(): 0x00 0x58 0x08 0x99 avrdude: safemode read 1, hfuse value: 99 avrdude: buspirate_send_bin(): 0x13 avrdude: buspirate_recv_bin(): 0x01 avrdude: buspirate_send_bin(): 0x58 0x08 0x00 0x00 avrdude: buspirate_recv_bin(): 0x00 0x58 0x08 0x99 avrdude: safemode read 2, hfuse value: 99 avrdude: buspirate_send_bin(): 0x13 avrdude: buspirate_recv_bin(): 0x01 avrdude: buspirate_send_bin(): 0x58 0x08 0x00 0x00 avrdude: buspirate_recv_bin(): 0x00 0x58 0x08 0x99 avrdude: safemode read 3, hfuse value: 99 avrdude: safemode: hfuse reads as 99 avrdude: buspirate_send_bin(): 0x13 avrdude: buspirate_recv_bin(): 0x01 avrdude: buspirate_send_bin(): 0x50 0x08 0x00 0x00 avrdude: buspirate_recv_bin(): 0x00 0x50 0x08 0xf3 avrdude: safemode read 1, efuse value: f3 avrdude: buspirate_send_bin(): 0x13 avrdude: buspirate_recv_bin(): 0x01 avrdude: buspirate_send_bin(): 0x50 0x08 0x00 0x00 avrdude: buspirate_recv_bin(): 0x00 0x50 0x08 0xf3 avrdude: safemode read 2, efuse value: f3 avrdude: buspirate_send_bin(): 0x13 avrdude: buspirate_recv_bin(): 0x01 avrdude: buspirate_send_bin(): 0x50 0x08 0x00 0x00 avrdude: buspirate_recv_bin(): 0x00 0x50 0x08 0xf3 avrdude: safemode read 3, efuse value: f3 avrdude: safemode: efuse reads as F3 avrdude: safemode: lfuse changed! Was e2, and is now 5e Would you like this fuse to be changed back? [y/n] n avrdude: safemode: Fuses OK avrdude: buspirate_send_bin(): 0x40 avrdude: buspirate_recv_bin(): 0x01 avrdude: buspirate_send_bin(): 0x00 avrdude: buspirate_send_bin(): 0x0f avrdude: buspirate_recv_bin(): 0x42 0x42 0x49 0x4f 0x31 0x01 0x0d 0x0a 0x42 avrdude: buspirate_recv_bin(): 0x75 0x73 0x20 0x50 0x69 0x72 0x61 0x74 0x65 avrdude: buspirate_recv_bin(): 0x20 0x76 0x33 0x61 0x0d 0x0a 0x46 0x69 0x72 avrdude: buspirate_recv_bin(): 0x6d 0x77 0x61 0x72 0x65 0x20 0x76 0x35 0x2e avrdude: buspirate_recv_bin(): 0x31 0x30 0x20 0x28 0x72 0x35 0x35 0x39 0x29 avrdude: buspirate_recv_bin(): 0x20 0x20 0x42 0x6f 0x6f 0x74 0x6c 0x6f 0x61 avrdude: buspirate_recv_bin(): 0x64 0x65 0x72 0x20 0x76 0x34 0x2e 0x34 0x0d avrdude: buspirate_recv_bin(): 0x0a 0x44 0x45 0x56 0x49 0x44 0x3a 0x30 0x78 avrdude: buspirate_recv_bin(): 0x30 0x34 0x34 0x37 0x20 0x52 0x45 0x56 0x49 avrdude: buspirate_recv_bin(): 0x44 0x3a 0x30 0x78 0x33 0x30 0x34 0x36 0x20 avrdude: buspirate_recv_bin(): 0x28 0x32 0x34 0x46 0x4a 0x36 0x34 0x47 0x41 avrdude: buspirate_recv_bin(): 0x30 0x30 0x32 0x20 0x42 0x38 0x29 0x0d 0x0a avrdude: buspirate_recv_bin(): 0x68 0x74 0x74 0x70 0x3a 0x2f 0x2f 0x64 0x61 avrdude: buspirate_recv_bin(): 0x6e 0x67 0x65 0x72 0x6f 0x75 0x73 0x70 0x72 avrdude: buspirate_recv_bin(): 0x6f 0x74 0x6f 0x74 0x79 0x70 0x65 0x73 0x2e avrdude: buspirate_recv_bin(): 0x63 0x6f 0x6d 0x0d 0x0a 0x48 0x69 0x5a 0x3e BusPirate is back in the text mode avrdude done. Thank you.