Go Down

Topic: Bootloader and upload problems from UNO to ATTtiny85 (Read 853 times) previous topic - next topic

Guillaume60

Hi everyone.
I try to shrink an Arduino sketch to an ATTtiny 85 and have tried to go through all the steps to installation the device (went ok, the Atttiny appears in the ide board supported list), then tried to install the Bootloader and then it fails: here are the messages I get:

Arduino: 1.6.12 (Mac OS X), Board: "ATtiny25/45/85, ATtiny85, Internal 8 MHz"

avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0x66
avrdude: stk500_getsync() attempt 2 of 10: not in sync: resp=0x98
avrdude: stk500_getsync() attempt 3 of 10: not in sync: resp=0xe6
avrdude: stk500_getsync() attempt 4 of 10: not in sync: resp=0x18
avrdude: stk500_getsync() attempt 5 of 10: not in sync: resp=0x1e
avrdude: stk500_getsync() attempt 6 of 10: not in sync: resp=0x00
avrdude: stk500_getsync() attempt 7 of 10: not in sync: resp=0x98
avrdude: stk500_getsync() attempt 8 of 10: not in sync: resp=0x1e
avrdude: stk500_getsync() attempt 9 of 10: not in sync: resp=0x98
avrdude: stk500_getsync() attempt 10 of 10: not in sync: resp=0x80
Error while burning bootloader.

This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.



If I try to upload the Blink examples, I get:

Arduino: 1.6.12 (Mac OS X), Board: "ATtiny25/45/85, ATtiny85, Internal 8 MHz"

avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0x00
avrdude: stk500_getsync() attempt 2 of 10: not in sync: resp=0x98
avrdude: stk500_getsync() attempt 3 of 10: not in sync: resp=0x1e
avrdude: stk500_getsync() attempt 4 of 10: not in sync: resp=0x98
avrdude: stk500_getsync() attempt 5 of 10: not in sync: resp=0x80
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 6 of 10: not in sync: resp=0x80
avrdude: stk500_getsync() attempt 7 of 10: not in sync: resp=0x00
avrdude: stk500_getsync() attempt 8 of 10: not in sync: resp=0x98
avrdude: stk500_getsync() attempt 9 of 10: not in sync: resp=0x1e
avrdude: stk500_getsync() attempt 10 of 10: not in sync: resp=0x98
Error while burning bootloader.

This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.


Obviously something does not work.
The previous steps are indeed followed s requested.

Any help available ?

Thanks a lot !

Guillaume60

The Verbose messages are for the Bootloader problem:

Arduino: 1.6.12 (Mac OS X), Board: "ATtiny25/45/85, ATtiny85, Internal 8 MHz"

/Users/gtchekhov/Library/Arduino15/packages/arduino/tools/avrdude/6.0.1-arduino2/bin/avrdude -C/Users/gtchekhov/Library/Arduino15/packages/arduino/tools/avrdude/6.0.1-arduino2/etc/avrdude.conf -v -v -v -v -pattiny85 -cstk500v1 -P/dev/cu.usbmodemfd1431 -b19200 -e -Uefuse:w:0xff:m -Uhfuse:w:0xdf:m -Ulfuse:w:0xe2:m

avrdude: Version 6.0.1, compiled on Mar 19 2015 at 11:00:01
        Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
        Copyright (c) 2007-2009 Joerg Wunsch

        System wide configuration file is "/Users/gtchekhov/Library/Arduino15/packages/arduino/tools/avrdude/6.0.1-arduino2/etc/avrdude.conf"
        User configuration file is "/Users/gtchekhov/.avrduderc"
        User configuration file does not exist or is not a regular file, skipping

        Using Port                    : /dev/cu.usbmodemfd1431
        Using Programmer              : stk500v1
        Overriding Baud Rate          : 19200
avrdude: Send: 0 [30]   [20]
avrdude: Send: 0 [30]   [20]
avrdude: Send: 0 [30]   [20]
avrdude: Recv: ` [60]
avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0x60
avrdude: Send: 0 [30]   [20]
avrdude: Recv: . [98]
avrdude: stk500_getsync() attempt 2 of 10: not in sync: resp=0x98
avrdude: Send: 0 [30]   [20]
avrdude: Recv: . [e6]
avrdude: stk500_getsync() attempt 3 of 10: not in sync: resp=0xe6
avrdude: Send: 0 [30]   [20]
avrdude: Recv: . [18]
avrdude: stk500_getsync() attempt 4 of 10: not in sync: resp=0x18
avrdude: Send: 0 [30]   [20]
avrdude: Recv: . [98]
avrdude: stk500_getsync() attempt 5 of 10: not in sync: resp=0x98
avrdude: Send: 0 [30]   [20]
avrdude: Recv: . [1e]
avrdude: stk500_getsync() attempt 6 of 10: not in sync: resp=0x1e
avrdude: Send: 0 [30]   [20]
avrdude: Recv: . [e6]
avrdude: stk500_getsync() attempt 7 of 10: not in sync: resp=0xe6
avrdude: Send: 0 [30]   [20]
avrdude: Recv: . [80]
avrdude: stk500_getsync() attempt 8 of 10: not in sync: resp=0x80
avrdude: Send: 0 [30]   [20]
avrdude: Recv: . [98]
avrdude: stk500_getsync() attempt 9 of 10: not in sync: resp=0x98
avrdude: Send: 0 [30]   [20]
avrdude: Recv: . [80]
avrdude: stk500_getsync() attempt 10 of 10: not in sync: resp=0x80

avrdude done.  Thank you.

Error while burning bootloader.

dmjlambert

The previous steps are indeed followed s requested.
What does this mean?   Who's requested something?  

What are all the steps you are doing from the very beginning?  Include all the wiring, sketch loaded to the Uno, menu selections made as you go through the steps, etc.    Everything step by step.   Perhaps you are skipping a step.

Guillaume60

Hello,
I mean to say I went through all the steps as instructed by Arjun on his page www.hackster.io/arjun/programming-attiny85-with-arduino-uno-afb829.
The result is:
- the ATTiny appears in the list of boards and is ticked OK
- the Atttiny parameters are properly set
- I have 'Arduino as an ISP' ticked. Here, I still am not sure wether I should run the ArduinoISP sketch before trying to upload, or not. I tried to compile it and it sends loads of compiling error messages ! So if I should run it it would just fail. So I now am just keeping it as a parameter on the Tools list.

I I try burning the Bootloader I get the messages above, it seems the avrduderc file is somehow not good ? this is a configuration file, would it mean the downloaded file for ATTTiny85 are wrong or incomplete ? Don't know.
Thanks for your help.
Could it be because I run all this Arduino 1.6 from an 2009 iMac and not a recent Windows system ?

pert

You're supposed to upload the ArduinoISP sketch to the Uno. The reason for the compiling error messages is that you are trying to compile it for the ATtiny85. Please read https://www.arduino.cc/en/Tutorial/ArduinoISP.

Guillaume60

Works !
First I had to update my AVR library, I was running on old refs.
Then I had to run the ArduinoISP on the UNO board with its UNO settings; then change the settings to ATtiny ones and then burn successfully the Bootloader and so on.
Two steps .

Works fine.

Go Up