Install Second SDRAM without Digital IO board

Discussion of official MiSTer Project addons. (https://github.com/MiSTer-devel/Hardware_MiSTer)


Supersonic
Posts: 5
Joined: Mon May 25, 2020 7:26 pm
Has thanked: 4 times

Install Second SDRAM without Digital IO board

Unread post by Supersonic »

Hello everyone! I have recently replaced the analog IO board with a second SDRAM bank to test PSX core, I have not yet put the digital IO board because I do not have it, after this operation I have noticed instability in the cores, I experienced sudden resets and crashes.
Looking at the schematics of the digital io board there is an IO expander that communicates via I2C with FPGA, since I2C pull-up resistors are on the board itself, could it be that this instability is due to the fact that I2C-SDA signal is floating and communications gets corrupted reporting erroneous states?

Anyone else experienced this kind of problems?

Is there a way to eventually deactivate the communication with the IO expander? Or maybe configure SDA pin with internal pull-up?

I own this De10 nano board configured as Mister FPGA since 2018 with the same power supply and never had any problem.. I even attached the oscilloscope on the 5V rail to check for any voltage problems but everything seems OK, it never triggered for voltages drop..
SDRAM bank 1 is OK, I tested it with Jotegos test cores and the official SDRAM tester.

Thank you.

(Sorry for my English)
User avatar
aberu
Core Developer
Posts: 1192
Joined: Tue Jun 09, 2020 8:34 pm
Location: Longmont, CO
Has thanked: 247 times
Been thanked: 411 times
Contact:

Re: Install Second SDRAM without Digital IO board

Unread post by aberu »

1. The SDRAM boards need to be facing opposite to one another with the "THIS SIDE FACES OUT" facing outside, on both of them.

2. You may need to switch the large dip switch for dual SDRAM. - https://misterfpga.co.uk/wp-content/upl ... sition.png
birdybro~
caad
Posts: 82
Joined: Sun Oct 03, 2021 4:37 pm
Has thanked: 2 times
Been thanked: 19 times

Re: Install Second SDRAM without Digital IO board

Unread post by caad »

Also, none of the IO boards are required for normal operation.
Supersonic
Posts: 5
Joined: Mon May 25, 2020 7:26 pm
Has thanked: 4 times

Re: Install Second SDRAM without Digital IO board

Unread post by Supersonic »

Hi aberu and caad, thanks for your answers; the SDRAM banks are inserted correctly and SW3 is in ON position, the problem arise in this condition. If i turn OFF SW3 everything works fine, thats why I tought it's something related to I2C communication with IO expander.
SDRAMs are also OK I tested both, one a time in "slot 1" for 2 hours each.

Haven't watched source code yet, but I think that if SW3 is ON the framework will try to communicate with IO expander and if it's not present and pull-ups are missing maybe problems could arise.. just my speculation..

Hopefully today I should receive PCBs for my DigIO board and re-test everything..
Supersonic
Posts: 5
Joined: Mon May 25, 2020 7:26 pm
Has thanked: 4 times

Re: Install Second SDRAM without Digital IO board

Unread post by Supersonic »

Resolved. The problem was on the 3.3V rail, it was, in certain conditions, overloaded. My two SDRAM 128MB banks were the version directly powered from 3.3V; i modified them adding a voltage regulator as in sdram xds v 2.9.
crispycritter911
Posts: 4
Joined: Tue May 26, 2020 5:28 am

Re: Install Second SDRAM without Digital IO board

Unread post by crispycritter911 »

Would you have a picture of your modification? I just built a second RAM Stick and am curious as to how you did it. I haven't tried mine yet. I am running a 2.4 and a 2.5 PCB's with 128MB's each. I am currently bench testing the newer module.
Supersonic
Posts: 5
Joined: Mon May 25, 2020 7:26 pm
Has thanked: 4 times

Re: Install Second SDRAM without Digital IO board

Unread post by Supersonic »

Hi, I'm sorry, I don't have it anymore, I used it as a temporary solution.
User avatar
lomdar67
Posts: 184
Joined: Sun May 24, 2020 8:27 pm
Has thanked: 14 times
Been thanked: 9 times

Re: Install Second SDRAM without Digital IO board

Unread post by lomdar67 »

Sorry to pick this up again.

I have a V2.5 SDRAM stick and wanted to order a second one. Is this voltage problem a general problem with V2.5?

So if I wan't to run any setup with two SDRAM sticks do I always need version 2.9 sticks?

Regards,
Michael
We raise hopes here...until they're old enough to fend for themselves.
--Mike Callahan
Xbytez
Site Admin
Posts: 479
Joined: Wed May 20, 2020 3:36 pm
Has thanked: 227 times
Been thanked: 805 times

Re: Install Second SDRAM without Digital IO board

Unread post by Xbytez »

lomdar67 wrote: Tue Feb 22, 2022 2:03 pm
So if I wan't to run any setup with two SDRAM sticks do I always need version 2.9 sticks?
You can run mixed 128MB memory stick versions without issue from my experience.
FPGA64
Top Contributor
Posts: 937
Joined: Mon Mar 01, 2021 3:10 pm
Has thanked: 49 times
Been thanked: 374 times

Re: Install Second SDRAM without Digital IO board

Unread post by FPGA64 »

I run a 2,5 and 2,9 128 mb stick without issue
Supersonic
Posts: 5
Joined: Mon May 25, 2020 7:26 pm
Has thanked: 4 times

Re: Install Second SDRAM without Digital IO board

Unread post by Supersonic »

lomdar67 wrote: Tue Feb 22, 2022 2:03 pm Sorry to pick this up again.

I have a V2.5 SDRAM stick and wanted to order a second one. Is this voltage problem a general problem with V2.5?

So if I wan't to run any setup with two SDRAM sticks do I always need version 2.9 sticks?

Regards,
Michael
I don't remeber wich PCB version were my ram sticks, but with both installed i had problems with many cores, after modification everything was back ok and now with 2.9 everything it's ok. probably, on my mister, it was enough to have just one of the stick "self-powered" just to unload a bit the 3v3 regulator on the de-10..
it could depend by many factors SDRAM ics current absorption or even 3v3 mister regulator performance..
i'd choose a 2.9 version..
User avatar
legacypixels
Posts: 91
Joined: Sun May 24, 2020 9:20 pm
Has thanked: 25 times
Been thanked: 25 times

Re: Install Second SDRAM without Digital IO board

Unread post by legacypixels »

The de10 3V3 regulator is a LTC3612EUDC#TRPBF rated for 3A. It is unlikely that this is your issue.
US based seller of MiSTer addon boards. Visit https://www.legacypixels.com/mister
cb88
Posts: 11
Joined: Sat Dec 19, 2020 6:22 am
Has thanked: 1 time

Re: Install Second SDRAM without Digital IO board

Unread post by cb88 »

Perhaps not enough bypass capacitance or some sort of ground loop issue without a local regulator on the board.

Thinking of making a dual SD ram setup to fit into a portable laptop like case... so sounds like I'll run into that.
Post Reply