Burning boot loader to TQFP32 chips

I did this a few years ago, and didn’t have any trouble. Now something bad seems to have happened.

I followed gammon’s instructions using his Atmega chip programmer sketch. Gammon Forum : Electronics : Microprocessors : Atmega bootloader programmer I have my TQFP32 adapter connected to my UNO with gammon’s Atmega chip programmer sketch loaded on it. I did all 25 chips, and I thought they were working. I’d get the messages right. It would ask me to type ‘L’ or ‘U’, and I chose ‘U’, because I have a 16Mhz crystal connected. I got the message that it worked ok, so I went ahead and did them all. But now, I can’t upload a sketch to them via the arduino serial com, so I reconnected my wiring again and used gammon’s board detector sketch which gave me:

Atmega chip detector.
Written by Nick Gammon.
Version 1.18
Compiled on Jun 6 2016 at 15:02:25 with Arduino IDE 10607.
Attempting to enter ICSP programming mode ...
Entered programming mode OK.
Signature = 0x1E 0x95 0x0F
Processor = ATmega328P
Flash memory size = 32768 bytes.
LFuse = 0xFF
HFuse = 0xDE
EFuse = 0xFD
Lock byte = 0xFF
Clock calibration = 0x8C
Bootloader in use: Yes
EEPROM preserved through erase: No
Watchdog timer always on: No
Bootloader is 4096 bytes starting at 7000

Bootloader:

7000: 0x00 0x00 0x01 0x01 0x02 0x02 0x03 0x03 0x04 0x04 0x05 0x05 0x06 0x06 0x07 0x07
7010: 0x08 0x08 0x09 0x09 0x0A 0x0A 0x0B 0x0B 0x0C 0x0C 0x0D 0x0D 0x0E 0x0E 0x0F 0x0F
7020: 0x10 0x10 0x11 0x11 0x12 0x12 0x13 0x13 0x14 0x14 0x15 0x15 0x16 0x16 0x17 0x17
7030: 0x18 0x18 0x19 0x19 0x1A 0x1A 0x1B 0x1B 0x1C 0x1C 0x1D 0x1D 0x1E 0x1E 0x1F 0x1F
7040: 0x20 0x20 0x21 0x21 0x22 0x22 0x23 0x23 0x24 0x24 0x25 0x25 0x26 0x26 0x27 0x27
7050: 0x28 0x28 0x29 0x29 0x2A 0x2A 0x2B 0x2B 0x2C 0x2C 0x2D 0x2D 0x2E 0x2E 0x2F 0x2F
7060: 0x30 0x30 0x31 0x31 0x32 0x32 0x33 0x33 0x34 0x34 0x35 0x35 0x36 0x36 0x37 0x37
7070: 0x38 0x38 0x39 0x39 0x3A 0x3A 0x3B 0x3B 0x3C 0x3C 0x3D 0x3D 0x3E 0x3E 0x3F 0x3F
7080: 0x40 0x40 0x41 0x41 0x42 0x42 0x43 0x43 0x44 0x44 0x45 0x45 0x46 0x46 0x47 0x47
7090: 0x48 0x48 0x49 0x49 0x4A 0x4A 0x4B 0x4B 0x4C 0x4C 0x4D 0x4D 0x4E 0x4E 0x4F 0x4F
70A0: 0x50 0x50 0x51 0x51 0x52 0x52 0x53 0x53 0x54 0x54 0x55 0xAA 0x56 0x56 0x57 0x57
70B0: 0x58 0x58 0x59 0x59 0x5A 0x5A 0x5B 0x5B 0x5C 0x5C 0x5D 0x5D 0x5E 0x5E 0x5F 0x5F
70C0: 0x60 0x60 0x61 0x61 0x62 0x62 0x63 0x63 0x64 0x64 0x65 0x65 0x66 0x66 0x67 0x67
70D0: 0x68 0x68 0x69 0x69 0x6A 0x6A 0x6B 0x6B 0x6C 0x6C 0x6D 0x6D 0x6E 0x6E 0x6F 0x6F
70E0: 0x70 0x70 0x71 0x71 0x72 0x72 0x73 0x73 0x74 0x74 0x75 0x75 0x76 0x76 0x77 0x77
70F0: 0x78 0x78 0x79 0x79 0x7A 0x7A 0x7B 0x7B 0x7C 0x7C 0x7D 0x7D 0x7E 0x7E 0x7F 0x7F
7100: 0x80 0x80 0x81 0x02 0x82 0x82 0x06 0x83 0x84 0x08 0x85 0x85 0x86 0x86 0x87 0x87
7110: 0x88 0x88 0x89 0x12 0x8A 0x8A 0x16 0x8B 0x8C 0x8C 0x8D 0x8D 0x8E 0x8E 0x8F 0x8F
7120: 0x90 0x90 0x91 0x22 0x92 0x92 0x93 0x93 0x94 0x94 0x95 0x95 0x96 0x96 0x97 0x97
7130: 0x30 0x98 0x99 0x99 0x9A 0x9A 0x9B 0x9B 0x9C 0x9C 0x9D 0x9D 0x9E 0x3C 0x9F 0x9F
7140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0x02 0x03 0x03 0x04 0x04 0x05 0x05 0x06 0x06 0x07 0x07
7210: 0x08 0x08 0x09 0x09 0x0A 0x0A 0x0B 0x0B 0x0C 0x0C 0x0D 0x0D 0x0E 0x0E 0x0F 0x0F
7220: 0x10 0x10 0x11 0x11 0x12 0x12 0x13 0x13 0x14 0x14 0x15 0x15 0x16 0x16 0x17 0x17
7230: 0x18 0x18 0x19 0x19 0x1A 0x1A 0x1B 0x1B 0x1C 0x1C 0x1D 0x1D 0x1E 0x1E 0x1F 0x1F
7240: 0x20 0x20 0x21 0x21 0x22 0x22 0x23 0x23 0x24 0x24 0x25 0x25 0x26 0x26 0x27 0x27
7250: 0x28 0x28 0x29 0x29 0x2A 0x2A 0x2B 0x2B 0x2C 0x2C 0x2D 0x2D 0x2E 0x2E 0x2F 0x2F
7260: 0x30 0x30 0x31 0x31 0x32 0x32 0x33 0x33 0x34 0x34 0x35 0x35 0x36 0x36 0x37 0x37
7270: 0x38 0x38 0x39 0x39 0x3A 0x3A 0x3B 0x3B 0x3C 0x3C 0x3D 0x3D 0x3E 0x3E 0x3F 0x3F
.....

