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

SD card interface #137

Open
wants to merge 7 commits into
base: master
Choose a base branch
from
Open

SD card interface #137

wants to merge 7 commits into from

Conversation

hwhw
Copy link
Contributor

@hwhw hwhw commented Dec 28, 2015

This introduces SD card interface and a (demo?) application that will present the first 4GB (limit of the USB driver in LPC4330 ROM) via USB mass storage.

This introduces the SD card interface from LPCopen.
It includes rad1o-specific setup code and a few minor changes
to the LPCopen codebase to be able to properly include only the
needed parts.

All code provided by LPCopen is in the lpcapi subfolder.
This is mainly about the generic platform headers.
allows to access the SD card (in fact: the first 4GB of it!) via
USB mass storage. Don't expect speed records.
This adds support for accessing a FAT filesystem on the SD card.
Only one partition is supported (auto-detect mode).
While partitions larger than 4GB might work, it is not suggested
for now. Especially as the demo app for USB MSC access does not
work on sectors over 4GB.

Just use the USB MSC mode, then fdisk/mkfs on the host PC.
This also adds the necessary objects and a single define to enable
SD support in fatfs. Use this as an example to make your rad1o app
use files on an SD card.
Tests FAT FS performance, not raw SD I/O.
will destructively write to the first 100 MB (+2048 byte offset)
of the SD card.
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

Successfully merging this pull request may close these issues.

1 participant