Hi everyone,
I'm working on an electronic Etch-a-Sketch game, using an ATMega165P. I was going to write in assembly using Atmel's AVR Studio, but I haven't even been able to read in the device id.
I have set the speed to as slow as possible, and that suggests to me that the programmer is at least working with USB - it sets the speed with no problems, and it can read that speed as well.
I get an error when it tries to initialize programming. I ran it on my computer with Linux and avrdude, and it also didn't work out. I get the classic "Initialization failed, rc=-1" problem, with not much else. The device ID isn't even printed, and if I use -F, it comes up as all 0s.
I know that avrdude won't work for the 165, but it should at least read the device id!
I have checked the board in detail with a multimeter, and it all seems fine. My on-board power is working out as expected. The MISO, MOSI, and SCK lines are dedicated to the programming header, which is an inch away from this QTFP package (that makes it a bit harder to swap out the chip!). There's a 10K pullup for reset, and when I check that pin with a multimeter while trying to talk to this chip, it does dip down to near-zero levels.
Is it the same sort of problem that I saw on this forum, where there isn't enough current at the buffers?
Is there anything else I should try?
Thanks in advance for any tips!
Custom board + kit programmer = no dice!
Moderators: adafruit_support_bill, adafruit
Please be positive and constructive with your questions and comments.
-
- Posts: 3
- Joined: Tue Mar 18, 2008 1:08 pm
Re: Custom board + kit programmer = no dice!
I tried shorting out the 1k5 resistors to no avail!ortron wrote: Is it the same sort of problem that I saw on this forum, where there isn't enough current at the buffers?
Here's the section of the schematic from Eagle that I made this all from:
In case that site doesn't let me source a picture externally, it's posted here.
I made the board straight from that, using a ratsnest, so that part is peachy. I know there isn't an LED signal from this programmer, but I put it on the board just in case
On the connector (while plugged to the board), MOSI and SCK are sitting at about 0.5V - should the buffer be taking this right to 0V?
Does this help narrow things down? It's a "fresh" AVR with internal osc. Thanks!
-
- Posts: 3
- Joined: Tue Mar 18, 2008 1:08 pm
That was exactly my problem I realized that was the issue a little later while taking a multimeter to the programmer, and I should have written back about it! I looked at the schematic once I realized that the Vcc pin of the buffer was floating, and I proceeded to feel like an idiot.ladyada wrote:make sure you have the jumper in place on the usbtinyisp since you are not providing power to it thru the icsp header
Thanks!
Please be positive and constructive with your questions and comments.