[riot-notifications] [RIOT-OS/RIOT] mtd: add page addressed operations to allow access > 4GiB on SD cards (#14038)

benpicco notifications at github.com
Fri May 8 01:28:08 CEST 2020

@benpicco commented on this pull request.

> +    sdcard_spi_read_blocks(mtd_sd->sd_card, page,
+                           buff, SD_HC_BLOCK_SIZE,
+                           size / SD_HC_BLOCK_SIZE, &err);
+    if (err == SD_RW_OK) {
+        return 0;
+    }

All other backends support size != blocksize and offsets.
Currently the SD card backend only works with the FAT file system which will only ever operate on whole sectors.

I think it should be possible to modify `sdcard_spi` to support offsets on read - even if the SD card protocol only allows for sector-wise access, we can just ignore the first bytes.

You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20200507/01b1efca/attachment.htm>

More information about the notifications mailing list