********************************************************************************* ***************************FAILURE WITH ATXMEGA192a3u**************************** ********************************************************************************* $sudo avrdude -v -p x192a3u -c atmelice_pdi -e -u \ -U fuse0:w:"/home/mobirider/Projects/atmel-bootloader/Debug/atmel-bootloader.elf":e \ -U fuse1:w:"/home/mobirider/Projects/atmel-bootloader/Debug/atmel-bootloader.elf":e \ -U fuse2:w:"/home/mobirider/Projects/atmel-bootloader/Debug/atmel-bootloader.elf":e \ -U fuse4:w:"/home/mobirider/Projects/atmel-bootloader/Debug/atmel-bootloader.elf":e \ -U fuse5:w:"/home/mobirider/Projects/atmel-bootloader/Debug/atmel-bootloader.elf":e \ -U boot:w:"/home/mobirider/Projects/atmel-bootloader/Debug/atmel-bootloader.elf":e \ -U application:w:"/home/mobirider/Projects/atmel-mobirider/Debug/atmel-mobirider.hex":i \ avrdude: Version 6.1, compiled on Nov 23 2014 at 21:15:32 Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/ Copyright (c) 2007-2014 Joerg Wunsch System wide configuration file is "/etc/avrdude.conf" User configuration file is "/home/mobirider/.avrduderc" User configuration file does not exist or is not a regular file, skipping Using Port : usb Using Programmer : atmelice_pdi avrdude: usbdev_open(): Found Atmel-ICE CMSIS-DAP, serno: J41800018102 avrdude: Found CMSIS-DAP compliant device, using EDBG protocol AVR Part : ATxmega192A3U Chip Erase delay : 0 us PAGEL : P00 BS2 : P00 RESET disposition : dedicated RETRY pulse : SCK serial program mode : yes parallel program mode : yes Timeout : 0 StabDelay : 0 CmdexeDelay : 0 SyncLoops : 0 ByteDelay : 0 PollIndex : 0 PollValue : 0x00 Memory Detail : 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 prodsig 0 0 0 0 no 50 50 0 0 0 0x00 0x00 fuse1 0 0 0 0 no 1 0 0 0 0 0x00 0x00 fuse2 0 0 0 0 no 1 0 0 0 0 0x00 0x00 fuse4 0 0 0 0 no 1 0 0 0 0 0x00 0x00 fuse5 0 0 0 0 no 1 0 0 0 0 0x00 0x00 lock 0 0 0 0 no 1 0 0 0 0 0x00 0x00 data 0 0 0 0 no 0 0 0 0 0 0x00 0x00 eeprom 0 0 0 0 no 2048 32 0 0 0 0x00 0x00 application 0 0 0 0 no 196608 512 0 0 0 0x00 0x00 apptable 0 0 0 0 no 8192 512 0 0 0 0x00 0x00 boot 0 0 0 0 no 8192 512 0 0 0 0x00 0x00 flash 0 0 0 0 no 204800 512 0 0 0 0x00 0x00 usersig 0 0 0 0 no 512 512 0 0 0 0x00 0x00 fuse0 0 0 0 0 no 1 0 0 0 0 0x00 0x00 Programmer Type : JTAGICE3_PDI Description : Atmel-ICE (ARM/AVR) in PDI mode ICE hardware version: 0 ICE firmware version: 1.22 (rel. 65) Serial number : J418000181028102 Vtarget : 3.31 V JTAG clock megaAVR/program: 1000 kHz JTAG clock megaAVR/debug: 1000 kHz JTAG clock Xmega: 1000 kHz PDI clock Xmega : 1000 kHz avrdude: AVR device initialized and ready to accept instructions Reading | ################################################## | 100% 0.01s avrdude: Device signature = 0x1e9744 avrdude: erasing chip avrdude: reading input file "/home/mobirider/Projects/atmel-bootloader/Debug/atmel-bootloader.elf" avrdude: writing fuse0 (1 bytes): Writing | ################################################## | 100% 0.01s avrdude: 1 bytes of fuse0 written avrdude: verifying fuse0 memory against /home/mobirider/Projects/atmel-bootloader/Debug/atmel-bootloader.elf: avrdude: load data fuse0 data from input file /home/mobirider/Projects/atmel-bootloader/Debug/atmel-bootloader.elf: avrdude: input file /home/mobirider/Projects/atmel-bootloader/Debug/atmel-bootloader.elf contains 1 bytes avrdude: reading on-chip fuse0 data: Reading | ################################################## | 100% 0.00s avrdude: verifying ... avrdude: 1 bytes of fuse0 verified avrdude: reading input file "/home/mobirider/Projects/atmel-bootloader/Debug/atmel-bootloader.elf" avrdude: writing fuse1 (1 bytes): Writing | ################################################## | 100% 0.01s avrdude: 1 bytes of fuse1 written avrdude: verifying fuse1 memory against /home/mobirider/Projects/atmel-bootloader/Debug/atmel-bootloader.elf: avrdude: load data fuse1 data from input file /home/mobirider/Projects/atmel-bootloader/Debug/atmel-bootloader.elf: avrdude: input file /home/mobirider/Projects/atmel-bootloader/Debug/atmel-bootloader.elf contains 1 bytes avrdude: reading on-chip fuse1 data: Reading | ################################################## | 100% 0.00s avrdude: verifying ... avrdude: 1 bytes of fuse1 verified avrdude: reading input file "/home/mobirider/Projects/atmel-bootloader/Debug/atmel-bootloader.elf" avrdude: writing fuse2 (1 bytes): Writing | ################################################## | 100% 0.01s avrdude: 1 bytes of fuse2 written avrdude: verifying fuse2 memory against /home/mobirider/Projects/atmel-bootloader/Debug/atmel-bootloader.elf: avrdude: load data fuse2 data from input file /home/mobirider/Projects/atmel-bootloader/Debug/atmel-bootloader.elf: avrdude: input file /home/mobirider/Projects/atmel-bootloader/Debug/atmel-bootloader.elf contains 1 bytes avrdude: reading on-chip fuse2 data: Reading | ################################################## | 100% 0.00s avrdude: verifying ... avrdude: 1 bytes of fuse2 verified avrdude: reading input file "/home/mobirider/Projects/atmel-bootloader/Debug/atmel-bootloader.elf" avrdude: writing fuse4 (1 bytes): Writing | ################################################## | 100% 0.01s avrdude: 1 bytes of fuse4 written avrdude: verifying fuse4 memory against /home/mobirider/Projects/atmel-bootloader/Debug/atmel-bootloader.elf: avrdude: load data fuse4 data from input file /home/mobirider/Projects/atmel-bootloader/Debug/atmel-bootloader.elf: avrdude: input file /home/mobirider/Projects/atmel-bootloader/Debug/atmel-bootloader.elf contains 1 bytes avrdude: reading on-chip fuse4 data: Reading | ################################################## | 100% 0.00s avrdude: verifying ... avrdude: 1 bytes of fuse4 verified avrdude: reading input file "/home/mobirider/Projects/atmel-bootloader/Debug/atmel-bootloader.elf" avrdude: writing fuse5 (1 bytes): Writing | ################################################## | 100% 0.01s avrdude: 1 bytes of fuse5 written avrdude: verifying fuse5 memory against /home/mobirider/Projects/atmel-bootloader/Debug/atmel-bootloader.elf: avrdude: load data fuse5 data from input file /home/mobirider/Projects/atmel-bootloader/Debug/atmel-bootloader.elf: avrdude: input file /home/mobirider/Projects/atmel-bootloader/Debug/atmel-bootloader.elf contains 1 bytes avrdude: reading on-chip fuse5 data: Reading | ################################################## | 100% 0.00s avrdude: verifying ... avrdude: 1 bytes of fuse5 verified avrdude: reading input file "/home/mobirider/Projects/atmel-bootloader/Debug/atmel-bootloader.elf" avrdude: writing boot (8180 bytes): Writing | | 0% 0.00savrdude: jtag3_edbg_send(): Fragmentation not (yet) implemented! avrdude: jtag3_edbg_recv(): Unexpected response 0x81, 0x00 avrdude: write memory command: timeout/error communicating with programmer (status -1) Writing | ################################################## | 100% 9.60s avrdude: 8180 bytes of boot written avrdude: verifying boot memory against /home/mobirider/Projects/atmel-bootloader/Debug/atmel-bootloader.elf: avrdude: load data boot data from input file /home/mobirider/Projects/atmel-bootloader/Debug/atmel-bootloader.elf: avrdude: input file /home/mobirider/Projects/atmel-bootloader/Debug/atmel-bootloader.elf contains 8180 bytes avrdude: reading on-chip boot data: Reading | ################################################## | 100% 0.09s avrdude: verifying ... avrdude: verification error, first mismatch at byte 0x0000 0xff != 0xfd avrdude: verification error; content mismatch avrdude done. Thank you. ********************************************************************************* *****************************SUCCESS WITH ATXMEGA8E5***************************** ********************************************************************************* $sudo avrdude -v -c atmelice_pdi -p x8e5 -U flash:w:/home/mobirider/Projects/atmel-rachseeker/Debug/atmel-rachseeker.elf:e avrdude: Version 6.1, compiled on Nov 23 2014 at 21:15:32 Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/ Copyright (c) 2007-2014 Joerg Wunsch System wide configuration file is "/etc/avrdude.conf" User configuration file is "/home/mobirider/.avrduderc" User configuration file does not exist or is not a regular file, skipping Using Port : usb Using Programmer : atmelice_pdi avrdude: usbdev_open(): Found Atmel-ICE CMSIS-DAP, serno: J41800018102 avrdude: Found CMSIS-DAP compliant device, using EDBG protocol AVR Part : ATxmega8E5 Chip Erase delay : 0 us PAGEL : P00 BS2 : P00 RESET disposition : dedicated RETRY pulse : SCK serial program mode : yes parallel program mode : yes Timeout : 0 StabDelay : 0 CmdexeDelay : 0 SyncLoops : 0 ByteDelay : 0 PollIndex : 0 PollValue : 0x00 Memory Detail : 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 prodsig 0 0 0 0 no 50 50 0 0 0 0x00 0x00 fuse1 0 0 0 0 no 1 0 0 0 0 0x00 0x00 fuse2 0 0 0 0 no 1 0 0 0 0 0x00 0x00 fuse4 0 0 0 0 no 1 0 0 0 0 0x00 0x00 fuse5 0 0 0 0 no 1 0 0 0 0 0x00 0x00 lock 0 0 0 0 no 1 0 0 0 0 0x00 0x00 data 0 0 0 0 no 0 0 0 0 0 0x00 0x00 eeprom 0 0 0 0 no 512 32 0 0 0 0x00 0x00 application 0 0 0 0 no 8192 128 0 0 0 0x00 0x00 apptable 0 0 0 0 no 2048 128 0 0 0 0x00 0x00 boot 0 0 0 0 no 2048 128 0 0 0 0x00 0x00 flash 0 0 0 0 no 10240 128 0 0 0 0x00 0x00 usersig 0 0 0 0 no 128 128 0 0 0 0x00 0x00 Programmer Type : JTAGICE3_PDI Description : Atmel-ICE (ARM/AVR) in PDI mode ICE hardware version: 0 ICE firmware version: 1.22 (rel. 65) Serial number : J418000181028102�������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������م������������ Vtarget : 3.31 V JTAG clock megaAVR/program: 1000 kHz JTAG clock megaAVR/debug: 1000 kHz JTAG clock Xmega: 1000 kHz PDI clock Xmega : 1000 kHz avrdude: AVR device initialized and ready to accept instructions Reading | ################################################## | 100% 0.00s avrdude: Device signature = 0x1e9341 avrdude: NOTE: Programmer supports page erase for Xmega devices. Each page will be erased before programming it, but no chip erase is performed. To disable page erases, specify the -D option; for a chip-erase, use the -e option. avrdude: reading input file "/home/mobirider/Projects/atmel-rachseeker/Debug/atmel-rachseeker.elf" avrdude: writing flash (8836 bytes): Writing | ################################################## | 100% 1.01s avrdude: 8836 bytes of flash written avrdude: verifying flash memory against /home/mobirider/Projects/atmel-rachseeker/Debug/atmel-rachseeker.elf: avrdude: load data flash data from input file /home/mobirider/Projects/atmel-rachseeker/Debug/atmel-rachseeker.elf: avrdude: input file /home/mobirider/Projects/atmel-rachseeker/Debug/atmel-rachseeker.elf contains 8836 bytes avrdude: reading on-chip flash data: Reading | ################################################## | 100% 0.24s avrdude: verifying ... avrdude: 8836 bytes of flash verified avrdude done. Thank you. ********************************************************************************* **********************************TERMINAL MODE********************************** ********************************************************************************* $sudo avrdude -v -p x192a3u -c atmelice_pdi -t avrdude: Version 6.1, compiled on Nov 23 2014 at 21:15:32 Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/ Copyright (c) 2007-2014 Joerg Wunsch System wide configuration file is "/etc/avrdude.conf" User configuration file is "/home/mobirider/.avrduderc" User configuration file does not exist or is not a regular file, skipping Using Port : usb Using Programmer : atmelice_pdi avrdude: usbdev_open(): Found Atmel-ICE CMSIS-DAP, serno: J41800018102 avrdude: Found CMSIS-DAP compliant device, using EDBG protocol AVR Part : ATxmega192A3U Chip Erase delay : 0 us PAGEL : P00 BS2 : P00 RESET disposition : dedicated RETRY pulse : SCK serial program mode : yes parallel program mode : yes Timeout : 0 StabDelay : 0 CmdexeDelay : 0 SyncLoops : 0 ByteDelay : 0 PollIndex : 0 PollValue : 0x00 Memory Detail : 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 prodsig 0 0 0 0 no 50 50 0 0 0 0x00 0x00 fuse1 0 0 0 0 no 1 0 0 0 0 0x00 0x00 fuse2 0 0 0 0 no 1 0 0 0 0 0x00 0x00 fuse4 0 0 0 0 no 1 0 0 0 0 0x00 0x00 fuse5 0 0 0 0 no 1 0 0 0 0 0x00 0x00 lock 0 0 0 0 no 1 0 0 0 0 0x00 0x00 data 0 0 0 0 no 0 0 0 0 0 0x00 0x00 eeprom 0 0 0 0 no 2048 32 0 0 0 0x00 0x00 application 0 0 0 0 no 196608 512 0 0 0 0x00 0x00 apptable 0 0 0 0 no 8192 512 0 0 0 0x00 0x00 boot 0 0 0 0 no 8192 512 0 0 0 0x00 0x00 flash 0 0 0 0 no 204800 512 0 0 0 0x00 0x00 usersig 0 0 0 0 no 512 512 0 0 0 0x00 0x00 fuse0 0 0 0 0 no 1 0 0 0 0 0x00 0x00 Programmer Type : JTAGICE3_PDI Description : Atmel-ICE (ARM/AVR) in PDI mode ICE hardware version: 0 ICE firmware version: 1.22 (rel. 65) Serial number : J418000181028102�������������������������������������������������������������������������������������������������������������������� Vtarget : 3.27 V JTAG clock megaAVR/program: 1000 kHz JTAG clock megaAVR/debug: 1000 kHz JTAG clock Xmega: 1000 kHz PDI clock Xmega : 1000 kHz avrdude: AVR device initialized and ready to accept instructions Reading | ################################################## | 100% 0.01s avrdude: Device signature = 0x1e9744 avrdude> dump flash 0 16 >>> dump flash 0 16 0000 0c 94 79 08 0c 94 f4 28 0c 94 1e 29 0c 94 48 29 | .y. ..( ..) .H)| avrdude> write flash 0 1 2 3 4 5 >>> write flash 0 1 2 3 4 5 avrdude (write): error writing 0x01 at 0x00000 cell=0x0c avrdude (write): error writing 0x02 at 0x00001 cell=0x94 avrdude (write): error writing 0x03 at 0x00002 cell=0x79 avrdude (write): error writing 0x04 at 0x00003 cell=0x08 avrdude (write): error writing 0x05 at 0x00004 cell=0x0c