Go Down

Topic: Error while burning bootloader to attiny85 (Read 213 times) previous topic - next topic

SkyCrafter

All I get while burning bootloader to attiny85 is Error while burning bootloader.
Verbose:
Code: [Select]
:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avrdude -CC:\Program Files (x86)\Arduino\hardware\tools\avr/etc/avrdude.conf -v -v -v -v -pattiny85 -cstk500v2 -Pusb -e -Uefuse:w:0xff:m -Uhfuse:w:0xdf:m -Ulfuse:w:0xf1:m

avrdude: 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 "C:\Program Files (x86)\Arduino\hardware\tools\avr/etc/avrdude.conf"

         Using Port                    : usb
         Using Programmer              : stk500v2
avrdude: usbdev_open(): did not find any USB device "usb" (0x03eb:0x2104)

avrdude done.  Thank you.

Error while burning bootloader.

I'm not really sure, all im doing is trying to upload the standard blink sketch to test the attiny85

SkyCrafter

Also forgot, I changed the LED_BUILTIN lines to pin 0 for the attiny85, also, it is 8mhz internal clock.

pert

Please provide some additional details about what you're doing, especially regarding the ATtiny85 board you're using and/or the ISP programmer.

SkyCrafter

Im using an attiny85 atmel 20pu and im using isp AVRISP mkii

pert

I believe the problem is the driver you have installed for the AVRISP mkII is not compatible with AVRDUDE. Try using Zadig to install the libusbK driver:
http://zadig.akeo.ie/
A common cause of this issue is that if you use Atmel Studio it installs a Jungo driver that is not compatible with AVRDUDE. Conversely the libusbK driver is not compatible with Atmel Studio. If you need to use both there is supposedly a workaround described on the avrfreaks forum that allows both drivers to coexist I could probably dig it up if you need it.

SkyCrafter

Thank you, I'm going to try the driver right now

SkyCrafter

