cannot write to atmega32

I bought atmega32 header board and AVR-PG1B programmer from

sparkfun.

Then connected atmega32 to PC com1 with AVR-PG1B,

And powered atmega32 header board pin 10 (VCC) and 11 (GND)

with 5 voltage.

Now I tried to read it with PonyProg. I got lots of zeros.

(I doubt it really read, because I got the same thing even without power.)

But I can never write anything to it. I always got “write failed.”

Did I do something wrong? How can I program it?

Thanks a lot!

My question has been posted more than 2 months, but no one

answers. You must know how disappointed I am.

:cry: :oops: :x

Hi,

We have AVR-P40-8535 schematic on our web - see how Mega32 should be connected to may program it. It’s not just the power supply it must have Oscillator connected too (written in datasheets, no time to read?).

Tsvetan

btnewer:
And powered atmega32 header board pin 10 (VCC) and 11 (GND) with 5 voltage.

Pin 31 (GND) and pin 30 (AVCC) should also be connected. Do you have decoupling capacitors? Is pin 9 (/RESET) pulled up to VCC with a 0.01 uF capacitor to GND?

Don

donblake:

btnewer:
And powered atmega32 header board pin 10 (VCC) and 11 (GND) with 5 voltage.

Pin 31 (GND) and pin 30 (AVCC) should also be connected. Do you have decoupling capacitors? Is pin 9 (/RESET) pulled up to VCC with a 0.01 uF capacitor to GND?

Don

Thanks a lot!

Yes, pin 31 (GND) and pin 30 (AVCC) are connected to pin 11 (GND) and 10 (VCC). But I didn’t have decoupling capacitors. Should I connect pin 9 (/RESET) and VCC with a 0.01 uF capacitor to GND?

btnewer:
Should I connect pin 9 (/RESET) and VCC with a 0.01 uF capacitor to GND?

Don't connect pin 9 (/RESET) directly to VCC; use a 10K pullup resistor.

Don

I tried many times but still cannot make it work.

I doubt if it works. Can I return it?

Thanks.

Try other software. I also couldn’t get it to work with PonyProg but it worked with YAAP and AVRDUDE. Try YAAP first, then AVRDUDE.

Thanks Owen helped me testing my atmega32 header board.

Seems the problem is that I misused an ICSP programmer.

The atmega32 header board itself has a JTAG connetor.

Owen told me that I need to breat out the appropriate pins of

the atmega32 to make a connector for ICSP.

Is there somebody who can educate me?

Thanks a lot!