Skip to content
This repository has been archived by the owner on Aug 17, 2021. It is now read-only.

SD/MMC support #33

Open
thejpster opened this issue Oct 23, 2018 · 7 comments
Open

SD/MMC support #33

thejpster opened this issue Oct 23, 2018 · 7 comments

Comments

@thejpster
Copy link
Owner

We can put an SD card on SSI0 and use it to load/save files. Breakout boards aren't too expensive (https://www.proto-pic.co.uk/sdmmc-card-breakout.html)

See https://github.com/rafalh/rust-fatfs

@thejpster
Copy link
Owner Author

See WIP PR. Can currently do a dir on the root directory.

@thejpster
Copy link
Owner Author

We also need a DOS to handle the card, and to expose a sensible API to the user.

The Linux syscall API / POSIX file API isn't a bad starting point I guess.

@thejpster
Copy link
Owner Author

See #46

@thejpster
Copy link
Owner Author

The WIP PR can now load 6502 BASIC from the SD card (which is about 4 clusters in length).

@thejpster
Copy link
Owner Author

We need to use DMA so that data can be transferred during the video render as currently the performance is terrible. Changing the video to use a non-blocking pull API and SPI FIFO space free interrupts would also help.

@thejpster
Copy link
Owner Author

There is some DMA example code in a branch for doing DMA with the frame buffer. We can adapt that to do DMA with the SPI instead.

@thejpster
Copy link
Owner Author

File read support in master. Needs file write support, plus #46 so applications can use the SD card.

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

No branches or pull requests

1 participant