# burn firmware avrdude -p atxmega128a4u -P usb -c dragon_pdi -U flash:w:Keyboard.hex # burn bootloader avrdude -p atxmega128a4u -P usb -c dragon_pdi -U boot:w:katy-bootloader.hex # factory preset fuses 1245: 0x00 0xFF 0xFE 0xFF # factory preset fuses boot application but there is no application or bootloader preloaded # my fuses (application boot): 0x00 0xFD 0xFF 0xED # my fuses (bootlaoder boot): 0x00 0xBD 0xFF 0xED # read fuses avrdude -p atxmega128a4u -P usb -c dragon_pdi -U fuse1:r:-:h -U fuse2:r:-:h -U fuse4:r:-:h -U fuse5:r:-:h # set my fuses (application boot) avrdude -p atxmega128a4u -P usb -c dragon_pdi -U fuse1:w:0x00:m -U fuse2:w:0xFD:m -U fuse4:w:0xFF:m -U fuse5:w:0xED:m # set bootloader boot avrdude -p atxmega128a4u -P usb -c dragon_pdi -U fuse2:w:0xBD:m # set application boot avrdude -p atxmega128a4u -P usb -c dragon_pdi -U fuse2:w:0xFD:m