Skip to main content
This topic has been closed for replies.

1 reply

gfeng
gfengAuthor
Associate
September 23, 2019

I don't know, right? The test Windows 7 is readable, written and formatted.

In usbd_msc_scsi.c file SCSI_Write10() function

Before:

  /* check if LBA address is in the right range */

  if(SCSI_CheckAddressRange(pdev, lun, hmsc->scsi_blk_addr,

               hmsc->scsi_blk_len) < 0)

  {

   return -1; /* error */

  }

Modified:

  /* check if LBA address is in the right range */

  if(SCSI_CheckAddressRange(pdev, lun, hmsc->scsi_blk_addr-1,

               hmsc->scsi_blk_len) < 0)

  {

   return -1; /* error */

  }