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

SDCard support? #19

Closed
ArcheyChen opened this issue Mar 14, 2024 · 4 comments
Closed

SDCard support? #19

ArcheyChen opened this issue Mar 14, 2024 · 4 comments

Comments

@ArcheyChen
Copy link

Hello, this is a nice project, I wonder if there is a plan to add SD card r/w support?

https://www.bilibili.com/video/BV1gH4y1m7ty/?vd_source=1af828ff5df4e67b0feb279fa0ee5cbf

I saw a video that using link cable to connect a sd card, it will be really useful for some hb to read external data.

@afska
Copy link
Owner

afska commented Mar 14, 2024

Hey! No plans for SD card via Link Port, sorry. But you may want to check out gba-flashcartio, a library that allows reading the SD card in a flash cartridge (EverDrive GBA and EZ Flash Omega).

@ArcheyChen
Copy link
Author

Hey! No plans for SD card via Link Port, sorry. But you may want to check out gba-flashcartio, a library that allows reading the SD card in a flash cartridge (EverDrive GBA and EZ Flash Omega).

I just want to write a lib for bootleg carts, they can be reflash now, but don't have external storage.
I'm not very good at embedding systems, but is the LinkSPI in your project, theoretically, can direct connect to sd card, and I just need to write sd specific lib myself?

And is there any doc how to connect a SPI device via linkport?

@afska
Copy link
Owner

afska commented Mar 14, 2024

I'm not very good at embedding systems, but is the LinkSPI in your project, theoretically, can direct connect to sd card, and I just need to write sd specific lib myself?

Yes, LinkSPI can help you, but keep in mind that you might need to set some registers to use the SD card in SPI mode 3 (CPOL=1, CPHA=1) which is what GBA hardware uses.

And is there any doc how to connect a SPI device via linkport?

This example illustrates how to connect a Link Cable to a Raspberry Pi's SPI pins:

https://github.com/afska/gba-remote-play?tab=readme-ov-file#normal-mode--spi

@afska
Copy link
Owner

afska commented Mar 14, 2024

I'm closing this issue as it doesn't involve coding on the gba-link-connection side, but feel free to continue commenting here if you have more questions and I'll try to answer them!

@afska afska closed this as completed Mar 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants