I'm still not quite sure about the different processor types you are trying to use.
It sounds like you may have some processor type issues in your core code or boards.txt files that need to
be resolved as well. 664 vs 644 vs 1284 ?
The 664P is totally pin compatible with the 1284P. I attached it as per the pin connections shown in post 1.
The questions isn't whether the 664P and 1284P are pin compatible with each other, it is whether
the Arduino pin to port/bit mappings of the 664, 664P, 1284, and 1284P are the same as the Arduino pin
to port/bit mappings of the 644/644P since the mappings you added for 664/664P/1284/1284P processors matches the
original 644/644P mappings.
Also, the way you edited the files, if you use a 664 or 664P chip you get the
Arduino pin mappings you defined but you will use the glcd pin configuration file
which is normally used for the standard arduino board (ks0108_Arduino.h) and not the glcd pin configuration file for
Sanguino (ks0108_Sanguino.h) while the 1284/1284P will use the Sanguino glcd pin configuration file (ks0108_Sanguino.h)
(That does and can be made to work, but it seems very odd to do it that way)
And the glcd library will no longer compile with a 644 or 644P.
I ran a for/next loop through pins 0-31 to get their location on the 1284P
glcdData0Pin 0 = 1284P pin 1
glcdData1Pin 1 = 1284P pin 2
glcdData2Pin 2 = 1284P pin 3
glcdData3Pin 3 = 1284P pin 4
glcdData4Pin 4 = 1284P pin 5
glcdData5Pin 5 = 1284P pin 6
glcdData6Pin 6 = 1284P pin 7
glcdData6Pin 7 = 1284P pin 8
glcdCSEL3 29 = 1284P pin 35
glcdEN 28 = 1284P pin 34
glcdDI 27 = 1284P pin 33
glcdRW 26 = 1284P pin 32
glcdCSEL2 25 = 1284P pin 31
glcdCSEL1 24 = 1284P pin 30
I'm not sure what this pin information is.
If I try and run the GLCD diag program it will not compile but returns this error:
libraries/glcd/fonts/SystemFont5x7.h:48: error: System5x7 causes a section type conflict
Are there any other errors?
.... when I compile for the GLCD test which compiles fine !
What do you mean by "the GLCD test"?
The top priority needs to be get the included diag sketch building so you can see the diagnostic output.
--- bill