|
|||||||
![]() |
Forum Index > Projects > LED Pegboard and Matrix Projects | ||
USBTinyISP question |
|||
| | | Printable Version |
|
jamie | ||||||||
|
Hi, |
![]() Henchperson Status: offline
Registered: 02/26/08 |
||||||||
|
|||||||||
|
Windell | ||||||||
|
With screenshots? I'm not sure that we have one like that, but I'll walk you through it. PHP Formatted Code oskay$ make allavr-gcc -g -Wall -Os -mmcu=atmega164p -c -o peggy.o peggy.c peggy.c: In function 'main': peggy.c:246: warning: unused variable 'iteration' peggy.c:244: warning: unused variable 'j' avr-gcc -g -Wall -Os -mmcu=atmega164p -Wl,-Map,peggy.map -o peggy.elf peggy.o avr-objdump -h -S peggy.elf > peggy.lst avr-objcopy -j .text -j .data -O ihex peggy.elf peggy.hex avr-objcopy -j .text -j .data -O binary peggy.elf peggy.bin avr-objcopy -j .text -j .data -O srec peggy.elf peggy.srec oskay$
PHP Formatted Code [....] avrdude: verifying ... avrdude: 6623 bytes of flash verified avrdude: safemode: lfuse reads as E2 avrdude: safemode: hfuse reads as D9 avrdude: safemode: efuse reads as FF avrdude: safemode: Fuses OK avrdude done. Thank you.
Windell H. Oskay drwho(at)evilmadscientist.com http://www.evilmadscientist.com/ |
![]() Evil Scientist ![]() Status: offline
Registered: 06/15/06 |
||||||||
|
|||||||||
|
jamie | ||||||||
|
Thanks for the great instructions! I struggled until about 2am last night trying to get it to work. I keep getting "initialization failed, rc=-1" from avrdude when running "make install". I read through just about every thread in the ladyada.net forums and couldn't fix it. I'm going to get back at it tonight. |
![]() Henchperson Status: offline
Registered: 02/26/08 |
||||||||
|
|||||||||
|
Windell | ||||||||
|
Be sure and go through the "Help" page that I linked to at the end. Also see this thread where someone else has seen a similar problem-- apparently it helped to unplug the 10-pin cable! Windell H. Oskay drwho(at)evilmadscientist.com http://www.evilmadscientist.com/ |
![]() Evil Scientist ![]() Status: offline
Registered: 06/15/06 |
||||||||
|
|||||||||
|
jamie | ||||||||
|
I tried just about everything, including removing that cable. In case my 6 pin cable was bad, I also tried the ten pin cable on the 6 pin header. They mention that you use version 1.10 USBTiny drivers for the newer versions of avrdude, and 1.12 versions for older versions, or something like that. I've swapped drivers so many times, applied a patch they have there, tried it on 2 different PCs, tried it with the board powered by itself, tried it with the programmer powering the board, etc.... |
![]() Henchperson Status: offline
Registered: 02/26/08 |
||||||||
|
|||||||||
|
Windell | ||||||||
|
I do suspect that the problem is in the programmer. For the other one that wasn't working (in the other thread), I took my programmer over there one day and actually tried it out-- I was able to program it. So there's something going wrong with *some* of these programmers on *some* of these boards... it's as though some spec is only barely being met. You certainly could try programming the chip on its own-- it would be interesting if that helps, but there is no reason that it should not work to program in system as well. Windell H. Oskay drwho(at)evilmadscientist.com http://www.evilmadscientist.com/ |
![]() Evil Scientist ![]() Status: offline
Registered: 06/15/06 |
||||||||
|
|||||||||
|
jamie | ||||||||
|
That's great if you could reproduce it and figure out how to fix it. If I get it working tonight I'll let you know. It's funny that this part is the hardest. You would think either the soldering of the kit, or the actual programming would be more difficult. |
![]() Henchperson Status: offline
Registered: 02/26/08 |
||||||||
|
|||||||||
|
Windell | ||||||||
|
I have been able to reproduce the problem and solve it in two different ways-- so a solution exists, if not a beautiful one. Windell H. Oskay drwho(at)evilmadscientist.com http://www.evilmadscientist.com/ |
![]() Evil Scientist ![]() Status: offline
Registered: 06/15/06 |
||||||||
|
|||||||||
|
bbum | ||||||||
|
Oooh... can't wait for details on this! |
![]() Henchperson Status: offline
Registered: 01/23/08 |
||||||||
|
|||||||||
|
jamie | ||||||||
|
Hey bbum, |
![]() Henchperson Status: offline
Registered: 02/26/08 |
||||||||
|
|||||||||
|
bbum | ||||||||
Quote by: jamieHey bbum,
![]() It worked great for me...not sure if that will be the official solution or not but I'm up and running. ![]() BTW....thanks for donating the animation code you posted in one of your other threads. I used it as the basis to program my Pac-Man ghost sign. I'm writing a final post about it on my site right now...should be up in a few minutes: http://www.noiselandarcade.net[/p][/QUOTE Awesome! I'm glad the code was of use. If you based it on the latest from the svn repository, it uses the 'off' switch as a mode switch between animated, solid on, and off. Could be easily modified to not light up the rows of one frame in your case. The code also demonstrates one means of de-bouncing a switch; probably not the best way, but -- hey -- it works! That is a really neat sign. I was thinking I might have to toss together a Peggy w/a little semi-animated Robotron dude... b.bum |
![]() Henchperson Status: offline
Registered: 01/23/08 |
||||||||
|
|||||||||
|
jamie | ||||||||
|
Here it is working |
![]() Henchperson Status: offline
Registered: 02/26/08 |
||||||||
|
|||||||||
|
bbum | ||||||||
|
I dropped a couple of zero ohm resistors in, as per the instructions, and the programmer works flawlessly with the board that was previously problematic!! Thank you!! While I had the programmer opened up,I also hacked in a switch to make it easy to toggle powered vs. unpowered mode. http://www.flickr.com/photos/bbum/2329894953 |
![]() Henchperson Status: offline
Registered: 01/23/08 |
||||||||
|
|||||||||
|
Windell | ||||||||
|
Fantastic! I'm really glad that we were able to find a solution that works. And your switch is a very good idea. (Right now I have two programmers, one with the jumper, one without. Your solution is better.) Windell H. Oskay drwho(at)evilmadscientist.com http://www.evilmadscientist.com/ |
![]() Evil Scientist ![]() Status: offline
Registered: 06/15/06 |
||||||||
|
|||||||||
|
|
| All times are PDT. The time is now 06:02 AM. |
|
|
Octolively
Interactive LED kits
Meggy Jr RGB
LED matrix game
development kit.
Business-card sized
AVR target boards
Peggy 2
LED Pegboard kits