Society of Robots - Robot Forum

Electronics => Electronics => Topic started by: w_bwr on August 04, 2010, 05:26:23 AM

Title: Problem with ISP Programmer
Post by: w_bwr on August 04, 2010, 05:26:23 AM
I have home made ISP Programmer for AVR. It was working fine a few days back.
but now it is giving an error message which is:

write error at the address 00000000 byte written: 0F byte read: 9F
and some times

write error at the address 00000002 byte written: 14 byte read: 97

It reades the device signature correctly.
Device Signature: ATmega162, Flash 16 kb, EEPROM: 512 bytes



plz help???
Title: Re: Problem with ISP Programmer
Post by: Soeren on August 04, 2010, 04:51:03 PM
Hi,

Did you try this on more than one controller? (Might be your controller that went bust).
Title: Re: Problem with ISP Programmer
Post by: madsci1016 on August 04, 2010, 05:09:34 PM
is your battery dead? could be a power issue if your controller isn't powered by your programmer.
Title: Re: Problem with ISP Programmer
Post by: Chowsfe on August 04, 2010, 06:51:53 PM
Hi,
Maybe there is something wrong with your target board,check it
Title: Re: Problem with ISP Programmer
Post by: amando96 on August 05, 2010, 04:18:09 AM
The programmer is on a breadboard right? looks like it could just be a loose wire, with bad contacts, check the power lines and the programming wires.
Title: Re: Problem with ISP Programmer
Post by: Soeren on August 06, 2010, 09:23:57 PM
Hi,

The programmer is on a breadboard right? looks like it could just be a loose wire, with bad contacts, check the power lines and the programming wires.
Maybe, but the signature reads OK.
There is a consistent lack of bit7 and an intermittent lack of bit4 @ adr2 - sounds to me like stuck bits.
It may be the I/O lines if the signature reads out in a very different way (I don't think it does though).
Title: Re: Problem with ISP Programmer
Post by: w_bwr on August 06, 2010, 10:45:40 PM
The target Board is not on breadboard. Its a PCB, and was working fine a few weeks ago.
i guess that the controller is busted. I 'm out of town so can't replace it now. it 'll take some time!
Title: Re: Problem with ISP Programmer
Post by: Soeren on August 07, 2010, 03:03:12 AM
Hi,

Just to be sure... Remove the chip and reinsert it. Sometimes sockets develope a bad connection, especially if the two metals (socket and pin) is different, i.e. tin/gold or something similar.