I have been probing around at this problem, and maybe I have a trace...
First of all, I find it interesting how much of an "antenna" a scope probe is. I measured GND right at the point where the probe ground clip was connected, and still got a weird wiggle on the signal...
Attachment:
File comment: Measuring gnd where the ground clip of the probe is connected...
20211014_210405_1920x1080.jpg [ 1.85 MiB | Viewed 449 times ]
and the result:
Attachment:
20211014_210411_1920x1080.jpg [ 1.7 MiB | Viewed 449 times ]
(edit: the blue one is the actual "GND" signal)
So that makes me wonder how good my signals really are....
But anyway, with keeping that in mind, I changed my test program to run on the SRAM chip that it was testing itself, or on the dRAM also in the computer (on the video board).
Interestingly, when the program was not running on the SRAM and only checking it, it ran over 700 iterations accumulating only one test with error.
If the test program was running in the SRAM itself, it quickly accumulated more errors:
Attachment:
20211015_220208_1920x1080.jpg [ 1.59 MiB | Viewed 449 times ]
(edit: note that I added more memory tests called "HIMEM", as the original test was only testing the lowest 32k of the 512k SRAM)
I even resoldered every connection on that socket of the SRAM chip. I was getting suspicious, as the system seemed to be very sensitive to a scope probe attaching to an address bus signal. Sometimes the system would very easily crash when I did this.
So, I measured this and found a lot of wiggle on the actual address bus signal
Attachment:
20211016_010946_1920x1080.jpg [ 1.74 MiB | Viewed 449 times ]
(edit: the violet one is an address line. yellow is phi2, blue is the /CS signal)
Considering that TTL has a Vmax for a low input of about 0.8V (right?), this definitely wiggles out of that area.
And, the best thing is - here is the very first real difference I found between the working and the non-working chip:
Attachment:
20211016_011415_1920x1080.jpg [ 1.72 MiB | Viewed 449 times ]
The working chip has very much less wiggle on the address line!
And this is the only thing I changed. Address drivers on the bus are HCT type now.
So, I am not sure I am ready to confirm that this is the issue, but it seems it could be - even though timing would suggest that the address lines seem to settle again early enough. But maybe not early enough then.
Tomorrow or so I have to check with the actual fix applied, how the address lines look.
_________________
Author of the GeckOS multitasking operating system, the usb65 stack, designer of the Micro-PET and many more 6502 content:
http://6502.org/users/andre/