MD5 sum of bootloader = 0x61 0x0F 0xF9 0x90 0x47 0xA5 0x15 0xFC 0xDD 0xE2 0x01 0xD1 0x11 0x03 0xA3 0x67
Bootloader MD5 sum not known.

First 256 bytes of program memory:

0: 0x00 0x00 0x01 0x01 0x02 0x02 0x03 0x03 0x04 0x04 0x05 0x05 0x06 0x06 0x07 0x07
10: 0x08 0x08 0x09 0x09 0x0A 0x0A 0x0B 0x0B 0x0C 0x0C 0x0D 0x0D 0x0E 0x0E 0x0F 0x0F
20: 0x10 0x10 0x11 0x11 0x12 0x12 0x13 0x13 0x14 0x14 0x15 0x15 0x16 0x16 0x17 0x17
30: 0x18 0x18 0x19 0x19 0x1A 0x1A 0x1B 0x1B 0x1C 0x1C 0x1D 0x1D 0x1E 0x1E 0x1F 0x1F
40: 0x20 0x20 0x21 0x21 0x22 0x22 0x23 0x23 0x24 0x24 0x25 0x25 0x26 0x26 0x27 0x27
50: 0x28 0x28 0x29 0x29 0x2A 0x2A 0x2B 0x2B 0x2C 0x2C 0x2D 0x2D 0x2E 0x2E 0x2F 0x2F
60: 0x30 0x30 0x31 0x31 0x32 0x32 0x33 0x33 0x34 0x34 0x35 0x35 0x36 0x36 0x37 0x37
70: 0x38 0x38 0x39 0x39 0x3A 0x3A 0x3B 0x3B 0x3C 0x3C 0x3D 0x3D 0x3E 0x3E 0x3F 0x3F
80: 0x40 0x40 0x41 0x41 0x42 0x42 0x43 0x43 0x44 0x44 0x45 0x45 0x46 0x46 0x47 0x47
90: 0x48 0x48 0x49 0x49 0x4A 0x4A 0x4B 0x4B 0x4C 0x4C 0x4D 0x4D 0x4E 0x4E 0x4F 0x4F
A0: 0x50 0x50 0x51 0x51 0x52 0x52 0x53 0x53 0x54 0x54 0x55 0x55 0x56 0x56 0x57 0x57
B0: 0x58 0x58 0x59 0x59 0x5A 0x5A 0x5B 0x5B 0x5C 0x5C 0x5D 0x5D 0x5E 0x5E 0x5F 0x5F
C0: 0x60 0x60 0x61 0x61 0x62 0x62 0x63 0x63 0x64 0x64 0x65 0x65 0x66 0x66 0x67 0x67
D0: 0x68 0x68 0x69 0x69 0x6A 0x6A 0x6B 0x6B 0x6C 0x6C 0x6D 0x6D 0x6E 0x6E 0x6F 0x6F
E0: 0x70 0x70 0x71 0x71 0x72 0x72 0x73 0x73 0x74 0x74 0x75 0x75 0x76 0x76 0x77 0x77
F0: 0x78 0x78 0x79 0x79 0x7A 0x7A 0x7B 0x7B 0x7C 0x7C 0x7D 0x7D 0x7E 0x7E 0x7F 0x7F

Programming mode off.

Is reset shorted to ground by any chance? Check with DMM, make sure it's at 5v while the board is running.

It appears to be reading garbage data from the chip (note how the numbers are counting upwards)...

ps. I tried using the Atmega chip programmer again, and started out ok, with this message, but then it wouldn't let me redo it when I chose 'U' again...

