:thanksyellow: :goodpost:terriblefire wrote: 30 Mar 2021 11:21 The SDRAM code is identical in TF330, TF536, Florica, TF360, TF1260 and TF4060. Its known good.
That's removed a lot of guesswork. Ta.
BW

:thanksyellow: :goodpost:terriblefire wrote: 30 Mar 2021 11:21 The SDRAM code is identical in TF330, TF536, Florica, TF360, TF1260 and TF4060. Its known good.

Without DTACK it just hangs, hence why I added it. I will see if I can do a 32bit read/write to see if its more stable when I get back home.terriblefire wrote: 30 Mar 2021 11:21 It always reads 32bits from sdram. even when you ask for 16bits. SDRAM needs to be sync with the CPU so it uses STERM. The 030 does the byte lane sorting.

In that case something else is wrong. Check that STERM is wired up in the firmware and then check its wiggles because the state machine in the SDRAM controller should assert STERM for 2 clock pulses at the end of the cycle. If its hanging then thats not happening.exxos wrote: 31 Mar 2021 16:59 Without DTACK it just hangs, hence why I added it. I will see if I can do a 32bit read/write to see if its more stable when I get back home.

That's the odd thing as well, normally it would kick out a bus error, just hanging shouldn't really happen. With using dtack, it comes up random bus and access errors like it's accessing the wrong address, but not sure how that's possible as only the cpu has access to TTram anyway.terriblefire wrote: 31 Mar 2021 17:01 Its also possible that TOS is reading past the end of ram and hanging there.

You need to explicitly do the bus error on the TF536 because fast memory cycles never make it to the motherboard.exxos wrote: 31 Mar 2021 17:13 That's the odd thing as well, normally it would kick out a bus error, just hanging shouldnt really happen. With using dtack, it comes up random bus and access errors like its accessing the wrong address , but not sure how that's possible as only the cpu has accees to TTram anyway.
I've not touched anything in the sdram code at all either. I'm not allowing TTram access anywhere near a ST bus cycle, so no idea how it can get address errors. Its like the CPU asks for a address but its the wrong one and causes a error. Can't see how it can happen.

What happens if you give it really small range. Eg. 0x1000000 to 0x1000020 ?exxos wrote: 29 Mar 2021 20:39That is what I have been doing... RAM just fails after a few seconds... But running in STOS, assume because the loops are slower, the RAM tests just fine...Badwolf wrote: 29 Mar 2021 20:24 You can choose not to run FASTRAM.PRG and instead, when running YAARTTT choose the (hidden) "M" option from the menu and type in your own address range.


I understand that. But you posited:
This test checks that.terriblefire wrote: 31 Mar 2021 17:01 Its also possible that TOS is reading past the end of ram and hanging there.


Users browsing this forum: ClaudeBot and 2 guests