Skip to main content
ellisshz
Associate
May 22, 2010
Question

Mass storage problem with USB

  • May 22, 2010
  • 3 replies
  • 804 views
Posted on May 22, 2010 at 18:22

Mass storage problem with USB

    This topic has been closed for replies.

    3 replies

    ellisshz
    ellisshzAuthor
    Associate
    May 17, 2011
    Posted on May 17, 2011 at 13:52

    hi,

    I have attached two files and the code are modify by mass_mal files.

    Does there have to amend?

    thx

    ellisshz
    ellisshzAuthor
    Associate
    May 17, 2011
    Posted on May 17, 2011 at 13:52

    hi,

    thanks for your answer first.

    But i was used M25P16 flash to my media for mass storage device.

    so when i was insert my device to the PC, the usb flow not run into scsi write 10 state and it can't format.

    frankfrank953
    Associate II
    May 17, 2011
    Posted on May 17, 2011 at 13:52

    Hello, I have had a similar problem.. if you have a look at my SPI Problems post I have a driver that is compatible with this device.  I think you mean that you are communicating with the device as an SPI device not USB.

    To get data to be stored the key is to erase the page/sector before you write and also make sure that the Sector Protect bit is reset before you attempt any operation.

    Have you read the datasheet for the EEPROM device ? because that will tell you about write requirements.