Atmega chip programmer.
Written by Nick Gammon.
Version 1.36
Compiled on Jun 6 2016 at 15:20:44 with Arduino IDE 10607.
Attempting to enter ICSP programming mode ...
Entered programming mode OK.
Signature = 0x1E 0x95 0x0F
Processor = ATmega328P
Flash memory size = 32768 bytes.
LFuse = 0xFF
HFuse = 0xDE
EFuse = 0xFD
Lock byte = 0xFF
Clock calibration = 0x26
Type 'L' to use Lilypad (8 MHz) loader, or 'U' for Uno (16 MHz) loader ...

When I press 'U', I get all this error:

Using Uno Optiboot 16 MHz loader.
Bootloader address = 0x7E00
Bootloader length = 512 bytes.
Type 'Q' to quit, 'V' to verify, or 'G' to program the chip with the bootloader ...
Fixing low fuse setting ...
Programming mode off.
Attempting to enter ICSP programming mode ...
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: 0x00 Expected: 0x11
Verification error at address 7E01. Got: 0x00 Expected: 0x24
Verification error at address 7E02. Got: 0x01 Expected: 0x84
Verification error at address 7E03. Got: 0x01 Expected: 0xB7
Verification error at address 7E04. Got: 0x02 Expected: 0x14
Verification error at address 7E05. Got: 0x02 Expected: 0xBE
Verification error at address 7E06. Got: 0x03 Expected: 0x81
Verification error at address 7E07. Got: 0x03 Expected: 0xFF
Verification error at address 7E08. Got: 0x04 Expected: 0xF0
Verification error at address 7E09. Got: 0x04 Expected: 0xD0
Verification error at address 7E0A. Got: 0x05 Expected: 0x85
Verification error at address 7E0B. Got: 0x0A Expected: 0xE0
Verification error at address 7E0C. Got: 0x06 Expected: 0x80
Verification error at address 7E0D. Got: 0x06 Expected: 0x93
Verification error at address 7E0E. Got: 0x07 Expected: 0x81
Verification error at address 7E0F. Got: 0x07 Expected: 0x00
Verification error at address 7E10. Got: 0x08 Expected: 0x82
Verification error at address 7E11. Got: 0x08 Expected: 0xE0
Verification error at address 7E12. Got: 0x12 Expected: 0x80
Verification error at address 7E13. Got: 0x09 Expected: 0x93
Verification error at address 7E14. Got: 0x0A Expected: 0xC0
Verification error at address 7E15. Got: 0x0A Expected: 0x00
Verification error at address 7E16. Got: 0x0B Expected: 0x88
Verification error at address 7E17. Got: 0x0B Expected: 0xE1
Verification error at address 7E18. Got: 0x0C Expected: 0x80
Verification error at address 7E19. Got: 0x18 Expected: 0x93
Verification error at address 7E1A. Got: 0x0D Expected: 0xC1
Verification error at address 7E1B. Got: 0x0D Expected: 0x00
Verification error at address 7E1C. Got: 0x0E Expected: 0x86
Verification error at address 7E1D. Got: 0x0E Expected: 0xE0
Verification error at address 7E1E. Got: 0x0F Expected: 0x80
Verification error at address 7E1F. Got: 0x0F Expected: 0x93
Verification error at address 7E20. Got: 0x10 Expected: 0xC2
Verification error at address 7E21. Got: 0x10 Expected: 0x00
Verification error at address 7E22. Got: 0x11 Expected: 0x80
Verification error at address 7E23. Got: 0x11 Expected: 0xE1
Verification error at address 7E24. Got: 0x12 Expected: 0x80
Verification error at address 7E25. Got: 0x12 Expected: 0x93
Verification error at address 7E26. Got: 0x13 Expected: 0xC4
Verification error at address 7E27. Got: 0x13 Expected: 0x00
Verification error at address 7E28. Got: 0x14 Expected: 0x8E
Verification error at address 7E29. Got: 0x14 Expected: 0xE0
Verification error at address 7E2A. Got: 0x15 Expected: 0xC9
Verification error at address 7E2B. Got: 0x15 Expected: 0xD0
Verification error at address 7E2C. Got: 0x16 Expected: 0x25
Verification error at address 7E2D. Got: 0x16 Expected: 0x9A
Verification error at address 7E2E. Got: 0x17 Expected: 0x86
Verification error at address 7E2F. Got: 0x17 Expected: 0xE0
Verification error at address 7E30. Got: 0x18 Expected: 0x20
Verification error at address 7E31. Got: 0x18 Expected: 0xE3
Verification error at address 7E32. Got: 0x19 Expected: 0x3C
Verification error at address 7E33. Got: 0x19 Expected: 0xEF
Verification error at address 7E34. Got: 0x1A Expected: 0x91
Verification error at address 7E35. Got: 0x1A Expected: 0xE0
Verification error at address 7E36. Got: 0x1B Expected: 0x30
Verification error at address 7E37. Got: 0x1B Expected: 0x93
Verification error at address 7E38. Got: 0x1C Expected: 0x85
Verification error at address 7E39. Got: 0x1C Expected: 0x00
Verification error at address 7E3A. Got: 0x1D Expected: 0x20
Verification error at address 7E3B. Got: 0x1D Expected: 0x93
Verification error at address 7E3C. Got: 0x1E Expected: 0x84
Verification error at address 7E3D. Got: 0x3C Expected: 0x00
Verification error at address 7E3E. Got: 0x1F Expected: 0x96
Verification error at address 7E3F. Got: 0x1F Expected: 0xBB
Verification error at address 7E40. Got: 0x20 Expected: 0xB0
Verification error at address 7E41. Got: 0x20 Expected: 0x9B
Verification error at address 7E42. Got: 0x21 Expected: 0xFE
Verification error at address 7E43. Got: 0x21 Expected: 0xCF
Verification error at address 7E44. Got: 0x22 Expected: 0x1D
Verification error at address 7E45. Got: 0x22 Expected: 0x9A
Verification error at address 7E46. Got: 0x23 Expected: 0xA8
Verification error at address 7E47. Got: 0x23 Expected: 0x95
Verification error at address 7E48. Got: 0x24 Expected: 0x81
Verification error at address 7E49. Got: 0x24 Expected: 0x50
Verification error at address 7E4A. Got: 0x25 Expected: 0xA9
Verification error at address 7E4B. Got: 0x25 Expected: 0xF7
Verification error at address 7E4C. Got: 0x26 Expected: 0xCC
Verification error at address 7E4D. Got: 0x26 Expected: 0x24
Verification error at address 7E4E. Got: 0x27 Expected: 0xDD
Verification error at address 7E4F. Got: 0x27 Expected: 0x24
Verification error at address 7E50. Got: 0x28 Expected: 0x88
Verification error at address 7E51. Got: 0x28 Expected: 0x24
Verification error at address 7E52. Got: 0x29 Expected: 0x83
Verification error at address 7E53. Got: 0x29 Expected: 0x94
Verification error at address 7E54. Got: 0x2A Expected: 0xB5
Verification error at address 7E55. Got: 0x2A Expected: 0xE0
Verification error at address 7E56. Got: 0x2B Expected: 0xAB
Verification error at address 7E57. Got: 0x2B Expected: 0x2E
Verification error at address 7E58. Got: 0x2C Expected: 0xA1
Verification error at address 7E59. Got: 0x2C Expected: 0xE1
Verification error at address 7E5A. Got: 0x2D Expected: 0x9A
Verification error at address 7E5B. Got: 0x2D Expected: 0x2E
Verification error at address 7E5C. Got: 0x2E Expected: 0xF3
Verification error at address 7E5D. Got: 0x2E Expected: 0xE0
Verification error at address 7E5E. Got: 0x2F Expected: 0xBF
Verification error at address 7E5F. Got: 0x2F Expected: 0x2E
Verification error at address 7E60. Got: 0x30 Expected: 0xA2
Verification error at address 7E61. Got: 0x30 Expected: 0xD0
Verification error at address 7E62. Got: 0x31 Expected: 0x81
Verification error at address 7E63. Got: 0x31 Expected: 0x34
Verification error at address 7E64. Got: 0x32 Expected: 0x61
507 verification error(s).
First 100 shown.
Programming mode off.
Type 'C' when ready to continue with another chip ...

