Offline
Jr. Member
Karma: 0
Posts: 67
|
 |
« Reply #15 on: December 21, 2011, 06:21:19 pm » |
I was able to burn the bootloader (for 8MHZ option) using the method of holding the reset button, as described here: http://www.arduino.cc/playground/Main/DisablingAutoResetOnSerialConnectionHowever, I cannot upload the Blink example after that. I have first upload again the ArduinoISP sketch... error= avrdude: please define PAGEL and BS2 signals in the configuration file for part ATtiny85 avrdude: please define PAGEL and BS2 signals in the configuration file for part ATtiny85 avrdude: stk500_paged_write(): (a) protocol error, expect=0x14, resp=0x64 avrdude: stk500_cmd(): programmer is out of sync If I am quick enough for setting 8Mhz... it is very strange it does not work for the Blink example... I feel extremely tired.... More tomorrow..
|
|
|
|
« Last Edit: December 21, 2011, 06:24:03 pm by ProfePaco »
|
Logged
|
|
|
|
|
Romania
Offline
Full Member
Karma: 0
Posts: 174
|
 |
« Reply #16 on: December 22, 2011, 03:44:28 am » |
why don't you add an 120R resistor between reset and +5V or a capacitor between reset and GND ?
|
|
|
|
|
Logged
|
|
|
|
|
Offline
Jr. Member
Karma: 0
Posts: 67
|
 |
« Reply #17 on: December 22, 2011, 03:47:29 am » |
why don't you add an 120R resistor between reset and +5V or a capacitor between reset and GND ?
As I posted before, I have add a capacitor, remove it, with no success. I will try resistor. As a curiosity, when i plug the capacitor, and the board is powered, the board resets itself... 
|
|
|
|
|
Logged
|
|
|
|
|
Rural Ozarka
Offline
Newbie
Karma: 0
Posts: 33
Priest of the Screaming Electron
|
 |
« Reply #18 on: December 22, 2011, 05:27:50 am » |
What I found to work, 10k resistor between attiny RST and +v AND 22nF cap between attiny RST and Arduino reset pin. No modification/parts added to arduino. Don't remember where I found these instructions. Let us know.
|
|
|
|
|
Logged
|
Entrepreneurship, Arduino, Ham Radio & General Wannabe Hackery http://insapio.com/Twtr: @mltd_alexander
|
|
|
|
Offline
Jr. Member
Karma: 0
Posts: 67
|
 |
« Reply #19 on: December 22, 2011, 12:43:57 pm » |
What I found to work, 10k resistor between attiny RST and +v AND 22nF cap between attiny RST and Arduino reset pin. No modification/parts added to arduino. Don't remember where I found these instructions. Let us know.
I have used your method. It does not work  I have used a 120K resistor.... it does not work....  What i can do is burning the bootloader to have 8MHz option. I can do this with the 120 resistor, or holding the reset button. Why can I set the fuses up, with no errors, but I cannot upload the Blink example? This is extremely frustrating...
|
|
|
|
« Last Edit: December 22, 2011, 07:05:17 pm by ProfePaco »
|
Logged
|
|
|
|
|
Offline
Jr. Member
Karma: 0
Posts: 67
|
 |
« Reply #20 on: December 22, 2011, 07:20:33 pm » |
I think that with the resistor I have disconnected the auto reset. Led associated to pin 13 does not blink during upload, and now the error is different:
Binary sketch size: 768 bytes (of a 8192 byte maximum) avrdude: please define PAGEL and BS2 signals in the configuration file for part ATtiny85 avrdude: please define PAGEL and BS2 signals in the configuration file for part ATtiny85
avrdude: stk500_paged_write(): (a) protocol error, expect=0x14, resp=0x64 avrdude: stk500_cmd(): protocol error
any idea about the meaning of this error?
|
|
|
|
|
Logged
|
|
|
|
|
Global Moderator
Dallas
Offline
Shannon Member
Karma: 118
Posts: 10167
|
 |
« Reply #21 on: December 23, 2011, 12:48:22 am » |
I think that with the resistor I have disconnected the auto reset. Led associated to pin 13 does not blink during upload, and now the error is different: Or, the Arudino ISP sketch has been erased. Connect an LED to pin 9. When the ArduinoISP sketch is idle, does the LED on pin 9 slowly get brighter then dimmer? When you try to upload to the ATtiny, does the LED on pin 9 blink?
|
|
|
|
|
Logged
|
|
|
|
|
Offline
Jr. Member
Karma: 0
Posts: 67
|
 |
