Open 755516538 opened 1 year ago
Hi, i dont understand what problem do you have, sorry. If you describe it more, maybe i can help.
Thank you for your reply. Preparation for problem recurrence: 1.esp32s3
Its because you did not unmount device under system properly.
Im not sure, but this small snippet in your .ino
may help to fix it:
#include "ff.h"
#include "diskio.h"
void tud_msc_write10_complete_cb(uint8_t lun)
{
if (disk_ioctl(0, CTRL_SYNC, NULL) != RES_OK)
{
Serial.printf("failed to sync\n");
}
}
PS you also has to make sure all data are transferred to esp32 before you unplug it
Ok, thank you very much for your help
Hello, I encountered an error when using the tinyusb example "sd_msc.ino". An error will occur if the file size of the SD card exceeds 512 bytes. Can you teach me how to repair it