I checked the reset pin with my meter, it's not shorted to ground.

I've tried several more chips, they give me this error:

tmega chip programmer.
Written by Nick Gammon.
Version 1.36
Compiled on Jun 6 2016 at 15:20:44 with Arduino IDE 10607.
Attempting to enter ICSP programming mode ...
Entered programming mode OK.
Signature = 0x1E 0x95 0x0F
Processor = ATmega328P
Flash memory size = 32768 bytes.
LFuse = 0xFF
HFuse = 0xDE
EFuse = 0xFD
Lock byte = 0xDE
Clock calibration = 0x00
Type 'L' to use Lilypad (8 MHz) loader, or 'U' for Uno (16 MHz) loader ...
Using Uno Optiboot 16 MHz loader.
Bootloader address = 0x7E00
Bootloader length = 512 bytes.
Type 'Q' to quit, 'V' to verify, or 'G' to program the chip with the bootloader ...
Fixing low fuse setting ...
Programming mode off.
Attempting to enter ICSP programming mode ...
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: 0x00 Expected: 0x11
Verification error at address 7E01. Got: 0x00 Expected: 0x24
Verification error at address 7E02. Got: 0x01 Expected: 0x84
Verification error at address 7E03. Got: 0x01 Expected: 0xB7
Verification error at address 7E04. Got: 0x02 Expected: 0x14
Verification error at address 7E05. Got: 0x02 Expected: 0xBE
Verification error at address 7E06. Got: 0x03 Expected: 0x81
Verification error at address 7E07. Got: 0x03 Expected: 0xFF
Verification error at address 7E08. Got: 0x04 Expected: 0xF0
Verification error at address 7E09. Got: 0x04 Expected: 0xD0
Verification error at address 7E0A. Got: 0x05 Expected: 0x85
Verification error at address 7E0B. Got: 0x05 Expected: 0xE0
Verification error at address 7E0C. Got: 0x06 Expected: 0x80
Verification error at address 7E0D. Got: 0x06 Expected: 0x93
Verification error at address 7E0E. Got: 0x07 Expected: 0x81
Verification error at address 7E0F. Got: 0x07 Expected: 0x00
Verification error at address 7E10. Got: 0x08 Expected: 0x82
Verification error at address 7E11. Got: 0x08 Expected: 0xE0
Verification error at address 7E12. Got: 0x09 Expected: 0x80
Verification error at address 7E13. Got: 0x09 Expected: 0x93
Verification error at address 7E14. Got: 0x0A Expected: 0xC0
Verification error at address 7E15. Got: 0x0A Expected: 0x00
Verification error at address 7E16. Got: 0x0B Expected: 0x88
Verification error at address 7E17. Got: 0x0B Expected: 0xE1
Verification error at address 7E18. Got: 0x0C Expected: 0x80
Verification error at address 7E19. Got: 0x0C Expected: 0x93
Verification error at address 7E1A. Got: 0x0D Expected: 0xC1
Verification error at address 7E1B. Got: 0x0D Expected: 0x00
Verification error at address 7E1C. Got: 0x0E Expected: 0x86
Verification error at address 7E1D. Got: 0x0E Expected: 0xE0
Verification error at address 7E1E. Got: 0x0F Expected: 0x80
Verification error at address 7E1F. Got: 0x0F Expected: 0x93
Verification error at address 7E20. Got: 0x10 Expected: 0xC2
Verification error at address 7E21. Got: 0x10 Expected: 0x00
Verification error at address 7E22. Got: 0x11 Expected: 0x80
Verification error at address 7E23. Got: 0x11 Expected: 0xE1
Verification error at address 7E24. Got: 0x12 Expected: 0x80
Verification error at address 7E25. Got: 0x12 Expected: 0x93
Verification error at address 7E26. Got: 0x13 Expected: 0xC4
Verification error at address 7E27. Got: 0x13 Expected: 0x00
Verification error at address 7E28. Got: 0x14 Expected: 0x8E
Verification error at address 7E29. Got: 0x14 Expected: 0xE0
Verification error at address 7E2A. Got: 0x15 Expected: 0xC9
Verification error at address 7E2B. Got: 0x15 Expected: 0xD0
Verification error at address 7E2C. Got: 0x16 Expected: 0x25
Verification error at address 7E2D. Got: 0x16 Expected: 0x9A
Verification error at address 7E2E. Got: 0x17 Expected: 0x86
Verification error at address 7E2F. Got: 0x17 Expected: 0xE0
Verification error at address 7E30. Got: 0x18 Expected: 0x20
Verification error at address 7E31. Got: 0x18 Expected: 0xE3
Verification error at address 7E32. Got: 0x19 Expected: 0x3C
Verification error at address 7E33. Got: 0x19 Expected: 0xEF
Verification error at address 7E34. Got: 0x1A Expected: 0x91
Verification error at address 7E35. Got: 0x1A Expected: 0xE0
Verification error at address 7E36. Got: 0x1B Expected: 0x30
Verification error at address 7E37. Got: 0x1B Expected: 0x93
Verification error at address 7E38. Got: 0x1C Expected: 0x85
Verification error at address 7E39. Got: 0x1C Expected: 0x00
Verification error at address 7E3A. Got: 0x1D Expected: 0x20
Verification error at address 7E3B. Got: 0x1D Expected: 0x93
Verification error at address 7E3C. Got: 0x1E Expected: 0x84
Verification error at address 7E3D. Got: 0x1E Expected: 0x00
Verification error at address 7E3E. Got: 0x1F Expected: 0x96
Verification error at address 7E3F. Got: 0x1F Expected: 0xBB
Verification error at address 7E40. Got: 0x20 Expected: 0xB0
Verification error at address 7E41. Got: 0x20 Expected: 0x9B
Verification error at address 7E42. Got: 0x21 Expected: 0xFE
Verification error at address 7E43. Got: 0x21 Expected: 0xCF
Verification error at address 7E44. Got: 0x22 Expected: 0x1D
Verification error at address 7E45. Got: 0x22 Expected: 0x9A
Verification error at address 7E46. Got: 0x23 Expected: 0xA8
Verification error at address 7E47. Got: 0x23 Expected: 0x95
Verification error at address 7E48. Got: 0x24 Expected: 0x81
Verification error at address 7E49. Got: 0x24 Expected: 0x50
Verification error at address 7E4A. Got: 0x25 Expected: 0xA9
Verification error at address 7E4B. Got: 0x25 Expected: 0xF7
Verification error at address 7E4C. Got: 0x26 Expected: 0xCC
Verification error at address 7E4D. Got: 0x26 Expected: 0x24
Verification error at address 7E4E. Got: 0x27 Expected: 0xDD
Verification error at address 7E4F. Got: 0x27 Expected: 0x24
Verification error at address 7E50. Got: 0x28 Expected: 0x88
Verification error at address 7E51. Got: 0x28 Expected: 0x24
Verification error at address 7E52. Got: 0x29 Expected: 0x83
Verification error at address 7E53. Got: 0x29 Expected: 0x94
Verification error at address 7E54. Got: 0x2A Expected: 0xB5
Verification error at address 7E55. Got: 0x2A Expected: 0xE0
Verification error at address 7E56. Got: 0x2B Expected: 0xAB
Verification error at address 7E57. Got: 0x2B Expected: 0x2E
Verification error at address 7E58. Got: 0x2C Expected: 0xA1
Verification error at address 7E59. Got: 0x2C Expected: 0xE1
Verification error at address 7E5A. Got: 0x2D Expected: 0x9A
Verification error at address 7E5B. Got: 0x2D Expected: 0x2E
Verification error at address 7E5C. Got: 0x2E Expected: 0xF3
Verification error at address 7E5D. Got: 0x2E Expected: 0xE0
Verification error at address 7E5E. Got: 0x2F Expected: 0xBF
Verification error at address 7E5F. Got: 0x2F Expected: 0x2E
Verification error at address 7E60. Got: 0x30 Expected: 0xA2
Verification error at address 7E61. Got: 0x30 Expected: 0xD0
Verification error at address 7E62. Got: 0x31 Expected: 0x81
Verification error at address 7E63. Got: 0x31 Expected: 0x34
Verification error at address 7E64. Got: 0x32 Expected: 0x61
507 verification error(s).
First 100 shown.
Programming mode off.
Type 'C' when ready to continue with another chip ...

does it have something to do with the chip being the TQFP variant, instead of the DIP version?
I hope I didn't ruin 25 of these chips!

so the chip detector gives this, and at the end it says the boot loader checksum isn't recognized:

Atmega chip detector.
Written by Nick Gammon.
Version 1.18
Compiled on Jun 6 2016 at 15:46:27 with Arduino IDE 10607.
Attempting to enter ICSP programming mode ...
Entered programming mode OK.
Signature = 0x1E 0x95 0x0F
Processor = ATmega328P
Flash memory size = 32768 bytes.
LFuse = 0xFF
HFuse = 0x00
EFuse = 0xFE
Lock byte = 0x00
Clock calibration = 0x00
Bootloader in use: Yes
EEPROM preserved through erase: Yes
Watchdog timer always on: Yes
Bootloader is 4096 bytes starting at 7000

Bootloader:

7000: 0x00 0x00 0x01 0x01 0x04 0x02 0x03 0x03 0x04 0x04 0x05 0x05 0x06 0x06 0x07 0x07
7010: 0x08 0x08 0x09 0x09 0x0A 0x0A 0x0B 0x0B 0x0C 0x0C 0x0D 0x0D 0x0E 0x0E 0x0F 0x0F
7020: 0x10 0x10 0x11 0x11 0x12 0x12 0x13 0x13 0x14 0x14 0x15 0x15 0x16 0x16 0x17 0x17
7030: 0x18 0x18 0x19 0x19 0x1A 0x1A 0x1B 0x1B 0x1C 0x1C 0x1D 0x1D 0x1E 0x1E 0x1F 0x1F
7040: 0x20 0x20 0x21 0x21 0x22 0x22 0x23 0x23 0x24 0x24 0x25 0x25 0x26 0x26 0x27 0x27
7050: 0x28 0x28 0x29 0x29 0x2A 0x2A 0x2B 0x2B 0x2C 0x2C 0x2D 0x2D 0x2E 0x2E 0x2F 0x2F
7060: 0x30 0x30 0x31 0x31 0x32 0x32 0x33 0x33 0x34 0x34 0x35 0x35 0x36 0x36 0x6E 0x37
7070: 0x38 0x38 0x39 0x39 0x3A 0x3A 0x3B 0x3B 0x3C 0x3C 0x3D 0x3D 0x3E 0x3E 0x3F 0x3F
7080: 0x40 0x40 0x82 0x41 0x42 0x42 0x43 0x43 0x44 0x44 0x45 0x45 0x46 0x46 0x47 0x47
7090: 0x48 0x48 0x49 0x49 0x4A 0x4A 0x4B 0x4B 0x4C 0x4C 0x9A 0x4D 0x4E 0x4E 0x9E 0x4F
70A0: 0x50 0x50 0x51 0x51 0x52 0x52 0x53 0x53 0x54 0x54 0x55 0x55 0x56 0x56 0x57 0x57
70B0: 0x58 0x58 0x59 0x59 0x5A 0x5A 0x5B 0x5B 0x5C 0x5C 0x5D 0x5D 0x5E 0x5E 0x5F 0x5F
70C0: 0x60 0x60 0x61 0x61 0x62 0x62 0x63 0x63 0x64 0x64 0x65 0x65 0x66 0x66 0x67 0x67
70D0: 0x68 0x68 0x69 0x69 0x6A 0x6A 0x6B 0x6B 0x6C 0x6C 0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D4 0xD5 0xD5 0xD6 0xD6 0xD7 0xD7
71B0: 0xD8 0xD8 0xD9 0xB2 0xDA 0xDA 0xDB 0xB6 0xDC 0xDC 0xDD 0xBA 0xDE 0xDE 0xDF 0xBE
71C0: 0xE0 0xE0 0xE1 0xE1 0xE2 0xE2 0xE3 0xE3 0xE4 0xE4 0xE5 0xE5 0xE6 0xE6 0xE7 0xCE
71D0: 0xE8 0xE8 0xE9 0xE9 0xD4 0xEA 0xEB 0xEB 0xD8 0xEC 0xED 0xED 0xDC 0xEE 0xEF 0xEF
71E0: 0xE0 0xF0 0xF1 0xF1 0xF2 0xF2 0xF3 0xF3 0xF4 0xF4 0xF5 0xF5 0xF6 0xF6 0xF7 0xF7
71F0: 0xF8 0xF0 0xF9 0xF9 0xFA 0xF4 0xFB 0xFB 0xFC 0xF8 0xFD 0xFD 0xFE 0xFC 0xFF 0xFF
7200: 0x00 0x00 0x01 0x01 0x02 0x02 0x03 0x03 0x04 0x04 0x05 0x05 0x06 0x06 0x07 0x07
7210: 0x08 0x08 0x12 0x09 0x0A 0x0A 0x16 0x0B 0x0C 0x0C 0x0D 0x0D 0x0E 0x0E 0x0F 0x0F
7220: 0x10 0x10 0x11 0x11 0x12 0x12 0x13 0x13 0x14 0x14 0x15 0x15 0x16 0x16 0x17 0x17
7230: 0x18 0x18 0x19 0x32 0x1A 0x1A 0x1B 0x1B 0x1C 0x1C 0x1D 0x1D 0x1E 0x1E 0x1F 0x1F
7240: 0x20 0x20 0x21 0x21 0x22 0x22 0x23 0x23 0x24 0x24 0x25 0x25 0x26 0x26 0x27 0x27
7250: 0x28 0x28 0x29 0x29 0x2A 0x2A 0x2B 0x2B 0x2C 0x2C 0x2D 0x2D 0x2E 0x2E 0x2F 0x2F
7260: 0x30 0x30 0x31 0x31 0x32 0x32 0x33 0x33 0x34 0x34 0x35 0x35 0x36 0x36 0x37 0x37
7270: 0x38 0x38 0x39 0x39 0x3A 0x3A 0x3B 0x3B 0x3C 0x3C 0x3D 0x3D 0x3E 0x3E 0x3F 0x3F
7280: 0x40 0x40 0x41 0x41 0x42 0x42 0x43 0x43 0x44 0x44 0x45 0x45 0x46 0x46 0x47 0x47
7290: 0x48 0x48 0x49 0x49 0x4A 0x4A 0x4B 0x4B 0x4C 0x4C 0x4D 0x4D 0x4E 0x4E 0x4F 0x4F
72A0: 0x50 0x50 0x51 0x51 0x52 0x52 0x53 0x53 0x54 0x54 0x55 0x55 0x56 0x56 0x57 0x57
72B0: 0x58 0x58 0x59 0x59 0x5A 0x5A 0x5B 0x5B 0x5C 0x5C 0x5D 0x5D 0x5E 0x5E 0x5F 0x5F
72C0: 0x60 0x60 0x61 0x61 0x62 0x62 0x63 0x63 0x64 0x64 0x65 0x65 0x66 0x66 0x67 0x67
72D0: 0x68 0x68 0x69 0x69 0x6A 0x6A 0x6B 0x6B 0x6C 0x7F 0x6D 0x7F 0x6E 0x7F 0x6F 0x7F
72E0: 0x70 0x7F 0x71 0x7F 0x72 0x7F 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF
72F0: 0xFF 0xFE 0x79 0x79 0x7A 0x7A 0x7B 0x7B 0x7C 0x7C 0x7D 0x7D 0x7E 0x7E 0x7F 0x7F
7300: 0x80 0x80 0x02 0x81 0x82 0x82 0x06 0x83 0x84 0x84 0x0A 0x85 0x86 0x86 0x0E 0x87
7310: 0x88 0x88 0x89 0x89 0x8A 0x8A 0x8B 0x8B 0x8C 0x8C 0x8D 0x8D 0x8E 0x8E 0x1E 0x8F
7320: 0x90 0x90 0x91 0x22 0x92 0x92 0x93 0x26 0x94 0x94 0x95 0x2A 0x96 0x96 0x97 0x2E
7330: 0x98 0x98 0x99 0x99 0x9A 0x9A 0x9B 0x9B 0x9C 0x9C 0x9D 0x9D 0x9E 0x9E 0x9F 0x9F
7340: 0x40 0xA0 0xA1 0xA1 0xA2 0xA2 0xA3 0xA3 0xA4 0xA4 0xA5 0xA5 0xA6 0xA6 0xA7 0xA7
7350: 0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0C 0x0C 0x0D 0x0D 0x0E 0x0E 0x0F 0x0F
7420: 0x10 0x10 0x11 0x11 0x12 0x12 0x13 0x13 0x14 0x14 0x15 0x15 0x16 0x16 0x17 0x17
7430: 0x18 0x18 0x19 0x19 0x1A 0x1A 0x1B 0x1B 0x1C 0x1C 0x1D 0x1D 0x1E 0x1E 0x1F 0x1F
7440: 0x20 0x40 0x21 0x21 0x22 0x22 0x23 0x23 0x24 0x48 0x25 0x25 0x26 0x26 0x27 0x27
7450: 0x28 0x28 0x29 0x29 0x2A 0x2A 0x2B 0x2B 0x2C 0x2C 0x2D 0x2D 0x2E 0x2E 0x2F 0x2F
7460: 0x30 0x30 0x31 0x31 0x32 0x32 0x33 0x33 0x34 0x34 0x35 0x35 0x36 0x36 0x37 0x37
7470: 0x38 0x38 0x39 0x72 0x3A 0x3A 0x3B 0x3B 0x3C 0x3C 0x3D 0x3D 0x3E 0x3E 0x3F 0x3F
7480: 0x40 0x40 0x41 0x41 0x42 0x42 0x43 0x43 0x44 0x44 0x45 0x45 0x46 0x46 0x47 0x47
...

MD5 sum of bootloader = 0x44 0x74 0x18 0x10 0x23 0x95 0x8D 0xCE 0x2C 0xE7 0xC4 0xA6 0x01 0x5A 0x64 0x49
Bootloader MD5 sum not known.

Nothing to do with the TQFP version of the chip, they should program the exact same way as DIPs.

Lockbyte DE looks wrong - is that actually what it's reading for the lockbit, and not a bug (ie, showing a fuse byte instead)? That's not what it's supposed to be for an Uno - it should end at 0x0F or 0x3F.

Have you tried programming it using a normal ISP programmer (such as USPAsp or arduino running Arduino as ISP) and the Burn Bootloader function of the IDE?

It looks like all sorts of weird things are happening - and you seem to be allergic to using the standard methods of doing this through a computer. If you don't want to burn bootloader the normal way, you can even do it manually with a $2.50 USBAsp and eXtremeBurnerAVR.

Do you have the decoupling caps installed (0.1uf cap to ground on every Vcc pin, as close as possible to the chip?) If those aren't present, attempting to program the chip can have unpredictable results.

I did not have decoupling caps when I burnt the boot loader. I've never bother before and it's not mentioned as necessary in the tutorial: https://www.arduino.cc/en/Tutorial/ArduinoISP

Anyway, I tried using the Arduino as ISP technique now and it gives me an error message.

