Last active
February 26, 2020 09:08
-
-
Save enkunkun/7884bc9a8206fadb69673f3ec92047e1 to your computer and use it in GitHub Desktop.
avrdude leonardo catalina firmware update
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ ./avrdude -C./avrdude.conf -v -patmega32u4 -c arduino -P /dev/cu.usbmodem14601 -b 19200 -e -Ulock:w:0x3F:m -Uefuse:w:0xfb:m -Uhfuse:w:0xd8:m -Ulfuse:w:0xff:m | |
avrdude: Version 6.3-20171130 | |
Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/ | |
Copyright (c) 2007-2014 Joerg Wunsch | |
System wide configuration file is "./avrdude.conf" | |
User configuration file is "/Users/mikawa-lab/.avrduderc" | |
User configuration file does not exist or is not a regular file, skipping | |
Using Port : /dev/cu.usbmodem14601 | |
Using Programmer : arduino | |
Overriding Baud Rate : 19200 | |
AVR Part : ATmega32U4 | |
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 20 4 0 no 1024 4 0 9000 9000 0x00 0x00 | |
flash 65 6 128 0 yes 32768 128 256 4500 4500 0x00 0x00 | |
lfuse 0 0 0 0 no 1 0 0 9000 9000 0x00 0x00 | |
hfuse 0 0 0 0 no 1 0 0 9000 9000 0x00 0x00 | |
efuse 0 0 0 0 no 1 0 0 9000 9000 0x00 0x00 | |
lock 0 0 0 0 no 1 0 0 9000 9000 0x00 0x00 | |
calibration 0 0 0 0 no 1 0 0 0 0 0x00 0x00 | |
signature 0 0 0 0 no 3 0 0 0 0 0x00 0x00 | |
Programmer Type : Arduino | |
Description : Arduino | |
Hardware Version: 2 | |
Firmware Version: 1.18 | |
Topcard : Unknown | |
Vtarget : 0.0 V | |
Varef : 0.0 V | |
Oscillator : Off | |
SCK period : 0.1 us | |
avrdude: AVR device initialized and ready to accept instructions | |
Reading | ################################################## | 100% 0.01s | |
avrdude: Device signature = 0x1e9587 (probably m32u4) | |
avrdude: safemode: lfuse reads as FF | |
avrdude: safemode: hfuse reads as D8 | |
avrdude: safemode: efuse reads as CB | |
avrdude: erasing chip | |
avrdude: reading input file "0x3F" | |
avrdude: writing lock (1 bytes): | |
Writing | ################################################## | 100% 0.01s | |
avrdude: 1 bytes of lock written | |
avrdude: verifying lock memory against 0x3F: | |
avrdude: load data lock data from input file 0x3F: | |
avrdude: input file 0x3F contains 1 bytes | |
avrdude: reading on-chip lock data: | |
Reading | ################################################## | 100% 0.01s | |
avrdude: verifying ... | |
avrdude: 1 bytes of lock verified | |
avrdude: reading input file "0xfb" | |
avrdude: writing efuse (1 bytes): | |
Writing | | 0% 0.00s ***failed; | |
Writing | ################################################## | 100% 0.11s | |
avrdude: 1 bytes of efuse written | |
avrdude: verifying efuse memory against 0xfb: | |
avrdude: load data efuse data from input file 0xfb: | |
avrdude: input file 0xfb contains 1 bytes | |
avrdude: reading on-chip efuse data: | |
Reading | ################################################## | 100% 0.01s | |
avrdude: verifying ... | |
avrdude: WARNING: invalid value for unused bits in fuse "efuse", should be set to 1 according to datasheet | |
This behaviour is deprecated and will result in an error in future version | |
You probably want to use 0xcb instead of 0xfb (double check with your datasheet first). | |
avrdude: 1 bytes of efuse verified | |
avrdude: reading input file "0xd8" | |
avrdude: writing hfuse (1 bytes): | |
Writing | ################################################## | 100% 0.01s | |
avrdude: 1 bytes of hfuse written | |
avrdude: verifying hfuse memory against 0xd8: | |
avrdude: load data hfuse data from input file 0xd8: | |
avrdude: input file 0xd8 contains 1 bytes | |
avrdude: reading on-chip hfuse data: | |
Reading | ################################################## | 100% 0.01s | |
avrdude: verifying ... | |
avrdude: 1 bytes of hfuse verified | |
avrdude: reading input file "0xff" | |
avrdude: writing lfuse (1 bytes): | |
Writing | ################################################## | 100% 0.01s | |
avrdude: 1 bytes of lfuse written | |
avrdude: verifying lfuse memory against 0xff: | |
avrdude: load data lfuse data from input file 0xff: | |
avrdude: input file 0xff contains 1 bytes | |
avrdude: reading on-chip lfuse data: | |
Reading | ################################################## | 100% 0.01s | |
avrdude: verifying ... | |
avrdude: 1 bytes of lfuse verified | |
avrdude: safemode: lfuse reads as FF | |
avrdude: safemode: hfuse reads as D8 | |
avrdude: safemode: efuse reads as CB | |
avrdude: safemode: Fuses OK (E:FB, H:D8, L:FF) | |
avrdude done. Thank you. | |
$ ./avrdude -C./avrdude.conf -v -patmega32u4 -c avrisp -P /dev/cu.usbmodem14601 -b 19200 -Uflash:w:Caterina2_Leonardo.hex:i -Ulock:w:0x2F:m | |
avrdude: Version 6.3-20171130 | |
Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/ | |
Copyright (c) 2007-2014 Joerg Wunsch | |
System wide configuration file is "./avrdude.conf" | |
User configuration file is "/Users/mikawa-lab/.avrduderc" | |
User configuration file does not exist or is not a regular file, skipping | |
Using Port : /dev/cu.usbmodem14601 | |
Using Programmer : avrisp | |
Overriding Baud Rate : 19200 | |
AVR Part : ATmega32U4 | |
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 20 4 0 no 1024 4 0 9000 9000 0x00 0x00 | |
flash 65 6 128 0 yes 32768 128 256 4500 4500 0x00 0x00 | |
lfuse 0 0 0 0 no 1 0 0 9000 9000 0x00 0x00 | |
hfuse 0 0 0 0 no 1 0 0 9000 9000 0x00 0x00 | |
efuse 0 0 0 0 no 1 0 0 9000 9000 0x00 0x00 | |
lock 0 0 0 0 no 1 0 0 9000 9000 0x00 0x00 | |
calibration 0 0 0 0 no 1 0 0 0 0 0x00 0x00 | |
signature 0 0 0 0 no 3 0 0 0 0 0x00 0x00 | |
Programmer Type : STK500 | |
Description : Atmel AVR ISP | |
Hardware Version: 2 | |
Firmware Version: 1.18 | |
Topcard : Unknown | |
Vtarget : 0.0 V | |
Varef : 0.0 V | |
Oscillator : Off | |
SCK period : 0.1 us | |
avrdude: AVR device initialized and ready to accept instructions | |
Reading | ################################################## | 100% 0.02s | |
avrdude: Device signature = 0x1e9587 (probably m32u4) | |
avrdude: safemode: lfuse reads as FF | |
avrdude: safemode: hfuse reads as D8 | |
avrdude: safemode: efuse reads as CB | |
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: reading input file "Caterina2_Leonardo.hex" | |
avrdude: writing flash (32768 bytes): | |
Writing | ################################################## | 100% 0.00s | |
avrdude: 32768 bytes of flash written | |
avrdude: verifying flash memory against Caterina2_Leonardo.hex: | |
avrdude: load data flash data from input file Caterina2_Leonardo.hex: | |
avrdude: input file Caterina2_Leonardo.hex contains 32768 bytes | |
avrdude: reading on-chip flash data: | |
Reading | ################################################## | 100% 0.00s | |
avrdude: verifying ... | |
avrdude: 32768 bytes of flash verified | |
avrdude: reading input file "0x2F" | |
avrdude: writing lock (1 bytes): | |
Writing | ################################################## | 100% 0.02s | |
avrdude: 1 bytes of lock written | |
avrdude: verifying lock memory against 0x2F: | |
avrdude: load data lock data from input file 0x2F: | |
avrdude: input file 0x2F contains 1 bytes | |
avrdude: reading on-chip lock data: | |
Reading | ################################################## | 100% 0.01s | |
avrdude: verifying ... | |
avrdude: 1 bytes of lock verified | |
avrdude: safemode: lfuse reads as FF | |
avrdude: safemode: hfuse reads as D8 | |
avrdude: safemode: efuse reads as CB | |
avrdude: safemode: Fuses OK (E:CB, H:D8, L:FF) | |
avrdude done. Thank you. | |
$ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment