Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to dump 64MB GBA carts #914

Open
PsychoFox11 opened this issue Mar 15, 2024 · 8 comments
Open

Unable to dump 64MB GBA carts #914

PsychoFox11 opened this issue Mar 15, 2024 · 8 comments

Comments

@PsychoFox11
Copy link
Contributor

PsychoFox11 commented Mar 15, 2024

OSCR firmware version

13.2

OSCR hardware version

HW5 Rev5

Attach OSCR_LOG.txt file here

No response

System used

Select a system

Describe the issue.

The GameBoy Advance video carts were recently added to the gba.txt file, and these work great for the 32MB carts. However, the 64MB carts don't seem to be able to be dumped.

In the txt file, 64MB is specified as the size, but it shows size as Unkown, and then prompts you to pick a size, with the limit being 32MB.

I tried the only thing I could think of and edited the ino to give a 64MB option on that menu. I got a 64MB dump but it was just the first 32MB repeated. I'm guessing something needs to switch banks.

Update: Upon further inspection, the 32MB that dumps, while it does contain a proper header and looks good at the top, becomes mostly garbage data later one, repeated patterns like AD DE, FF 01, FF 00, for large chunks of the same pattern. The two halves also do not match 100%, there are scattered different bytes throughout them, but they are mostly the same.

Is this something that could be looked into for the OSCR?

@PsyK0p4T
Copy link
Collaborator

Can you open the cartridge and take a picture of the pcb ? If it uses Matrix Memory chips, then a bad dump is expected. Some 32 and 64MB video carts are using them.
This mapping is not yet supported and needs to be added to OSCR (Duplo worked on that and his code may be ported ? https://github.com/endrift/duplo)

@endrift
Copy link

endrift commented Mar 16, 2024

Hi, Duplo dev here. The only 64 MB cartridges I know of are the Game Boy Advance Video movies (and maybe one episode pack?), and Duplo can dump all of these. The "mapper" (it works very differently from normal mappers) is pretty simple to set up, so I can help if needed.

@PsychoFox11
Copy link
Contributor Author

It's on a Matrix chip which I understand are the more difficult ones to work with, but I hope the OSCR could be tweaked to handle it!
image

@endrift
Copy link

endrift commented Mar 16, 2024

Yep, that's the normal type of Matrix 3D Memory cartridge.

@PsychoFox11
Copy link
Contributor Author

Nice, I'll check out duplo. Need to get the hardware first, only have DS models with no GB slot currently. Ill work on that!

@PsyK0p4T
Copy link
Collaborator

@endrift , have you maybe tried to port your code to OSCR ? And then Psychofox may help to validate it with his GBA Video carts. I'm grabbing some of them too, but low chance that they contain these Matrix chips inside.

@endrift
Copy link

endrift commented Mar 21, 2024

The trick to finding one with a 64 MB Matrix memory chip is to get one of the movies. Shrek, Shrek 2 and Shrek 2 + Shark Tale always have the chip

@Ancyker
Copy link
Collaborator

Ancyker commented May 7, 2024

It's on a Matrix chip which I understand are the more difficult ones to work with, but I hope the OSCR could be tweaked to handle it! image

The PDF (first link) posted here might help with this as it's a similar (but not identical) chip: #942 (reply in thread)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants