Hello,
Atmega1284p got locked using a Sanguinololu board in a 3D printer. Communication stopped suddenly what make me assume the microcontroller had a problem. Took it out the board and installed as a stand alone on protoboard.
Using Arduino 1.6.9 IDE and an Arduino Uno board as ISP com9 running at baud 19200, always resulted in Invalid device signature.
As a last alternative tried to use High Voltage programming as suggested by Nick Gammon.
Teminal output running Atmega_Board_Programmer with Arduino 1.6.9 running with Arduino Uno connected to COM9
Atmega chip programmer.
Written by Nick Gammon.
Version 1.37
Compiled on Oct 20 2017 at 15:46:48 with Arduino IDE 10609.
Activating high-voltage PARALLEL programming mode.
Signature = 0xFF 0xFF 0xFF
Unrecogized signature.
LFuse = 0xFF
HFuse = 0xFF
EFuse = 0xFF
Lock byte = 0xFF
Clock calibration = 0xFF
Programming mode off.
Type 'C' when ready to continue with another chip ...
Terminal output running Atmega_Board_Detector
Atmega chip detector.
Written by Nick Gammon.
Version 1.20
Compiled on Oct 21 2017 at 08:51:26 with Arduino IDE 10609.
Activating high-voltage PARALLEL programming mode.
Signature = 0xFF 0xFF 0xFF
Unrecogized signature.
LFuse = 0xFF
HFuse = 0xFF
EFuse = 0xFF
Lock byte = 0xFF
Clock calibration = 0xFF
First 256 bytes of program memory:
00: 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0x12 0x14 0x8C 0x16 0x12 0x14 0x8C 0x16 0x12
10: 0x14 0x8C 0x16 0x12 0x14 0x8C 0x16 0x12 0x14 0x8C 0x16 0x12 0x14 0x8C 0x16 0x12
20: 0x14 0x8C 0x16 0x12 0x14 0x8C 0x16 0x12 0x14 0x8C 0x16 0x12 0x14 0x8C 0x16 0x12
30: 0x14 0x8C 0x16 0x12 0x14 0x8C 0x71 0x55 0x14 0x8C 0x16 0x12 0x14 0x8C 0x16 0x12
40: 0x14 0x8C 0x16 0x12 0x14 0x8C 0xFE 0x4D 0x14 0x8C 0xF8 0x60 0x14 0x8C 0x16 0x12
50: 0x14 0x8C 0x16 0x12 0x14 0x8C 0x16 0x12 0x14 0x8C 0x79 0x5F 0x14 0x8C 0x16 0x12
60: 0x14 0x8C 0xA4 0x18 0x14 0x8C 0x16 0x12 0x14 0x8C 0x16 0x12 0x14 0x8C 0x16 0x12
70: 0x14 0x8C 0x16 0x12 0x14 0x8C 0x16 0x12 0x14 0x8C 0x16 0x12 0x14 0x8C 0x16 0x12
80: 0x14 0x8C 0x16 0x12 0x14 0x8C 0x16 0x12 0x14 0x8C 0x16 0x12 0x10 0x52 0xCF 0x3B
90: 0x4E 0x83 0x3D 0xDA 0x3D 0x00 0xC7 0x7F 0x09 0xBE 0xD9 0xE4 0xBB 0x54 0x3E 0x89
A0: 0x3B 0xD6 0x01 0x76 0x84 0xBC 0xBF 0xFD 0xC1 0x37 0x3D 0x74 0x6C 0x29 0x9A 0xBD
B0: 0x73 0xB2 0xB2 0xBE 0x00 0x00 0x00 0x80 0x3F 0x05 0xB0 0x54 0xD5 0xAA 0xCC 0x56
C0: 0xB9 0x38 0x2E 0xB1 0x02 0x14 0x48 0xB9 0x89 0x86 0x90 0x10 0x3C 0xA6 0xB2 0xB2
D0: 0x20 0x44 0x65 0x66 0x61 0x6D 0x74 0x6C 0x20 0x4B 0x65 0x6C 0x6C 0x71 0x76 0x67
E0: 0x32 0xBE 0x00 0x00 0x00 0x80 0x3F 0x50 0x61 0x6A 0x64 0x63 0x77 0x64 0x65 0x64
F0: 0x6B 0x20 0x54 0x77 0x61 0x64 0x65 0x64 0x00 0x4B 0x6C 0x77 0x6A 0x65 0x64 0x20
Programming mode off.