Page 1 of 4

DSTB1: testers for rev 2 firmware (requires modding a rev 1)

Posted: 19 Aug 2024 14:16
by Badwolf
Is there anybody with an existing rev 1 DSTB1 who'd like to test out the rev 2 firmware and let me know how they get on before I commit to the final design?

I'm going to put here the current instructions for moddling a rev 1 board to the proposed rev 2 format and the proposed JED to flash to the CPLD.

These mods are revertable should you wish.

NB. You may wish to consider not doing this if you have used a 5V oscilaltor as it involves driving the clock pin of the SDRAM directly from the OSC. I'd have thought damage unlikely at that frequency, but please be warned.

Here is the experimental JED file. I suggest flashing this before performing the board modifications. If you do this after the mods, flash as soon as possible after power-on to avoid any damage from the new wiring.
test_dstb1r2_20240819.zip


Two traces need to be cut. One is a short branch to a via that simply holds the SDRAM's CKE pin high. We'll be driving that in rev2.

The second is a tiny connection between the input and output BG lines between the 68k header and socket. We'll be tapping both those pins.

I have modified my two test boards without needing to remove any components using just a dart (as in dartboard) to scrape away the undesired copper.

Here are the points:-
overiew_top.png
closeup_top.png
overview_bottom.png
closeup_bottom.png

Next, four bodge wires need to be added.

The first two go to the now isolated BG pins. I'll call them BG_IN for the socket (that the 68k chip sits in) and BG_OUT for the pin that goes to the motherboard. These are to be routed to TP5 and TP4, respectively. I found it easiest to route one on the top and one on the bottom of the board, as that's where the pins are exposed. Kynar wire fitted though the gaps in the socket strip for me.

The second two are trickier. You need to tack a wire onto that CKE pin we isolated earlier and also on the CLK pin directly next to it.
SDRAM_bodges.png

The CLK bodge goes to the output pad of the oscillator, which is the south-east pin, looking at the board with pin 1 at the top.

oscillator_bodge.png

The CKE bodge wire then goes to TP3.

TP1 remains active as a TOS206 CE line.

TP2 is now an output. It should have nothing attached at the moment. If you were using this as an input for an 8MHz switch, please disconnect this. 8MHz mode can now be controlled in software.


I will try to add some more photos of the bodge wire application later on.

As part of these changes you'll need to use new driver software. EmuTOS will no longer auto-recognise the AltRAM as I've decided immitating another card is a bad idea in the long term. If everything proves stable I may submit a patch to the ET team in due course.

You may find the software here:- https://github.com/dh219/DSTB-tools/tre ... /altramset

AltROM is very experimental but can have some good effects if used well -- by default it copies your system ROM to AltRAM giving you a 2x speed boost for ROM calls. It may argue with the blitter as I've only just re-added blitter support and haven't tested that thoroughly, however. You can only deactivate it by power down.

If you try this, good luck and keep me posted.

:thanksyellow:

BW

Re: DSTB1: testers for rev 2 firmware (requires modding a rev 1)

Posted: 19 Aug 2024 14:55
by Badwolf
Here are some snaps of some of my bodge wires going in to give you an idea of what the above means.

This was taken before the oscillator to CLK line was added.

BW

Re: DSTB1: testers for rev 2 firmware (requires modding a rev 1)

Posted: 19 Aug 2024 18:51
by Oldskool
Coooool.
Will try it but probably not this week..

Re: DSTB1: testers for rev 2 firmware (requires modding a rev 1)

Posted: 06 Sep 2024 10:21
by Oldskool
Will try it very soon. I promise.
How does that softkick of a rom work from 1.04 which I saw mentioned on the GitHub?
I assume I need a rom file in the autofolder and…

Re: DSTB1: testers for rev 2 firmware (requires modding a rev 1)

Posted: 09 Sep 2024 11:45
by Badwolf
Oldskool wrote: 06 Sep 2024 10:21 Will try it very soon. I promise.
How does that softkick of a rom work from 1.04 which I saw mentioned on the GitHub?
I assume I need a rom file in the autofolder and…
That's *extremely* experimental and hence undocumented.

You use DSTB1ROM.PRG which normally caches your boot ROM into fast RAM but if a file called 'DSTB1.ROM' exists in the root of the current drive, then it'll cache that instead.

A hard (press the button) reset will then use the new OS.

It means you can boot TOS2.06 from within 1.04, for example.

BW

Re: DSTB1: testers for rev 2 firmware (requires modding a rev 1)

Posted: 09 Sep 2024 11:56
by Badwolf
Latest experimental firmware.

BW

Re: DSTB1: testers for rev 2 firmware (requires modding a rev 1)

Posted: 16 Oct 2024 19:36
by Oldskool
Finally tried it.
I get altram. Can’t get the rom booting feature to work from file (tried it on real st and phoenix).
Tos decoding works.
Activating blitter in 2.06 will make it crash in fantastic ways.
IMG_1783.jpeg
IMG_1781.jpeg
IMG_1782.jpeg

Re: DSTB1: testers for rev 2 firmware (requires modding a rev 1)

Posted: 16 Oct 2024 21:21
by Badwolf
Oldskool wrote: 16 Oct 2024 19:36 Finally tried it.
I get altram. Can’t get the rom booting feature to work from file (tried it on real st and phoenix).
Tos decoding works.
Activating blitter in 2.06 will make it crash in fantastic ways.
Thanks for testing this!

The blitter result is a little disappointing as that was one of the big wins of this update. I don't have my STE on the desk at the moment, my STFM doesn't have a blitter and my Mega's not yet got a socketed 68k, so testing will have to wait a bit there.

SoftAltROM is a funky one. It has to complete the switchover and then have a hard reset. Perhaps using the TOS206 decoder at the same time is an issue? I hadn't thought about that. Anyway, that one's a bit of fun.

Really pleased the AltRAM is working, though. Any DMA problems so far?

Cheers,

BW

Re: DSTB1: testers for rev 2 firmware (requires modding a rev 1)

Posted: 16 Oct 2024 21:30
by Oldskool
Softaltrom also does not seem to work on my normal st mb with tos 1.04.
Not tried the ultrasatan yet.
Blitter also crashes without any altram in 2.06. Even @ 8 mhz.
Emutos loaded from floppy seems ok with blitter option.
Will try dma next…


Dott runs very well…. No crashes yet.

Re: DSTB1: testers for rev 2 firmware (requires modding a rev 1)

Posted: 16 Oct 2024 23:09
by Oldskool
Dott just crashed on Phoenix, tos 2.06 on dma transfer from ultrasatan
Will try my old stf mb tomorrow with tos 1.04 (via emutos).