Digistump Forums
The Digispark => Digispark (Original) Support => Topic started by: henry42 on December 20, 2017, 10:31:28 am
-
I bought two digisparks, one of them works all right, but the other one can not be recognized. >:(
My system is win10. When I plug it directly, nothing happened; but when I plug it to the usb hub, it appears as an unknown usb descriptor. :-\
I thought maybe it's because the bootloader is corrupt, so I make my arduino as a isp to flash the bootloader, I will paste the command and result below, everything seems fine but nothing changed, my computer still can not recognize the digispark. :o
can anyone give me some suggestion? thanks!!! :'(
------
D:\Program Files (x86)\Arduino\hardware\tools\avr\bin>avrdude.exe -C ..\etc\avrdude.conf -v -pattiny85 -cstk500v1 -PCOM9 -b19200 -Uflash:w:D:\Tools\digispark\t85_default.hex:i -U lfuse:w:0xe1:m -U hfuse:w:0xdd:m -U efuse:w:0xfe:m
avrdude.exe: Version 6.3, compiled on Jan 17 2017 at 12:00:53
Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
Copyright (c) 2007-2014 Joerg Wunsch
System wide configuration file is "..\etc\avrdude.conf"
Using Port : COM9
Using Programmer : stk500v1
Overriding Baud Rate : 19200
AVR Part : ATtiny85
Chip Erase delay : 400000 us
PAGEL : P00
BS2 : P00
RESET disposition : possible i/o
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 12 4 0 no 512 4 0 4000 4500 0xff 0xff
flash 65 6 32 0 yes 8192 64 128 30000 30000 0xff 0xff
signature 0 0 0 0 no 3 0 0 0 0 0x00 0x00
lock 0 0 0 0 no 1 0 0 9000 9000 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
calibration 0 0 0 0 no 1 0 0 0 0 0x00 0x00
Programmer Type : STK500
Description : Atmel STK500 Version 1.x firmware
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.exe: AVR device initialized and ready to accept instructions
Reading | ################################################## | 100% 0.05s
avrdude.exe: Device signature = 0x1e930b (probably t85)
avrdude.exe: safemode: hfuse reads as DD
avrdude.exe: safemode: efuse reads as FE
avrdude.exe: NOTE: "flash" memory has been specified, an erase cycle will be performed
To disable this feature, specify the -D option.
avrdude.exe: erasing chip
avrdude.exe: reading input file "D:\Tools\digispark\t85_default.hex"
avrdude.exe: writing flash (8124 bytes):
Writing | ################################################## | 100% 0.27s
avrdude.exe: 8124 bytes of flash written
avrdude.exe: verifying flash memory against D:\Tools\digispark\t85_default.hex:
avrdude.exe: load data flash data from input file D:\Tools\digispark\t85_default.hex:
avrdude.exe: input file D:\Tools\digispark\t85_default.hex contains 8124 bytes
avrdude.exe: reading on-chip flash data:
Reading | ################################################## | 100% 0.20s
avrdude.exe: verifying ...
avrdude.exe: 8124 bytes of flash verified
avrdude.exe: reading input file "0xe1"
avrdude.exe: writing lfuse (1 bytes):
Writing | ################################################## | 100% 0.02s
avrdude.exe: 1 bytes of lfuse written
avrdude.exe: verifying lfuse memory against 0xe1:
avrdude.exe: load data lfuse data from input file 0xe1:
avrdude.exe: input file 0xe1 contains 1 bytes
avrdude.exe: reading on-chip lfuse data:
Reading | ################################################## | 100% 0.02s
avrdude.exe: verifying ...
avrdude.exe: 1 bytes of lfuse verified
avrdude.exe: reading input file "0xdd"
avrdude.exe: writing hfuse (1 bytes):
Writing | ################################################## | 100% 0.02s
avrdude.exe: 1 bytes of hfuse written
avrdude.exe: verifying hfuse memory against 0xdd:
avrdude.exe: load data hfuse data from input file 0xdd:
avrdude.exe: input file 0xdd contains 1 bytes
avrdude.exe: reading on-chip hfuse data:
Reading | ################################################## | 100% 0.03s
avrdude.exe: verifying ...
avrdude.exe: 1 bytes of hfuse verified
avrdude.exe: reading input file "0xfe"
avrdude.exe: writing efuse (1 bytes):
Writing | ################################################## | 100% 0.02s
avrdude.exe: 1 bytes of efuse written
avrdude.exe: verifying efuse memory against 0xfe:
avrdude.exe: load data efuse data from input file 0xfe:
avrdude.exe: input file 0xfe contains 1 bytes
avrdude.exe: reading on-chip efuse data:
Reading | ################################################## | 100% 0.02s
avrdude.exe: verifying ...
avrdude.exe: 1 bytes of efuse verified
avrdude.exe: safemode: hfuse reads as DD
avrdude.exe: safemode: efuse reads as FE
avrdude.exe: safemode: Fuses OK (E:FE, H:DD, L:E1)
avrdude.exe done. Thank you.
-
After trying two usb hubs and three usb wires I finally found the only one which can let it work...
I do not know why but ... that is it...