retrostage / SNES-SuperFX-adapter

A simple PCB adapter for use on a SuperFX or CX4 donor cart
GNU General Public License v2.0
9 stars 5 forks source link

GSU-2 compatibility #3

Closed AndehX closed 3 years ago

AndehX commented 3 years ago

Just wondering if this adapter definitely works with GSU-2 carts, as these use 40 pin ROM's as opposed to the 32 pin ROM on the GSU-1 carts.

retrostage commented 3 years ago

Yes, there are extra pins on the left side where the MaskROM sits that will not be soldered to the adapter pins - which is fine because they're just extra VCC and GND pins anyway. These also work in 40 pin CX4 carts like MegaMax X3.

AndehX commented 3 years ago

cool, thanks for clarifying

AndehX commented 3 years ago

So im trying to get this to work with Star Fox 2, but im having no luck. I've flashed the chip properly and verified the data on it. ucon64 confirms no header and CRC is OK, but im just getting a blank screen on my SNES. Any ideas? Heres some image of the install:

PXL_20210831_143527657 PXL_20210831_144005025 PXL_20210831_144033359

retrostage commented 3 years ago

Looks like you've replaced the SRAM. Did you verify that it's all wired up and the correct type for SF2? Other than that, if you have a multimeter you can use the continuity mode to check each pin on the adapter/flash memory to make sure you didn't damage any pins during removal of the old maskrom.

AndehX commented 3 years ago

Yeah I already buzzed out all the pins and they all seem fine. This is actually the second cart I tried this on (in case the first one was messed up somehow) The SRAM is a 1024KB chip (commonly used for Gradius III SA-1 carts) I assume it should work ok. Would that cause any issues? Should I put the original 256K SRAM back?

retrostage commented 3 years ago

I'd recommend putting the old one on and test again. I'm not familiar with changing out the SRAM on these boards, the pinout differences, or how it affects the games that use it.

On Tue., Aug. 31, 2021, 10:34 a.m. AndehX, @.***> wrote:

Yeah I already buzzed out all the pins and they all seem fine. This is actually the second cart I tried this one (in case the first one was messed up somehow) The SRAM is a 1024KB chip (commonly used for Gradius III SA-1 carts) I assume it should work ok. Would that cause any issues? Should I put the original 256K SRAM back?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/retrostage/SNES-SuperFX-adapter/issues/3#issuecomment-909396935, or unsubscribe https://github.com/notifications/unsubscribe-auth/AHRBJG2AHPILJAU52OIDGHTT7UAAVANCNFSM5CJUXKPQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

AndehX commented 3 years ago

Yeah with the original SRAM, it's still the same. I also tried padding the ROM to 2MB (to fill the 29F016 chip) no dice. I'm literally out of ideas now. I removed the chip, read the ROM back from the chip and it loads fine in BSNES, so i'm 95% sure I've flashed the chip properly

retrostage commented 3 years ago

Do you have a normal GSU-1 board on hand that you can try the adapter in?

On Tue., Aug. 31, 2021, 11:53 a.m. AndehX, @.***> wrote:

Yeah with the original SRAM, it's still the same. I also tried padding the ROM to 2MB (to fill the 29F016 chip) no dice. I'm literally out of ideas now. I removed the chip, read the ROM back from the chip and it loads fine in BSNES, so i'm 95% sure I've flashed the chip properly

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/retrostage/SNES-SuperFX-adapter/issues/3#issuecomment-909458795, or unsubscribe https://github.com/notifications/unsubscribe-auth/AHRBJG65IAXPKCFKROOYZYTT7UJK3ANCNFSM5CJUXKPQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

AndehX commented 3 years ago

I don't unfortunately. Only GSU-2 boards

retrostage commented 3 years ago

Apparently SF2 requires 512K of SRAM, so the 256K you put back in won't cut it.

Have you compared the pinout of the SRAM you selected to the one the donor cart used?

AndehX commented 3 years ago