that didnt work, sorry, but I will post the whole verbose output when attempting to upload
Code: [Select]
C:\Program Files (x86)\Arduino\arduino-builder -dump-prefs -logger=machine -hardware C:\Program Files (x86)\Arduino\hardware -hardware C:\Users\owenp\AppData\Local\Arduino15\packages -tools C:\Program Files (x86)\Arduino\tools-builder -tools C:\Program Files (x86)\Arduino\hardware\tools\avr -tools C:\Users\owenp\AppData\Local\Arduino15\packages -built-in-libraries C:\Program Files (x86)\Arduino\libraries -libraries C:\Users\owenp\Documents\Arduino\libraries -fqbn=attiny:avr:ATtinyX5:cpu=attiny85,clock=internal8 -ide-version=10802 -build-path C:\Users\owenp\AppData\Local\Temp\arduino_build_724248 -warnings=all -build-cache C:\Users\owenp\AppData\Local\Temp\arduino_cache_823677 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.arduinoOTA.path=C:\Program Files (x86)\Arduino\hardware\tools\avr -prefs=runtime.tools.avr-gcc.path=C:\Program Files (x86)\Arduino\hardware\tools\avr -prefs=runtime.tools.avrdude.path=C:\Program Files (x86)\Arduino\hardware\tools\avr -verbose C:\Users\owenp\AppData\Local\Temp\arduino_modified_sketch_5504\Blink.ino
C:\Program Files (x86)\Arduino\arduino-builder -compile -logger=machine -hardware C:\Program Files (x86)\Arduino\hardware -hardware C:\Users\owenp\AppData\Local\Arduino15\packages -tools C:\Program Files (x86)\Arduino\tools-builder -tools C:\Program Files (x86)\Arduino\hardware\tools\avr -tools C:\Users\owenp\AppData\Local\Arduino15\packages -built-in-libraries C:\Program Files (x86)\Arduino\libraries -libraries C:\Users\owenp\Documents\Arduino\libraries -fqbn=attiny:avr:ATtinyX5:cpu=attiny85,clock=internal8 -ide-version=10802 -build-path C:\Users\owenp\AppData\Local\Temp\arduino_build_724248 -warnings=all -build-cache C:\Users\owenp\AppData\Local\Temp\arduino_cache_823677 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.arduinoOTA.path=C:\Program Files (x86)\Arduino\hardware\tools\avr -prefs=runtime.tools.avr-gcc.path=C:\Program Files (x86)\Arduino\hardware\tools\avr -prefs=runtime.tools.avrdude.path=C:\Program Files (x86)\Arduino\hardware\tools\avr -verbose C:\Users\owenp\AppData\Local\Temp\arduino_modified_sketch_5504\Blink.ino
Using board 'ATtinyX5' from platform in folder: C:\Users\owenp\AppData\Local\Arduino15\packages\attiny\hardware\avr\1.0.2
Using core 'arduino' from platform in folder: C:\Program Files (x86)\Arduino\hardware\arduino\avr
Build options changed, rebuilding all
Detecting libraries used...
"C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics  -flto -w -x c++ -E -CC -mmcu=attiny85 -DF_CPU=8000000L -DARDUINO=10802 -DARDUINO_attiny -DARDUINO_ARCH_AVR   "-IC:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino" "-IC:\Users\owenp\AppData\Local\Arduino15\packages\attiny\hardware\avr\1.0.2\variants\tiny8" "C:\Users\owenp\AppData\Local\Temp\arduino_build_724248\sketch\Blink.ino.cpp" -o "nul"
Generating function prototypes...
"C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics  -flto -w -x c++ -E -CC -mmcu=attiny85 -DF_CPU=8000000L -DARDUINO=10802 -DARDUINO_attiny -DARDUINO_ARCH_AVR   "-IC:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino" "-IC:\Users\owenp\AppData\Local\Arduino15\packages\attiny\hardware\avr\1.0.2\variants\tiny8" "C:\Users\owenp\AppData\Local\Temp\arduino_build_724248\sketch\Blink.ino.cpp" -o "C:\Users\owenp\AppData\Local\Temp\arduino_build_724248\preproc\ctags_target_for_gcc_minus_e.cpp"
"C:\Program Files (x86)\Arduino\tools-builder\ctags\5.8-arduino11/ctags" -u --language-force=c++ -f - --c++-kinds=svpf --fields=KSTtzns --line-directives "C:\Users\owenp\AppData\Local\Temp\arduino_build_724248\preproc\ctags_target_for_gcc_minus_e.cpp"
Compiling sketch...
"C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avr-g++" -c -g -Os -Wall -Wextra -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -MMD -flto -mmcu=attiny85 -DF_CPU=8000000L -DARDUINO=10802 -DARDUINO_attiny -DARDUINO_ARCH_AVR   "-IC:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino" "-IC:\Users\owenp\AppData\Local\Arduino15\packages\attiny\hardware\avr\1.0.2\variants\tiny8" "C:\Users\owenp\AppData\Local\Temp\arduino_build_724248\sketch\Blink.ino.cpp" -o "C:\Users\owenp\AppData\Local\Temp\arduino_build_724248\sketch\Blink.ino.cpp.o"
Compiling libraries...
Compiling core...
Using precompiled core
Linking everything together...
"C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avr-gcc" -Wall -Wextra -Os -g -flto -fuse-linker-plugin -Wl,--gc-sections -mmcu=attiny85  -o "C:\Users\owenp\AppData\Local\Temp\arduino_build_724248/Blink.ino.elf" "C:\Users\owenp\AppData\Local\Temp\arduino_build_724248\sketch\Blink.ino.cpp.o" "C:\Users\owenp\AppData\Local\Temp\arduino_build_724248/..\arduino_cache_823677\core\core_attiny_avr_ATtinyX5_cpu_attiny85,clock_internal8_0c812875ac70eb4a9b385d8fb077f54c.a" "-LC:\Users\owenp\AppData\Local\Temp\arduino_build_724248" -lm
"C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avr-objcopy" -O ihex -j .eeprom --set-section-flags=.eeprom=alloc,load --no-change-warnings --change-section-lma .eeprom=0  "C:\Users\owenp\AppData\Local\Temp\arduino_build_724248/Blink.ino.elf" "C:\Users\owenp\AppData\Local\Temp\arduino_build_724248/Blink.ino.eep"
"C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avr-objcopy" -O ihex -R .eeprom  "C:\Users\owenp\AppData\Local\Temp\arduino_build_724248/Blink.ino.elf" "C:\Users\owenp\AppData\Local\Temp\arduino_build_724248/Blink.ino.hex"
Sketch uses 684 bytes (8%) of program storage space. Maximum is 8192 bytes.
Global variables use 9 bytes (1%) of dynamic memory, leaving 503 bytes for local variables. Maximum is 512 bytes.
C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avrdude -CC:\Program Files (x86)\Arduino\hardware\tools\avr/etc/avrdude.conf -v -pattiny85 -cstk500v2 -Pusb -Uflash:w:C:\Users\owenp\AppData\Local\Temp\arduino_build_724248/Blink.ino.hex:i

avrdude: 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 "C:\Program Files (x86)\Arduino\hardware\tools\avr/etc/avrdude.conf"

         Using Port                    : usb
         Using Programmer              : stk500v2
avrdude: usbdev_open(): did not find any USB device "usb" (0x03eb:0x2104)

avrdude done.  Thank you.

An error occurred while uploading the sketch

Go Up