« Reply #22 on: December 23, 2011, 05:18:48 am » |
I think that with the resistor I have disconnected the auto reset. Led associated to pin 13 does not blink during upload, and now the error is different: Or, the Arudino ISP sketch has been erased. Connect an LED to pin 9. When the ArduinoISP sketch is idle, does the LED on pin 9 slowly get brighter then dimmer? When you try to upload to the ATtiny, does the LED on pin 9 blink? Thanks for your interest. I connected the led. When ArduinoISP is idles, yes, LED on pin 9 slowly gets brighter then dimmer. If I upload again ArduinoISP skecth I can see the led blinking. That's good. However, when I try to upload the Blink example, Led does not blink, stays on. Then an error is written, and the led gets brighter and dimmer again, so the ArduinoISP sketch is not erased, but the Blink example is not uploaded. So I think that the situation now is: I have stopped the auto reset, but I cannot upload the blink example to the ATtiny85. I have used another Attin85, with the same result. Yesterday i tried arduino nano with no success. At this pointy I think I will never do it.... 
|
|
|
|
|
Logged
|
|
|
|
|
Rural Ozarka
Offline
Newbie
Karma: 0
Posts: 33
Priest of the Screaming Electron
|
 |
« Reply #23 on: December 23, 2011, 06:56:13 am » |
Don't get discouraged. This took me a week (or two) to get working. What I posted wasn't my actual setup anyway, ( http://insapio.files.wordpress.com/2011/12/breaduinoprogrammingattiny85.png is, however.) I was getting the same error as you for at least a week. You might need to erase your Uno, disassemble your setup, and try out some other projects for a few days. Come back to it fresh. I dunno why, but that always helps me.
|
|
|
|
|
Logged
|
Entrepreneurship, Arduino, Ham Radio & General Wannabe Hackery http://insapio.com/Twtr: @mltd_alexander
|
|
|
|
Rural Ozarka
Offline
Newbie
Karma: 0
Posts: 33
Priest of the Screaming Electron
|
 |
« Reply #24 on: December 23, 2011, 07:00:28 am » |
I also got to the point where I completely deleted the IDE, reinstalled, added back the tiny cores (the new 1.0 cores of course) and gave it another go. I'd done an inordinate amount of fiddlin' with my boards.txt and the avrdude.conf files, so ymmv.
|
|
|
|
|
Logged
|
Entrepreneurship, Arduino, Ham Radio & General Wannabe Hackery http://insapio.com/Twtr: @mltd_alexander
|
|
|
|
Offline
Jr. Member
Karma: 0
Posts: 67
|
 |
« Reply #25 on: December 23, 2011, 08:36:26 am » |
|
|
|
|
|
Logged
|
|
|
|
|
Rural Ozarka
Offline
Newbie
Karma: 0
Posts: 33
Priest of the Screaming Electron
|
 |
« Reply #26 on: December 23, 2011, 09:17:53 am » |
Ha, no problem man, I've got infinite free time! But yeah, one of those should work out of the box. Although, so should the ArduinoISP 
|
|
|
|
|
Logged
|
Entrepreneurship, Arduino, Ham Radio & General Wannabe Hackery http://insapio.com/Twtr: @mltd_alexander
|
|
|
|
Global Moderator
Dallas
Offline
Shannon Member
Karma: 118
Posts: 10167
|
 |
« Reply #27 on: December 24, 2011, 03:42:20 am » |
I have good news, annoying news, and good news. First the good news. I've reproduced the problem and I know what is wrong. Now for the annoying news. Arduino 1.0 and the ArduinoISP sketch are not compatible. There are some problems with the ArduinoISP sketch and Arduino 1.0 surfaces at least one of those problems. And, finally, the good news. I have an update for the ArduinoISP sketch that works correctly with Arduino 1.0. If you'd like a copy, send me a Personal Message with your email address.
|
|
|
|
|
Logged
|
|
|
|
|
Offline
Jr. Member
Karma: 0
Posts: 67
|
 |
« Reply #28 on: December 24, 2011, 03:57:17 am » |
I have good news, annoying news, and good news. First the good news. I've reproduced the problem and I know what is wrong. Now for the annoying news. Arduino 1.0 and the ArduinoISP sketch are not compatible. There are some problems with the ArduinoISP sketch and Arduino 1.0 surfaces at least one of those problems. And, finally, the good news. I have an update for the ArduinoISP sketch that works correctly with Arduino 1.0. If you'd like a copy, send me a Personal Message with your email address.  pm sent Thanks a lot!!!
|
|
|
|
|
Logged
|
|
|
|
|
Global Moderator
Dallas
Offline
Shannon Member
Karma: 118
Posts: 10167
|
 |
« Reply #29 on: December 24, 2011, 04:12:50 am » |
Email sent.
|
|
|
|
|
Logged
|
|
|
|
|
|