Atmega chip programmer.
Written by Nick Gammon.
Entered programming mode OK.
Signature = 0x1E 0x95 0x0F
Processor = ATmega328P
Flash memory size = 32768 bytes.
LFuse = 0x00
HFuse = 0xD9
EFuse = 0xFF
Lock byte = 0xFF
Clock calibration = 0xAE
Bootloader address = 0x7E00
Bootloader length = 512 bytes.
Type 'L' to use Lilypad (8 MHz) loader, or 'U' for Uno (16 MHz) loader ...
Using Uno Optiboot 16 MHz loader.
Type 'V' to verify, or 'G' to program the chip with the bootloader ...
Erasing chip ...
Writing bootloader ...
Committing page starting at 0x7E00
Committing page starting at 0x7E80
Committing page starting at 0x7F00
Committing page starting at 0x7F80
Written.
Verifying ...
Verification error at address 7E00. Got: 0xFF Expected: 0x11
Plus ninety nine more similar errors, then
396 verification error(s).
First 100 shown.
Type 'C' when ready to continue with another chip ...
Then I tried the board programmer code again and got 436 verification error(s).
I have tried doing these chips numerous times and was eventually successful with one chip but the other two "will not play ball"
Can anyone please suggest what I might be doing wrong or if Chinese chips from ebay may be of dubious quality, although I have not had any problems with any other components purchased there.
If correct, you have the "divide by 8" clock fuse set.
Try getting the latest version of my sketch, and comment out this line:
// for Atmega8, fix up fuse to run faster, then write to device
if (signatures [foundSig].timedWrites && lFuse != newlFuse) <--------------- remove this line
That fixes up the fuse and with luck will let it work.
Nick, I downloaded what I assume is your latest version from
commented out the line
// for Atmega8, fix up fuse to run faster, then write to device
// if (signatures [foundSig].timedWrites && lFuse != newlFuse)
But I still got
Atmega chip programmer.
Written by Nick Gammon.
Entered programming mode OK.
Signature = 0x1E 0x95 0x0F
Processor = ATmega328P
Flash memory size = 32768 bytes.
LFuse = 0x62
HFuse = 0xD9
EFuse = 0xFF
Lock byte = 0xFF
Clock calibration = 0xFF
Bootloader address = 0x7E00
Bootloader length = 512 bytes.
Type 'L' to use Lilypad (8 MHz) loader, or 'U' for Uno (16 MHz) loader ...
Using Uno Optiboot 16 MHz loader.
Type 'V' to verify, or 'G' to program the chip with the bootloader ...
Fixing fuse setting ...
Entered programming mode OK.
Erasing chip ...
Writing bootloader ...
Committing page starting at 0x7E00
Committing page starting at 0x7E80
Committing page starting at 0x7F00
Committing page starting at 0x7F80
Written.
Verifying ...
Verification error at address 7E00. Got: 0x13 Expected: 0x11
383 verification error(s).
First 100 shown.
So I tried to upload the board programmer code again and then I got
Atmega chip programmer.
Written by Nick Gammon.
Entered programming mode OK.
Signature = 0x1E 0xFF 0x0F
Unrecogized signature.
LFuse = 0x62
HFuse = 0xD9
EFuse = 0x00
Lock byte = 0xFF
Clock calibration = 0x1E
Type 'C' when ready to continue with another chip ...
Windows XP has been giving me some problems lately. Do you think it is possible that something within Windows is causing these problems
Sorry Nick, I think that I am misunderstanding you. You said
I got the latest code version and commented out the line as suggested, so what have I done wrong. I do not fully understand the process so I can only do what you suggest. Thank you for your help.