REV 3 - REV 5 - The beginning (ST536)

All about the ST536 030 ST booster.
User avatar
exxos
Site Admin
Site Admin
Posts: 29746
Joined: Wed Aug 16, 2017 11:19 pm
Location: UK
Contact:

Re: REV 3 - REV 5 - The beginning (ST536)

Post by exxos »

@coonsgm So that program had a bug it seems and never actually enabled the caches. So please stop that test, and use the updated program here.

ST536_KIT.zip
(23.39 KiB) Downloaded 3 times
User avatar
exxos
Site Admin
Site Admin
Posts: 29746
Joined: Wed Aug 16, 2017 11:19 pm
Location: UK
Contact:

Re: REV 3 - REV 5 - The beginning (ST536)

Post by exxos »

Interestingly for the first time I have seen the same error...

IMG_5418.JPG
IMG_5418.JPG (66.05 KiB) Viewed 32 times

EDIT:

Same error and same bits a few passes later... So Claude is writing a stress test is to repeat that particular sequence if that can basically error on demand and a list we have a solid starting point for an investigation !
User avatar
exxos
Site Admin
Site Admin
Posts: 29746
Joined: Wed Aug 16, 2017 11:19 pm
Location: UK
Contact:

Re: REV 3 - REV 5 - The beginning (ST536)

Post by exxos »

Some progress tonight, and for once something that actually repeats.

BUSTEST copies blocks of data between ST RAM and TT-RAM in every combination and checks every byte. With the 68030 caches off, both my board and Greg's pass. With the caches on, both boards fail, and only on copies between TT-RAM and ST RAM. Copies within ST RAM or within TT-RAM pass. On Greg's board it failed badly and then hung, so we don't have the detail from his yet. On my board it fails rarely, but the two errors I have caught tell us a lot.

Both errors were exactly the same. The same byte of test data ($F7) was copied from TT-RAM to ST RAM and came back as $FF. Only one data line was wrong, D11 on the 68000 side (D27 on the 68030), and it read as 1 when it should have been 0. The two errors were at different ST RAM addresses, but it was the same piece of data both times, so this is not random noise. It depends on the data pattern.

The failing byte is always the last part of a misaligned long write to ST RAM. The CPU splits that into three ST bus cycles: a byte, a word, then a byte. It is that last byte that goes wrong. D11 is low in the cycle before it and low in the byte itself, so the line never actually changes, yet it still ends up as a 1. It only happens with the caches on, where the CPU runs those ST bus cycles back to back with no gaps.

So this looks like a timing problem at the point where the ST bus is switched between cycles, rather than a bad solder joint or faulty RAM. The fact that two boards show the same thing points the same way.

I have written a small test program that repeats that exact copy thousands of times a second, so hopefully we can make it fail on demand. That will make it much quicker to test firmware changes and hardware changes, instead of waiting 20 minutes for one error.
coonsgm
Posts: 485
Joined: Sat Jan 30, 2021 1:30 am

Re: REV 3 - REV 5 - The beginning (ST536)

Post by coonsgm »

IMG_5315.jpeg
IMG_5315.jpeg (311.05 KiB) Viewed 23 times
User avatar
exxos
Site Admin
Site Admin
Posts: 29746
Joined: Wed Aug 16, 2017 11:19 pm
Location: UK
Contact:

Re: REV 3 - REV 5 - The beginning (ST536)

Post by exxos »

So you actually have a different fault than I do then...

Probably nothing else to be done tonight now.. I won't be at home until late evening tomorrow to think about anything else..
coonsgm
Posts: 485
Joined: Sat Jan 30, 2021 1:30 am

Re: REV 3 - REV 5 - The beginning (ST536)

Post by coonsgm »

Turning off the cache makes it 100% stable running from the Ultrasatan. I'll try the IDE next. I'm testing out loads of different software and I'm seeing great results.

Obviously, not having the cache available is sub-optimal, but I think that is where the issue resides at the moment. I'm going to swap CPU's and then test with cache on again and see if there is an issue with CPU cache itself.
User avatar
exxos
Site Admin
Site Admin
Posts: 29746
Joined: Wed Aug 16, 2017 11:19 pm
Location: UK
Contact:

Re: REV 3 - REV 5 - The beginning (ST536)

Post by exxos »

Yeah its also what I am seeing here, when caches are on, something messes up..

I wonder if you switch the ROM jumper and try EMUTOS is caches on still goes nuts ?
coonsgm
Posts: 485
Joined: Sat Jan 30, 2021 1:30 am

Re: REV 3 - REV 5 - The beginning (ST536)

Post by coonsgm »

Swapped CPU's.....now running with cache on. Turns out it was the CPU :o
coonsgm
Posts: 485
Joined: Sat Jan 30, 2021 1:30 am

Re: REV 3 - REV 5 - The beginning (ST536)

Post by coonsgm »

Running rock solid with a different CPU.
IMG_5316.jpeg
IMG_5316.jpeg (346.34 KiB) Viewed 4 times
User avatar
exxos
Site Admin
Site Admin
Posts: 29746
Joined: Wed Aug 16, 2017 11:19 pm
Location: UK
Contact:

Re: REV 3 - REV 5 - The beginning (ST536)

Post by exxos »

coonsgm wrote: Tue Nov 10, 2026 11:10 pm Running rock solid with a different CPU.
Can you run this program .. Leave it on for a bit, then press ESC to get the summery and send me a screenshot..

TTHAMMER.zip
(3.02 KiB) Not downloaded yet
Post Reply

Return to “ST536 030 ST ACCELERATOR”