i tried to refash the attiny and connected the usbtiny of ladyada.. all leds keep lighting up in a seguence except the power led which is not flashing ... and the avrstudio gives an error msg saying that signature not read, could not program...

Views: 1089

Comment by dincer hepguler on February 15, 2009 at 10:25am
when i connected the avr programmer all leds lighted up in a sequence except the power led and the programmer refused to reflash the chip giving an error msg .. what is this supposed to be? any ideas?
Comment by Noth666 on February 16, 2009 at 10:35am
how is the board powered? Did the software recognize it at first and then not, or just not from the start?
Tried on another PC?

3D Robotics
Comment by Chris Anderson on February 16, 2009 at 10:42am
A few answers:

1) That flashing sequence is just the LED tester that Sparkfun loads on the board at the factory. It just means you haven't loaded the ArduPilot code yet. Has nothing to do with the Attiny.
2) Does AVR Studio work with the Adafruit AVR Programmer? I thought that there were some funky things you need to change first (described on the Adafruit site). Have you used it sucessfully on other chips?
2) When you're connecting to the Attiny the first time, you need to set your AVR programmer to a slower speed (1/4 of chip clock speed). Since the Attiny's CKDIV8 fuse is probably set, that means the chip is running at 1 Mhz and your AVR processor must be at 250Khz.
Comment by dincer hepguler on February 16, 2009 at 11:07am
i have both adafruit and avrisp2 programmers. adafruit one has some tricky setup for avrstudio compatibility but i managed to do that. i haven't used both programmers in any other chip before. this is my first attempt. due to the fact that avrisp2 doesn't power the board and another 5v regulated supply is needed, i thought adafruit one would be easier to use (it powers up the board from usb while programming). before flashing, i setted up the programmer speed to 230khz in order to match 1/4 speed of the chip and also saw that attiny45 is selected and read the chip signature, ok . then i opened the fuses tab and unchecked all the fuses except enisp. i clicked program and it gave an error msg saying that cannot enter program mode.. later i tried the same board (i have 2 boards) with the avrisp2 programmer but this time never read the chip... :(

3D Robotics
Comment by Chris Anderson on February 16, 2009 at 11:11am
Weird. So it's reading the Attiny signature okay, but won't enter program mode? I've never seen that before.

Can you try one more thing? Power the board with some other source (ESC, whatever) and try this again with the AVRISP2. If that works, it may be an issue with the Adafruit programmer, which I've always found a little flakey.
Comment by dincer hepguler on February 16, 2009 at 11:11am
not to mention, i tried the second board after that.. but this time both programmers didn't recognize the chip on the second board... kept on giving the same error msg 'can't enter program mode'.. now i have 2 boards that could not be programmed... weird isn't it.... :)
Comment by copperclad on February 16, 2009 at 11:23am
on my first board , i kept getting ERROR dialog boxes , and i could not read the signature , after trying about everything it could be , i tried reflowing the ICSP connector , the solder joints had all looked shiny , and all showed continuity to the proper legs of the Tiny , but hitting them again with the iron made all the difference in the world , now the board programs without a peep , as embarrassing as it is , i have to admit it was a cold solder joint :-(

3D Robotics
Comment by Chris Anderson on February 16, 2009 at 11:43am
I really think you should switch to the recommended AVRISP2 programmer. We've never used the Adafruit one with AVR Studio and I'm unable to help you with that. If you're still having trouble with the AVRISP2, we'll try to get to the bottom of it.


You need to be a member of DIY Drones to add comments!

Join DIY Drones

© 2018   Created by Chris Anderson.   Powered by

Badges  |  Report an Issue  |  Terms of Service