I can read raw sectors from a SD Card with sdmmc_read_sectors() fonction. But I want to read raw sectors of a specific huge file that is stored in the SD Card. But I don't know the value of his first sector ?
I have mounted a file sytem partition using :
- esp_vfs_fat_sdmmc_mount_config_t mount_config = {
- .format_if_mount_failed = 0,
- .max_files = 5,
- .allocation_unit_size = 16 * 1024
- };
- esp_err_t ret = esp_vfs_fat_sdmmc_mount("/sdcard", &host, &slot_config, &mount_config, &card);
That way I could have the flexibility of a FAT partition (just drag and drop files to the SD card) and read/write really fast files
Thanks for reading