I don't have an ISP programmer. I've always used an uno. So are these bricked? Or is there a way to reflash them with an Uno as ISP?

Yes, we’ve been complaining for a long time about how the official tutorials omit the necessary decoupling caps, but nothing ever changes. You must have decoupling caps for reliable operation. I have seen failed flash writes that were caused because I put the decoupling cap too far away (dead-bugged on another cap right on the pins, and it worked)

Upload ArduinoAsISP (from examples) to the current working Uno, disable autoreset on the uno you just loaded ArduinoAsISP onto (put a cap between Reset and ground), ~10uf, but anything from 1uf to hundreds of uf will work), then connect it to the ISP pins (should be the same ones you’re using with those other board detector sketches - look at the tutorial you linked to for connection details)

Basically, you’re doing exactly what that tutorial recommends, only you should be using decoupling caps so it has a chance to work.

GREAT!
I added decoupling, and used Arduino as ISP, and it worked. reloaded the board detector sketch, and now it shows up properly:
THANKS SO MUCH! definitely need to add those caps in the tutorial!

Atmega chip detector.
Written by Nick Gammon.
Version 1.18
Compiled on Jun 6 2016 at 16:42:28 with Arduino IDE 10607.
Attempting to enter ICSP programming mode ...
Entered programming mode OK.
Signature = 0x1E 0x95 0x0F
Processor = ATmega328P
Flash memory size = 32768 bytes.
LFuse = 0xFF
HFuse = 0xDE
EFuse = 0xFD
Lock byte = 0xCF
Clock calibration = 0x8C
Bootloader in use: Yes
EEPROM preserved through erase: No
Watchdog timer always on: No
Bootloader is 512 bytes starting at 7E00

