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

Cannot access beyond 4 GB of block devices #44

Closed
oyama opened this issue Jun 16, 2024 · 1 comment · Fixed by #45
Closed

Cannot access beyond 4 GB of block devices #44

oyama opened this issue Jun 16, 2024 · 1 comment · Fixed by #45

Comments

@oyama
Copy link
Owner

oyama commented Jun 16, 2024

The address of the block device is indicated by the size_t type; the size_t type in the Raspberry Pi Pico SDK is 32 bits, with a maximum value of 4294967295. This means that SDHC cards can only be used up to 4 GB.

It is difficult to think of a use case where an embedded device consumes more than 4 GB, but SDHC cards are common devices, so it is considered necessary to address this issue.

Change block device addressing to typedef uint64_t bd_size_t.

@oyama
Copy link
Owner Author

oyama commented Jun 16, 2024

Change the addressing to 64-bit and enable ExFat. Binary size is about 20 KB larger, but unavoidable.

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 a pull request may close this issue.

1 participant