Page 52 of 97

Re: ST536 STE EDITION

Posted: 23 May 2025 13:08
by exxos
Badwolf wrote: 23 May 2025 12:57 I'm not sure if it's helpful at all but IIRC STEs decode (ie. issue DTACK) for the 0x00Dxxxxx range.
....
Thanks.. yeah I was wondering if DTACK was still being issued by the STE.. I will check that now..

I get bus error for the 8MB mark. So nothing can be decoding it.

IMG_3247.JPG

I can read and write to it with my logic, but its confused things as I swapped to using a IDE card, so the boot order must be different and BLTFIX locks up for some reason after my TOSCOPY happens.. I need to look into that more.. but to many problems.. not enough time currently..


IMG_3248.JPG

Problem current is STOS is throwing up random bus errors on its own, and I am not sure what part of the code is causing it :( I think its glitches in the address causing all these random things to happen.


It complicated things as I also have to patch the IDE INT address... but that logic block is at least "working" now.

Code: Select all

always @(posedge CLK100M or negedge RESET) begin
    if (!RESET) begin
        SWAP_ON <= 1'b1;
		  DIS_BUS <= 1'b1;
        data[7:0] <= 8'h00;
    end else if (AS30 == 1'b1) begin
        // Bus inactive ? release SWAP_ON
        SWAP_ON <= 1'b1;
		  DIS_BUS <= 1'b1;
    end else if (BUSEN_IRQ == 1'b0) begin
        data[7:0] <= { D[7:6], 1'b0, D[4:0] };  // IRQ format - IDE light stays on and no AB if disabled
        SWAP_ON <= 1'b0;
		  DIS_BUS <= 1'b0;
    end else if (bus_en_patch == 1'b1) begin
        data[7:0] <= D_from_patch;              // test pattern 8'b11001100
        SWAP_ON <= 1'b0;
		  DIS_BUS <= 1'b0; // disable bus
    end else begin
        SWAP_ON <= 1'b1;
		  DIS_BUS <= 1'b1;
    end
end

// Drive the bus only when SWAP_ON is high
//SWAP_ON = 0 = D[7:0] = data[7:0].
//SWAP_ON = 1 D[7:0] is assigned 8'bzzzzzzzz

assign D[7:0] = SWAP_ON ?  8'bzzzzzzzz : data[7:0];

Re: ST536 STE EDITION

Posted: 23 May 2025 13:33
by Badwolf
exxos wrote: 23 May 2025 13:08
Badwolf wrote: 23 May 2025 12:57 I'm not sure if it's helpful at all but IIRC STEs decode (ie. issue DTACK) for the 0x00Dxxxxx range.
....
Thanks.. yeah I was wondering if DTACK was still being issued by the STE.. I will check that now..

I get bus error for the 8MB mark. So nothing can be decoding it.
Yeah, I meant perhaps use a register in the 0x00dxxxxx region to save some effort!

BW

Re: ST536 STE EDITION

Posted: 23 May 2025 13:37
by exxos
Badwolf wrote: 23 May 2025 13:33 Yeah, I meant perhaps use a register in the 0x00dxxxxx region to save some effort!
Yeah it can go anywhere. Just put it at 8MB as I was losing the plot how many zeroes were in everything :) I'm not sure STOS works on stupid high addresses either.. So just put it somewhere simple for now..

EDIT:

I will put it at DF0000...

Re: ST536 STE EDITION

Posted: 23 May 2025 14:53
by exxos
@agranlund When BLTFIX is run in my build of TOS206, it disables the cache in the desktop menu. Oddly, I can't turn it back on again afterwards!

Re: ST536 STE EDITION

Posted: 23 May 2025 14:57
by exxos
I've ended up going down another rabbit hole somehow :roll:

If I boot from IDE, BLTFIX locks up every time, but without it, when I get to desktop, its corrupted. So something not right there.

I can boot from floppy and EMUTOS IDE just fine.

I will update HDDRIVER next as I have no idea what version is on the old IDE card. But doesn't seem likely as its more like STram corruption I am getting... OK so not the driver..

Sometimes IDE AB doesn't even work, its like not registering the patch register.. So ill delay that next see what happens..

It seems a lot happier now, BLTFIX isn't locking up (need to test more) but sometimes AB isn't working.. generally from power up..

EDIT:

I've removed BLTFIX from AUTO for now, and just running it from the desktop as I can't figure out why it locks up during boot. There doesn't seem to be anything obvious causing it. Unless its because I set the PRGFLAG and it doesn't like that when run from AUTO..

Re: ST536 STE EDITION

Posted: 23 May 2025 16:35
by exxos
Thought I would go back to basics and test them out for anything else and something clearly going on here it has not locked up because the cursor is still flashing... But where the text is going now... Nobody knows......

IMG_3249.JPG


I'll have to go back a couple of firmware versions and retest, maybe start swapping the boards about as things were really stable previously....

Re: ST536 STE EDITION

Posted: 23 May 2025 16:42
by Badwolf
exxos wrote: 23 May 2025 16:35 because the girls are still flashing...
What on Earth do you have on your other telly?!

BW

Re: ST536 STE EDITION

Posted: 23 May 2025 16:43
by PhilC
Badwolf wrote: 23 May 2025 16:42
exxos wrote: 23 May 2025 16:35 because the girls are still flashing...
What on Earth do you have on your other telly?!

BW
I was wondering the same thing. :shock:

Re: ST536 STE EDITION

Posted: 23 May 2025 16:46
by exxos
PhilC wrote: 23 May 2025 16:43 What on Earth do you have on your other telly?!
Supposed to say cursor...

Re: ST536 STE EDITION

Posted: 23 May 2025 16:48
by dml
Badwolf wrote: 23 May 2025 12:57 PS. my daughter is going through a period of not sleeping unless someone sits with her for an hour or more so I've had exactly no time the last couple of days for CPLD changing. :(
Been there, done that. :/ I wish you a speedy recovery/extraction back to the land of free-ish evenings!