Alfat M command do not write to Usb mass storage

I am using an Alfat oem board version 1.3 with the firmware version 1.0.8
i use an I2c comunication mode

I find some errors when i try write to usb mass storage devices, with M command.

The problem is the actual sized copied returned by the M command do not match with the data to be copied, When this happen i can not close the handle of the destiantion file, and every command i try to send to USb mass storage respond error code 0x03.

The issue not hapened every time i use a M command.

@ malassia -

  • Is it shorter or longer?
  • Is It always happened or randomly?
  • For I2C, it requires data token process when received, did you?
  • Happen or not happen, please?