Ok I figured it out. It seems for some odd reason GSU-2 boards (or at least the Yoshi's Island ones I have) are missing address line A15 on the SRAM. I had to lift that address line on the SRAM and manually wire it to pin 105 of the GSU-2. It's working now.

This might be something you want to mention in the documentation for your adapter.

retrostage commented 3 years ago

Glad you got it figured out, and that the adapters were working fine.

On Tue., Aug. 31, 2021, 1:09 p.m. AndehX, @.***> wrote:

Ok I figured it out. It seems for some odd reason GSU-2 boards (or at least the Yoshi's Island ones I have) are missing address line A15 on the SRAM. I had to lift that address line on the SRAM and manually wire it to pin 105 of the GSU-2. It's working now.

This might be something you want to mention in the documentation for you adapter.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/retrostage/SNES-SuperFX-adapter/issues/3#issuecomment-909525352, or unsubscribe https://github.com/notifications/unsubscribe-auth/AHRBJGZZ62VKWPEVHEXSCV3T7USGXANCNFSM5CJUXKPQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

AndehX commented 3 years ago

Yeah. Just really confused why SRAM A16 would be connected... but not A15. Super weird.

PXL_20210831_192006586

AndehX commented 3 years ago

I know you've closed this, and it is technically fixed (not related to the adapter) but im getting crashing now. usually after a minute or 2 of the starfox 2 intro looping. Any ideas what could cause that? Sometimes the 3d models disappear, other times the game just glitches and freezes

retrostage commented 3 years ago

I'd suspect the SRAM. You're giving 1Mbit of it when the game expects only 512K. Try grounding A16 on the SRAM to see if that helps.

AndehX commented 3 years ago

Yeah I had the same idea literally as I posted my previous comment. Didn't seem to do anything though.

AndehX commented 3 years ago

I'm going to leave it for tonight. I'll try flashing the rom normally again tomorrow (without padding to 2MB)

retrostage commented 3 years ago

Maybe try one with a game that natively uses the GSU-2 chip, like Yoshi's Island or something. I've never made one with SF2 on a FX-2 board before, so maybe there is some kind of issue due to the different clock speed.

I'll leave this ticket closed for now. As long as the game boots up and plays it's not a problem with the design of the adapter itself, it's likely some other issue at hand. But I'd be interested in hearing how things go on your end regardless.

On Tue., Aug. 31, 2021, 3:45 p.m. AndehX, @.***> wrote:

I'm going to leave it for tonight. I'll try flashing the rom normally again tomorrow (without padding to 2MB)

— You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub https://github.com/retrostage/SNES-SuperFX-adapter/issues/3#issuecomment-909665910, or unsubscribe https://github.com/notifications/unsubscribe-auth/AHRBJG22WZVDY6J6AFDFNQDT7VEQBANCNFSM5CJUXKPQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

AndehX commented 3 years ago

Ok so I did some testing tonight. Original Star Fox runs perfectly. Star Fox 2 still shows graphical glitching and random freezing. Tried 2 different roms (from 2 different places) and both show the same issue. So i'm thinking either there's an issue with the type of flash im using (29F016) or the SRAM chip im using. I'm inclined to believe the SRAM is probably at fault. I have some different 1Mbit chips ordered (I can't find any compatible 512Kbit chips), and I will test those when they arrive.

retrostage commented 3 years ago

I wouldn't think the flash is at fault, as the one you used is fully pin-compatible with the adapter (all extra unsoldered legs on your chip are NC anyway). I'd probably suspect the SRAM too, especially if the flash data also verified correctly.

On Wed., Sep. 1, 2021, 3:36 p.m. AndehX, @.***> wrote:

Ok so I did some testing tonight. Original Star Fox runs perfectly. Star Fox 2 still shows graphical glitching and random freezing. Tried 2 different roms (from 2 different places) and both show the same issue. So i'm thinking either there's an issue with the type of flash im using (29F016) or the SRAM chip im using. I'm inclined to believe the SRAM is probably at fault. I have some different 1Mbit chips ordered (I can't find any compatible 512Kbit chips), and I will test those when they arrive.

— You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub https://github.com/retrostage/SNES-SuperFX-adapter/issues/3#issuecomment-910787497, or unsubscribe https://github.com/notifications/unsubscribe-auth/AHRBJG4BGTWSS4RY6QMJTBTT72MF3ANCNFSM5CJUXKPQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

AndehX commented 3 years ago

I'd probably suspect the SRAM too, especially if the flash data also verified correctly.

Yeah especially since original Starfox seems to run perfectly fine. One difference I did notice between the GSU-1 and GSU-2 boards, is that the /CE pin on the ROM chip is grounded on the GSU-1 board, but connects to pin 20 of the GSU-2-SP1 chip on GSU-2 boards. Does that matter?

AndehX commented 3 years ago

Ok so I tried a different SRAM chip today (SONY CXK581000AM) and the result is the same (although the freezing is less frequent) it seems more stable with this chip, but ultimately, it still crashes now and then and has minor graphical glitches. It seems like i'm not going to get anywhere with this unless I can source a 512Kbit chip.