use avr ISP
abees81 said:
up to now everything went well, except when I tried to write or erase hex data it gave me the messege: " Device missing or uknown Device (-24)"
You say everything went well, did you successfully program this device before?
Can you read the signature bytes?
I am suspecting that you misprogrammed the clock select fuses in which case a parallel programmer is needed to restore them. This is a very common thing that happens. Once this happens, you cannot communicate with the micro via the serial (SPI) method.
If you know someone who has a universal programmer like a Labtool, or a EMP10 ask them to erase the chip and reprogram the clock select fuses again.
OR
you can try connecting an oscillator (not a crystal) to xtal1 pin of the mega32. Then try erasing it a few times, and reprogram your clksel fuses
(see the datasheet for correct config) This ususally works for me. The frequency of the oscillator does not matter, I use whatever I have usually a 4MHz oscillator will do.
Now this might not be the problem, I am not sure. If your circuit is good, then I would try other software. For one bit of advice DON'T use PonyProg! I do not like that software. Its alot easier to just use the avrISP that comes on the atmel site.
I prefer avrdude. It works in windows and is a command line interface, so you can always change the config really easy.
**broken link removed**
Good Luck