Estoy trabajando en una placa de desarrollo USB ATtiny85, y necesito actualizar el cargador de arranque Micronucleus. He oído que este gestor de arranque permite que el ATtiny85 se programe a través de USB desde la computadora, sin la necesidad de un programador externo.
Así que decidí intentar grabarlo, usando el Arduino Uno como ISP. Descargué el gestor de arranque, AVRDUDE, abrí el símbolo del sistema (estoy usando Windows 8.1), navegué a la carpeta de archivos .hex y escribí esto:
avrdude -c arduino -b 19200 -P COM6 -p t85 -U flash:w:micronucleus-1.06.hex -U lfuse:w:0xe1:m -U hfuse:w:0xdd:m -U efuse:w:0xfe:m
¿Eso suena bien? Eso es lo que produce el indicador:
C:\Users\Mohamed\Desktop\micronucleus-master\firmware\releases>avrdude -c arduin
o -b 19200 -P COM6 -p t85 -U flash:w:micronucleus-1.06.hex -U lfuse:w:0xe1:m -U
hfuse:w:0xdd:m -U efuse:w:0xfe:m
avrdude: please define PAGEL and BS2 signals in the configuration file for part
ATtiny85
avrdude: AVR device initialized and ready to accept instructions
Reading | ################################################## | 100% 0.02s
avrdude: Device signature = 0x1e930b
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: please define PAGEL and BS2 signals in the configuration file for part
ATtiny85
avrdude: reading input file "micronucleus-1.06.hex"
avrdude: input file micronucleus-1.06.hex auto detected as Intel Hex
avrdude: writing flash (8162 bytes):
Writing | ################################################## | 100% 3.91s
avrdude: 8162 bytes of flash written
avrdude: verifying flash memory against micronucleus-1.06.hex:
avrdude: load data flash data from input file micronucleus-1.06.hex:
avrdude: input file micronucleus-1.06.hex auto detected as Intel Hex
avrdude: input file micronucleus-1.06.hex contains 8162 bytes
avrdude: reading on-chip flash data:
Reading | ################################################## | 100% 9.37s
avrdude: verifying ...
avrdude: 8162 bytes of flash verified
avrdude: reading input file "0xe1"
avrdude: writing lfuse (1 bytes):
Writing | ################################################## | 100% 0.02s
avrdude: 1 bytes of lfuse written
avrdude: verifying lfuse memory against 0xe1:
avrdude: load data lfuse data from input file 0xe1:
avrdude: input file 0xe1 contains 1 bytes
avrdude: reading on-chip lfuse data:
Reading | ################################################## | 100% 0.03s
avrdude: verifying ...
avrdude: 1 bytes of lfuse verified
avrdude: reading input file "0xdd"
avrdude: writing hfuse (1 bytes):
Writing | ################################################## | 100% 0.03s
avrdude: 1 bytes of hfuse written
avrdude: verifying hfuse memory against 0xdd:
avrdude: load data hfuse data from input file 0xdd:
avrdude: input file 0xdd contains 1 bytes
avrdude: reading on-chip hfuse data:
Reading | ################################################## | 100% 0.02s
avrdude: verifying ...
avrdude: 1 bytes of hfuse verified
avrdude: reading input file "0xfe"
avrdude: writing efuse (1 bytes):
Writing | ################################################## | 100% 0.02s
avrdude: 1 bytes of efuse written
avrdude: verifying efuse memory against 0xfe:
avrdude: load data efuse data from input file 0xfe:
avrdude: input file 0xfe contains 1 bytes
avrdude: reading on-chip efuse data:
Reading | ################################################## | 100% 0.01s
avrdude: verifying ...
avrdude: 1 bytes of efuse verified
avrdude: safemode: Fuses OK
avrdude done. Thank you.
¿Está flasheado ahora? Porque cuando lo conecto en el puerto USB aparece este mensaje de error: "No se reconoce el dispositivo USB". ¿Tengo que instalar algún controlador o flashear algo más en el ATTiny85?