Bonsoir,
il semble que le flashage avec USBASP se passe mal:
J'ai cette ligne, dont je ne maîtrise pas la "gravité":
avrdude: auto set sck period (because given equals null)
avrdude: warning: cannont set sck period. please check for usbasp firmware update.
Pourtant, les lectures/écritures semblent bien se passer.
Si ça peut aider, je mets mes traces ci-dessous:
C:\Users\admin\Desktop\MEGA2560\2_Configuration-Flash\MEGA2560_bootloader>mega25
60_usbasp_flash_fuses.bat
C:\Users\admin\Desktop\MEGA2560\2_Configuration-Flash\MEGA2560_bootloader>avrdud
e -p m2560 -c usbasp -P usb -F -e -u -Ulfuse:w:0xFF:m -Uhfuse:w:0xD8:m -Uefuse:w
:0xFD:m -v
avrdude: Version 5.11-Patch#7610, compiled on Aug 31 2011 at 08:02:19
Copyright (c) 2000-2005 Brian Dean,
http://www.bdmicro.com/
Copyright (c) 2007-2009 Joerg Wunsch
System wide configuration file is "C:\Users\admin\Desktop\MEGA2560\2_Co
nfiguration-Flash\MEGA2560_bootloader\avrdude.conf"
Using Port : usb
Using Programmer : usbasp
AVR Part : ATMEGA2560
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 Max
W ReadBack
----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ---
-- ---------
eeprom 65 10 8 0 no 4096 8 0 9000 90
00 0x00 0x00
flash 65 10 256 0 yes 262144 256 1024 4500 45
00 0x00 0x00
lfuse 0 0 0 0 no 1 0 0 9000 90
00 0x00 0x00
hfuse 0 0 0 0 no 1 0 0 9000 90
00 0x00 0x00
efuse 0 0 0 0 no 1 0 0 9000 90
00 0x00 0x00
lock 0 0 0 0 no 1 0 0 9000 90
00 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 : usbasp
Description : USBasp,
http://www.fischl.de/usbasp/
avrdude: auto set sck period (because given equals null)
avrdude: warning: cannot set sck period. please check for usbasp firmware update
.
avrdude: AVR device initialized and ready to accept instructions
Reading | ################################################## | 100% 0.03s
avrdude: Device signature = 0x1e9801
avrdude: erasing chip
avrdude: auto set sck period (because given equals null)
avrdude: warning: cannot set sck period. please check for usbasp firmware update
.
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: 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 "0xFD"
avrdude: writing efuse (1 bytes):
Writing | ################################################## | 100% 0.01s
avrdude: 1 bytes of efuse written
avrdude: verifying efuse memory against 0xFD:
avrdude: load data efuse data from input file 0xFD:
avrdude: input file 0xFD contains 1 bytes
avrdude: reading on-chip efuse data:
Reading | ################################################## | 100% 0.01s
avrdude: verifying ...
avrdude: 1 bytes of efuse verified
avrdude done. Thank you.
C:\Users\admin\Desktop\MEGA2560\2_Configuration-Flash\MEGA2560_bootloader>pause
Appuyez sur une touche pour continuer...
C:\Users\admin\Desktop\MEGA2560\2_Configuration-Flash\MEGA2560_bootloader>mega25
60_usbasp_flash_bootloader.bat
C:\Users\admin\Desktop\MEGA2560\2_Configuration-Flash\MEGA2560_bootloader>avrdud
e -p m2560 -c usbasp -P usb -b 115200 -e -u -U lock:w:0x3F:m
avrdude: warning: cannot set sck period. please check for usbasp firmware update
.
avrdude: AVR device initialized and ready to accept instructions
Reading | ################################################## | 100% 0.03s
avrdude: Device signature = 0x1e9801
avrdude: erasing chip
avrdude: warning: cannot set sck period. please check for usbasp firmware update
.
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 done. Thank you.
C:\Users\admin\Desktop\MEGA2560\2_Configuration-Flash\MEGA2560_bootloader>avrdud
e -p m2560 -c usbasp -P usb -b 115200 -V -U flash:w:mega2560_stk500boot_v2.hex
avrdude: warning: cannot set sck period. please check for usbasp firmware update
.
avrdude: AVR device initialized and ready to accept instructions
Reading | ################################################## | 100% 0.03s
avrdude: Device signature = 0x1e9801
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: warning: cannot set sck period. please check for usbasp firmware update
.
avrdude: reading input file "mega2560_stk500boot_v2.hex"
avrdude: input file mega2560_stk500boot_v2.hex auto detected as Intel Hex
avrdude: writing flash (260406 bytes):
Writing | ################################################## | 100% 146.15s
avrdude: 260406 bytes of flash written
avrdude: safemode: Fuses OK
avrdude done. Thank you.
C:\Users\admin\Desktop\MEGA2560\2_Configuration-Flash\MEGA2560_bootloader>avrdud
e -p m2560 -c usbasp -P usb -b 115200 -U lock:w:0x0F:m
avrdude: warning: cannot set sck period. please check for usbasp firmware update
.
avrdude: AVR device initialized and ready to accept instructions
Reading | ################################################## | 100% 0.02s
avrdude: Device signature = 0x1e9801
avrdude: reading input file "0x0F"
avrdude: writing lock (1 bytes):
Writing | ################################################## | 100% 0.02s
avrdude: 1 bytes of lock written
avrdude: verifying lock memory against 0x0F:
avrdude: load data lock data from input file 0x0F:
avrdude: input file 0x0F contains 1 bytes
avrdude: reading on-chip lock data:
Reading | ################################################## | 100% 0.01s
avrdude: verifying ...
avrdude: 1 bytes of lock verified
avrdude: safemode: Fuses OK
avrdude done. Thank you.
C:\Users\admin\Desktop\MEGA2560\2_Configuration-Flash\MEGA2560_bootloader>pause
Appuyez sur une touche pour continuer...
C:\Users\admin\Desktop\MEGA2560\2_Configuration-Flash\MEGA2560_bootloader>