Bootloader:

7E00: 0x11 0x24 0x84 0xB7 0x14 0xBE 0x81 0xFF 0xF0 0xD0 0x85 0xE0 0x80 0x93 0x81 0x00
7E10: 0x82 0xE0 0x80 0x9

well, there's 2 of the 25 that won't work. I must have done something to them, it gives an error about a wrong signature.

SouthernAtHeart:
well, there's 2 of the 25 that won't work. I must have done something to them, it gives an error about a wrong signature.

Since you were getting incorrect data written due to the decoupling problems, it probably wrote a fuse setting that broke further programming. You can disable isp programming in a few ways with the high fuse, or low fuse could be set for external clock ( this can be saved by putting 8mhz clock on the CLKI pin and programming via isp to set the fuses right. If you've disabled reset or spi programming or enabled dw, you need to use hvsp to fix it.

Ok. Thanks. Now about the ones that I successfully burned the boot loader:
Can you tell by the info I posted in post #10 are the chips set right for my 16mhz crystal?
They seemed to have taken the boot loader but I still can't load a sketch to them over FTDI. I've checked my wiring half a dozen times. Does everything look ok in that response I got from the chip detector? (Post 10)
Thanks.

Ps. When I burnt the boot loader I did it as an UNO, not a pro mini. Is that a problem?

If you burned the uno bootloader, select the uno board when uploading to them. Are you doing that?

If so, do you have the dtr autoreset circuit in place?

What physical boards are you using? Custom design or what? Can you share schematic?

I totally forgot the dtr pull-up and cap! I just had the star line connected directly to the reset pin.
Thanks again for all your help!